예제 #1
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()
예제 #2
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")
예제 #3
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()
예제 #4
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")
예제 #5
0
def install():
    autotools.rawInstall("PREFIX=%s" % get.installDIR())
    
    pisitools.dosym("man", "/usr/bin/manpath")

    pisitools.dodoc("LSM", "README*", "TODO")

    pisitools.dodir("/var/cache/man")

    list = (coreutils.cat(get.installDIR() + "/etc/man.conf") | coreutils.grep("^MANSECT") | coreutils.join).split()[1]
    
    for index in list.split(":"):
        pisitools.dodir("/var/cache/man/cat%s" % index)
        shelltools.chmod("%s/var/cache/man/cat%s" % (get.installDIR(),index), 0775)
        shelltools.chown("%s/var/cache/man/cat%s" % (get.installDIR(),index), "root", "man")
예제 #6
0
def install():
    autotools.rawInstall("PREFIX=%s" % get.installDIR())

    pisitools.dosym("man", "/usr/bin/manpath")

    pisitools.dodoc("LSM", "README*", "TODO")

    pisitools.dodir("/var/cache/man")

    list = (coreutils.cat(get.installDIR() + "/etc/man.conf") | coreutils.grep("^MANSECT") | coreutils.join).split()[1]

    for index in list.split(":"):
        pisitools.dodir("/var/cache/man/cat%s" % index)
        shelltools.chmod("%s/var/cache/man/cat%s" % (get.installDIR(),index), 0775)
        shelltools.chown("%s/var/cache/man/cat%s" % (get.installDIR(),index), "root", "man")

    pisitools.dosed("%s/etc/man.conf" % get.installDIR(),"^TROFF.*","TROFF\t groff-utf8 -Tutf8 -mandoc")
    pisitools.dosed("%s/etc/man.conf" % get.installDIR(),"^NROFF.*","NROFF\t groff-utf8 -Tutf8 -mandoc")