예제 #1
0
def setup():
    shelltools.unlink("m4/glib-gettext.m4")
    shelltools.system("./autogen.sh")
    autotools.configure("--prefix=/usr \
                         --disable-static \
                         --enable-cli \
                         --disable-daemon")
예제 #2
0
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()))
예제 #3
0
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)
예제 #4
0
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))
예제 #5
0
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)
예제 #6
0
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)
예제 #7
0
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.*")
예제 #8
0
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 ")
예제 #9
0
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())
예제 #10
0
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")
예제 #11
0
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())
예제 #12
0
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())
예제 #13
0
파일: autotools.py 프로젝트: SulinOS/inary
def fixInfoDir():
    infoDir = '{}/usr/share/info/dir'.format(get.installDIR())
    if can_access_file(infoDir):
        unlink(infoDir)