def setup(): shelltools.export("CC", get.CC()) shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS()) pisitools.dosed("configure", '^has_wx="yes', 'has_wx="no') shelltools.chmod("configure") autotools.configure('--enable-svg \ --enable-pic \ --disable-wx \ --disable-amr \ --use-a52=no \ --use-ffmpeg=no \ --use-ogg=system \ --use-vorbis=system \ --use-theora=system \ --use-faad=system \ --use-png=system \ --use-jpeg=system \ --use-ft=system \ --use-js=system \ --use-mad=system \ --cc="%s" \ --disable-oss-audio ' % get.CC()) shelltools.copy("config.h", "include/gpac/")
def build(): shelltools.export("MOZILLA_INCLUDES", "`pkg-config --cflags libxul libxul-embedding`") shelltools.export( "MOZILLA_LIBS", "-Wl,-R`pkg-config libxul --variable=sdkdir` `pkg-config --libs libxul libxul-embedding`" ) shelltools.export("XULRUNNER_INCLUDES", "`pkg-config --cflags libxul libxul-embedding`") shelltools.export( "XULRUNNER_LIBS", "-Wl,-R`pkg-config libxul --variable=sdkdir` `pkg-config --libs libxul libxul-embedding`" ) shelltools.export("AWT_LIB_PATH", "/opt/sun-jdk/jre/lib/i386") for target in [ "awt", "swt", "atk", "gnome", "mozilla", "xulrunner", "cairo", "glx" ]: autotools.make("-f make_linux.mak NO_STRIP=y CC=%s CXX=%s make_%s " % (get.CC(), get.CXX(), target)) shelltools.system("ant compile") shelltools.copy("version.txt", "build") shelltools.copy("src/org/eclipse/swt/internal/SWTMessages.properties", "build/org/eclipse/swt/internal") shelltools.system("ant jar")
def setup(): shelltools.copy("../unifont*.bdf", "./unifont.bdf") shelltools.export("GRUB_CONTRIB", "%s/grub-%s/grub-extras" % (get.workDIR(), get.srcVERSION())) pisitools.cflags.remove("-fstack-protector", "-fasynchronous-unwind-tables", "-fexceptions", "-fPIC") pisitools.cflags.sub("\s?(-O[\ds]|-D_FORTIFY_SOURCE=\d)\s?", " ") #shelltools.system("./linguas.sh") shelltools.system("./autogen.sh") autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix= \ --with-platform=pc \ --target='i386' \ --htmldir='/usr/share/doc/grub2/html' ") shelltools.copytree("../grub-%s" % (get.srcVERSION().replace("_", "~")), "../grub-%s-efi" % get.srcVERSION()) shelltools.cd("../grub-%s-efi" % get.srcVERSION()) shelltools.system("./autogen.sh") autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix= \ --with-platform=efi \ --target=x86_64 \ --htmldir='/usr/share/doc/grub2/html' ") shelltools.cd("..")
def build(): pythonmodules.compile() # FIXME: Is this really needed? shelltools.copy( "lib/pygame_icon.bmp", "build/lib.linux-%s-%s/pygame/" % (get.ARCH(), get.curPYTHON().replace("python", "")) )
def setup(): # Fix all linkage problems :((( shelltools.export("CC", "gcc") # Change LT_VERSION to our version pisitools.dosed("libtool.m4", "@_LT_VERSION@", get.srcVERSION()) # Fetching revision info (same as "dateinfo = srcDIR/.mkstamp < srcDIR/ChangeLog") revinfo = (coreutils.cat("ChangeLog") | coreutils.grep("\s\$Revision") | coreutils.join).split() dateinfo = " (%s %s %s)" % (revinfo[1], revinfo[4], revinfo[5]) shelltools.copy("ltmain.in", "ltmain.shT") pisitools.dosed("ltmain.shT", "@VERSION@", get.srcVERSION()) pisitools.dosed("ltmain.shT", "@PACKAGE@", get.srcNAME()) pisitools.dosed("ltmain.shT", "@TIMESTAMP@", dateinfo) shelltools.move("ltmain.shT", "ltmain.sh") # Now let's run all our autotool stuff so that files we patch # below don't get regenerated on us later # Two steps just to be *really* sure :) shelltools.copy("libtool.m4", "acinclude.m4T") shelltools.move("acinclude.m4T", "acinclude.m4") for d in [".", "libltdl"]: shelltools.cd(d) shelltools.touch("acinclude.m4") autotools.aclocal() autotools.automake("-c -a") autotools.autoconf() shelltools.cd("../") autotools.configure("--enable-static=no")
def setup(): shelltools.copy("../unifont*.pcf.gz", "./unifont.pcf.gz") shelltools.export("GRUB_CONTRIB", "%s/grub-%s/grub-extras" % (get.workDIR(), get.srcVERSION())) pisitools.flags("-fstack-protector -fasynchronous-unwind-tables -O.") shelltools.system("./autogen.sh") shelltools.makedirs("../grub-efi") shelltools.system("cp -ar ./* %s/grub-efi/" % get.workDIR()) autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix='' \ --htmldir='/usr/share/doc/${PF}/html' \ --enable-mm-debug \ --enable-nls \ --enable-device-mapper \ --enable-cache-stats \ --enable-grub-mkfont \ --enable-grub-mount \ --%sable-efiemu" % "en" if get.ARCH() == "x86_64" else "dis") shelltools.cd("../grub-efi") autotools.configure("--with-platform='efi' \ --target='i386' \ --disable-efiemu \ --disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix='' \ --enable-mm-debug \ --enable-nls \ --enable-device-mapper \ --enable-cache-stats \ --enable-grub-mkfont \ --enable-grub-mount \ --htmldir='/usr/share/doc/${PF}/html' ")
def install(): pisitools.dobin("wbar", "/usr/bin") pisitools.dodir("/usr/share/wbar") shelltools.copytree("iconpack", "%s/usr/share/wbar" % get.installDIR()) pisitools.dosym("/usr/share/wbar/iconpack/comic.ttf", "/usr/share/wbar/iconpack/wbar.osx/font.ttf") shelltools.copy("dot.wbar", "%s/usr/share/wbar" % get.installDIR())
def build(): autotools.make() #autotools.make("-C hda-emu") # Build v4l drivers shelltools.copy("Module.symvers", "v4l/") autotools.make("-C /lib/modules/%s/build M=%s/v4l V=1 modules" % (KDIR, get.curDIR()))
def install(): xbmcDir = "/usr/share/xbmc" pisitools.dodir(xbmcDir) for fl in ["xbmc.bin", "xbmc-xrandr"]: shelltools.copy(fl, "%s/usr/share/xbmc/" % get.installDIR()) pisitools.dodir("/usr/bin") shelltools.copy("tools/Linux/xbmc.sh", "%s/usr/bin/xbmc" % get.installDIR()) shelltools.chmod("%s/usr/bin/xbmc" % get.installDIR()) #copy data files for dir in ["language", "media", "screensavers", "scripts", "skin", "sounds", "userdata", "visualisations", "system"]: shelltools.copytree(dir, "%s/usr/share/xbmc" % get.installDIR()) #install web server pisitools.dodir("/usr/share/xbmc/web") shelltools.system("/usr/bin/unzip -oq web/Project_Mayhem_III_webserver_v1.0.zip -d %s/usr/share/xbmc/web" % get.installDIR()) #remove .so and .dlls shelltools.unlinkDir("%s/usr/share/xbmc/system/players" % get.installDIR()) shelltools.unlinkDir("%s/usr/share/xbmc/system/cdrip" % get.installDIR()) for root, dirs, files in os.walk(get.installDIR()): for name in files: lname = name.lower() if lname.endswith(".so") or lname.endswith(".dll") or lname.endswith(".a"): shelltools.unlink(os.path.join(root, name)) pisitools.dodoc("*.txt", "README.linux", "LICENSE.GPL")
def install(): pisitools.dodir(datadir) shelltools.copytree("data", "%s/%s/" % (get.installDIR(), datadir)) shelltools.copy("*.py", "%s/%s/" % (get.installDIR(), datadir)) pisitools.dodoc("*.txt")
def install(): for f in ("*.cfg", "*.xml"): pisitools.insinto(datadir, f) for f in data: fixperms(f) shelltools.copy(f, "%s/%s" % (get.installDIR(), datadir))
def setup(): shelltools.export("PTHREAD_LIBS", "-lpthread") shelltools.copy("../googletest-release-1.7.0", "gtest") autotools.autoreconf("-vif") autotools.configure("--disable-static") pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def install(): # Install unicode.pf2 using downloaded font source. shelltools.system("./grub-mkfont -o unicode.pf2 unifont.pcf.gz") # Create directory for grub.cfg file pisitools.dodir("/boot/grub2") pisitools.insinto("/boot/grub2", "unicode.pf2") # Insall our theme pisitools.insinto("/usr/share/grub/themes/","themes/pisilinux") #remove -r 0x0-0x7F entries to fix ugly fonts or find a suitable range parameter -r *** shelltools.system("./grub-mkfont -o DejaVuSans-10.pf2 -r 0x0-0x7F -s 10 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-12.pf2 -r 0x0-0x7F -s 12 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-16.pf2 -r 0x0-0x7F -s 16 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-Bold-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-Mono-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSansMono.ttf") shelltools.copy("ascii.pf2","%s/usr/share/grub/themes/pisilinux" % get.installDIR()) # Do not install auto generated dejavu* fonts fonts=["DejaVuSans-10.pf2" , "DejaVuSans-12.pf2" , "DejaVuSans-14.pf2" , "DejaVuSans-16.pf2" , "DejaVuSans-Mono-14.pf2", "DejaVuSans-Bold-14.pf2"] for font in fonts: shelltools.copy(font,"%s/usr/share/grub/themes/pisilinux" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) #Remove default starfiled theme. pisitools.removeDir("/usr/share/grub/themes/starfield") pisitools.dodoc("ABOUT-NLS", "AUTHORS", "BUGS", "ChangeLog", "COPYING", "TODO", "README")
def setup(): shelltools.copy("/usr/share/automake/install-sh", ".") shelltools.export("WANT_AUTOCONF", "2.5") autotools.autoconf() shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS()) autotools.rawConfigure("./configure --libdir=/lib \ --enable-static-libpam \ --enable-fakeroot=%s \ --enable-isadir=/lib/security \ --host=%s" % (get.installDIR(), get.HOST())) # Python stuff in docs gives sandbox problems pisitools.dosed("Makefile", "modules doc examples", "modules") # Do not build pam_userdb.so ... pisitools.dosed("Make.Rules", "^HAVE_NDBM_H=yes", "HAVE_NDBM_H=no") pisitools.dosed("Make.Rules", "^HAVE_LIBNDBM=yes", "HAVE_LIBNDBM=no") pisitools.dosed("Make.Rules", "^HAVE_LIBDB=yes", "HAVE_LIBDB=no") # Also edit the configuration file else the wrong include files get used pisitools.dosed("_pam_aconf.h", "^#define HAVE_NDBM_H.*$", "/* #undef HAVE_NDBM_H */") pisitools.dosed("_pam_aconf.h", "^#define HAVE_DB_H.*$", "/* #undef HAVE_DB_H */")
def setup(): shelltools.copy( "LightScribe%20Host%20Software%201.8.15.1%20Linux.rpm", "%s/LightScribe-Host-Software-1.8.15.1-Linux.rpm" % get.workDIR(), ) shelltools.system("rpm2targz -v %s/LightScribe-Host-Software-1.8.15.1-Linux.rpm" % get.workDIR()) shelltools.system("tar xfvz %s/LightScribe-Host-Software-1.8.15.1-Linux.tar.gz" % get.workDIR())
def install(): autotools.install() pisitools.dodir("/etc/pam.d") shelltools.copy("sample.pam","%s/etc/pam.d/sudo" % get.installDIR()) pisitools.dodoc("BUGS", "CHANGES", "HISTORY", "PORTING", "README", "RUNSON", "TODO", "TROUBLESHOOTING", "UPGRADE")
def setup(): shelltools.copy("minigzip.c", minizip_dir) shelltools.cd(minizip_dir) shelltools.makedirs("m4") autotools.autoreconf("-vif") autotools.configure()
def setup(): shelltools.copy("../unifont*.bdf", "./unifont.bdf") shelltools.export("GRUB_CONTRIB", "%s/grub-%s/grub-extras" % (get.workDIR(), get.srcVERSION())) pisitools.cflags.remove("-fstack-protector", "-fasynchronous-unwind-tables", "-fexceptions", "-fPIC") pisitools.cflags.sub("\s?(-O[\ds]|-D_FORTIFY_SOURCE=\d)\s?", " ") #shelltools.system("./linguas.sh") shelltools.system("./autogen.sh") autotools.configure(' \ --with-grubdir="grub2" \ --program-transform-name="s,grub,grub2,"\ --with-platform="pc" \ --target="x86_64" \ --host="x86_64-unknown-linux-gnu" \ --enable-efiemu \ --enable-mm-debug \ --enable-nls \ --enable-device-mapper \ --enable-cache-stats \ --enable-boot-time \ --enable-grub-mkfont \ --enable-grub-mount \ --program-prefix="" \ --prefix="/usr" \ --bindir="/usr/bin" \ --sbindir="/usr/sbin" \ --mandir="/usr/share/man" \ --infodir="/usr/share/info" \ --datarootdir="/usr/share" \ --sysconfdir="/etc" \ --with-bootdir="/boot" \ --disable-werror \ --disable-docs \ --htmldir="/usr/share/doc/grub2/html" ')
def setup(): shelltools.copy("../unifont*.bdf", "./unifont.bdf") #shelltools.export("GRUB_CONTRIB", "%s/grub-2.06/grub-extras" % (get.workDIR())) pisitools.cflags.remove("-fstack-protector", "-fasynchronous-unwind-tables", "-fexceptions", "-fPIC") pisitools.cflags.sub("\s?(-O[\ds]|-D_FORTIFY_SOURCE=\d)\s?", " ") pisitools.dosed('util/grub-mkconfig.in', 'GRUB_DISABLE_OS_PROBER="true"', 'GRUB_DISABLE_OS_PROBER="false"') #shelltools.system("./linguas.sh") shelltools.system("./bootstrap") autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix= \ --with-platform=pc \ --target='i386' \ --htmldir='/usr/share/doc/grub2/html' ") shelltools.copytree("../grub-%s" % (get.srcVERSION().replace("_", "~")), "../grub-%s-efi" % get.srcVERSION()) shelltools.cd("../grub-%s-efi" % get.srcVERSION()) shelltools.system("./bootstrap") autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix= \ --with-platform=efi \ --target=x86_64 \ --htmldir='/usr/share/doc/grub2/html' ") shelltools.cd("..")
def install(): # Install unicode.pf2 using downloaded font source. shelltools.system("./grub-mkfont -o unicode.pf2 unifont.bdf") # Create directory for grub.cfg file pisitools.dodir("/boot/grub2") pisitools.insinto("/boot/grub2", "unicode.pf2") # Insall our theme pisitools.insinto("/usr/share/grub/themes/","themes/pisilinux") #remove -r 0x0-0x7F entries to fix ugly fonts or find a suitable range parameter -r *** shelltools.system("./grub-mkfont -o DejaVuSans-10.pf2 -r 0x0-0x7F -s 10 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-12.pf2 -r 0x0-0x7F -s 12 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-16.pf2 -r 0x0-0x7F -s 16 /usr/share/fonts/dejavu/DejaVuSans.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-Bold-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf") shelltools.system("./grub-mkfont -o DejaVuSans-Mono-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSansMono.ttf") shelltools.copy("ascii.pf2","%s/usr/share/grub/themes/pisilinux" % get.installDIR()) # Do not install auto generated dejavu* fonts fonts=["DejaVuSans-10.pf2" , "DejaVuSans-12.pf2" , "DejaVuSans-14.pf2" , "DejaVuSans-16.pf2" , "DejaVuSans-Mono-14.pf2", "DejaVuSans-Bold-14.pf2"] for font in fonts: shelltools.copy(font,"%s/usr/share/grub/themes/pisilinux" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) #Remove default starfiled theme. pisitools.removeDir("/usr/share/grub/themes/starfield") pisitools.dodoc("ABOUT-NLS", "AUTHORS", "BUGS", "COPYING", "TODO", "README")
def install(): autotools.rawInstall("dstdir=%s/usr/share slnkdir=%s/usr/bin" % (get.installDIR(), get.installDIR())) pisitools.dodir("/usr/share/pixmaps") shelltools.copy("icons/64x64/aMSN_64.png", "%s/usr/share/pixmaps/amsn.png" % get.installDIR()) pisitools.dodoc("/usr/share/amsn/docs/*") pisitools.removeDir("/usr/share/amsn/docs") pisitools.removeDir("/usr/share/amsn/plugins/winflash") pisitools.removeDir("/usr/share/amsn/plugins/QuickTimeTcl3.1") pisitools.removeDir("/usr/share/amsn/plugins/applescript") pisitools.removeDir("/usr/share/amsn/plugins/tclCarbonNotification") pisitools.removeDir("/usr/share/amsn/plugins/tclAE2.0") pisitools.removeDir("/usr/share/amsn/utils/macosx") pisitools.removeDir("/usr/share/icons") # Default browser firefox pisitools.dosed("%s/usr/share/amsn/config.tcl" % get.installDIR(), "mozilla", "firefox") # Default file browser konqueror pisitools.dosed("%s/usr/share/amsn/config.tcl" % get.installDIR(), "my_filemanager open", "konqueror")
def setup(): shelltools.export("WANT_AUTOCONF", "2.5") shelltools.export("WANT_AUTOMAKE", "1.9") pisitools.dosed("libtool.m4", "@_LT_VERSION@", get.srcVERSION()) # Fetching revision info (same as "dateinfo = srcDIR/.mkstamp < srcDIR/ChangeLog") revinfo = (coreutils.cat("ChangeLog") | coreutils.grep("\s\$Revision") | coreutils.join).split() dateinfo = " (%s %s %s)" % (revinfo[1], revinfo[4], revinfo[5]) shelltools.copy("ltmain.in", "ltmain.shT") pisitools.dosed("ltmain.shT", "@VERSION@", get.srcVERSION()) pisitools.dosed("ltmain.shT", "@PACKAGE@", get.srcNAME()) pisitools.dosed("ltmain.shT", "@TIMESTAMP@", dateinfo) shelltools.move("ltmain.shT", "ltmain.sh") #Two steps just to be *really* sure :) shelltools.copy("libtool.m4", "acinclude.m4T") shelltools.move("acinclude.m4T", "acinclude.m4") shelltools.touch("libltdl/acinclude.m4") for d in [".", "libltdl"]: shelltools.cd(d) shelltools.touch("acinclude.m4") autotools.aclocal() autotools.automake("-c -a") autotools.autoconf() shelltools.cd("..") autotools.configure()
def setup(): # disable fdt until dtc is in repo # pisitools.dosed("configure", 'fdt="yes"', 'fdt="no"') shelltools.export("CFLAGS", cflags) shelltools.export("LDFLAGS", extraldflags) # different build dir setups are not supported yet, so we build kvm by hand for now printfancy("configuring kvm") autotools.rawConfigure('%s \ --target-list="%s" \ ' % (cfgParamsCommon, targetListKvm)) printfancy("building kvm") autotools.make("V=1 -j1 config-host.h %s" % buildldflags) autotools.make("V=1 %s" % buildldflags) shelltools.copy("x86_64-softmmu/qemu-system-x86_64", "qemu-kvm") autotools.make("clean") printfancy("configuring kvmtest") shelltools.cd(builddirkvmtest) autotools.rawConfigure("--prefix=/usr \ --kerneldir=../../kernel") shelltools.cd("../..") printfancy("configuring qemu") autotools.rawConfigure('%s \ --target-list="%s" \ --disable-kvm \ ' % (cfgParamsCommon, targetList))
def setup(): # Update the admin dir used in KDE template projects. for i in shelltools.ls("admin/*"): shelltools.copy(i, "parts/appwizard/common/admin/") # Fix automake and python detection pisitools.dosed("admin/cvs.sh", "automake\*1\.10\*", "automake*1.1[0-5]*") pisitools.dosed( "admin/acinclude.m4.in", "KDE_CHECK_PYTHON_INTERN\(\"2.5", "KDE_CHECK_PYTHON_INTERN(\"%s" % get.curPYTHON().split("python")[1]) kde.make("-f admin/Makefile.common") kde.configure( "--with-kdelibsdoxy-dir=%s/share/doc/HTML/en/kdelibs-apidocs \ --enable-java \ --enable-python \ --enable-ruby \ --enable-ada \ --enable-fortran \ --enable-haskell \ --enable-pascal \ --enable-perl \ --enable-php \ --enable-sql \ --enable-antproject \ --enable-subversion" % get.kdeDIR())
def build(): modules = ("vboxadd", "vboxvfs", "vboxvideo") # modules = ("vboxadd", "vboxvfs") for module in modules: if module != "vboxadd": shelltools.copy("vboxadd/Module.symvers", module) autotools.make("-C %s KERN_DIR=/lib/modules/%s/build" % (module, KDIR))
def install(): pisitools.dodir("/usr/share") wanteddirs = [] for file_ in shelltools.ls(get.workDIR()): if shelltools.isDirectory(file_) and not "texmf" in file_: wanteddirs.append(file_) for folder in wanteddirs: pisitools.insinto("/usr/share/texmf-dist", folder) if shelltools.can_access_directory("texmf-dist"): # Recursively copy on directory on top of another, overwrite duplicate files too copy_tree("texmf-dist", "%s/usr/share/texmf-dist" % get.installDIR()) ## chmod of script files script_dir = get.installDIR() + "/usr/share/texmf-dist/scripts" if shelltools.can_access_directory(script_dir): for root, dirs, files in os.walk(script_dir): for name in files: shelltools.chmod(os.path.join(root, name), 0755) # copy config file to texmf-config pisitools.dodir("/etc/texmf/tex/context/config") shelltools.copy("%s/usr/share/texmf-dist/tex/context/config/cont-usr.tex" % get.installDIR(), \ "%s/etc/texmf/tex/context/config/cont-usr.tex" % get.installDIR()) # old packages, we will not provide them pisitools.remove("/usr/share/texmf-dist/tex/plain/config/omega.ini") pisitools.remove("/usr/share/texmf-dist/tex/plain/config/aleph.ini") pisitools.removeDir("/usr/share/texmf-dist/scripts/context/stubs/mswin/")
def install(): shelltools.makedirs("%s/usr/lib/python2.6/site-packages/curl" % get.installDIR()) shelltools.copy("python/curl/*py", "%s/usr/lib/python2.6/site-packages/curl/" % get.installDIR() ) pisitools.insinto("/usr/lib/python2.6/site-packages/curl/", "build/pycurl.so") pisitools.dodoc("ChangeLog", "COPYING*", "README", "TODO")
def setup(): # disable fdt until dtc is in repo # pisitools.dosed("configure", 'fdt="yes"', 'fdt="no"') shelltools.export("CFLAGS", cflags) shelltools.export("LDFLAGS", extraldflags) # different build dir setups are not supported yet, so we build kvm by hand for now printfancy("configuring kvm") autotools.rawConfigure('%s \ --target-list="%s" \ ' % (cfgParamsCommon, targetListKvm)) printfancy("building kvm") autotools.make("V=1 -j1 config-host.h %s" % buildldflags) autotools.make("V=1 %s" % buildldflags) shelltools.copy("x86_64-softmmu/qemu-system-x86_64", "qemu-kvm") autotools.make("clean") # kvmtest stuff is not in upstream tarball anymore, but they may put it back, be ready #printfancy("configuring kvmtest") #shelltools.cd(builddirkvmtest) #autotools.rawConfigure("--prefix=/usr \ # --kerneldir=../../kernel") #shelltools.cd("../..") printfancy("configuring qemu") autotools.rawConfigure('%s \ --target-list="%s" \ --disable-kvm \ ' % (cfgParamsCommon, targetList))
def setup(): shelltools.unlink("config.guess") shelltools.unlink("config.sub") shelltools.unlink("ltmain.sh") shelltools.unlink("ltconfig") shelltools.copy("/usr/share/aclocal/libtool.m4", "aclocal.m4") shelltools.system("cat /usr/share/aclocal/ltoptions.m4 \ /usr/share/aclocal/ltversion.m4 \ /usr/share/aclocal/ltsugar.m4 \ /usr/share/aclocal/lt~obsolete.m4 \ >>./aclocal.m4") libtools.libtoolize("--install") libtools.libtoolize() autotools.autoconf() options = "--enable-shared \ --disable-static" if get.buildTYPE() == "emul32": # options += " --prefix=/emul32 --libdir=/usr/lib32" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CC()) shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def install(): # TODO: some files belong more than one package # Do not use existing system KDM while creating the new one shelltools.export("GENKDMCONF_FLAGS", "--no-old") kde4.install() shelltools.system("chmod 644 ../*.colors") shelltools.copy("../*.colors", "%s/usr/share/kde4/apps/color-schemes" % get.installDIR()) pisitools.dodir("/var/lib/kdm") shelltools.cd("build") # Copy desktop files into xsessions directory pisitools.insinto("/usr/share/xsessions", "kdm/kfrontend/sessions/kde*.desktop") # Put kdmrc into /etc/X11/kdm, so it can be modified on live CDs pisitools.domove("/usr/share/kde4/config/kdm/kdmrc", "/etc/X11/kdm/", "kdmrc") pisitools.dosym("/etc/X11/kdm/kdmrc", "/usr/share/kde4/config/kdm/kdmrc") # Use common Xsession script pisitools.remove("/usr/share/kde4/config/kdm/Xsession") pisitools.dosym("/usr/lib/X11/xinit/Xsession", "/usr/share/kde4/config/kdm/Xsession")
def build(): modules = ("vboxadd", "vboxvfs") for module in modules: if module != "vboxadd": shelltools.copy("vboxadd/Module.symvers", module) autotools.make("-C %s KERN_DIR=/lib/modules/%s/build" % (module, get.curKERNEL()))
def install(): shelltools.system("make DESTDIR=%s install" % get.installDIR()) # Collect private headers, 3rd party apps like Tile depends on this shelltools.cd("..") pisitools.dodir("/usr/include/tk-private/generic") pisitools.dodir("/usr/include/tk-private/unix") shelltools.copy("unix/*.h", "%s/usr/include/tk-private/unix" % get.installDIR()) shelltools.copy("generic/*.h", "%s/usr/include/tk-private/generic" % get.installDIR()) # Remove duplicated headers pisitools.remove("/usr/include/tk-private/generic/tk.h") pisitools.remove("/usr/include/tk-private/generic/tkDecls.h") pisitools.remove("/usr/include/tk-private/generic/tkPlatDecls.h") # Remove tmp path from tclConfig.sh pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), "%s/unix" % get.curDIR(), "/usr/lib/") pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), "%s" % get.curDIR(), "/usr/include/tk-private") pisitools.dosym("/usr/bin/wish8.5", "/usr/bin/wish") pisitools.dodoc("ChangeLog", "changes", "license.terms", "README")
def setup(): shelltools.export("PTHREAD_LIBS", "-lpthread") shelltools.copy("../googletest-release-1.8.0", "gtest") autotools.autoreconf("-vif") autotools.configure("--disable-static") pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build(): autotools.make() # Build v4l drivers shelltools.copy("Module.symvers", "v4l/") autotools.make("-C /lib/modules/%s/build M=%s/v4l V=1 modules" % (KDIR, get.curDIR()))
def build(): pythonmodules.compile() # FIXME: Is this really needed? shelltools.copy( "lib/pygame_icon.bmp", "build/lib.linux-%s-%s/pygame/" % (get.ARCH(), get.curPYTHON().replace("python", "")))
def setup(): shelltools.system("sed -i 's/ memfd_create/ qemu_memfd_create/' util/memfd.c") # disable fdt until dtc is in repo # pisitools.dosed("configure", 'fdt="yes"', 'fdt="no"') shelltools.export("CFLAGS", cflags) shelltools.export("LDFLAGS", extraldflags) # different build dir setups are not supported yet, so we build kvm by hand for now printfancy("configuring kvm") autotools.rawConfigure('%s \ --target-list="%s" \ ' % (cfgParamsCommon, targetListKvm)) printfancy("building kvm") autotools.make("V=1 -j1 config-host.h %s" % buildldflags) autotools.make("V=1 %s" % buildldflags) shelltools.copy("x86_64-softmmu/qemu-system-x86_64", "qemu-kvm") autotools.make("clean") # kvmtest stuff is not in upstream tarball anymore, but they may put it back, be ready #printfancy("configuring kvmtest") #shelltools.cd(builddirkvmtest) #autotools.rawConfigure("--prefix=/usr \ # --kerneldir=../../kernel") #shelltools.cd("../..") printfancy("configuring qemu") autotools.rawConfigure('%s \ --target-list="%s" \ --disable-kvm \ ' % (cfgParamsCommon, targetList))
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.makedirs("%s/etc/profile.d" % get.installDIR()) shelltools.copy("GNUstep.sh", "%s/etc/profile.d/GNUstep.sh" % get.installDIR()) pisitools.dodoc("FAQ", "README", "RELEASENOTES")
def install(): pisitools.dodir("/usr/bin") pisitools.dodir("/usr/lib/nss") pisitools.dodir("/usr/include/nss") for binary in ["certutil", "modutil", "pk12util", "signtool", "ssltap"]: shelltools.copy("dist/Linux*/bin/%s" % binary, "%s/usr/bin" % get.installDIR(), sym=False) # Shared libs for library in [ "libnss3.so", "libnssckbi.so", "libsmime3.so", "libsoftokn3.so", "libsoftokn3.chk", "libssl3.so", "libfreebl3.so", "libfreebl3.chk" ]: shelltools.copy("dist/Linux*/lib/%s" % library, "%s/usr/lib/nss" % get.installDIR(), sym=False) # Static libs for library in ["libcrmf.a", "libnssb.a", "libnssckfw.a"]: shelltools.copy("dist/Linux*/lib/%s" % library, "%s/usr/lib/nss" % get.installDIR(), sym=False) shelltools.copy("dist/private/nss/*.h", "%s/usr/include/nss" % get.installDIR(), sym=False) shelltools.copy("dist/public/nss/*.h", "%s/usr/include/nss" % get.installDIR(), sym=False)
def setup(): # Google API key shelltools.echo("google_api_key", "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y") pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR()) pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key") pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS()) # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system( "wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) #shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale) shelltools.makedirs("langpack-ff") #shelltools.system("unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) shelltools.system( "cp %s/%s.xpi langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) print "Replacing browser.properties for %s locale" % locale #shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) shelltools.copy("browserconfig.properties", "browser/branding/official/locales/") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) shelltools.system( "../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip" )
def install(): pisitools.dodir(datadir) for f in data: fixperms(f) shelltools.copy(f, "%s/%s" % (get.installDIR(), datadir)) pisitools.remove("%s/data1/game.so" % datadir)
def setup(): shelltools.copy("py-compile", "common/py-compile-destdir") os.environ["GST_REGISTRY"] = get.workDIR() + "/registry.cache.xml" autotools.autoreconf("-vfi") autotools.configure("--disable-gconftool \ --disable-schemas-install") pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def install(): autotools.rawInstall("install_prefix=%s" % get.installDIR()) pisitools.dodir(confdir) for i in ["dnsspoof.hosts", "dsniff.magic", "dsniff.services"]: shelltools.copy("%s/usr/share/dsniff/%s" % (get.installDIR(), i), "%s/%s" % (get.installDIR(), confdir)) pisitools.dodoc("CHANGES", "README*", "TODO")
def install(): autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()}) pisitools.dodir("/usr/qt/4/doc/PyQt4") shelltools.copy("doc/html/*","%s/usr/qt/4/doc/PyQt4" % get.installDIR()) pisitools.dosym("/usr/qt/4/doc/PyQt4/classes.html","/usr/qt/4/doc/PyQt4/index.html") pisitools.dodoc("ChangeLog", "LICENSE", "NEWS", "README", "THANKS")
def setup(): shelltools.copy("/usr/share/gtk-doc/data/gtk-doc.make", "%s/V_0_4_1" % get.workDIR()) autotools.autoreconf("-vfi") #workaround for: "error: po/Makefile.in.in was not created by intltoolize." error at the end of configure shelltools.system("intltoolize --force --copy --automake") autotools.configure("--prefix=/usr --enable-gtk-doc --disable-gtk-doc-html --enable-pam --disable-static")
def setup(): shelltools.copy("INSTALL/make.inc.gfortran", "make.inc") if get.ARCH() == "x86_64": pisitools.dosed("make.inc", "-O2", "%s -fPIC -m64 -funroll-all-loops" % get.CFLAGS()) pisitools.dosed("make.inc", "NOOPT =", "NOOPT =-m64 -fPIC ") else: pisitools.dosed("make.inc", "-O2", "%s -fPIC -funroll-all-loops" % get.CFLAGS())
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) autotools.rawInstall("-C Documentation DESTDIR=%s GNUSTEP_MAKEFILES=%s/usr/share/GNUstep/Makefiles" % (get.installDIR(), get.installDIR())) shelltools.makedirs("%s/etc/profile.d" % get.installDIR()) shelltools.copy("GNUstep.sh", "%s/etc/profile.d/GNUstep.sh" % get.installDIR()) pisitools.dodoc("FAQ", "README", "RELEASENOTES")