def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/test*") pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/pj_out*.dist") pisitools.dodoc("nad/README.NAD", "nad/README.NADUS")
def setup(): shelltools.cd("libs") shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR()) shelltools.cd("../pstocanonij") shelltools.system("./autogen.sh --prefix=/%s --enable-progpath=/%s/bin" % (get.defaultprefixDIR(), get.defaultprefixDIR())) shelltools.cd("../backend") shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR()) shelltools.cd("../backendnet") shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR()) shelltools.cd("..")
def setup(): shelltools.export("LDFLAGS", "%s -Wl,--no-as-needed" % get.LDFLAGS()) shelltools.cd("buftool") shelltools.system("./autogen.sh --prefix=/%s --enable-static --disable-shared" % get.defaultprefixDIR()) shelltools.cd("../cpca") shelltools.system("./autogen.sh --prefix=/%s --enable-shared --disable-static" % get.defaultprefixDIR()) shelltools.cd("../cngplp") shelltools.system("./autogen.sh") shelltools.cd("..")
def install(): shelltools.cd("scangearmp") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto("/%s/udev/rules.d/" % get.confDIR(), "etc/*.rules") pisitools.dosym("/%s/bin/scangearmp" % get.defaultprefixDIR(), "/usr/lib/gimp/2.0/plug-ins/scangearmp") shelltools.cd("..") for model in model_numbers: pisitools.insinto("/%s/lib/bjlib" % get.defaultprefixDIR(), "%s/*.tbl" % model) pisitools.insinto("/%s/lib/bjlib" % get.defaultprefixDIR(), "%s/*.DAT" % model) pisitools.dolib("%s/libs_bin%s/*.so" % (model, arch_bit)) pisitools.dolib("com/libs_bin%s/*.so" % arch_bit) pisitools.dodoc("LICENSE*", "scangearmp/AUTHORS", "scangearmp/ChangeLog", "scangearmp/LICENSE", "scangearmp/NEWS", "scangearmp/COPYING")
def configure(parameters=""): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file("configure"): gnuconfig_update() args = ( "./configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ %s" % ( get.defaultprefixDIR(), get.HOST(), get.manDIR(), get.infoDIR(), get.dataDIR(), get.confDIR(), get.localstateDIR(), parameters, ) ) if system(args): raise ConfigureError(_("Configure failed.")) else: raise ConfigureError(_("No configure script found."))
def install(parameters="", argument="install"): """install source into install directory with given parameters""" if can_access_file("makefile") or can_access_file("Makefile") or can_access_file("GNUmakefile"): args = ( "make prefix=%(prefix)s/%(defaultprefix)s \ datadir=%(prefix)s/%(data)s \ infodir=%(prefix)s/%(info)s \ localstatedir=%(prefix)s/%(localstate)s \ mandir=%(prefix)s/%(man)s \ sysconfdir=%(prefix)s/%(conf)s \ %(parameters)s \ %(argument)s" % { "prefix": get.installDIR(), "defaultprefix": get.defaultprefixDIR(), "man": get.manDIR(), "info": get.infoDIR(), "localstate": get.localstateDIR(), "conf": get.confDIR(), "data": get.dataDIR(), "parameters": parameters, "argument": argument, } ) if system(args): raise InstallError(_("Install failed.")) else: fixInfoDir() else: raise InstallError(_("No Makefile found."))
def install(): shelltools.cd("src") autotools.rawInstall("DESTDIR=%s EXAMPLEDIR=%s/%s/%s/examples" % (get.installDIR(), get.defaultprefixDIR(), get.docDIR(), get.srcNAME())) # Install additional headers for d in ("kadm5", "krb5"): pisitools.insinto("/usr/include/%s" % d, "include/%s/*.h" % d) pisitools.dodoc("plugins/kdb/ldap/libkdb_ldap/kerberos.ldif") pisitools.dodoc("plugins/kdb/ldap/libkdb_ldap/kerberos.schema") shelltools.cd("..") pisitools.dodir("/var/kerberos/krb5kdc") for plugin in ("preauth", "kdb", "authdata"): pisitools.dodir("/usr/lib/krb5/plugins/%s" % plugin) # Install info and docs pisitools.doinfo("doc/*.info") pisitools.dodoc("README")
def install(parameters='', argument='install'): '''install source into install directory with given parameters''' if can_access_file('makefile') or can_access_file( 'Makefile') or can_access_file('GNUmakefile'): args = 'make prefix=%(prefix)s/%(defaultprefix)s \ datadir=%(prefix)s/%(data)s \ infodir=%(prefix)s/%(info)s \ localstatedir=%(prefix)s/%(localstate)s \ mandir=%(prefix)s/%(man)s \ sysconfdir=%(prefix)s/%(conf)s \ %(parameters)s \ %(argument)s' % { 'prefix': get.installDIR(), 'defaultprefix': get.defaultprefixDIR(), 'man': get.manDIR(), 'info': get.infoDIR(), 'localstate': get.localstateDIR(), 'conf': get.confDIR(), 'data': get.dataDIR(), 'parameters': parameters, 'argument': argument } if system(args): raise InstallError(_('Install failed.')) else: raise InstallError(_('No Makefile found.')) fixInfoDir()
def build(): pisitools.dosed("Makefile", "^PREFIX=/usr/local$", "PREFIX=%s" % get.defaultprefixDIR()) pisitools.dosed("mylib.ml", "LIBDIR", libdir) autotools.make("BINDIR=%s LIBDIR=%s" % \ (get.installDIR() + bindir, \ get.installDIR() + libdir))
def rake_install(parameters=''): '''execute rake script for installation''' if system('rake -t -l %s %s' % (os.path.join('/', get.defaultprefixDIR(), 'lib'), parameters)): raise InstallError(_('Install failed.')) auto_dodoc()
def setup(): autotools.rawConfigure('--prefix-dir="/%s" \ --binary-dir="bin" \ --data-dir="share/%s" \ --icon-dir="share/pixmaps" \ --icon-theme-dir="share/icons/hicolor" \ --man-dir="share/man/man6" \ --menu-dir="share/applications" \ --doc-dir="share/doc/%s" \ --install-dir="%s" \ --disable-strip \ --enable-lto \ --menu-group="Game;StrategyGame;" \ --without-allegro \ --with-sdl \ --with-zlib \ --with-liblzo2 \ --with-png \ --with-freetype \ --with-fontconfig \ --with-icu \ --without-iconv \ ' % (get.defaultprefixDIR(), get.srcNAME(), get.srcNAME(), get.installDIR() ))
def install(parameters=''): '''does ruby setup.rb install''' if system('ruby -w setup.rb --prefix=/%s --destdir=%s %s' % (get.defaultprefixDIR(), get.installDIR(), parameters)): raise InstallError(_('Install failed.')) auto_dodoc()
def build(): shelltools.cd("cnijfilter") for model in printer_models: shelltools.system("./autogen.sh --prefix=/%s --program-suffix=%s" % (get.defaultprefixDIR(), model)) autotools.make() shelltools.move("src/cif", "src/cif%s" % model) autotools.make("clean")
def configure(parameters = "", installPrefix = "/%s" % get.defaultprefixDIR(), sourceDir = ".."): ''' parameters -DLIB_INSTALL_DIR="target_dir" -DSOMETHING_USEFUL=1''' config_params = [ ("-DSYSCONF_INSTALL_DIR", "/etc"), ("-DLIB_INSTALL_DIR", "lib"), ("-DLIBEXEC_INSTALL_DIR", "libexec"), ("-DLOCALE_INSTALL_DIR", "/usr/share/locale"), ("-DKDE_INSTALL_USE_QT_SYS_PATHS", "ON"), ("-DQML_INSTALL_DIR", "lib/qt5/qml"), ("-DPLUGIN_INSTALL_DIR", "/usr/lib/qt5/plugins"), ("-DECM_MKSPECS_INSTALL_DIR", "/usr/lib/qt5/mkspecs/modules"), ("-DBUILD_TESTING", "OFF"), ("-DCMAKE_BUILD_TYPE", "Release"), ("-DPYTHON_EXECUTABLE", "/usr/bin/python3") ] shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("%s %s" % (" ".join(["%s=%s" % (k, v) for k, v in config_params if not "%s=" % k in parameters]), parameters), installPrefix, sourceDir) shelltools.cd("..")
def install(parameters = '', argument = 'install'): '''install source into install directory with given parameters''' if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'): args = 'make prefix=%(prefix)s/%(defaultprefix)s \ datadir=%(prefix)s/%(data)s \ infodir=%(prefix)s/%(info)s \ localstatedir=%(prefix)s/%(localstate)s \ mandir=%(prefix)s/%(man)s \ sysconfdir=%(prefix)s/%(conf)s \ %(parameters)s \ %(argument)s' % {'prefix': get.installDIR(), 'defaultprefix': get.defaultprefixDIR(), 'man': get.manDIR(), 'info': get.infoDIR(), 'localstate': get.localstateDIR(), 'conf': get.confDIR(), 'data': get.dataDIR(), 'parameters': parameters, 'argument':argument} if system(args): raise InstallError(_('Install failed.')) else: fixInfoDir() else: raise InstallError(_('No Makefile found.'))
def configure(parameters='', build_dir='build'): """ Configures the project into the build directory with the parameters using meson. Args: parameters (str): Extra parameters for the command. Default is empty string. build_dir (str): Build directory. Default is 'build'. Examples: >>> mesontools.configure() >>> mesontools.configure('extra parameters') >>> mesontools.configure('extra parameters', 'custom_build_dir') """ default_parameters = ' '.join([ '--prefix=/%s' % get.defaultprefixDIR(), '--bindir=/usr/bin', '--datadir=/%s' % get.dataDIR(), '--includedir=/usr/include', '--infodir=/%s' % get.infoDIR(), '--libdir=/%s' % ('usr/lib32' if get.buildTYPE() == 'emul32' else 'usr/lib'), '--libexecdir=/%s' % get.libexecDIR(), '--localedir=/usr/share/locale', '--localstatedir=/%s' % get.localstateDIR(), '--mandir=/%s' % get.manDIR(), '--sbindir=/%s' % get.sbinDIR(), '--sharedstatedir=com', '--sysconfdir=/etc', '--default-library=shared', ]) if system('meson setup %s %s %s' % (default_parameters, parameters, build_dir)): raise ConfigureError(_('Configuration failed.'))
def setup(): autotools.rawConfigure( "--with-diffutils \ --prefix=/%s \ --host=%s \ " % (get.defaultprefixDIR(), get.HOST()) )
def install(parameters='', argument='install', no_sb2=False): '''install source into install directory with given parameters''' cmd = 'make prefix=%(prefix)s/%(defaultprefix)s \ datadir=%(prefix)s/%(data)s \ infodir=%(prefix)s/%(info)s \ localstatedir=%(prefix)s/%(localstate)s \ mandir=%(prefix)s/%(man)s \ sysconfdir=%(prefix)s/%(conf)s \ %(parameters)s \ %(argument)s' % { 'prefix': get.installDIR(), 'defaultprefix': get.defaultprefixDIR(), 'man': get.manDIR(), 'info': get.infoDIR(), 'localstate': get.localstateDIR(), 'conf': get.confDIR(), 'data': get.dataDIR(), 'parameters': parameters, 'argument': argument, } if crosscompiling and not no_sb2: cmd = "sb2 -e %s" % cmd if system(cmd): raise InstallError(_('Install failed.')) else: fixInfoDir()
def install(): shelltools.cd("libs") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../pstocanonij") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../backend") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../backendnet") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../cnijfilter") for model in printer_models: pisitools.dobin("src/cif%s" % model) shelltools.cd("..") for model in model_numbers: pisitools.insinto("/usr/lib/bjlib", "%s/database/*" % model) if get.ARCH() == "i686": pisitools.dolib("%s/libs_bin%s/*.so" % (model, "32")) else: pisitools.dolib("%s/libs_bin%s/*.so" % (model, "64")) if get.ARCH() == "i686": pisitools.dolib("com/libs_bin%s/*.so" % "32") else: pisitools.dolib("com/libs_bin%s/*.so" % "64") pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "ppd/*.ppd") pisitools.dodoc("LICENSE*")
def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") if can_access_file('configure'): gnuconfig_update() prefix = get.emul32prefixDIR() if get.buildTYPE() == "emul32" else get.defaultprefixDIR() args = './configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (prefix, \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if get.buildTYPE() == "emul32": args += " --libdir=/usr/lib32" if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def setup(): shelltools.export("LDFLAGS", "-Wl,-z,defs") args = '../configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ ' % (get.defaultprefixDIR(), \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR()) args += "--with-pic \ --disable-static \ --with-ipc=%(ipc_type)s \ --program-suffix=-%(ipc_type)s" for ipc_type in ipc_types: shelltools.makedirs(ipc_type) shelltools.cd(ipc_type) shelltools.system(args % {'ipc_type':ipc_type}) shelltools.cd('..')
def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file('ltmain.sh'): libtoolize("--copy --force") if can_access_file('configure'): gnuconfig_update() args = './configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (get.defaultprefixDIR(), \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def install(parameters = '', argument = 'install'): '''install source into install directory with given parameters''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") args = 'make prefix=%(prefix)s/%(defaultprefix)s \ datadir=%(prefix)s/%(data)s \ infodir=%(prefix)s/%(info)s \ localstatedir=%(prefix)s/%(localstate)s \ mandir=%(prefix)s/%(man)s \ sysconfdir=%(prefix)s/%(conf)s \ %(parameters)s \ %(argument)s' % { 'prefix': get.installDIR(), 'defaultprefix': get.defaultprefixDIR(), 'man': get.manDIR(), 'info': get.infoDIR(), 'localstate': get.localstateDIR(), 'conf': get.confDIR(), 'data': get.dataDIR(), 'parameters': parameters, 'argument':argument, } if system(args): raise InstallError(_('Install failed.')) else: fixInfoDir() if get.buildTYPE() == "emul32": fixpc() if isDirectory("%s/emul32" % get.installDIR()): removeDir("/emul32")
def install(parameters = '', argument = 'install', no_sb2=False): '''install source into install directory with given parameters''' cmd = 'make prefix=%(prefix)s/%(defaultprefix)s \ datadir=%(prefix)s/%(data)s \ infodir=%(prefix)s/%(info)s \ localstatedir=%(prefix)s/%(localstate)s \ mandir=%(prefix)s/%(man)s \ sysconfdir=%(prefix)s/%(conf)s \ %(parameters)s \ %(argument)s' % { 'prefix': get.installDIR(), 'defaultprefix': get.defaultprefixDIR(), 'man': get.manDIR(), 'info': get.infoDIR(), 'localstate': get.localstateDIR(), 'conf': get.confDIR(), 'data': get.dataDIR(), 'parameters': parameters, 'argument':argument, } if crosscompiling and not no_sb2: cmd = "sb2 -e %s" % cmd if system(cmd): raise InstallError(_('Install failed.')) else: fixInfoDir()
def install(): autotools.rawInstall("DESTDIR=/%s PREFIX=/%s \ XDG_DATA_DIRS=/usr/share \ XDG_CONFIG_DIRS=/etc/xdg \ LIBINSTALLDIR=/usr/lib/%s/site-packages" % (get.installDIR(),get.defaultprefixDIR(),get.curPYTHON())) pisitools.dodoc("FUTURE","README","COPYING")
def setup(): pisitools.dosed("build/mak/compiler/gcc.mak", "^GCC.CFLAGS.release.*$", "GCC.CFLAGS.release = ") pisitools.dosed("build/mak/compiler/gcc.mak", "^GCC.CXXFLAGS = \$.*$", "GCC.CXXFLAGS = $(GCC.CFLAGS)") autotools.rawConfigure( "--prefix=/%s --mode=release --staticlibs=NO --target=..generic" % get.defaultprefixDIR())
def install(): pisitools.dobin("usr/local/bin/cifmp520") for lib in libs: pisitools.insinto("/usr/lib", "usr/lib/%s" % lib, "%s.so" % lib.split(".so")[0]) pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "usr/share/cups/model/*.ppd") pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/*") pisitools.dohtml("guidemp520series-pd-2.80-1/MP520series/*")
def setup(): shelltools.export("LDFLAGS", "%s -Wl,--no-as-needed" % get.LDFLAGS()) shelltools.cd("buftool") shelltools.system( "./autogen.sh --prefix=/%s --enable-static --disable-shared" % get.defaultprefixDIR()) shelltools.cd("../cpca") shelltools.system( "./autogen.sh --prefix=/%s --enable-shared --disable-static" % get.defaultprefixDIR()) shelltools.cd("../cngplp") shelltools.system("./autogen.sh") shelltools.cd("..")
def setup(): shelltools.makedirs("build") shelltools.cd("build") shelltools.system("../configure --mandir=/%s --datadir=/%s \ --prefix=/%s \ --target=avr \ --disable-werror \ --disable-nls" % (get.manDIR(), get.dataDIR(), get.defaultprefixDIR()))
def build(): shelltools.unlink("config.sh") pisitools.dosed("Makefile", "^PREFIX=/usr/local$", "PREFIX=%s" % get.defaultprefixDIR()) pisitools.dosed("mylib.ml", "LIBDIR", libdir) autotools.make("BINDIR=%s LIBDIR=%s" % \ (get.installDIR() + bindir, \ get.installDIR() + libdir))
def setup(): shelltools.system("rm -rf jp3d libs") shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DBUILD_EXAMPLES:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DINCLUDE_INSTALL_DIR=/%s/include" % get.defaultprefixDIR(), sourceDir="..")
def install(): pisitools.dobin("usr/local/bin/cifip1800") for lib in libs: pisitools.insinto("/usr/lib", "usr/lib/%s" % lib, "%s.so" % lib.split(".so")[0]) pisitools.dosym("libpng.so", "/usr/lib/libpng.so.3") pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "usr/share/cups/model/*.ppd") pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/*") pisitools.dohtml("guideip1800series-pd-2.70-1/iP1800series/*")
def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), sourceDir = '.'): '''configure source with given cmake parameters = "-DCMAKE_BUILD_TYPE -DCMAKE_CXX_FLAGS ... "''' if can_access_file(join_path(sourceDir, 'CMakeLists.txt')): args = 'cmake -DCMAKE_INSTALL_PREFIX=%s %s %s' % (installPrefix, parameters, sourceDir) if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found for cmake.'))
def install(): autotools.rawInstall( "DESTDIR=/%s PREFIX=/%s \ XDG_DATA_DIRS=/usr/share \ XDG_CONFIG_DIRS=/etc/xdg \ LIBINSTALLDIR=usr/lib/%s/site-packages" % (get.installDIR(), get.defaultprefixDIR(), get.curPYTHON())) pisitools.dodoc("FUTURE", "README", "COPYING")
def install(): # autotools.rawInstall("DESTDIR=%s PREFIX=/%s" % (get.installDIR(), get.defaultprefixDIR())) autotools.make("pure_install DESTDIR=%s PREFIX=/%s" % (get.installDIR(), get.defaultprefixDIR())) # pisitools.move("%s/ocsinventory-agent" % get.binDIR(), "%s/ocsinventory-agent" % get.sbinDIR()) pisitools.dodir("/var/log/ocsinventory-agent") pisitools.dodir("/var/lib/ocsinventory-agent") # pisitools.dodir("%s/logrotate.d" % get.confDIR()) # pisitools.dodir("%s/cron.hourly" % get.confDIR()) # pisitools.dodir("%s/ocsinventory/ocsinventory-agent" % get.confDIR()) pisitools.insinto("%s/" % get.confDIR(), "etc/*")
def setup(): pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CFLAGS.release.*$", "GCC.CFLAGS.release = ") pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CXXFLAGS = \$.*$", "GCC.CXXFLAGS = $(GCC.CFLAGS)") pisitools.dosed("configure", "3.81", "4.0") autotools.rawConfigure( "--prefix=/%s --mode=release --staticlibs=NO --libdir=/usr/lib --target=..generic --vectorization=" % get.defaultprefixDIR() ) pisitools.dosed("config.mak", "CONF_DOCDIR=.*", "CONF_DOCDIR=/usr/share/doc/lensfun/")
def setup(): pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CFLAGS.release.*$", "GCC.CFLAGS.release = ") pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CXXFLAGS = \$.*$", "GCC.CXXFLAGS = $(GCC.CFLAGS)") autotools.rawConfigure( "--prefix=/%s --mode=release --staticlibs=NO --target=..generic --vectorization=" % get.defaultprefixDIR()) pisitools.dosed("config.mak", "CONF_DOCDIR=.*", "CONF_DOCDIR=/usr/share/doc/lensfun/")
def setup(): autotools.rawConfigure("--without-allegro \ --prefix-dir=/%s \ --binary-dir=bin \ --data-dir=share/openttd \ --install-dir=%s \ --doc-dir=share/doc/openttd \ --icon-theme-dir=share/icons/hicolor \ " % (get.defaultprefixDIR(), get.installDIR(), ))
def install(): autotools.rawInstall("DESTDIR=%s \ prefix=/%s \ install" %(get.installDIR(), get.defaultprefixDIR())) # Remove unneeded files pisitools.remove("/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/example.pl" % (get.curPERL(), get.ARCH())) pisitools.dodoc("COPYING", "README")
def install(): autotools.rawInstall("DESTDIR=%s \ prefix=/%s \ install" % (get.installDIR(), get.defaultprefixDIR())) # Remove unneeded files pisitools.remove( "/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/example.pl" % (get.curPERL(), get.ARCH())) pisitools.dodoc("COPYING", "README")
def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), sourceDir = '.'): '''configure source with given cmake parameters = "-DCMAKE_BUILD_TYPE -DCMAKE_CXX_FLAGS ... "''' if can_access_file(join_path(sourceDir, 'CMakeLists.txt')): args = 'cmake -DCMAKE_INSTALL_PREFIX=%s \ -DCMAKE_C_FLAGS="%s" \ -DCMAKE_CXX_FLAGS="%s" \ -DCMAKE_LD_FLAGS="%s" %s %s' % (installPrefix, get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS(), parameters, sourceDir) if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found for cmake.'))
def install(): autotools.rawInstall("PREFIX=/%s DESTDIR=%s" % (get.defaultprefixDIR(), get.installDIR())) # we love vim pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "examples/tmux.vim", "tmux.vim") pisitools.insinto("/usr/share/doc/tmux/examples", "examples/*") pisitools.remove("/usr/share/doc/tmux/examples/tmux.vim") # Bash completion pisitools.domove("/usr/share/doc/tmux/examples/bash_completion_tmux.sh", "/etc/bash_completion.d", "tmux") pisitools.dodoc("CHANGES", "FAQ", "NOTES")
def install(): autotools.rawInstall("PREFIX=/%s DESTDIR=%s" % (get.defaultprefixDIR(), get.installDIR())) # we love vim pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "examples/tmux.vim", "tmux.vim") pisitools.insinto("/usr/share/doc/tmux/examples", "examples/*") pisitools.remove("/usr/share/doc/tmux/examples/tmux.vim") # Bash completion pisitools.domove("/usr/share/doc/tmux/examples/bash_completion_tmux.sh", "/etc/bash_completion.d", "tmux") pisitools.dodoc("CHANGES", "FAQ")
def setup(): autotools.rawConfigure("--without-allegro \ --prefix-dir=/%s \ --binary-dir=bin \ --data-dir=share/openttd \ --install-dir=%s \ --doc-dir=share/doc/openttd \ --icon-theme-dir=share/icons/hicolor \ " % ( get.defaultprefixDIR(), get.installDIR(), ))
def install(): shelltools.cd("cnijfilter") for model in printer_models: pisitools.dobin("src/cif%s" % model) shelltools.cd("..") for model in model_numbers: pisitools.insinto("/usr/lib/bjlib", "%s/database/*" % model) pisitools.dolib("%s/libs_bin/*.so" % model) pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "ppd/*.ppd") pisitools.dodoc("LICENSE*")
def install(): # install server shelltools.cd("Apache") autotools.make("pure_install DESTDIR=%s PREFIX=/%s" % (get.installDIR(), get.defaultprefixDIR())) shelltools.cd("..") pisitools.insinto("%s/ocsinventory-server/" % get.dataDIR(), "binutils/*") pisitools.remove("%s/ocsinventory-server/create-release-tarball.sh" % get.dataDIR()) # pisitools.remove("/usr/lib/perl5/vendor_perl/5.10.1/Apache/Ocsinventory/Server/Modperl1.pm") pisitools.removeDir( "/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi") pisitools.dodir("/var/log/ocsinventory-server") pisitools.dodir("%s/logrotate.d" % get.confDIR()) pisitools.dosed("etc/logrotate.d/ocsinventory-server", "PATH_TO_LOG_DIRECTORY", "/var/log/ocsinventory-server") pisitools.insinto("%s/logrotate.d" % get.confDIR(), "etc/logrotate.d/ocsinventory-server") pisitools.insinto("%s/apache2/conf.d/" % get.confDIR(), "etc/ocsinventory/ocsinventory-server.conf", "ocsinventory-server.conf.default") pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf", "DATABASE_SERVER", "localhost") pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf", "DATABASE_PORT", "3306") pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf", "VERSION_MP", "2") pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf", "PATH_TO_LOG_DIRECTORY", "/var/log/ocsinventory-server") pisitools.insinto("%s/apache2/conf.d/" % get.confDIR(), "etc/ocsinventory/ocsinventory-server.conf") # install reports shelltools.copytree( "%s/ocsreports" % get.curDIR(), "%s/%s/ocsinventory-reports" % (get.installDIR(), get.dataDIR())) shelltools.system( "/usr/bin/find %s/%s/ocsinventory-reports \( -name \*.php -o -name \*.css \) -exec chmod -x {} \;" % (get.installDIR(), get.dataDIR())) pisitools.dodir("%s/ocsinventory/ocsinventory-reports" % get.confDIR()) pisitools.domove( "%s/ocsinventory-reports/dbconfig.inc.php" % get.dataDIR(), "%s/ocsinventory/ocsinventory-reports/" % get.confDIR()) pisitools.dosym( "../../../%s/ocsinventory/ocsinventory-reports/dbconfig.inc.php" % get.confDIR(), "%s/ocsinventory-reports/dbconfig.inc.php" % get.dataDIR()) pisitools.dodir("%s/ocsinventory-reports/download" % get.localstateDIR()) pisitools.dodir("%s/ocsinventory-reports/ipd" % get.localstateDIR()) pisitools.insinto("%s/ocsinventory-reports/" % get.dataDIR(), "binutils/ipdiscover-util.pl")