def setup(): shelltools.makedirs(NCURSES) shelltools.makedirs(NCURSESW) shelltools.cd(NCURSESW) global CONFIGPARAMS if get.buildTYPE() == "_emul32": pisitools.flags.add("-m32") pisitools.ldflags.add("-m32") CONFIGPARAMS += " --prefix=/_emul32 \ --libdir=/usr/lib32 \ --libexecdir=/_emul32/lib \ --bindir=/_emul32/bin \ --sbindir=/_emul32/sbin \ --mandir=/_emul32/share/man" else: CONFIGPARAMS += " --prefix=/usr \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --mandir=/usr/share/man" shelltools.system("%s/configure --enable-widec --enable-pc-files %s" % (WORKDIR, CONFIGPARAMS))
def install(): shelltools.cd("%s/lsof_4.88/lsof_4.88_src" % get.workDIR()) pisitools.dodoc("00*") pisitools.dobin("lsof") pisitools.doman("lsof.8") pisitools.insinto("/usr/share/lsof/scripts", "%s/lsof_4.88/lsof_4.88_src/scripts/*" % get.workDIR())
def install(): shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("..") pisitools.dodoc("AUTHORS", "COPYING", "COPYING.LIB", "ChangeLog", "NEWS", "TODO") pisitools.dohtml("README.html", "FAQ.html")
def setup(): shelltools.cd("../") for root, dirs, files in os.walk(WorkDir): for name in dirs: shelltools.chmod(os.path.join(root, name), 0755) for name in files: shelltools.chmod(os.path.join(root, name), 0644)
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DWANT_SVN_STAMP=OFF \ -DWANT_GIT_STAMP=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr" ,sourceDir="..")
def install(): # ejabberdctl pisitools.insinto("/usr/sbin", "tools/*") # mnesia path pisitools.dodir("/var/lib/jabber/spool") shelltools.cd("src") # NOTE: Don't forget to update service.py with new versions... destdir = get.installDIR() ejabberddir = "%s/usr/lib/erlang/lib/%s-%s" % (destdir, get.srcNAME(), get.srcVERSION()) etcdir = "%s/etc/jabber/" % destdir logdir = "%s/var/log/jabber/" % destdir autotools.rawInstall("DESTDIR=%s EJABBERDDIR=%s ETCDIR=%s LOGDIR=%s" % ( destdir, ejabberddir, etcdir, logdir)) pisitools.dosed("%s/etc/jabber/ejabberd.cfg" % get.installDIR(), #"\.\/ssl\.pem", "/path/to/ssl.pem", "/etc/jabber/ssl.pem") shelltools.cd("../") pisitools.dodoc("ChangeLog", "COPYING")
def setup(): for (path, dirs, files) in os.walk(get.workDIR()): for file in files: if file.endswith(".c"): with open("%s/%s" % (path, file)) as f: lines = f.readlines() new_file = "" for line in lines: if not line.find("g_type_init()") == -1: new_file = new_file + "#if !GLIB_CHECK_VERSION(2,35,0)\n" + line + "#endif\n" else: new_file = new_file + line open("%s/%s" % (path, file), "w").write(new_file) options = "--disable-static \ --disable-silent-rules \ --disable-scrollkeeper \ --disable-dumper \ --disable-tests \ --enable-introspection=yes" shelltools.makedirs("../gtk2-rebuild") shelltools.system("cp -R * ../gtk2-rebuild &>/dev/null") #autotools.autoreconf("-fvi") autotools.configure("%s --with-gtk=3" % options) shelltools.cd("../gtk2-rebuild") #autotools.autoreconf("-fvi") autotools.configure("%s --with-gtk=2" % options)
def setup(): shelltools.copytree("%s/PyQt-gpl-5.4.1" % get.workDIR(), "%s/Py2Qt-gpl-5.4.1" % get.workDIR()) pythonmodules.run("configure.py --confirm-license \ --assume-shared \ --no-timestamp \ --qsci-api \ --enable=QtCore \ --enable=QtWidgets \ --enable=QtXml \ --enable=QtGui \ --qmake='/usr/bin/qmake' \ --destdir='/usr/lib/python3.4/site-packages' \ --sip-incdir='/usr/include/python3.4' \ CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3") shelltools.cd("%s/Py2Qt-gpl-5.4.1" % get.workDIR()) shelltools.system("python configure.py --confirm-license \ --assume-shared \ --no-timestamp \ --qsci-api \ --enable=QtCore \ --enable=QtWidgets \ --enable=QtXml \ --enable=QtGui \ --qmake='/usr/bin/qmake'")
def setup(): # Fix build with 1.2.2 pisitools.dosed("build.xml", "property name=\"src_dir\" value=\"src\"", "property name=\"src_dir\" value=\".\"") shelltools.cd("lib/") shelltools.chmod("jsapi.sh") shelltools.system("./jsapi.sh")
def setup(): shelltools.chmod("scripts/*.sh") undef_variables() conf = "--disable-dev-erandom \ --with-tls \ --with-__thread \ --enable-add-ons=nptl,c_stubs,glibc-compat,libidn \ --enable-kernel=2.6.11 \ --without-cvs \ --without-selinux \ --enable-bind-now \ --build=%s \ --host=%s \ --disable-profile \ --without-gd \ --with-headers=/usr/include \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libexecdir=/usr/lib/misc" % (get.HOST(), get.HOST()) shelltools.makedirs("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
def install(): # These should not be set, else the zoneinfo do not always get installed ... undef_variables() shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) autotools.rawInstall("PARALLELMFLAGS=${MAKEOPTS} install_root=%s" % get.installDIR()) # Some things want this, notably ash. pisitools.dosym("libbsd-compat.a", "/usr/lib/libbsd.a") # install glibc-info autotools.rawInstall("PARALLELMFLAGS=${MAKEOPTS} install_root=%s info -i" % get.installDIR()) setup_locales() # We'll take care of the cache ourselves pisitools.remove("/etc/ld.so.cache") pisitools.dodir("/usr/share/man/man3") pisitools.doman("../%s/man/*.3thr" % get.workDIR()) pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "FAQ", "INTERFACE", "NEWS", "NOTES", "PROJECTS", "README*") # Is this next line actually needed or does the makefile get it right? # It previously has 0755 perms which was killing things. shelltools.chmod("%s/usr/lib/misc/pt_chown" % get.installDIR(), 04711) # Prevent overwriting of the /etc/localtime symlink. pisitools.remove("/etc/localtime")
def build(): for package in shelltools.ls("."): if package in SkipFiles: continue shelltools.cd(package) autotools.make() shelltools.cd("../")
def install(): for package in shelltools.ls("."): if package in SkipFiles: continue shelltools.cd(package) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../")
def install(): shelltools.cd("src") autotools.rawInstall("DESTDIR=\"%s\" docdir=/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME())) # Install symnlinks for easier usage for f in ["connect", "relay", "server", "setup", "sniff", "start", "status", "stop"]: pisitools.dosym("pppoe-%s" % f, "/usr/sbin/adsl-%s" % f)
def install(): shelltools.export("GOROOT_FINAL", "/usr/lib/go") shelltools.cd("%s/go-go1.6.3" % get.workDIR()) pisitools.dodir("/usr/lib/go") shelltools.system("cp -rp api bin doc lib pkg src %s/usr/lib/go" % get.installDIR()) shelltools.system("chown -R root:root %s/usr" % get.installDIR()) pisitools.dosym("/usr/lib/go/bin/go", "/usr/bin/go") pisitools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt") pisitools.dosym("/usr/lib/go/doc", "/usr/share/doc/%s/doc" % get.srcNAME()) pisitools.dosym("/usr/lib/go/api", "/usr/share/doc/%s/api" % get.srcNAME()) shelltools.system("cp -a misc %s/usr/lib/go" % get.installDIR()) pisitools.removeDir("/usr/lib/go/pkg/bootstrap") # remove testdata, which hit cave fix-linkage pisitools.remove("/usr/lib/go/src/debug/elf/testdata/gcc-386-freebsd-exec") pisitools.removeDir("/usr/lib/go/pkg/obj") # dirty fix thanks @erturk pisitools.removeDir("/usr/lib/go/pkg/linux_amd64") pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
def build(): shelltools.cd("source/") autotools.make("proto") autotools.make("everything") # build python modules shelltools.system("python python/setup.py build")
def setup(): #FIXME: External libstreams workaround if not pkgconfig.libraryExists("libstreams"): raise "libstreams pkgconfig file not found!" libstreams_version = pkgconfig.getLibraryVersion("libstreams") MAJOR = libstreams_version.split(".")[0] MINOR = libstreams_version.split(".")[1] PATCH = libstreams_version.split(".")[2] STRING = libstreams_version shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \ -DCLUCENE_LIBRARY_DIR=/usr/include \ -DENABLE_FAM=ON \ -DENABLE_POLLING=ON \ -DENABLE_INOTIFY=ON \ -DSTRIGI_VERSION_MAJOR=%s \ -DSTRIGI_VERSION_MINOR=%s \ -DSTRIGI_VERSION_PATCH=%s \ -DSTRIGI_VERSION_STRING=%s \ -DLIBSTREAMS_VERSION=%s \ " % (MAJOR, MINOR, PATCH, STRING, STRING), sourceDir="..")
def setup(): for tool in alsa_tools: shelltools.cd(tool) if tool in ["hdspconf", "ld10k1"]: autotools.autoreconf("-fi") autotools.configure() shelltools.cd("..")
def setup(): shelltools.cd("source/") autotools.autoconf() autotools.configure("--with-fhs \ --sysconfdir=/etc/samba \ --localstatedir=/var \ --with-configdir=/etc/samba \ --with-libdir=/usr/lib/samba \ --with-piddir=/var/run/samba \ --with-lockdir=/var/cache/samba \ --with-logfilebase=/var/log/samba \ --with-privatedir=/var/lib/samba/private \ --with-libsmbclient \ --without-spinlocks \ --with-acl-support \ --with-aio-support \ --enable-cups \ --with-pam \ --with-pam_smbpass \ --with-python \ --with-quotas \ --with-sys-quotas \ --with-readline \ --with-smbmount \ --with-syslog \ --with-expsam=xml \ --without-ldapsam \ --with-winbind \ --with-shared-modules=idmap_rid")
def setup(): # Remove local copies for system libs for directory in ["jpeg", "libpng", "zlib", "jasper", "expat"]: shelltools.unlinkDir(directory) shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS()) autotools.autoreconf("-fi") autotools.configure("--disable-compile-inits \ --disable-gtk \ --enable-dynamic \ --enable-cups \ --with-system-libtiff \ --with-ijs \ --with-drivers=ALL \ --with-libpaper \ --with-jbig2dec \ --with-jasper \ --with-omni \ --with-x \ --with-fontpath=/usr/share/fonts:/usr/share/fonts/default/ghostscript:/usr/share/cups/fonts:/usr/share/fonts/TTF:/usr/share/fonts/Type1") shelltools.cd("ijs/") shelltools.system("./autogen.sh \ --prefix=/usr \ --mandir=/usr/share/man \ --disable-static \ --enable-shared")
def setup(): for package in shelltools.ls("."): if package in SkipFiles: continue shelltools.cd(package) autotools.configure() shelltools.cd("../")
def install(): shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("") pisitools.dosed('debian/qgis.desktop', 'qgis-icon', '/usr/share/qgis/images/icons/qgis-icon.png') pisitools.insinto("/usr/share/applications/", "debian/qgis.desktop") pisitools.domove("/usr/share/qgis/doc/*", "/usr/share/doc/qgis/")
def install(): shelltools.cd("client") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.rename("/etc/smolt/config.py", "smolt.cfg") pisitools.remove("/usr/share/smolt/client/config.py") pisitools.dosym("/etc/smolt/smolt.cfg", "/usr/share/smolt/client/config.py") # Stupid makefile links executables to wrong place.Remove and link them again. pisitools.dosym("/usr/share/smolt/client/sendProfile.py", "/usr/bin/smoltSendProfile") pisitools.dosym("/usr/share/smolt/client/deleteProfile.py", "/usr/bin/smoltDeleteProfile") pisitools.dosym("/usr/share/smolt/client/smoltGui.py", "/usr/bin/smoltGui") shelltools.touch("%s/etc/smolt/pub-uuid-smolt.pardus.org.tr" % get.installDIR()) shelltools.chmod("%s/etc/smolt/pub-uuid-smolt.pardus.org.tr" % get.installDIR(), 0666) shelltools.touch("%s/etc/smolt/smolt-token-smolt.pardus.org.tr" % get.installDIR()) shelltools.chmod("%s/etc/smolt/smolt-token-smolt.pardus.org.tr" % get.installDIR(), 0666) shelltools.touch("%s/etc/smolt/uuiddb.cfg" % get.installDIR()) shelltools.chmod("%s/etc/smolt/uuiddb.cfg" % get.installDIR(), 0666)
def build(): shelltools.cd("generator") autotools.make("-j1") shelltools.system("QTDIR=/usr/share/qt4 ./generator --include-paths='/usr/include'") shelltools.cd("../qtbindings") autotools.make("-j1")
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ -DSPATIALINDEX_INCLUDE_DIR=/usr/include/libspatialindex \ -DQGIS_MANUAL_SUBDIR=share/man", installPrefix="/usr",sourceDir="..")
def setup(): shelltools.makedirs("build") shelltools.cd("build") shelltools.system('../mozilla/nsprpub/configure \ --prefix=/usr \ --disable-debug \ --enable-optimize="%s -g -fno-strict-aliasing"' % get.CFLAGS())
def build(): shelltools.export("R_HOME","") autotools.make() # build math library shelltools.cd("src/nmath/standalone") autotools.make("-j1")
def build(): shelltools.cd("build") autotools.make("-j1") shelltools.cd("lib") autotools.make("shared")
def build(): shelltools.export("AR", "ar") shelltools.export("RANLIB", "ranlib") shelltools.export("CFLAGS", cflags) shelltools.export("CXXFLAGS", cxxflags) shelltools.cd(source) autotools.make("-C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc") autotools.make('BINDIR=release \ BUILD_CLIENT=YES \ BUILD_SERVER=YES \ BUILD_IRC=YES \ BUILD_SND_QF=YES \ BUILD_SND_OPENAL=YES \ BUILD_TV_SERVER=YES \ BUILD_ANGELWRAP=YES \ DEBUG_BUILD=NO \ BASE_ARCH=%s \ CC="%s" \ CXX="%s" \ V=1 \ VERBOSE=1 \ all' % (arch, get.CC(), get.CXX()))
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DCMAKE_INSTALL_LIBDIR=/usr/lib", sourceDir="..")
def build(): shelltools.cd("build") shelltools.system("ninja")
def install(): shelltools.cd("build/gcc") autotools.install() shelltools.cd("%s/%s" % (get.workDIR(), WorkDir)) pisitools.dohtml("doc/*")
def setup(): #shelltools.system('sed -i "s:mdds >= 0.12.0:mdds-1.0 >= 0.12.0:g" configure.ac') shelltools.chmod("%s/bin/unpack-sources" % OurWorkDir) shelltools.export("LO_PREFIX", "/usr") shelltools.export("PYTHON", "python3.6") shelltools.cd(OurWorkDir) shelltools.touch("autogen.lastrun") shelltools.system('sed -e "/distro-install-file-lists/d" -i Makefile.in') shelltools.system('./autogen.sh \ --prefix=/usr \ --sysconfdir=/etc \ --with-vendor="Pisi Linux" \ --with-lang="ALL" \ --enable-gtk3 \ --with-help \ --with-myspell-dicts \ --with-alloc=system \ --with-java \ --without-system-dicts \ --without-fonts \ --disable-postgresql-sdbc \ --disable-firebird-sdbc \ --disable-coinmp \ --disable-systray \ --without-system-hsqldb \ --enable-release-build=yes \ --enable-python=system \ --with-system-apr \ --with-system-boost \ --with-system-cairo \ --with-system-clucene \ --with-system-cppunit \ --with-system-curl \ --with-system-expat \ --with-system-graphite \ --with-system-glew \ --with-system-glm \ --with-system-harfbuzz \ --with-system-hunspell \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libcdr \ --without-system-libcmis \ --with-system-libetonyek \ --with-system-libmspub \ --with-system-libodfgen \ --with-system-libpagemaker \ --with-system-libpng \ --with-system-librevenge \ --with-system-libvisio \ --with-system-libwpd \ --with-system-libwpg \ --with-system-libwps \ --with-system-libxml \ --with-system-mdds \ --with-system-liblangtag \ --without-system-libstaroffice \ --without-system-libzmf \ --with-system-neon \ --with-system-nss \ --with-system-odbc \ --with-system-openldap \ --with-system-openssl \ --without-system-orcus \ --with-system-poppler \ --with-system-postgresql \ --with-system-redland \ --with-system-serf \ --without-system-ucpp \ --with-system-zlib \ --with-system-libetonyek \ --enable-scripting-beanshell \ --enable-scripting-javascript \ --disable-odk \ --enable-ext-wiki-publisher \ --enable-ext-nlpsolver \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-external-tar=external/tarballs \ --with-gdrive-client-id=413772536636.apps.googleusercontent.com \ --with-gdrive-client-secret=0ZChLK6AxeA3Isu96MkwqDR4 \ --with-parallelism=%s' % (get.makeJOBS().replace("-j", "")))
def build(): shelltools.cd(ObjDir) autotools.make("-f ../client.mk build")
def install(): shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
def build(): shelltools.cd("build") cmaketools.make()
def install(): shelltools.cd("build") shelltools.system("DESTDIR=%s ninja install" % get.installDIR()) shelltools.cd("..") pisitools.dodoc("GPL", "README*")
def build(): shelltools.export("BUILD_PARAMS", "-C /usr/src/linux-%s" % get.curKERNEL()) shelltools.cd("Module") autotools.make("KERNDIR=/lib/modules/%s/build" % get.curKERNEL())
def setup(): shelltools.copytree("../qwt-%s" % get.srcVERSION(),"../qwt-%s-qt4" % get.srcVERSION()) shelltools.system("qmake qwt.pro") shelltools.cd("../qwt-%s-qt4" % get.srcVERSION()) shelltools.system("qmake-qt4 qwt.pro")
def setup(): shelltools.makedirs("build") shelltools.cd("build") shelltools.system("meson --prefix=/usr ..")
def build(): autotools.make("hunspell/de_AT.dic hunspell/de_AT.aff hunspell/de_CH.dic hunspell/de_CH.aff hunspell/de_DE.dic hunspell/de_DE.aff ") shelltools.cd("hunspell") for f in ("README_de_AT.txt", "README_de_CH.txt", "README_de_DE.txt"): pisitools.dosed(f, "\r")
def build(): autotools.make() shelltools.cd("../qwt-%s-qt4" % get.srcVERSION()) autotools.make()
def build(): for package in shelltools.ls("xf86-video-*"): shelltools.cd(package) autotools.make() shelltools.cd("../")
def build(): shelltools.cd("src/app") shelltools.system("%s %s `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam" % (get.CC(), get.CFLAGS())) shelltools.cd("../driver") autotools.make("-C /lib/modules/%s/build M=`pwd`" % get.curKERNEL())
def build(): shelltools.cd("../cmake-make") cmaketools.make()
def install(): pisitools.dobin("mksquashfs") shelltools.cd("..") pisitools.dodoc("README*", "ACKNOWLEDGEMENTS", "CHANGES", "PERFORMANCE.README")
def install(): pisitools.dodoc("Module/TESTING", "Module/iwpriv_usage.txt", "THANKS", "FAQ", "CHANGELOG", "README", "LICENSE") shelltools.cd("Module") pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")
def install(): shelltools.cd("../cmake-make/") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.domove("/usr/bin/blender", "/usr/bin", "blender-bin")
def setup(): shelltools.cd("..") shelltools.makedirs("build_python3") shelltools.copytree("./%s" % WorkDir, "build_python3") shelltools.cd(WorkDir)
def build(): shelltools.export("CFLAGS", "-DNDEBUG %s" % get.CFLAGS()) autotools.make('CFLAGS="%s -DLANG_EN"' % get.CFLAGS()) shelltools.cd("ppa_protocol") autotools.make('CFLAGS="%s"' % get.CFLAGS())
def install(): shelltools.cd("sources/shiboken2/build3") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
def build(): pythonmodules.compile() shelltools.cd("../build_python3/%s" % WorkDir) pythonmodules.compile(pyVer="3.4")
def build(): shelltools.cd("build") autotools.make()
def build(): autotools.make() autotools.make("check") shelltools.cd("doc") autotools.make("doxygen-html")
def build(): shelltools.export("SYSSRC", "/lib/modules/%s/source/" % get.curKERNEL()) shelltools.cd("usr/src/nv") autotools.make("module")
def build(): shelltools.cd("sources/shiboken2/build3") autotools.make()
def build(): shelltools.cd("darkplaces") for f in ["cl-nexuiz", "sdl-nexuiz", "sv-nexuiz"]: autotools.make("%s DP_FS_BASEDIR=/usr/share/quake1" % f)
def build(): cmaketools.make() # docs shelltools.cd("doc") shelltools.system("doxygen Doxyfile.dox")
def check(): shelltools.cd("apache") autotools.make("test")
def install(): shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("../COPYING", "../README.md")