Beispiel #1
0
def install():
    pisitools.insinto("/usr/include", "*.h")
    pisitools.dolib("libtinyxml.so.0.%s" % get.srcVERSION())
    pisitools.dosym("/usr/lib/libtinyxml.so.0.%s" % get.srcVERSION(), "/usr/lib/libtinyxml.so.0")
    pisitools.dosym("/usr/lib/libtinyxml.so.0.%s" % get.srcVERSION(), "/usr/lib/libtinyxml.so")
    pisitools.dodoc("changes.txt", "readme.txt")
    pisitools.dohtml("docs/*")
Beispiel #2
0
def install():
    for app in ["tcpd", "tcpdchk", "tcpdmatch", "safe_finger", "try-from"]:
        pisitools.dosbin(app)

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

    pisitools.dolib_a("libwrap.a")

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

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

    libtools.gen_usr_ldscript("libwrap.so")

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

    pisitools.doman("*.3", "*.5", "*.8")
    pisitools.dodoc("BLURB", "CHANGES", "DISCLAIMER", "README*")

    # absolute path fix
    pisitools.dosed("%s/usr/lib/libwrap.so" % get.installDIR(), r"^GROUP\s*\(.*", "GROUP ( ../../lib/libwrap.so )")
Beispiel #3
0
def install():
    for d in (anthome, os.path.join(anthome, "lib"), os.path.join(anthome, "etc"), os.path.join(anthome, "bin"), javadir, os.path.join(javadir, "ant")):
        pisitools.dodir(d)

    shelltools.cd("build/lib")

    for f in ("ant.jar", "ant-launcher.jar", "ant-bootstrap.jar"):
        pisitools.insinto(javadir, f, f.replace(".jar", "-%s.jar" % get.srcVERSION()))
        pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f))
        pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, f))

    #Install optional JAR files to /usr/share/java/ant
    for f in ("ant-jmf.jar", "ant-junit.jar", "ant-swing.jar"):
        pisitools.insinto(os.path.join(javadir, "ant"), f, f.replace(".jar", "-%s.jar" % get.srcVERSION()))
        pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f))
        pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, "ant", f))


    shelltools.cd("../../src/script")
    for f in glob.glob("*.bat"):
        shelltools.unlink(f)

    for f in glob.glob("*.cmd"):
        shelltools.unlink(f)

    pisitools.dobin("*")
    pisitools.domove("/usr/bin/antRun*", os.path.join(anthome, "bin"))
    shelltools.cd("../../")

    #Install XSLs
    pisitools.insinto(os.path.join(anthome, "etc"), "src/etc/*.xsl")

    pisitools.dodoc("KEYS", "NOTICE", "README", "WHATSNEW", "LICENSE")
Beispiel #4
0
def install():
    kerneltools.install()
    
    # add objtool for external module building and enabled VALIDATION_STACK option
    pisitools.insinto("/usr/src/linux-headers-%s/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
    pisitools.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')
    
    pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
Beispiel #5
0
def install():
    pisitools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.allow.5")
    pisitools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.deny.5")

    pisitools.dosbin("tcpd")
    pisitools.dosbin("tcpdchk")
    pisitools.dosbin("tcpdmatch")
    pisitools.dosbin("safe_finger")
    pisitools.dosbin("try-from")
    
    pisitools.doman("*.3", "*.5", "*.8")
    
    pisitools.insinto("/usr/include/", "tcpd.h")

    pisitools.dolib_a("libwrap.a")
    
    pisitools.domove("libwrap.so", "libwrap.so.0.%s" % get.srcVERSION())
    pisitools.dolib_so("libwrap.so.0.%s" % get.srcVERSION(), "/lib")
    
    pisitools.dosym("/lib/libwrap.so.0.%s" % get.srcVERSION(), "/lib/libwrap.so.0")
    pisitools.dosym("/lib/libwrap.so.0", "/lib/libwrap.so")
    
    libtools.gen_usr_ldscript("libwrap.so")

    pisitools.dodoc("BLURB", "CHANGES", "DISCLAIMER", "README*", "hosts.allow.example")
Beispiel #6
0
def install():
    pisitools.insinto("/usr/share/sgml/docbook/xml-dtd-%s" % get.srcVERSION(), "*.dtd")
    pisitools.insinto("/usr/share/sgml/docbook/xml-dtd-%s" % get.srcVERSION(), "*.mod")
    pisitools.insinto("/usr/share/sgml/docbook/xml-dtd-%s" % get.srcVERSION(), "docbook.cat")
    pisitools.insinto("/usr/share/sgml/docbook/xml-dtd-%s/ent" % get.srcVERSION(), "ent/*.ent")

    pisitools.dodoc("ChangeLog", "README")
Beispiel #7
0
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("..")
Beispiel #8
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)
        pisitools.dolib_so("lib%s.so" % lib, destinationDirectory = LIB)
        pisitools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib))
    pisitools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB)
    for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]:
        pisitools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib))

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

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

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

    shelltools.cd(WORKDIR)
    shelltools.system("grep -B 100 '$Id' README > license.txt")
    pisitools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
Beispiel #9
0
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()
Beispiel #10
0
def install():
    pisitools.dobin("pavi-"+get.srcVERSION()+".sh")
    pisitools.dosym("/usr/bin/pavi-"+get.srcVERSION()+".sh","/usr/bin/pavi")
    pisitools.dodoc("COPYING","INSTALL","README","*.gif", "*.html", "*.ico", "*.png")
    pisitools.insinto("/etc/init.d/","paviautopatch")
    pisitools.insinto("/usr/share/pixmaps/", "pavi.png")
    pisitools.insinto("/usr/share/pixmaps/", "pavi_root_term.png")
Beispiel #11
0
def install():
    pisitools.insinto("/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "*.dcl")
    pisitools.insinto("/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "*.dtd")
    pisitools.insinto("/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "*.mod")
    pisitools.insinto("/usr/share/sgml/docbook/sgml-dtd-%s" % get.srcVERSION(), "docbook.cat", "catalog")

    pisitools.dodoc("README")
Beispiel #12
0
def install():
    pisitools.insinto("/usr/share/mari0", "mari0_%s.love" % get.srcVERSION())
    pisitools.rename("/usr/share/mari0/mari0_%s.love" % get.srcVERSION(), "mari0.love")

    shelltools.chmod("%s/usr/share/mari0/mari0.love" % get.installDIR(), 0644)

    pisitools.dodoc("readme.txt")
Beispiel #13
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

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

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

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

    # Docs
    pisitools.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()))

    pisitools.dodoc("Changes*", "Artistic", "Copying", "README", "AUTHORS")
Beispiel #14
0
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")
Beispiel #15
0
def install():
    kerneltools.install()

    # 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
    pisitools.dodir("/etc/mkinitcpio.d")
    shelltools.touch("linux.preset")
    

    shelltools.echo("linux.preset", 'ALL_config="/etc/mkinitcpio.conf"\n'+
                    
                    'ALL_kver="/boot/kernel-%s"\n'% get.srcVERSION() +

                    'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
                    
                    'default_options="-S autodetect"\n')
    
    pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
Beispiel #16
0
def install():
    pisitools.insinto("/etc", "dist/config/conf.ini", "zemberek-server.ini")
    pisitools.insinto("/etc/dbus-1/system.d", "dist/config/zemberek-server.conf")
    pisitools.insinto("/usr/share/java", "dist/zemberek-server-%s.jar" % get.srcVERSION())
    pisitools.dosym("zemberek-server-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-server.jar")

    pisitools.dodoc("dist/lisanslar/zemberek-licence.txt")
Beispiel #17
0
def install():
    pisitools.insinto("/usr/share/asleap-%s" % get.srcVERSION(), "scripts")
    pisitools.insinto("/usr/share/asleap-%s" % get.srcVERSION(), "data")

    pisitools.dobin("asleap")
    pisitools.insinto("/usr/bin", "genkeys", "asleap_genkeys")

    pisitools.dodoc("COPYING", "README", "THANKS")
Beispiel #18
0
def check():
    autotools.make("check")

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

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.make("check")
Beispiel #19
0
def build():
    autotools.make()

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

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.make()
Beispiel #20
0
def setup():
    shelltools.system("sh NVIDIA-Linux-%s-%s-pkg0.run -x --target tmp" % (arch, get.srcVERSION()))
    shelltools.move("tmp/*", ".")

    # Remove VDPAU headers and wrapper library
    shelltools.unlinkDir("usr/include/vdpau")
    shelltools.unlink("usr/lib/libvdpau.so.%s" % get.srcVERSION())
    shelltools.unlink("usr/lib/vdpau/libvdpau_trace.so.%s" % get.srcVERSION())
Beispiel #21
0
def install():
    autotools.install()

    pisitools.remove("/usr/lib/*.a")

    # Create symlinks for so file
    pisitools.dosym("libtevent.so.%s" % get.srcVERSION(), "/usr/lib/libtevent.so.%s" % get.srcVERSION().split(".")[0])
    pisitools.dosym("libtevent.so.%s" % get.srcVERSION(), "/usr/lib/libtevent.so")
Beispiel #22
0
def setup():        
    if get.buildTYPE() != "emul32":
            if not shelltools.can_access_directory("tools/clang"):
                shelltools.system("tar xf ../cfe-%s.src.tar.xz -C tools" % get.srcVERSION())
                shelltools.move("tools/cfe-%s.src" % get.srcVERSION(), "tools/clang")

                shelltools.system("tar xf ../clang-tools-extra-%s.src.tar.xz -C tools" % get.srcVERSION())
                shelltools.move("tools/clang-tools-extra-*", "tools/clang/extra")
                
                shelltools.system("tar xf ../lldb-%s.src.tar.xz -C tools" % get.srcVERSION())
                shelltools.move("tools/lldb-*", "tools/lldb")

            if not shelltools.can_access_directory("projects/compiler-rt"):
                shelltools.system("tar xf ../compiler-rt-%s.src.tar.xz -C projects" % get.srcVERSION())
                shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(), "projects/compiler-rt")    
        
        
                shelltools.export("CC", "gcc")
                shelltools.export("CXX", "g++")
                
    
    if get.buildTYPE() == "emul32":
        shelltools.export("CC", "gcc -m32")
        shelltools.export("CXX", "g++ -m32")
        shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
    
    shelltools.makedirs("build")
    
    shelltools.cd("build")
    
    if get.buildTYPE() != "emul32":
        options = "-DCMAKE_C_FLAGS:STRING=-m64 \
                              -DCMAKE_INSTALL_PREFIX=/usr \
                            -DCMAKE_CXX_FLAGS:STRING=-m64 \
                            -DLLVM_TARGET_ARCH:STRING=x86_64 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST()
                          
    
    if get.buildTYPE() == "emul32":
        options = "  -DCMAKE_C_FLAGS:STRING=-m32 \
                            -DCMAKE_INSTALL_PREFIX=/emul32 \
                            -DLLVM_TARGET_ARCH:STRING=i686  \
                            -DLLVM_LIBDIR_SUFFIX=32 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE='i686-pc-linux-gnu' \
                            -DCMAKE_CXX_FLAGS:STRING=-m32"
    
    
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                                        %s \
                                        -DLLVM_ENABLE_FFI=ON \
                                        -DLLVM_BUILD_DOCS=OFF \
                                        -DBUILD_SHARED_LIBS=ON \
                                        -DLLVM_ENABLE_RTTI=ON \
                                        -DLLVM_INCLUDEDIR=/usr/include \
                                        -DLLVM_ENABLE_ASSERTIONS=OFF \
                                        -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
                                        -DENABLE_SHARED=ON" % options, sourceDir=".." ) 
Beispiel #23
0
def install():
    autotools.install()

    # No static libs
    pisitools.remove("/usr/lib/*.a")

    pisitools.dolib_so("libpcap.so.%s" % get.srcVERSION())
    pisitools.dosym("libpcap.so.%s" % get.srcVERSION(), "/usr/lib/libpcap.so")
    pisitools.dodoc("CHANGES", "CREDITS", "FILES", "README", "README.linux", "TODO", "VERSION", "/doc/pcap.txt")
Beispiel #24
0
def setup():
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("sip-%s" % get.srcVERSION())
    shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION())
    
    pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s"' % (get.CFLAGS(), get.CXXFLAGS()))
    
    shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
    pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS()))
Beispiel #25
0
def build():
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s-ce/components/engine" % get.srcVERSION())
    shelltools.system("hack/make.sh dynbinary-daemon")
    
    # build cli
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s-ce/components/cli" % get.srcVERSION())
    shelltools.system("LDFLAGS='' GOPATH=%s/docker-ce-%s-ce/components/cli ./scripts/build/dynbinary" % (get.workDIR(), get.srcVERSION()))
Beispiel #26
0
def install():
    pisitools.insinto("/usr/share/java", "dagitim/jar/*")
    pisitools.dosym("zemberek-az-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-az.jar")
    pisitools.dosym("zemberek-cekirdek-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-cekirdek.jar")
    pisitools.dosym("zemberek-demo-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-demo.jar")
    pisitools.dosym("zemberek-tk-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-tk.jar")
    pisitools.dosym("zemberek-tr-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-tr.jar")

    pisitools.dodir(get.docDIR())
    shelltools.copytree("dokuman", "%s/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME()))
Beispiel #27
0
def setup():
    # SVK usage in utils/buildcat.py causes sandbox violation.
    pisitools.dosed("utils/buildcat.py", "detect_revision\(\)", get.srcVERSION())

    scons.make("build=release \
                build_id=%s \
                install_prefix=/usr \
                bindir=bin \
                buildlocale \
                datadir=share/widelands" % get.srcVERSION())
Beispiel #28
0
def install():
    shelltools.makedirs("%s/usr/share/arduino" % get.installDIR())
    shelltools.makedirs("%s/usr/bin" % get.installDIR())
    shelltools.copy("%s/%s/linux/work/*" % (get.workDIR(),WorkDir),"%s/usr/share/arduino" % get.installDIR())
    pisitools.dosym("/usr/share/arduino/arduino", "/usr/bin/arduino")
    if get.ARCH() == "x86_64":
        pisitools.remove("/usr/share/arduino/lib/RXTXcomm.jar")
        pisitools.remove("/usr/share/arduino/lib/librxtxSerial.so")
        shelltools.copy("%s/arduino-%s/lib/RXTXcomm.jar" % (get.workDIR(),get.srcVERSION()),"%s/usr/share/arduino/lib" % get.installDIR())
        shelltools.copy("%s/arduino-%s/lib/librxtxSerial.so" % (get.workDIR(),get.srcVERSION()),"%s/usr/share/arduino/lib" % get.installDIR())
Beispiel #29
0
def setup():
    if not shelltools.isDirectory("tools/clang"):
        pisitools.dosed("tools/cfe-3.5.0.src/lib/Driver/ToolChains.cpp", '"ld"', '"ld.gold"')
        shelltools.move("tools/cfe-%s.src" % get.srcVERSION(), "tools/clang")
        shelltools.move("tools/lldb-%s.src" % get.srcVERSION(), "tools/lldb")
        shelltools.move("tools/clang-tools-extra-3.5.0.src", "tools/clang/extra")
    if not shelltools.isDirectory("projects/compiler-rt"):
        shelltools.move("projects/compiler-rt-3.5.0.src", "projects/compiler-rt")
        shelltools.move("projects/libcxxabi-3.5.0.src", "projects/libcxxabi")
        shelltools.move("projects/libcxx-3.5.0.src", "projects/libcxx")
        
        
    # dosed does nothing on internal makefile. Patch doesn't work. So I added this externally. Because without this change, build fails.        
    shelltools.system("rm -f tools/lldb/scripts/Python/modules/readline/Makefile")
    shelltools.move("Makefile_", "tools/lldb/scripts/Python/modules/readline/Makefile")

    pisitools.dosed("utils/llvm-build/llvm-build", "python", "python2.7")
    pisitools.dosed("bindings/ocaml/Makefile.ocaml", '\$\(PROJ_libdir\)', libdir)
    pisitools.dosed("Makefile.config.in", "\$\(PROJ_prefix\)/etc/llvm", "/etc/llvm")
    pisitools.dosed("Makefile.config.in", "\$\(PROJ_prefix\)/lib", "$(PROJ_prefix)/%s/llvm" % lib)
    pisitools.dosed("Makefile.config.in", "\$\(PROJ_prefix\)/docs/llvm", "$(PROJ_prefix)/share/doc/llvm")
    pisitools.dosed("tools/llvm-config/llvm-config.cpp", '(ActiveLibDir\s=\sActivePrefix\s\+\s\"\/lib)(.*)', r'\1/llvm\2')
    pisitools.dosed("autoconf/configure.ac", '\LLVM_LIBDIR="\$\{prefix\}/lib"', 'LLVM_LIBDIR="${prefix}/%s/llvm"' % lib)
    
#    pisitools.dosed("tools/lldb/scripts/Python/modules/readline/Makefile", '$(Verb) $(RM) "$(DESTDIR)$(prefix)/lib/$(LIBRARYNAME)$(SHLIBEXT)"', '$(Verb) $(RM) "$(DESTDIR)$(prefix)/lib/python2.7/site-packages/$(LIBRARYNAME)$(SHLIBEXT)"')

    pisitools.dosed("Makefile.rules", "\$\(RPATH\)\s-Wl,\$\(ExmplDir\)\s\$\(DynamicFlag\)", "$(DynamicFlag)")
    pisitools.dosed("Makefile.rules", "\$\(RPATH\)\s-Wl,\$\(ToolDir\)\s\$\(DynamicFlag\)", "$(DynamicFlag)")

    shelltools.export("CPPFLAGS","%s %s" % (get.CXXFLAGS(),pkgconfig.getLibraryCFLAGS("libffi")))

    pic_option = "enable" if get.ARCH() == "x86_64" else "disable"
    
    
    # Build fails with GCC, with clang it is ok.
    shelltools.export("CC", "clang")
    shelltools.export("CXX", "clang++")

    options = "--libdir=%s \
               --datadir=/usr/share/llvm \
               --sysconfdir=/etc \
               --enable-shared \
               --enable-libffi \
               --enable-targets=all \
               --disable-expensive-checks \
               --disable-debug-runtime \
               --disable-assertions \
               --enable-jit \
               --enable-threads \
               --disable-assertions \
               --%s-pic \
               --with-binutils-include=/usr/include \
               " % (libdir, pic_option)

    autotools.configure(options)
Beispiel #30
0
def setup():
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("sip-%s" % get.srcVERSION())
    shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION())
    
    shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.6m\/Python.h/g' {} \;")
    
    pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
    
    shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())    
    pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
Beispiel #31
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools

WorkDir = "Elixir-%s" % get.srcVERSION()
examples = "%s/%s/examples" % (get.docDIR(), get.srcTAG())


def install():
    pythonmodules.install()

    shelltools.chmod("examples/*", 0644)
    pisitools.insinto(examples, "examples/*")

    pisitools.dodoc("AUTHORS", "CHANGES", "LICENSE", "README", "TODO")
Beispiel #32
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "SDL_mixer-%s" % get.srcVERSION()

def setup():
    pisitools.dosed("timidity/config.h", "/usr/local/lib/timidity", "/usr/share/timidity")

    autotools.configure("--disable-dependency-tracking \
                         --disable-static \
                         --enable-music-midi \
                         --enable-timidity-midi \
                         --enable-music-mod \
                         --enable-music-libmikmod \
                         --enable-music-mp3 \
                         --enable-music-ogg")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc("CHANGES", "COPYING", "README")
Beispiel #33
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import perlmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "Test-Exception-%s" % get.srcVERSION()


def setup():
    perlmodules.configure()


def build():
    perlmodules.make()


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


def install():
    perlmodules.install()

    pisitools.dodoc("README", "MANIFEST", "Changes")
Beispiel #34
0
def install():
    pisitools.insinto("/etc/vbox", "vbox.cfg")
    shelltools.chmod("src/VBox/Additions/x11/Installer/98vboxadd-xclient", 0755)
    pisitools.insinto("/usr/bin", "src/VBox/Additions/x11/Installer/98vboxadd-xclient", "VBoxClient-all")
    #pisitools.insinto("/lib/udev/rules.d", "src/VBox/Additions/linux/installer/70-xorg-vboxmouse.rules")
    pisitools.insinto("/usr/share/X11/pci", "src/VBox/Additions/x11/Installer/vboxvideo.ids")
    #pisitools.insinto("/usr/share/X11/xorg.conf.d", "src/VBox/Additions/x11/Installer/50-vboxmouse.conf")

    arch = "amd64" if get.ARCH() == "x86_64" else "x86"
    shelltools.cd("out/linux.%s/release/bin" % arch)

    # libraries installation. The files below are unnecessary files.
    # TODO: change loop and make it more discrete (i.e copying each single file)
    exclude = ("additions", "icons", "nls", "scm", "sdk", "src", "SUP", "vboxkeyboard",
               "VBox.sh", "VBoxSysInfo.sh", "VBoxCreateUSBNode.sh", "VBoxTunctl", "testcase", "tst", "xpidl")

    for _file in shelltools.ls("."):
        if _file.startswith(exclude):
            continue

        print "Installing %s ..." % _file
        pisitools.insinto(VBoxLibDir, _file)

    pisitools.dobin("VBox*.sh", VBoxDataDir)
    pisitools.insinto(VBoxDataDir, "nls")

    # TODO: Add vboxwebsrv when ready
    # Binaries and Wrapper with Launchers
    apps = ("VBoxHeadless", "VBoxManage", "VBoxSDL", "VBoxVRDP", "VirtualBox", "VBoxBalloonCtrl")
    for link in apps:
        pisitools.dosym("../share/virtualbox/VBox.sh", "/usr/bin/%s" % link)

    pisitools.dobin("VBoxTunctl")

    # Desktop file, mimetype file for xml and icon
    pisitools.domove("%s/*.desktop" % VBoxLibDir, "/usr/share/applications")
    pisitools.domove("%s/*.png" % VBoxLibDir, "/usr/share/pixmaps")
    pisitools.domove("%s/*.xml" % VBoxLibDir, "/usr/share/mime/packages")

    # Mimetypes icons
    for size in ["16", "20", "24", "32", "48", "64", "72", "96", "128", "256"]:
        pisitools.insinto("/usr/share/icons/hicolor/%sx%s/mimetypes" % (size, size),
                          "icons/%sx%s/*.png" % (size, size))

    # Guest additions
    pisitools.dobin("additions/VBoxClient")
    pisitools.dobin("additions/VBoxControl")

    pisitools.dosbin("additions/VBoxService")
    pisitools.dosbin("additions/mount.vboxsf", "/sbin")

    pisitools.insinto("/lib/security", "additions/pam_vbox.so")

    pisitools.dolib("additions/VBoxOGL*")
    pisitools.dosym("../../../VBoxOGL.so", "/usr/lib/xorg/modules/dri/vboxvideo_dri.so")

    pisitools.insinto("/usr/lib/xorg/modules/drivers", "additions/vboxvideo_drv_%s.so" % XorgVersion, "vboxvideo_drv.so")
    #pisitools.insinto("/usr/lib/xorg/modules/input",   "additions/vboxmouse_drv_%s.so" % XorgVersion, "vboxmouse_drv.so")

    # Python bindings
    pisitools.insinto("%s/sdk/bindings/xpcom" % VBoxLibDir, "sdk/bindings/xpcom/python")

    shelltools.cd("sdk/installer")
    shelltools.copy("vboxapisetup.py", "setup.py")
    shelltools.export("VBOX_INSTALL_PATH", VBoxLibDir)
    pythonmodules.install()

    shelltools.cd("../..")
    mvb_name = "module-virtualbox-%s" % get.srcVERSION()
    mvbg_name = "module-virtualbox-guest-%s" % get.srcVERSION()

    shelltools.copy("src", "%s/%s" % (get.workDIR(), mvb_name))
    shelltools.copy("additions/src", "%s/%s" % (get.workDIR(), mvbg_name))
    shelltools.cd(get.workDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((mvb_name, )*2))
    shelltools.unlinkDir(mvb_name)
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((mvbg_name, )*2))
    shelltools.unlinkDir(mvbg_name)
Beispiel #35
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pisitools

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

def setup():
    perlmodules.configure()

def build():
    perlmodules.make()

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

def install():
    perlmodules.install()

    pisitools.dodoc("AUTHORS", "NEWS" )
Beispiel #36
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "XML_Util-%s" % get.srcVERSION()


def install():
    pisitools.insinto("/usr/share/php5/PEAR/XML", "Util.php")
    pisitools.insinto("/usr/share/php5/PEAR/doc/XML_Util", "examples/*")
Beispiel #37
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "kvirc-%s" % get.srcVERSION()
NoStrip = "/usr/kde/4/share"


def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.configure("-DCMAKE_BUILD_TYPE=release",
                         installPrefix="/usr/kde/4",
                         sourceDir="..")


def build():
    shelltools.cd("build")
    cmaketools.make()


def install():
    shelltools.cd("build")
Beispiel #38
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "Frets on Fire-%s" % get.srcVERSION()


def install():
    pisitools.insinto("/usr/share/fretsonfire", "src")
    pisitools.insinto("/usr/share/fretsonfire", "data")

    pisitools.removeDir("/usr/share/fretsonfire/data/win32")

    pisitools.dodoc("copying.txt", "readme.txt", "todo.txt")
Beispiel #39
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get

WorkDir = "kaa-imlib2-%s" % get.srcVERSION()


def build():
    pythonmodules.compile()


def install():
    pythonmodules.install()
Beispiel #40
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get

import os

WorkDir = "mplayer-%s" % get.srcVERSION().split("_", 1)[1]
mp_version = "28227"
ff_version = "16404"


def fixPermissions(dest):
    for root, dirs, files in os.walk(dest):
        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():
    fixPermissions("DOCS")
    shelltools.export("LINGUAS", "tr")
Beispiel #41
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import cmaketools
from pisi.actionsapi import get

WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().partition("_")[0])


def setup():
    cmaketools.configure(
        '-DCMAKE_SKIP_RPATH:BOOL=YES -DUSE_INSTALL_PLUGIN:BOOL=ON')


def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
Beispiel #42
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import get
from pisi.actionsapi import kde

WorkDir = "kde-i18n-sv-%s" % get.srcVERSION()


def setup():
    kde.configure("--without-arts")


def build():
    kde.make()


def install():
    kde.install()
Beispiel #43
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "pyinotify-%s" % (get.srcVERSION())


def build():
    pythonmodules.compile()


def install():
    pythonmodules.install()

    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),
                      "python2/examples")
Beispiel #44
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir="Auth_HTTP-%s" % get.srcVERSION()

def install():
    pisitools.insinto("/usr/share/php5/PEAR/Auth", "Auth_HTTP.php", "HTTP.php")
    pisitools.insinto("/usr/share/php5/PEAR/tests/Auth_HTTP", "tests/*")
Beispiel #45
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import get

WorkDir="kde-l10n-it-%s" % get.srcVERSION()

shelltools.export("HOME", get.workDIR())

def setup():
    cmaketools.configure(installPrefix="/usr/kde/4")

def build():
    cmaketools.make()

def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
Beispiel #46
0
#!/usr/bin/python

# Created For Solus Operating System

from pisi.actionsapi import get, pisitools, shelltools

NoStrip = ["/usr"]
IgnoreAutodep = True

Version = get.srcVERSION()

def setup():
    shelltools.system("tar xzvf spring-tool-suite-%s*.tar.gz" % Version)

def install():
    pisitools.insinto("/usr/share/spring-tool-suite", "sts-bundle/*")
    pisitools.dosym("/usr/share/spring-tool-suite/sts-%s.RELEASE/STS" % Version, "/usr/bin/STS")
Beispiel #47
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import scons
from pisi.actionsapi import get

version = get.srcVERSION().split("_", 1)[1]
WorkDir = "vdrift-%s-%s-%s" % (version[0:4], version[4:6], version[6:])

#def setup():
# shelltools.export("CXXFLAGS", get.CXXFLAGS())
# shelltools.cd("bullet-2.66")
# shelltools.system("./configure")
# shelltools.system("jam bulletcollision bulletmath")
# FIXME: BSG ???
#shelltools.system("tar zxvf bullet-2.73-sp1.tgz")


def build():
    # shelltools.export("CXXFLAGS", get.CXXFLAGS())

    scons.make('release=1 \
                destdir="%s" \
                NLS=0 \
                prefix='
Beispiel #48
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright © 2008  TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir="noip-%s-1" % get.srcVERSION()

def setup():
    pisitools.dosed("noip2.c", "PREFIX\"/etc", "\"/etc")

def build():
    autotools.make()

def install():
    pisitools.dosbin("noip2")

    pisitools.dodoc("COPYING", "README.*", "LEEME.PRIMERO", "LIESMICH.ERST.deutsch", "LISEZMOI.ENPREMIER")

Beispiel #49
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "configobj-%s" % get.srcVERSION()


def install():
    pisitools.dosed("setup.py", "distutils.core", "setuptools")
    pisitools.dohtml("docs/*")

    pythonmodules.install()
Beispiel #50
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# for snapshots only
if "_" in get.srcVERSION():
    WorkDir = "gnome-mplayer"


def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-dependency-tracking \
                         --with-gio \
                         --enable-nautilus=no \
                         --with-libgpod \
                         --with-libnotify \
                         --with-libmusicbrainz3 \
                         --without-gpm-new-method \
                         --without-gpm-old-method \
                         --disable-schemas-install")


def build():
    autotools.make()
Beispiel #51
0
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
#
# For ioquake sources svn://svn.icculus.org/quake3/trunk
# For bunch of updates http://www.www0.org/urt/
#
# Tarball is created with ioquake revision 1807, copying files of
# http://www.www0.org/urt/ioq3-1807-urt-251210-git.tar.lzma
# and applying ioq3-1807-urt-251210-git.patch in ioq3
#

from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", "-"))
arch = get.ARCH().replace("i686", "i386")

builddir = "build/release-linux-%s" % arch
datadir = "/usr/share/urbanterror"

cflags = "%s -I/usr/include/freetype2" % get.CFLAGS()


def setup():
    for i in ["code/SDL12", "code/libs/win32"]:
        if shelltools.isDirectory(i):
            shelltools.unlinkDir(i)


def build():
Beispiel #52
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "libfm-%s" % (get.srcVERSION())


def setup():
    autotools.configure("--disable-static \
                         --sysconfdir=/etc \
                         --enable-debug \
                         --enable-udisks \
                         --enable-demo")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")


def build():
    autotools.make()


def install():
    pisitools.dosed("data/libfm.conf", "xarchiver", "file-roller")
    autotools.install()
    pisitools.dodoc("AUTHORS", "COPYING", "TODO")
Beispiel #53
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import get

WorkDir="hugin-%s" % get.srcVERSION()

def setup():
    autotools.configure("--enable-shared \
                         --disable-static \
                         --with-unicode \
                         --disable-desktop")

def build():
    autotools.make()

def install():
    autotools.install()
Beispiel #54
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "SilverCity-%s" % get.srcVERSION()


def build():
    pythonmodules.compile()


def install():
    pythonmodules.install()

    pisitools.dosed("%s/usr/bin/cgi-styler-form.py" % get.installDIR(),
                    "home/sweetapp/")

    pisitools.chmod(
        "%s/usr/lib/%s/site-packages/SilverCity/default.css" %
        (get.installDIR(), get.curPYTHON()), 0644)
Beispiel #55
0
#!/usr/bin/python
# -*- coding: utf-8 -*-

from pisi.actionsapi import kde4
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "soundkonverter-" + get.srcVERSION()


def setup():
    kde4.configure()


def build():
    kde4.make()


def install():
    kde4.install()
    pisitools.dodoc("TODO", "CHANGELOG", "INSTALL", "README")
Beispiel #56
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import get

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


def setup():
    autotools.configure()


def build():
    autotools.make()


def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
Beispiel #57
0
def install():
    shelltools.cd("..")
    shelltools.move("projectlibre-%s" % get.srcVERSION(), "projectlibre")
    pisitools.dodir("/opt")
    pisitools.insinto("/opt", "projectlibre")
Beispiel #58
0
#!/usr/bin/python
# -*- coding: utf-8 -*- 
#
# Copyright 2005-2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "%s+-%s" % (get.srcNAME(), get.srcVERSION())

def setup():
    pisitools.dosed("config.h", "#define SERIAL_CONSOLE_DEFAULT 0", "#define SERIAL_CONSOLE_DEFAULT 1")

def build():
    autotools.make()

def install():
    pisitools.insinto("/boot", "memtest.bin")
    pisitools.dodoc("FAQ", "README*")

Beispiel #59
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
import os

WorkDir = "qt-x11-opensource-src-%s" % get.srcVERSION()
qtbase = "/usr/qt/4"

def setup():
    # phonon module is disabled because, it's been packaged from KDE SVN repository to compile KDE 4.1 packages
    autotools.rawConfigure("-no-pch \
                            -v \
                            -stl \
                            -fast \
                            -prefix %s \
                            -libdir %s/lib \
                            -qdbus \
                            -qvfb \
                            -glib \
                            -no-sql-sqlite2 \
                            -system-sqlite \
                            -plugin-sql-sqlite \
                            -plugin-sql-mysql \
Beispiel #60
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "%s-%s-src" % (get.srcNAME(), get.srcVERSION())
NoStrip=["/usr/share/doc"]

def setup():
    cmaketools.configure("-DWITH_VIGRANUMPY=1 -DDOXYGEN_FOUND=0")

def build():
    cmaketools.make()

def install():
    cmaketools.install()

    pisitools.dodoc("README*", "LICENSE*")