예제 #1
0
def install():
    kerneltools.install()

    # add objtool for external module building and enabled VALIDATION_STACK option
    inarytools.insinto(
        "/usr/src/linux-headers-%s-sulinos/tools/objtool" % get.srcVERSION(),
        "%s/tools/objtool/objtool" % get.curDIR())

    # Install kernel headers needed for out-of-tree module compilation
    kerneltools.installHeaders()

    kerneltools.installLibcHeaders()

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s" %
                      (get.installDIR(), kerneltools.__getSuffix()))

    #mkinitcpio default config
    inarytools.dodir("/etc/mkinitcpio.d")
    shelltools.touch("linux.preset")

    shelltools.echo(
        "linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
        'ALL_config="/etc/mkinitcpio.conf"\n' +
        'ALL_kver="/boot/kernel-%s"\n\n' % get.srcVERSION() +
        "PRESETS=('default' 'fallback') \n\n" +
        '#default_config="/etc/mkinitcpio.conf"\n' +
        'default_image="/boot/initramfs-%s.img"\n' % get.srcVERSION() +
        '#default_options=""\n\n' +
        '#fallback_config="/etc/mkinitcpio.conf"\n' +
        'fallback_image="/boot/initramfs-%s-fallback.img"\n' %
        get.srcVERSION() + 'fallback_options="-S autodetect"\n')

    inarytools.insinto("/etc/mkinitcpio.d", "linux.preset")
예제 #2
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.remove("/usr/bin/perl")
    # Conflicts with perl-Module-Build
    # inarytools.remove("/usr/bin/config_data")

    inarytools.dosym("/usr/bin/perl%s" % get.srcVERSION(), "/usr/bin/perl")

    # Perl5 library
    # NEEDS MODIFICATION FOR NEW VERSION
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so")
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5")
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5.26")
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5.26.1")

    # Docs
    inarytools.dodir("/usr/share/doc/%s/html" % get.srcNAME())
    shelltools.system('LD_LIBRARY_PATH=%s ./perl installhtml \
                       --podroot="." \
                       --podpath="lib:ext:pod:vms" \
                       --recurse \
                       --htmldir="%s/usr/share/doc/%s/html"' % (get.curDIR(), get.installDIR(), get.srcNAME()))

    perlmodules.removePodfiles()
    perlmodules.removePacklist()
    inarytools.dodoc("Changes*", "Artistic", "Copying", "README", "AUTHORS")
예제 #3
0
파일: actions.py 프로젝트: SulinOS/SulinKDE
def install():
    inarytools.insinto(
        "/usr/share/kservices5/ServiceMenus",
        "Root_Actions_%s/dolphin-KDE4/*.desktop" % get.srcVERSION())
    inarytools.dobin("Root_Actions_%s/rootactions-servicemenu.pl" %
                     get.srcVERSION())

    inarytools.dodoc("README")
예제 #4
0
def install():
    autotools.rawInstall("DESTDIR=%s" % (get.installDIR()))

    inarytools.dosed("%s/usr/include/cdio/version.h" % get.installDIR(),
                     '%s[^"]+' % get.srcVERSION(), get.srcVERSION())
    inarytools.dosed("%s/usr/include/cdio/cdio_config.h" % get.installDIR(),
                     "#define\s(CDIO_LIBCDIO_SOURCE_PATH).*", r"#undef \1")

    inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "THANKS")
예제 #5
0
def build():
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s/components/engine" % get.srcVERSION())
    shelltools.system("hack/make.sh dynbinary-daemon")

    # build cli
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s/components/cli" % get.srcVERSION())
    shelltools.system("LDFLAGS='' GOPATH=%s/docker-ce-%s/components/cli ./scripts/build/dynbinary" % (get.workDIR(), get.srcVERSION()))
예제 #6
0
def build():
    autotools.make()

    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.make()

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.make()

    shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    autotools.make()
예제 #7
0
def install():
    inarytools.insinto(
        "/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "*.dcl")
    inarytools.insinto(
        "/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "*.dtd")
    inarytools.insinto(
        "/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "*.mod")
    inarytools.insinto(
        "/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(),
        "docbook.cat", "catalog")

    inarytools.dodoc("README")
예제 #8
0
def setup():
    # Fixup version
    shelltools.echo(".version", get.srcVERSION().split("_")[0])

    # Disable emacs scripts
    shelltools.export("EMACS", "no")
    shelltools.move("autoconf.texi", "autoconf213.texi")
    autotools.configure("--infodir=/usr/share/info --program-suffix=-2.13")
예제 #9
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Remove versioned binaries
    inarytools.remove("/usr/bin/*-%s" % get.srcVERSION())

    inarytools.dosym("gawk.1", "/usr/share/man/man1/awk.1")
    inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
예제 #10
0
def setup():
    # Fixup version
    shelltools.echo(".version", get.srcVERSION().split("_")[0])

    # Disable emacs scripts
    shelltools.export("EMACS", "no")

    autotools.configure()
예제 #11
0
def build():
    #make-dist for creating all updated translation files
    #autotools.make("dist")
    autotools.make()

    shelltools.cd("../grub-%s-efi" % get.srcVERSION())
    autotools.make()
    shelltools.cd("..")
예제 #12
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s" % get.srcVERSION())

    inarytools.dohtml("doc/html/*")
    inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README",
                     "TODO", "CONVENTIONS")
예제 #13
0
def install():
    # Install unicode.pf2 using downloaded font source.
    shelltools.system("./grub-mkfont -o unicode.pf2 unifont.bdf")

    # Create directory for grub.cfg file
    inarytools.dodir("/boot/grub2")

    inarytools.insinto("/boot/grub2", "unicode.pf2")

    # Insall our theme
    inarytools.insinto("/usr/share/grub/themes/",
                       "themes/grub2-theme-breeze-5.13.1")

    #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/grub2-theme-breeze-5.13.1" %
        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/grub2-theme-breeze-5.13.1" %
            get.installDIR())

    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dodoc("ABOUT-NLS", "AUTHORS", "BUGS", "ChangeLog", "COPYING",
                     "TODO", "README")

    shelltools.cd("../grub-%s-efi" % get.srcVERSION())

    autotools.rawInstall("DESTDIR=%s/efi" % get.installDIR())

    shelltools.copytree("/%s/efi/usr/lib/grub/x86_64-efi" % get.installDIR(),
                        "%s/usr/lib/grub/x86_64-efi" % get.installDIR())
    inarytools.removeDir("/efi")
예제 #14
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.remove("%s/*.a" % LIBDIR)

    if get.buildTYPE():
        return

    # Copy zlib to /lib
    inarytools.domove("/usr/lib/libz*", "/lib")

    # Create symlinks in /usr/lib
    inarytools.dosym("/lib/libz.so.%s" % get.srcVERSION(), "/usr/lib/libz.so.%s" % get.srcVERSION())
    inarytools.dosym("libz.so.%s" % get.srcVERSION(), "/usr/lib/libz.so.1")
    inarytools.dosym("libz.so.1", "/usr/lib/libz.so")

    inarytools.doman("zlib.3")
    inarytools.dodoc("FAQ", "README", "ChangeLog", "doc/*", "examples/*")
예제 #15
0
def gem_install(parameters=''):
    """Make installation from GemFile"""
    if system(
            'gem install --backtrace {0} -i "{1}{2}"  -n "{1}/usr/bin" {3}.gem'
            .format(parameters, get.installDIR(), get_gemdir(),
                    generate_gemname() + "-" + get.srcVERSION())):
        raise InstallError(_('Install failed.'))

    auto_dodoc()
예제 #16
0
def setup():
    inarytools.dosed(
        "src/Makefile", "^CFLAGS.*$",
        "CFLAGS=%s -fPIC -DLUA_USE_LINUX -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" %
        get.CFLAGS())
    inarytools.dosed("src/Makefile", "^MYLDFLAGS.*$",
                     "MYLDFLAGS=%s" % get.LDFLAGS())
    inarytools.dosed("lua.pc", "%VER%", "%s" % major)
    inarytools.dosed("lua.pc", "%REL%", "%s" % get.srcVERSION())
예제 #17
0
def install():
    shelltools.cd("../linux-5.12.6")
    kerneltools.install(distro="libre-sulinos")
    kerneltools.installModuleHeaders(distro="libre-sulinos")
    # add objtool for external module building and enabled VALIDATION_STACK option
    inarytools.insinto("/usr/src/linux-headers-%s-libre-sulinos/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR())

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s-libre-sulinos" % (get.installDIR(), kerneltools.__getSuffix()))
예제 #18
0
def install():
    shelltools.cd(NCURSESW)
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    LIB = "/usr/lib32" if get.buildTYPE() == "_emul32" else "/usr/lib"
    print(LIB)
    for lib in ["ncurses", "form", "panel", "menu"]:
        shelltools.echo("lib%s.so" % lib, "INPUT(-l%sw)" % lib)
        inarytools.dolib("lib%s.so" % lib, destinationDirectory=LIB)
        #inarytools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib))
    inarytools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB)

    shelltools.copy("%s/usr/share/pkgconfig/" % get.installDIR(),
                    "%s/%s" % (get.installDIR(), LIB))
    for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]:
        inarytools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib))

    shelltools.echo("libcursesw.so", "INPUT(-lncursesw)")
    #inarytools.dolib("libcursesw.so", destinationDirectory = LIB)
    #inarytools.dosym("libncurses.so", "%s/libcurses.so" % LIB)
    #inarytools.dosym("libncursesw.a", "%s/libcursesw.a" % LIB)
    #inarytools.dosym("libncurses.a", "%s/libcurses.a" % LIB)

    #for fix
    inarytools.dosym("libncursesw.so.6.2", "%s/libncursesw.so.5" % LIB)
    inarytools.dosym("libncurses.so.6.2", "%s/libncurses.so.5" % LIB)
    inarytools.dosym("libncurses.so.6.2", "%s/libtinfo.so.5" % LIB)
    inarytools.dosym("libpanelw.so.6.2", "%s/libpanelw.so.5" % LIB)
    inarytools.dosym("libformw.so.6.2", "%s/libformw.so.5" % LIB)
    inarytools.dosym("libmenuw.so.6.2", "%s/libmenuw.so.5" % LIB)

    shelltools.cd("../%s" % NCURSES)
    for lib in ["ncurses", "form", "panel", "menu"]:
        inarytools.dolib("lib/lib%s.so.%s" % (lib, get.srcVERSION()),
                         destinationDirectory=LIB)
        inarytools.dosym("lib%s.so.%s" % (lib, get.srcVERSION()),
                         "%s/lib%s.so.6" % (LIB, lib))

    if get.buildTYPE() == "_emul32":
        inarytools.removeDir("/_emul32")
        return

    shelltools.cd(WORKDIR)
    shelltools.system("grep -B 100 '$Id' README > license.txt")
    inarytools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
예제 #19
0
def install():
    autotools.install()

    major = ".".join(get.srcVERSION().split(".")[:2])
    inarytools.dodir("/etc/env.d")
    shelltools.echo("%s/etc/env.d/50guile" % get.installDIR(), 'GUILE_LOAD_PATH="/usr/share/guile/%s"' % major)
    
    inarytools.domove("/usr/lib/libguile-2.0.so.22.*.scm", "/usr/share/gdb/auto-load")

    inarytools.dodoc("AUTHORS", "ChangeLog", "HACKING", "NEWS", "README", "THANKS")
예제 #20
0
def setup():
    autotools.autoreconf("-fi")

    shelltools.copytree("../fftw-%s" % get.srcVERSION(),
                        "../fftw-%s-double" % get.srcVERSION())
    shelltools.copytree("../fftw-%s" % get.srcVERSION(),
                        "../fftw-%s-long-double" % get.srcVERSION())
    shelltools.copytree("../fftw-%s" % get.srcVERSION(),
                        "../fftw-%s-quad" % get.srcVERSION())

    autotools.configure("--enable-sse \
                         --enable-shared \
                         --disable-static \
                         --disable-dependency-tracking \
                         --enable-threads \
                         --enable-fortran \
                         --enable-single")

    shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    autotools.configure("--enable-quad-precision \
                         --enable-shared \
                         --disable-static \
                         --disable-dependency-tracking \
                         --enable-fortran \
                         --enable-threads")

    # The only difference here is that there is no --enable-float
    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.configure("--enable-sse2 \
                         --enable-shared \
                         --disable-static \
                         --enable-fortran \
                         --disable-dependency-tracking \
                         --enable-threads")

    # The only difference here is --enable-long-double
    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.configure("--enable-shared \
                         --disable-static \
                         --disable-dependency-tracking \
                         --enable-threads \
                         --enable-fortran \
                         --enable-long-double")
예제 #21
0
def setup():

    shelltools.copy("../unifont*.bdf", "./unifont.bdf")
    shelltools.export("GRUB_CONTRIB",
                      "%s/grub-2.04/grub-extras" % (get.workDIR()))

    inarytools.cflags.remove("-fstack-protector",
                             "-fasynchronous-unwind-tables", "-fexceptions",
                             "-fPIC")
    inarytools.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= \
                         --enable-grub-mkfont \
	                     --enable-grub-mount \
                         --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= \
                         --enable-grub-mkfont \
                         --enable-grub-mount \
                         --with-platform=efi \
                         --target=x86_64  \
                         --htmldir='/usr/share/doc/grub2/html' ")

    shelltools.cd("..")
예제 #22
0
def install():
    for app in ["tcpd", "tcpdchk", "tcpdmatch", "safe_finger", "try-from"]:
        inarytools.dosbin(app)

    inarytools.insinto("/usr/include", "tcpd.h")

    inarytools.dolib("libwrap.a")

    # FIXME: this seems not necessary anymore
    # inarytools.domove("libwrap.so", "libwrap.so.0.%s" % get.srcVERSION())
    inarytools.dolib("libwrap.so.0.%s" % get.srcVERSION(), "/lib")

    inarytools.dosym("/lib/libwrap.so.0.%s" % get.srcVERSION(),
                     "/lib/libwrap.so.0")
    inarytools.dosym("/lib/libwrap.so.0", "/lib/libwrap.so")

    libtools.gen_usr_ldscript("libwrap.so")

    inarytools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.allow.5")
    inarytools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.deny.5")

    inarytools.doman("*.3", "*.5", "*.8")
    inarytools.dodoc("BLURB", "CHANGES", "DISCLAIMER", "README*")
예제 #23
0
def install():
    shelltools.cd("%s/docker-ce-%s" % (get.workDIR(), get.srcVERSION()))

    inarytools.dobin("components/cli/build/docker*")
    inarytools.dobin("components/engine/bundles/dynbinary-daemon/*")

    # insert udev rules
    inarytools.insinto("/lib/udev/rules.d", "components/engine/contrib/udev/*.rules")

    #insert contrib in docs
    inarytools.insinto("/usr/share/doc/docker", "components/cli/contrib")

    inarytools.dobin("components/engine/contrib/check-config.sh")

    inarytools.dodoc("VERSION", "README.md","CONTRIBUTING.md", "CHANGELOG.md")
예제 #24
0
def __getExtraVersion():
    extraversion = ""
    try:
        # if successful, this is something like:
        # .1 for 2.6.30.1
        # _rc8 for 2.6.30_rc8
        extraversion = re.split("5.[0-9].[0-9]{2}([._].*)",
                                get.srcVERSION())[1]
    except IndexError:
        # e.g. if version == 2.6.30
        pass

    # Append pae, default, rt, etc. to the extraversion if available
    if __getFlavour():
        extraversion += "-{}".format(__getFlavour())

    return extraversion
예제 #25
0
def setup():
    sql_ver = "3.30.1.2"
    shelltools.unlinkDir("{}/tcl{}/pkgs/sqlite{}".format(
        get.workDIR(), get.srcVERSION(), sql_ver))
    shelltools.cd("unix")

    autotools.autoreconf("-fi")
    if get.buildTYPE() == "emul32":
        option = "--enable-32bit"
    else:
        option = "--enable-64bit"
    autotools.configure("--with-encoding=utf-8 \
                         --enable-threads \
                         --enable-man-compression=gzip \
                         --mandir=/usr/share/man \
                         --enable-man-symlinks \
                         --enable-shared \
                         {}".format(option))
예제 #26
0
def install():
    # The build mechanism is crap. Don't remove \/usr from DESTDIR or else the paths will fail
    autotools.rawInstall("DESTDIR=%s/usr INSTROOT=%s install-etcppp" %
                         ((get.installDIR(), ) * 2))

    # No suid libraries
    shelltools.chmod(
        "%s/usr/lib/pppd/%s/*.so" % (get.installDIR(), get.srcVERSION()),
        0o755)

    # Install Radius config files
    inarytools.insinto("/etc/radiusclient", "pppd/plugins/radius/etc/*")

    # Create peers directory
    inarytools.dodir("/run/ppp")
    inarytools.dodir("/etc/ppp/peers")

    inarytools.dodoc("Changes*", "README*", "FAQ")
예제 #27
0
def setup():
    options = "--prefix=/usr         \
               --sysconfdir=/etc     \
               --localstatedir=/var  \
               --libexecdir=/usr/libexec \
               --disable-dependency-tracking \
               --disable-static \
               --enable-bluez4 \
               --disable-rpath \
               --disable-systemd \
               --enable-oss-output \
               --enable-largefile \
               --with-system-user=pulse \
               --with-system-group=pulse \
               --with-access-group=pulse-access \
               --with-database=tdb \
               --with-module-dir=/usr/lib/pulse/modules \
               --with-udev-rules-dir=/lib/udev/rules.d"

    if get.buildTYPE() == "emul32":
        options += " --libdir=/usr/lib32 \
                     --libexecdir=/usr/lib32 \
                     --disable-gconf \
                     --disable-gtk2 \
                     --disable-asyncns \
                     --disable-lirc \
                     --disable-x11 \
                     --disable-bluez4 \
                     --disable-oss-output \
                     --disable-oss-wrapper \
                     --disable-solaris \
                     --disable-manpages \
                     --disable-samplerate \
                     --disable-default-build-tests"

    shelltools.echo(".tarball-version", get.srcVERSION())
    #shelltools.system("NOCONFIGURE=1 ./bootstrap.sh")
    autotools.configure(options)

    inarytools.dosed("libtool", "CC(\s-shared\s)", r"CC -Wl,-O1,--as-needed\1")
예제 #28
0
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import get

WorkDir = "xf86-input-hyperpen-%s" % get.srcVERSION()


def setup():
    autotools.configure()


def build():
    autotools.make()


def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dodoc("COPYING", "ChangeLog", "README")
    inarytools.removeDir("/usr/share/man")
예제 #29
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import shelltools
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import get

WorkDir = "espeak-%s-source" % get.srcVERSION()

def setup():
    # Build against portaudio v19
    shelltools.copy("src/portaudio19.h", "src/portaudio.h")

    # Remove binary voice dictionaries, we'll build them
    shelltools.system("rm -rf espeak-data/*_dict")

def build():
    autotools.make("-C src CXXFLAGS='%s' CFLAGS='%s' LDFLAGS='%s'" % (get.CXXFLAGS(), get.CFLAGS(), get.LDFLAGS()))

    shelltools.system("./compile-voices")

def install():
    shelltools.cd("src")
    autotools.rawInstall("DESTDIR=%s BINDIR=/usr/bin INCDIR=/usr/include/espeak LIBDIR=/usr/lib" % get.installDIR())
    shelltools.cd("..")

    inarytools.dodoc("ReadMe", "ChangeLog.txt", "License.txt")
예제 #30
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import perlmodules
from inary.actionsapi import inarytools
from inary.actionsapi import get

WorkDir = "%s-%s" % (get.srcNAME()[5:], get.srcVERSION())


def setup():
    perlmodules.configure("PERL_USE_UNSAFE_INC=1 \
                           PERL_MM_USE_DEFAULT=1")


def build():
    perlmodules.make()


def check():
    perlmodules.make("test")


def install():
    perlmodules.install()

    inarytools.dodoc("MANIFEST", "Changes")