Esempio n. 1
0
def install():
    shelltools.system("make DESTDIR=%s install" % get.installDIR())

    # Collect private headers, 3rd party apps like Tile depends on this
    shelltools.cd("..")
    pisitools.dodir("/usr/include/tk-private/generic")
    pisitools.dodir("/usr/include/tk-private/unix")
    shelltools.copy("unix/*.h",
                    "%s/usr/include/tk-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h",
                    "%s/usr/include/tk-private/generic" % get.installDIR())

    # Remove duplicated headers
    pisitools.remove("/usr/include/tk-private/generic/tk.h")
    pisitools.remove("/usr/include/tk-private/generic/tkDecls.h")
    pisitools.remove("/usr/include/tk-private/generic/tkPlatDecls.h")

    # Remove tmp path from tclConfig.sh
    pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(),
                    "%s/unix" % get.curDIR(), "/usr/lib/")
    pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(),
                    "%s" % get.curDIR(), "/usr/include/tk-private")

    pisitools.dosym("/usr/bin/wish8.5", "/usr/bin/wish")

    pisitools.dodoc("ChangeLog", "changes", "license.terms", "README")
Esempio n. 2
0
def addFormat(parameters):
    '''Add format files'''
    if not os.path.isdir("%s/texmf/fmtutil/" % get.curDIR()):
        makedirs("%s/texmf/fmtutil/" % get.curDIR())
    if not os.path.isfile("%s/texmf/fmtutil/format.%s.cnf" % (get.curDIR(),get.srcNAME())):
        cnf_file = open("%s/texmf/fmtutil/format.%s.cnf" % (get.curDIR(),get.srcNAME()), "w")
        cnf_file.write("# Generated for %s by actionsapi/texlivemodules.py\n" % get.srcNAME())
        cnf_file.close()

    # TODO: Use regex for code simplification
    parameters = " ".join(parameters.split())   # Removing white-space characters
    parameters = shlex.split(parameters)      # Split parameters until the value "option"
    para_dict = {}
    for option in parameters:
        pair = option.strip()                   # Remove whitespaces before "options" value
        pair = pair.split("=",1)                # The value "options" may have multiple "=", thus split just one time
        if len(pair) == 2:                      # The list may contain values that are not pair
            para_dict[pair[0]] = pair[1]
            if pair[0] == "patterns" and pair[1] == '':
                para_dict["patterns"] = '-'     # Specified in the texlive-module.eclass
            elif not pair[0] == 'patterns':
                para_dict["patterns"] = '-'

    cnf_file = open('%s/texmf/fmtutil/format.%s.cnf' % (get.curDIR(),get.srcNAME()), 'a')
    cnf_file.write("%s\t%s\t%s\t%s\n" % (para_dict["name"], para_dict["engine"], para_dict["patterns"], para_dict["options"]))
    cnf_file.close()
Esempio n. 3
0
def addLanguageDef(parameter):
    '''Create language.*.def files'''
    parameter = parameter.split()
    para_dict = {}
    for option in parameter:
        pair = option.split("=")
        if len(
                pair
        ) == 2:  #That's just a caution, the pair should have two items, not more not less
            para_dict[pair[0]] = pair[1]

    if "lefthyphenmin" in para_dict and not para_dict["lefthyphenmin"]:
        para_dict["lefthyphenmin"] = "2"
    if "righthyphenmin" in para_dict and not para_dict["righthyphenmin"]:
        para_dict["righthyphenmin"] = "3"

    language_def = open('%s/language.%s.def' % (get.curDIR(), get.srcNAME()),
                        'a')
    language_def.write(
        "\\addlanguage{%s}{%s}{}{%s}{%s}\n" %
        (para_dict["name"], para_dict["file"], para_dict["lefthyphenmin"],
         para_dict["righthyphenmin"]))
    language_def.close()

    if "synonyms" in para_dict:
        language_def = open(
            '%s/language.%s.def' % (get.curDIR(), get.srcNAME()), 'a')
        language_def.write(
            "\\addlanguage{%s}{%s}{}{%s}{%s}\n" %
            (para_dict["synonyms"], para_dict["file"],
             para_dict["lefthyphenmin"], para_dict["righthyphenmin"]))
        language_def.close()
Esempio n. 4
0
def install():
    crosstools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Collect private headers, 3rd party apps like Tile depends on this
    shelltools.cd("..")
    pisitools.dodir("/usr/include/tcl-private/generic")
    pisitools.dodir("/usr/include/tcl-private/unix")
    shelltools.copy("unix/*.h","%s/usr/include/tcl-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h", "%s/usr/include/tcl-private/generic" % get.installDIR())

    # Remove duplicated headers
    pisitools.remove("/usr/include/tcl-private/generic/tcl.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclDecls.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclPlatDecls.h")

    # Expect package needs these symlinks
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixPort.h","/usr/include/tcl-private/generic/tclUnixPort.h")
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixThrd.h","/usr/include/tcl-private/generic/tclUnixThrd.h")

    # Remove tmp path from tclConfig.sh
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),"%s/unix" % get.curDIR() ,"/usr/lib/")
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),"%s" % get.curDIR() ,"/usr/include/tcl-private")

    # Some apps need compat headers
    pisitools.dodir("/usr/include/tcl-private/compat")
    shelltools.copy("compat/*.h", "%s/usr/include/tcl-private/compat" % get.installDIR())

    pisitools.dosym("/usr/bin/tclsh8.5","/usr/bin/tclsh")

    pisitools.dodoc("ChangeLog","changes","license.terms","README")
Esempio n. 5
0
def install():
    shelltools.system("make DESTDIR=%s install" % get.installDIR())

    # Collect private headers, 3rd party apps like Tile depends on this
    shelltools.cd("..")
    pisitools.dodir("/usr/include/tcl-private/generic")
    pisitools.dodir("/usr/include/tcl-private/unix")
    shelltools.copy("unix/*.h",
                    "%s/usr/include/tcl-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h",
                    "%s/usr/include/tcl-private/generic" % get.installDIR())

    # Remove duplicated headers
    pisitools.remove("/usr/include/tcl-private/generic/tcl.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclDecls.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclPlatDecls.h")

    # Expect package needs these symlinks
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixPort.h",
                    "/usr/include/tcl-private/generic/tclUnixPort.h")
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixThrd.h",
                    "/usr/include/tcl-private/generic/tclUnixThrd.h")

    # Remove tmp path from tclConfig.sh
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),
                    "%s/unix" % get.curDIR(), "/usr/lib/")
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),
                    "%s" % get.curDIR(), "/usr/include/tcl-private")

    # Some apps need compat headers
    pisitools.dodir("/usr/include/tcl-private/compat")
    shelltools.copy("compat/*.h",
                    "%s/usr/include/tcl-private/compat" % get.installDIR())

    pisitools.dosym("/usr/bin/tclsh8.5", "/usr/bin/tclsh")
Esempio n. 6
0
def install():
    shelltools.cd("unix")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Collect private headers, 3rd party apps like Tile depends on this
    shelltools.cd("..")
    pisitools.dodir("/usr/include/tcl-private/generic")
    pisitools.dodir("/usr/include/tcl-private/unix")
    shelltools.copy("unix/*.h","%s/usr/include/tcl-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h", "%s/usr/include/tcl-private/generic" % get.installDIR())

    # Remove duplicated headers
    pisitools.remove("/usr/include/tcl-private/generic/tcl.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclDecls.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclPlatDecls.h")

    # Remove man file sqlite paket çakışması için silindi.
    #pisitools.remove("/usr/share/man/mann/sqlite3.n")

    # Expect package needs these symlinks
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixPort.h","/usr/include/tcl-private/generic/tclUnixPort.h")
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixThrd.h","/usr/include/tcl-private/generic/tclUnixThrd.h")

    # Remove tmp path from tclConfig.sh
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),"%s/unix" % get.curDIR() ,"/usr/lib/")
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),"%s" % get.curDIR() ,"/usr/include/tcl-private")

    # Some apps need compat headers
    pisitools.dodir("/usr/include/tcl-private/compat")
    shelltools.copy("compat/*.h", "%s/usr/include/tcl-private/compat" % get.installDIR())

    pisitools.dosym("/usr/bin/tclsh8.6","/usr/bin/tclsh")

    pisitools.dodoc("ChangeLog","changes","license.terms","README")
Esempio n. 7
0
def install():

    # Get plugins list
    plugins = shelltools.ls(".")

    # Install the firmware files
    for pl in plugins:
        files = shelltools.ls("%s/usr/share/iscan" % pl)
        if len(files) > 0:
            pisitools.insinto("/usr/share/iscan",
                              "%s/usr/share/iscan/%s" % (pl, files[0]))

    # Install the libraries
    libs = [
        f.rpartition(get.curDIR() + '/')[-1]
        for f in glob.glob("%s/*/usr/lib/iscan/*" % get.curDIR())
        if not shelltools.isLink(f)
    ]

    for l in libs:
        pisitools.dolib_so(l, "/usr/lib/iscan")
        pisitools.dosym(shelltools.baseName(l),
                        "/%s" % l.split("/", 1)[1].split(".")[0] + '.so')
        pisitools.dosym(shelltools.baseName(l),
                        "/%s" % l.split("/", 1)[1].split(".")[0] + '.so.2')

    # Dodoc one of the plugins doc files, it's all same.
    for d in shelltools.ls(
            "iscan-plugin-gt-f520/usr/share/doc/iscan-plugin-gt-f520-1.0.0"):
        pisitools.dodoc(
            "iscan-plugin-gt-f520/usr/share/doc/iscan-plugin-gt-f520-1.0.0/%s"
            % d)
Esempio n. 8
0
def install():
    define_global()

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

    # Correct Makefile's
    pisitools.dosed("examples/Makefile", get.curDIR() , QTBASE)
    for file in shelltools.ls("examples/*/Makefile"):
        pisitools.dosed(file, get.curDIR() , QTBASE)

    pisitools.dosed("tutorial/Makefile", get.curDIR() , QTBASE)
    for file in shelltools.ls("tutorial/*/Makefile"):
        pisitools.dosed(file, get.curDIR() , QTBASE)

    # Move tutorial and example into QTBASE
    pisitools.insinto(QTBASE, "tutorial")
    pisitools.insinto(QTBASE, "examples")

    # Correct .qmake.cache
    pisitools.insinto(QTBASE, ".qmake.cache")
    pisitools.dosed("%s/usr/qt/3/.qmake.cache" % get.installDIR(), get.curDIR() , QTBASE)

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

    # No designer prl files
    pisitools.remove("/usr/qt/3/lib/libdesignercore.prl")
    pisitools.remove("/usr/qt/3/lib/libeditor.prl")

    # This symlink was pointing to a nonsense location in /var/pisi, causing
    # pisi to bork about the package integrity.
    pisitools.remove("/usr/qt/3/mkspecs/linux-g++/linux-g++")

    # Symlink pkgconfig file
    pisitools.dosym("/usr/qt/3/lib/pkgconfig/qt-mt.pc","/usr/lib/pkgconfig/qt-mt.pc")
Esempio n. 9
0
def build():
    shelltools.system("unset QMAKESPEC")
    shelltools.export("QT5DIR", get.curDIR())
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    autotools.make()
Esempio n. 10
0
def install():
    define_global()

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

    # Correct Makefile's
    pisitools.dosed("examples/Makefile", get.curDIR(), QTBASE)
    for file in shelltools.ls("examples/*/Makefile"):
        pisitools.dosed(file, get.curDIR(), QTBASE)

    pisitools.dosed("tutorial/Makefile", get.curDIR(), QTBASE)
    for file in shelltools.ls("tutorial/*/Makefile"):
        pisitools.dosed(file, get.curDIR(), QTBASE)

    # Move tutorial and example into QTBASE
    pisitools.insinto(QTBASE, "tutorial")
    pisitools.insinto(QTBASE, "examples")

    # Correct .qmake.cache
    pisitools.insinto(QTBASE, ".qmake.cache")
    pisitools.dosed("%s/usr/qt/3/.qmake.cache" % get.installDIR(),
                    get.curDIR(), QTBASE)

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

    # No designer prl files
    pisitools.remove("/usr/qt/3/lib/libdesignercore.prl")
    pisitools.remove("/usr/qt/3/lib/libeditor.prl")

    # Symlink pkgconfig file
    pisitools.dosym("/usr/qt/3/lib/pkgconfig/qt-mt.pc",
                    "/usr/lib/pkgconfig/qt-mt.pc")
Esempio n. 11
0
def install():
    shelltools.system("unset QMAKESPEC")
    shelltools.export("QT5DIR", get.curDIR())
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    autotools.rawInstall("INSTALL_ROOT=%s" % get.installDIR())
Esempio n. 12
0
def install():
    define_global()

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

    # Correct Makefile's
    pisitools.dosed("examples/Makefile", get.curDIR() , QTBASE)
    for file in shelltools.ls("examples/*/Makefile"):
        pisitools.dosed(file, get.curDIR() , QTBASE)

    pisitools.dosed("tutorial/Makefile", get.curDIR() , QTBASE)
    for file in shelltools.ls("tutorial/*/Makefile"):
        pisitools.dosed(file, get.curDIR() , QTBASE)

    # Move tutorial and example into QTBASE
    pisitools.insinto(QTBASE, "tutorial")
    pisitools.insinto(QTBASE, "examples")

    # Correct .qmake.cache
    pisitools.insinto(QTBASE, ".qmake.cache")
    pisitools.dosed("%s/usr/qt/3/.qmake.cache" % get.installDIR(), get.curDIR() , QTBASE)

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

    # No designer prl files
    pisitools.remove("/usr/qt/3/lib/libdesignercore.prl")
    pisitools.remove("/usr/qt/3/lib/libeditor.prl")

    # This symlink was pointing to a nonsense location in /var/pisi, causing
    # pisi to bork about the package integrity.
    pisitools.remove("/usr/qt/3/mkspecs/linux-g++/linux-g++")

    # Symlink pkgconfig file
    pisitools.dosym("/usr/qt/3/lib/pkgconfig/qt-mt.pc","/usr/lib/pkgconfig/qt-mt.pc")
Esempio n. 13
0
def install():
    define_global()

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

    # Correct Makefile's
    pisitools.dosed("examples/Makefile", get.curDIR() , QTBASE)
    for file in shelltools.ls("examples/*/Makefile"):
        pisitools.dosed(file, get.curDIR() , QTBASE)

    pisitools.dosed("tutorial/Makefile", get.curDIR() , QTBASE)
    for file in shelltools.ls("tutorial/*/Makefile"):
        pisitools.dosed(file, get.curDIR() , QTBASE)

    # Move tutorial and example into QTBASE
    pisitools.insinto(QTBASE, "tutorial")
    pisitools.insinto(QTBASE, "examples")

    # Correct .qmake.cache
    pisitools.insinto(QTBASE, ".qmake.cache")
    pisitools.dosed("%s/usr/qt/3/.qmake.cache" % get.installDIR(), get.curDIR() , QTBASE)

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

    # No designer prl files
    pisitools.remove("/usr/qt/3/lib/libdesignercore.prl")
    pisitools.remove("/usr/qt/3/lib/libqassistantclient.prl")
    pisitools.remove("/usr/qt/3/lib/libeditor.prl")
Esempio n. 14
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dosed("%s/usr/share/man/man1/*" % get.installDIR(), get.curDIR(),
                    "/usr/share/cmake-%s" % majorVersion)
    pisitools.dosed("%s/usr/share/doc/%s/*" % (get.installDIR(), get.srcTAG()),
                    get.curDIR(), "/usr/share/cmake-%s" % majorVersion)
Esempio n. 15
0
def buildFormatFiles():
    '''Build format files'''
    if os.path.isdir("%s/texmf/fmtutil/" % get.curDIR()):
        makedirs("texmf-var/web2c")
        for formatfile in ls("%s/texmf/fmtutil/format*.cnf" % get.curDIR()):
            ctx.ui.info(_('Building format file %s') % formatfile)
            export("TEXMFHOME", "texmf:texmf-dist")
            system("fmtutil --cnffile %s --fmtdir texmf-var/web2c --all" % formatfile)
Esempio n. 16
0
def build():
    shelltools.export("VARTEXFONTS", "%s/fonts" % get.curDIR())
    autotools.make()
    shelltools.export("VARTEXFONTS", "%s/fonts" % get.curDIR())
    shelltools.export("TEXMFHOME", "%s" % get.srcDIR())
    shelltools.system(
        "env -u TEXINPUTS fmtutil --cnffile texmf/fmtutil/format.jadetex.cnf --fmtdir texmf-var/web2c --all"
    )
Esempio n. 17
0
def install():
    autotools.rawInstall("DESTDIR=%s install" % get.installDIR())

    pisitools.dosed("%s/usr/share/man/man1/*" % get.installDIR(),
                    "%s" % get.curDIR(), "/usr/share/CMake")
    pisitools.dosed(
        "%s/usr/share/doc/cmake-%s-%s/*" %
        (get.installDIR(), get.srcVERSION(), get.srcRELEASE()),
        "%s" % get.curDIR(), "/usr/share/CMake")
Esempio n. 18
0
def install():
    #evil e2fsprogs makefile -- I'll get you!
    autotools.rawInstall("DESTDIR=%s libdir=/zapme" % get.installDIR())
    pisitools.removeDir("/zapme")

    autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-libs")

    pisitools.dodoc("ChangeLog", "README", "RELEASE-NOTES", "SHLIBS",
                    "e2fsck/ChangeLog", "e2fsck/CHANGES")

    pisitools.domove("/usr/lib/", "/lib")
    pisitools.domove("/lib/*.a", "/usr/lib")

    for file in shelltools.ls("%s/usr/lib/*.a" % get.installDIR()):
        destination = file.replace(get.installDIR(), "")
        destination = destination.split("/")[3]
        # create new ldscript
        libtools.gen_usr_ldscript(destination.replace(".a", ".so"))

    # normalize evil symlinks
    for link in shelltools.ls("%s/lib/*" % get.installDIR()):
        if shelltools.isLink(link) and not shelltools.can_access_file(
                shelltools.realPath(link)):
            source = shelltools.baseName(shelltools.realPath(link))
            link = link.replace(get.installDIR(), "")
            # remove old link
            pisitools.remove(link)
            # create new link
            pisitools.dosym(source, link)

    pisitools.domove("/usr/sbin/", "/sbin")

    pisitools.domove("/usr/bin/lsattr", "/bin")
    pisitools.domove("/usr/bin/chattr", "/bin")
    pisitools.domove("/usr/bin/uuidgen", "/bin")

    pisitools.domove("/sbin/mklost+found", "/usr/sbin")

    # time to convert hard links/duplicates to symbolic links
    pisitools.remove("/sbin/fsck.ext2")
    pisitools.dosym("/sbin/e2fsck", "/sbin/fsck.ext2")
    pisitools.remove("/sbin/fsck.ext3")
    pisitools.dosym("/sbin/e2fsck", "/sbin/fsck.ext3")

    pisitools.remove("/sbin/mkfs.ext2")
    pisitools.dosym("/sbin/mke2fs", "/sbin/mkfs.ext2")
    pisitools.remove("/sbin/mkfs.ext3")
    pisitools.dosym("/sbin/mke2fs", "/sbin/mkfs.ext3")

    # copy compile_et & mk_cmds
    shelltools.copy("%s/lib/et/compile_et" % get.curDIR(),
                    "%s/bin/" % get.installDIR())
    shelltools.copy("%s/lib/ss/mk_cmds" % get.curDIR(),
                    "%s/bin/" % get.installDIR())

    # Symlink com_err.h
    pisitools.dosym("/usr/include/et/com_err.h", "/usr/include/com_err.h")
Esempio n. 19
0
def setup():
    shelltools.unlink("py-compile" )
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure("--enable-thread \
                         --disable-docs")

    shelltools.touch("%s/style.css" % get.curDIR())
    pisitools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR())
Esempio n. 20
0
def install():
    shelltools.cd("%s/libpit" % get.curDIR())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")    
    shelltools.cd("%s/heimdall" % get.curDIR())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")
    shelltools.cd("%s/heimdall-frontend" % get.curDIR())   
    pisitools.insinto("/usr/bin","../Linux/heimdall-frontend")
Esempio n. 21
0
def buildFormatFiles():
    '''Build format files'''
    if os.path.isdir("%s/texmf/fmtutil/" % get.curDIR()):
        for formatfile in ls("%s/texmf/fmtutil/format*.cnf" % get.curDIR()):
            makedirs("%s/texmf-var/web2c/" % get.curDIR())
            ctx.ui.info(_('Building format file %s') % formatfile)
            export("TEXMFHOME", "%s/texmf:/%stexmf-dist:%s/texmf-var" %(get.curDIR(), get.curDIR(), get.curDIR() ))
            export("VARTEXFONTS", "fonts")
            system("env -u TEXINPUTS fmtutil --cnffile %s --fmtdir texmf-var/web2c --all" % formatfile)
Esempio n. 22
0
def setup():
    for f in ("NEWS", "AUTHORS", "README", "ChangeLog"):
        shelltools.touch("%s/%s" % (get.curDIR(), f))

    shelltools.chmod("%s/autogen.sh" % get.curDIR())
    shelltools.system("./autogen.sh")

    autotools.configure()
    pisitools.dosed("Makefile", "\-g.*\-Os ", "")
Esempio n. 23
0
def install():
    shelltools.cd("%s/libpit" % get.curDIR())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")
    shelltools.cd("%s/heimdall" % get.curDIR())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")
    shelltools.cd("%s/heimdall-frontend" % get.curDIR())
    pisitools.insinto("/usr/bin", "../Linux/heimdall-frontend")
Esempio n. 24
0
def installDocFiles():
    '''Installing docs'''
    if not "documentation" in get.srcNAME():
        if os.path.isdir("%s/texmf-doc" % get.curDIR()):
            copytree("texmf-doc", "%s/usr/share/texmf-doc" % get.installDIR())
    else:
        for removedir in ["texmf", "texmf-dist"]:
            if os.path.isdir("%s/%s/doc/" % (get.curDIR(), removedir)):
                removeDir("/usr/share/%s/doc" % removedir )
Esempio n. 25
0
def installDocFiles():
    '''Installing docs'''
    if "documentation" in get.srcNAME():
        if os.path.isdir("%s/texmf-doc" % get.curDIR()):
            copytree("texmf-doc", "%s/usr/share/texmf-doc" % get.installDIR())
    else:
        for removedir in ["texmf", "texmf-dist"]:
            if os.path.isdir("%s/%s/doc/" % (get.curDIR(), removedir)):
                shutil.rmtree("%s/%s/doc" % (get.curDIR(), removedir))
Esempio n. 26
0
def setup():
    pisitools.dosym("configure.guess", "config.guess")
    pisitools.dosym("configure.sub", "config.sub")
    libtools.gnuconfig_update()
    pisitools.remove("config.sub")
    pisitools.remove("config.guess")
    
    shelltools.export("CFLAGS", "%s -I%s/interface" % (get.CFLAGS(), get.curDIR()))
    shelltools.export("CXXLAGS", "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR()))
    autotools.configure()
Esempio n. 27
0
def setup():
    shelltools.cd("%s/libpit" % get.curDIR())
    autotools.configure("--prefix=/usr")
    shelltools.cd("..")
    shelltools.cd("%s/heimdall" % get.curDIR())
    autotools.configure("--prefix=/usr")
    shelltools.cd("..")
    shelltools.cd("%s/heimdall-frontend" % get.curDIR())
    autotools.system("qmake .")
    shelltools.cd("..")
Esempio n. 28
0
def build():
    shelltools.cd("%s/libpit" % get.curDIR())
    autotools.make()
    shelltools.cd("..")
    shelltools.cd("%s/heimdall" % get.curDIR())
    autotools.make()
    shelltools.cd("..")
    shelltools.cd("%s/heimdall-frontend" % get.curDIR())
    autotools.make()
    shelltools.cd("..")
Esempio n. 29
0
def build():
    shelltools.cd("%s/libpit" % get.curDIR())
    autotools.make()
    shelltools.cd("..")
    shelltools.cd("%s/heimdall" % get.curDIR())
    autotools.make()
    shelltools.cd("..")
    shelltools.cd("%s/heimdall-frontend" % get.curDIR())
    autotools.make()
    shelltools.cd("..")
Esempio n. 30
0
def setup():
    shelltools.cd("%s/libpit" % get.curDIR())
    autotools.configure("--prefix=/usr")
    shelltools.cd("..")
    shelltools.cd("%s/heimdall" % get.curDIR())
    autotools.configure("--prefix=/usr")
    shelltools.cd("..")
    shelltools.cd("%s/heimdall-frontend" % get.curDIR())
    autotools.system("qmake .")
    shelltools.cd("..")
Esempio n. 31
0
def build():
    autotools.make("%s -j1 all" % MAKE_FLAGS)

    # Build tests
    autotools.make("%s -C test all DIET=\"%s/bin-*/diet\" -k" % (MAKE_FLAGS, get.curDIR()))
    autotools.make("%s -C test/inet all DIET=\"%s/bin-*/diet\"" % (MAKE_FLAGS, get.curDIR()))

    # Symlink all to the fedora wrapper test script
    for t in ("test", "test/stdio", "test/inet", "test/stdlib", "test/dirent", "test/string", "test/time"):
        shelltools.sym("%s/runtests-X.sh" % get.curDIR(), "%s/%s/runtests-X.sh" % (get.curDIR(), t))
Esempio n. 32
0
def build():
    host_compiler = "%s/sbcl-binary/sbcl --core %s/sbcl-binary/sbcl.core \
                                         --noinform \
                                         --end-runtime-options \
                                         --disable-debugger \
                                         --no-sysinit \
                                         --no-userinit" % (get.curDIR(),
                                                           get.curDIR())
    shelltools.system("sh make.sh '%s'" % host_compiler)
    shelltools.system("cd doc/manual && make html")
Esempio n. 33
0
def generateConfigFiles():
    '''Generate config files'''
    for tlpobjfile in ls("%s/tlpkg/tlpobj/*" % get.curDIR()):
        jobsfile=open(tlpobjfile, "r")
        for line in jobsfile.readlines():
            splitline = line.split(" ", 2)
            if splitline[0] == "execute":
                command = splitline[1]
                parameter = splitline[2].strip()
                if command == "addMap":
                    echo("%s/%s.cfg" % (get.curDIR(), get.srcNAME()), "Map %s" % parameter)
                    ctx.ui.info(_('Map %s is added to %s/%s.cfg') % (parameter, get.curDIR(), get.srcNAME()))
                elif command == "addMixedMap":
                    echo("%s/%s.cfg" % (get.curDIR(), get.srcNAME()), "MixedMap %s" % parameter)
                    ctx.ui.info(_('MixedMap %s is added to %s/%s.cfg') % (parameter, get.curDIR(), get.srcNAME()))
                elif command == "addDvipsMap":
                    echo("%s/%s-config.ps" % (get.curDIR(), get.srcNAME()), "p +%s" % parameter)
                    ctx.ui.info(_('p +%s is added to %s/%s-config.ps') % (parameter, get.curDIR(), get.srcNAME()))
                elif command == "addDvipdfmMap":
                    echo("%s/%s-config" % (get.curDIR(), get.srcNAME()), "f %s" % parameter)
                    ctx.ui.info(_('f %s is added to %s/%s-config') % (parameter, get.curDIR(), get.srcNAME()))
                elif command == "AddHyphen":
                    makeLanguagesDefDatLines(parameter)
                elif command == "BuildFormat":
                    ctx.ui.info(_('Language file  %s  already generated.') % parameter)
                elif command == "BuildLanguageDat":
                    ctx.ui.info(_('No rule to proccess %s. Please file a bug.') % command)
        jobsfile.close()
Esempio n. 34
0
def build():
    #shelltools.cd("linux-firmware")
    
    # Processing amd-ucode...
    shelltools.system("mkdir -p kernel/x86/microcode")
    shelltools.system("cat " + get.curDIR() + "/amd-ucode/microcode_amd*.bin > kernel/x86/microcode/AuthenticAMD.bin")
    shelltools.system("touch kernel/x86/microcode/AuthenticAMD.bin")
    shelltools.system("echo kernel/x86/microcode/AuthenticAMD.bin | cpio -o -H newc -R 0:0 > amd-ucode.img")
    shelltools.chmod(get.curDIR() + "/amd-ucode.img", 0644)
    shelltools.chmod(get.curDIR() + "/LICENSE.amd-ucode", 0644)

    autotools.make()
Esempio n. 35
0
def install():
    # evil e2fsprogs makefile -- I'll get you!
    autotools.rawInstall("DESTDIR=%s libdir=/zapme" % get.installDIR())
    pisitools.removeDir("/zapme")

    autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-libs")

    pisitools.dodoc("ChangeLog", "README", "RELEASE-NOTES", "SHLIBS", "e2fsck/ChangeLog", "e2fsck/CHANGES")

    pisitools.domove("/usr/lib/", "/lib")
    pisitools.domove("/lib/*.a", "/usr/lib")

    for file in shelltools.ls("%s/usr/lib/*.a" % get.installDIR()):
        destination = file.replace(get.installDIR(), "")
        destination = destination.split("/")[3]
        # create new ldscript
        libtools.gen_usr_ldscript(destination.replace(".a", ".so"))

    # normalize evil symlinks
    for link in shelltools.ls("%s/lib/*" % get.installDIR()):
        if shelltools.isLink(link) and not shelltools.can_access_file(shelltools.realPath(link)):
            source = shelltools.baseName(shelltools.realPath(link))
            link = link.replace(get.installDIR(), "")
            # remove old link
            pisitools.remove(link)
            # create new link
            pisitools.dosym(source, link)

    pisitools.domove("/usr/sbin/", "/sbin")

    pisitools.domove("/usr/bin/lsattr", "/bin")
    pisitools.domove("/usr/bin/chattr", "/bin")
    pisitools.domove("/usr/bin/uuidgen", "/bin")

    pisitools.domove("/sbin/mklost+found", "/usr/sbin")

    # time to convert hard links/duplicates to symbolic links
    pisitools.remove("/sbin/fsck.ext2")
    pisitools.dosym("/sbin/e2fsck", "/sbin/fsck.ext2")
    pisitools.remove("/sbin/fsck.ext3")
    pisitools.dosym("/sbin/e2fsck", "/sbin/fsck.ext3")

    pisitools.remove("/sbin/mkfs.ext2")
    pisitools.dosym("/sbin/mke2fs", "/sbin/mkfs.ext2")
    pisitools.remove("/sbin/mkfs.ext3")
    pisitools.dosym("/sbin/mke2fs", "/sbin/mkfs.ext3")

    # copy compile_et & mk_cmds
    shelltools.copy("%s/lib/et/compile_et" % get.curDIR(), "%s/bin/" % get.installDIR())
    shelltools.copy("%s/lib/ss/mk_cmds" % get.curDIR(), "%s/bin/" % get.installDIR())

    # Symlink com_err.h
    pisitools.dosym("/usr/include/et/com_err.h", "/usr/include/com_err.h")
Esempio n. 36
0
def setup():
    shelltools.unlink("py-compile" )
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure("--prefix=/usr \
                         --enable-thread \
                         --enable-numpy")

    shelltools.touch("%s/style.css" % get.curDIR())
    pisitools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR())

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Esempio n. 37
0
def setup():
    pisitools.dosym("configure.guess", "config.guess")
    pisitools.dosym("configure.sub", "config.sub")
    libtools.gnuconfig_update()
    pisitools.remove("config.sub")
    pisitools.remove("config.guess")

    shelltools.export("CFLAGS",
                      "%s -I%s/interface" % (get.CFLAGS(), get.curDIR()))
    shelltools.export("CXXLAGS",
                      "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR()))
    autotools.configure()
Esempio n. 38
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure("--prefix=/usr \
                         --enable-thread \
                         --enable-numpy")

    shelltools.touch("%s/style.css" % get.curDIR())
    pisitools.dosed("docs/Makefile", "CSS_FILES = .*",
                    "CSS_FILES = %s/style.css" % get.curDIR())

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Esempio n. 39
0
def build():
    autotools.make('CC="%s" \
                    CFLAGS="%s" \
                    LDFLAGS="-L%s/pbm -L%s/pgm -L%s/pnm -L%s/ppm" \
                    LADD="-lm" \
                    JPEGINC_DIR=/usr/include \
                    PNGINC_DIR=/usr/include \
                    TIFFINC_DIR=/usr/include \
                    JPEGLIB_DIR=/usr/lib \
                    PNGLIB_DIR=/usr/lib \
                    TIFFLIB_DIR=/usr/lib \
                    LINUXSVGALIB="NONE" \
                    X11LIB=/usr/lib/libX11.so \
                    XML2LIBS="NONE" -j1' % (get.CC(),get.CFLAGS(),get.curDIR(),get.curDIR(),get.curDIR(),get.curDIR()))
Esempio n. 40
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    shelltools.move("configure.guess", "config.guess")
    shelltools.move("configure.sub", "config.sub")

    shelltools.export("CFLAGS", "%s -I%s/interface" % (get.CFLAGS(), get.curDIR()))
    shelltools.export("CXXLAGS", "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR()))

    autotools.autoconf()
    libtools.gnuconfig_update()
    autotools.configure()
Esempio n. 41
0
def build():
    autotools.make()

    # Rebuild gmo catalogs
    shelltools.cd("%s/po" % get.curDIR())
    autotools.make("update-gmo")
    shelltools.cd("..")
Esempio n. 42
0
def setup():
    libtools.libtoolize("--force")
    autotools.aclocal()
    autotools.automake("--add-missing")
    autotools.autoconf()

    shelltools.makedirs("%s/temp" % get.curDIR())
    shelltools.export("VARTEXFONTS", "%s/temp" % get.curDIR())

    autotools.configure("--disable-doc \
                        --enable-ncurses \
                        --enable-slang \
                        --enable-imlib2 \
                        --enable-x11 \
                        --with-x \
                        --x-libraries=/usr/lib")
Esempio n. 43
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")
Esempio n. 44
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("CFLAGS", get.CFLAGS())
    shelltools.export("CXXLAGS", get.CXXFLAGS())

    # Remove shipped glib
    shelltools.system("rm -r %s/eglib/*.[ch]" % get.curDIR())

    autotools.autoreconf("-fi")

    autotools.configure("--enable-glib \
                         --enable-network \
                         --enable-serial \
                         --enable-input \
                         --enable-audio \
                         --enable-gstreamer \
                         --enable-alsa \
                         --enable-usb \
                         --enable-netlink \
                         --enable-tools \
                         --enable-bccmd \
                         --enable-hid2hci \
                         --enable-dfutool \
                         --enable-hidd \
                         --enable-dund \
                         --enable-pand \
                         --enable-cups \
                         --enable-manpages \
                         --enable-configfiles \
                         --enable-test \
                         --disable-initscripts \
                         --disable-pcmciarules \
                         --localstatedir=/var")
Esempio n. 45
0
def build():
    autotools.make()

    # Build v4l drivers
    shelltools.copy("Module.symvers", "v4l/")
    autotools.make("-C /lib/modules/%s/build M=%s/v4l V=1 modules" %
                   (KDIR, get.curDIR()))
Esempio n. 46
0
def setup():
    pisitools.dosed("etc/faxsetup.sh.in", "ALIASES=/usr/lib/aliases", "ALIASES=/etc/mail/aliases")
    autotools.rawConfigure("--nointeractive \
                            --with-DIR_BIN=/usr/bin \
                            --with-DIR_SBIN=/usr/sbin \
                            --with-DIR_LIB=/usr/lib \
                            --with-DIR_LIBEXEC=/usr/sbin \
                            --with-DIR_LIBDATA=/usr/lib/fax \
                            --with-DIR_LOCALE=/usr/share/locale \
                            --with-DIR_LOCKS=/var/lock \
                            --with-DIR_MAN=/usr/share/man \
                            --with-DIR_SPOOL=/var/spool/fax \
                            --with-FAXGID=dialout \
                            --with-FAXUID=dialout \
                            --with-DIR_HTML=/usr/share/doc/%s/html \
                            --with-DIR_CGI=%s \
                            --with-HTML=yes \
                            --with-PATH_DPSRIP=/var/spool/fax/bin/ps2fax \
                            --with-PATH_IMPRIP=\"\" \
                            --with-SYSVINIT=no \
                            --with-FONTMAP=/usr/share/fonts/default/ghostscript \
                            --with-LIBTIFF=\"-ltiff -ljpeg -lz\" \
                            --with-OPTIMIZER=\"%s\" \
                            --with-DSO=auto \
                            --with-REGEX=yes \
                            --with-PATH_EGETTY=/bin/false \
                            --with-PATH_VGETTY=/bin/false \
                            --with-PAGESIZE=A4" % (get.srcNAME(), get.curDIR(), get.CFLAGS()))
Esempio n. 47
0
def installConfigFiles():
    '''Installing config files'''
    if can_access_file("%s/%s.cfg" % (get.curDIR(), get.srcNAME())):
        insinto("/etc/texmf/updmap.d", "%s/%s.cfg" % ( get.curDIR(), get.srcNAME()))

    if can_access_file("%s/%s-config.ps" % (get.curDIR(), get.srcNAME())):
        insinto("/etc/texmf/dvips.d", "%s/%s-config.ps" % (get.curDIR(), get.srcNAME()))

    if can_access_file("%s/%s-config" % (get.curDIR(), get.srcNAME())):
        insinto("/etc/texmf/dvipdfm/config", "%s/%s-config" % (get.curDIR(), get.srcNAME()))

    if can_access_file("%s/language.%s.def" % (get.curDIR(), get.srcNAME())):
        insinto("/etc/texmf/language.def.d", "%s/language.%s.def" % (get.curDIR(), get.srcNAME()))

    if can_access_file("%s/language.%s.dat" % (get.curDIR(), get.srcNAME())):
        insinto( "/etc/texmf/language.dat.d", "%s/language.%s.dat" % (get.curDIR(), get.srcNAME()))
Esempio n. 48
0
def setup():
    cmaketools.configure("-DCMAKE_SKIP_BUILD_RPATH=1 \
                          -DLIB_INSTALL_DIR=/usr/lib \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_CACHEFILE_DIR=%s/build \
                          -DINCLUDE_INSTALL_DIR=/usr/include \
                          -DVERSION=%s" % (get.curDIR(), get.srcVERSION()))
Esempio n. 49
0
def setup():
    autotools.rawConfigure("--nointeractive \
                            --with-DIR_BIN=/usr/bin \
                            --with-DIR_SBIN=/usr/sbin \
                            --with-DIR_LIB=/usr/lib \
                            --with-DIR_LIBEXEC=/usr/sbin \
                            --with-DIR_LIBDATA=/usr/lib/fax \
                            --with-DIR_LOCKS=/var/lock \
                            --with-DIR_MAN=/usr/share/man \
                            --with-DIR_SPOOL=/var/spool/fax \
                            --with-FAXGID=dialout \
                            --with-FAXUID=dialout \
                            --with-DIR_HTML=/usr/share/doc/%s/html \
                            --with-DIR_CGI=%s \
                            --with-HTML=yes \
                            --with-PATH_DPSRIP=/var/spool/fax/bin/ps2fax \
                            --with-PATH_IMPRIP=\"\" \
                            --with-SYSVINIT=no \
                            --with-LIBTIFF=\"-ltiff -ljpeg -lz\" \
                            --with-OPTIMIZER=\"%s\" \
                            --with-DSO=auto \
                            --with-REGEX=yes \
                            --with-PATH_EGETTY=/bin/false \
                            --with-PATH_VGETTY=/bin/false \
                            --with-PAGESIZE=A4" % (get.srcTAG(), get.curDIR(), get.CFLAGS()))
Esempio n. 50
0
def build():
    autotools.make()
    #autotools.make("-C hda-emu")

    # Build v4l drivers
    shelltools.copy("Module.symvers", "v4l/")
    autotools.make("-C /lib/modules/%s/build M=%s/v4l V=1 modules" % (KDIR, get.curDIR()))
Esempio n. 51
0
def setup():
    cmaketools.configure("-DCMAKE_SKIP_BUILD_RPATH=1 \
                          -DLIB_INSTALL_DIR=/usr/lib \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_CACHEFILE_DIR=%s/build \
                          -DINCLUDE_INSTALL_DIR=/usr/include \
                          -DVERSION=%s" % (get.curDIR(), get.srcVERSION()))
Esempio n. 52
0
def createSymlinksFormat2Engines():
    '''Create symlinks from format to engines'''
    for formatfile in ls("%s/texmf/fmtutil/format*.cnf" % get.curDIR()):
        symfile = open(formatfile, "r")
        for line in symfile.readlines():
            if not line.startswith("#"):
                symbin = line.split(None)
                if "cont-" in symbin[0] or "metafun" in symbin[
                        0] or "mptopdf" in symbin[0]:
                    ctx.ui.info(
                        _('Symlink %s skipped (special case)') % symbin[0])
                elif "mf" in symbin[0]:
                    ctx.ui.info(
                        _('Symlink %s -> %s skipped (texlive-core takes care of it.'
                          ) % (symbin[0], symbin[1]))
                else:
                    if symbin[0] == symbin[1]:
                        ctx.ui.info(
                            _('Symlink %s -> %s skipped.') %
                            (symbin[0], symbin[1]))
                    elif can_access_file("%s/usr/bin/%s" %
                                         (get.installDIR(), symbin[0])):
                        ctx.ui.info(
                            _('Symlink %s skipped (file exists.)') % symbin[0])
                    else:
                        ctx.ui.info(
                            _('Making symlink from %s to %s') %
                            (symbin[0], symbin[1]))
                        dodir("/usr/bin")
                        sym(symbin[1],
                            "%s/usr/bin/%s" % (get.installDIR(), symbin[0]))
        symfile.close()
Esempio n. 53
0
def setup():
    # Google API key
    shelltools.echo("google_api_key",
                    "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y")
    pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR())
    pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key")
    pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS())

    # LOCALE
    shelltools.system("rm -rf langpack-ff/*/browser/defaults")
    if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir)
    for locale in locales:
        shelltools.system(
            "wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi"
            % (xpidir, ver, arch, locale))
        #shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale)
        shelltools.makedirs("langpack-ff")
        #shelltools.system("unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale))
        shelltools.system(
            "cp %s/%s.xpi langpack-ff/langpack-%[email protected]" %
            (xpidir, locale, locale))
        print "Replacing browser.properties for %s locale" % locale
        #shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale))
        shelltools.copy("browserconfig.properties",
                        "browser/branding/official/locales/")

    shelltools.makedirs(ObjDir)
    shelltools.cd(ObjDir)

    shelltools.system(
        "../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip"
    )
Esempio n. 54
0
def setup():
    shelltools.makedirs("%s/m4local" % get.curDIR())
    shelltools.export("AT_M4DIR", "m4extra")
    autotools.autoreconf("-fi")
    autotools.configure("--with-cups \
                         --with-foomatic \
                         --with-foomatic3 \
                         --with-ghostscript \
                         --with-escputil \
                         --with-readline \
                         --with-test \
                         --enable-cups-1_2-enhancements \
                         --enable-simplified-cups-ppds \
                         --enable-static-genppd \
                         --enable-epson \
                         --without-gimp \
                         --without-gimp2 \
                         --disable-rpath \
                         --disable-static \
                         --disable-testpattern \
                         --disable-translated-cups-ppds \
                         --disable-libgutenprintui \
                         --disable-libgutenprintui2 \
                         --disable-dependency-tracking \
                         --disable-nls")
Esempio n. 55
0
def setup():
    shelltools.touch("%s/ChangeLog" % get.curDIR())
    autotools.autoreconf("-fi")

    autotools.configure("--disable-static \
                         --disable-libQgpsmm \
                         --enable-dbus")
Esempio n. 56
0
def install():
    shelltools.export("PATH", "%s:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("BINDIR", "%s/usr/bin" % get.installDIR())
    shelltools.system("./jam0 install")

    pisitools.dohtml("Jam.html", "Jambase.html", "Jamfile.html")
    pisitools.dodoc("README", "RELNOTES", "Porting")