def setup(): shelltools.unlink("m4/glib-gettext.m4") shelltools.system("./autogen.sh") autotools.configure("--prefix=/usr \ --disable-static \ --enable-cli \ --disable-daemon")
def install(): autotools.make("install DESTDIR={}".format(get.installDIR())) shelltools.unlink("{}/usr/share/icons/hicolor/icon-theme.cache".format( get.installDIR())) shelltools.system("install -D -m0644 org.gnome.gparted.policy \ {}/usr/share/polkit-1/actions/org.gnome.gparted.policy".format( get.installDIR()))
def setup(): # Remove source files shelltools.unlink("usbdux/*dux") shelltools.unlink("*/*.asm") # These + a lot of other firmware are shipped within alsa-firmware for fw in ("ess", "korg", "sb16", "yamaha"): shelltools.unlinkDir(fw)
def fixCompiledPy(lookInto='/usr/lib/{}/'.format(get.curPYTHON())): """ cleans *.py[co] from packages """ for root, dirs, files in os.walk('{0}/{1}'.format(get.installDIR(), lookInto)): for compiledFile in files: if compiledFile.endswith('.pyc') or compiledFile.endswith('.pyo'): if can_access_file('{0}/{1}'.format(root, compiledFile)): unlink('{0}/{1}'.format(root, compiledFile))
def removePacklist(path='usr/lib/perl5/'): """ cleans .packlist file from perl packages """ full_path = '{0}/{1}'.format(get.installDIR(), path) for root, dirs, files in os.walk(full_path): for packFile in files: if packFile == ".packlist": if can_access_file('{0}/{1}'.format(root, packFile)): unlink('{0}/{1}'.format(root, packFile)) removeEmptydirs(root)
def removePodfiles(path='usr/lib/perl5/'): """ cleans *.pod files from perl packages """ full_path = '{0}/{1}'.format(get.installDIR(), path) for root, dirs, files in os.walk(full_path): for packFile in files: if packFile.endswith(".pod"): if can_access_file('{0}/{1}'.format(root, packFile)): unlink('{0}/{1}'.format(root, packFile)) removeEmptydirs(root)
def install(): autotools.install("DESTDIR=%s %s" % (get.installDIR(), args)) shelltools.unlink("{}/sbin/rc-sstat".format(get.installDIR())) shelltools.unlink("{}/etc/init.d/functions.sh".format(get.installDIR())) inarytools.dosym("../../usr/lib/openrc/sh/functions.sh", "/etc/init.d/functions.sh") inarytools.dosym("../usr/lib/openrc/bin/rc-sstat", "/sbin/rc-sstat") inarytools.dodoc("LICENSE*", "*guide.*", "AUTHORS", "ChangeLog", "README.*")
def setup(): shelltools.unlink("py-compile" ) shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR()) autotools.configure("PYTHON=/usr/bin/python2 \ --prefix=/usr \ --enable-thread \ --enable-numpy") shelltools.touch("%s/style.css" % get.curDIR()) inarytools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR()) inarytools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
def setup(): shelltools.unlink("configure.in") inarytools.dosed("Makefile.am", "doc", "") autotools.autoreconf("-vfi") autotools.configure("--disable-gd \ --disable-static \ --with-freetype \ --with-jpeg \ --with-layers \ --with-png \ --with-sys-gd \ --with-zlib \ --with-gsfontdir=/usr/share/fonts/default/ghostscript \ --with-fontdir=/usr/share/libwmf/fonts \ --with-docdir=/usr/share/doc/%s" % get.srcNAME())
def install(): shelltools.cd("build-gtk2") autotools.install() shelltools.cd("..") shelltools.cd("build-gtk3") autotools.install() shelltools.unlink("{}/usr/include/libfm-1.0/fm-extra.h".format( get.installDIR())) shelltools.unlink("{}/usr/include/libfm-1.0/fm-version.h".format( get.installDIR())) shelltools.unlink("{}/usr/lib/libfm-extra*".format(get.installDIR())) shelltools.unlink("{}/usr/lib/pkgconfig/libfm-extra.pc".format( get.installDIR())) shelltools.unlink("{}/usr/include/libfm-1.0/fm-xml-file.h".format( get.installDIR())) shelltools.cd("..") inarytools.dodoc("AUTHORS", "COPYING", "TODO")
def setup(): options = "--disable-static \ --enable-flac \ --enable-alsa \ --enable-largefile \ " inarytools.dosed("examples/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS") inarytools.dosed("tests/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS") shelltools.unlink("M4/libtool.m4") for i in shelltools.ls("M4/lt*.m4"): shelltools.unlink(i) autotools.autoreconf("-fi -I M4") autotools.configure(options) inarytools.dosed("doc/Makefile", "^htmldocdir.*", "htmldocdir = /usr/share/doc/%s/html" % get.srcNAME())
def setup(): # FIXME: shelltools.echo() appends to the end of the file by default so clear them first shelltools.unlink('conf-cc') shelltools.unlink('conf-ld') shelltools.unlink('conf-home') shelltools.echo( 'conf-cc', "%s %s -malign-double -fPIC -DPIC" % (get.CC(), get.CFLAGS().replace( "-D_FORTIFY_SOURCE=2", "").replace("-fomit-frame-pointer", ""))) shelltools.echo('conf-ld', "%s %s" % (get.CC(), get.LDFLAGS())) shelltools.echo('conf-home', "%s/usr" % get.installDIR())
def fixInfoDir(): infoDir = '{}/usr/share/info/dir'.format(get.installDIR()) if can_access_file(infoDir): unlink(infoDir)