Пример #1
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Tar']
    bld.set_suffix('.tar.bz2')
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)
    target, source = stripinstallbuilder(target, source, env)
    #print target, source[0]
    return bld(env, target, source, TARFLAGS='-jc')
Пример #2
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Zip']
    bld.set_suffix('.zip')
    target, source = putintopackageroot(target,
                                        source,
                                        env,
                                        PACKAGEROOT,
                                        honor_install_location=0)
    return bld(env, target, source)
Пример #3
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Tar']
    bld.set_suffix('.tar.bz2')
    target, source = putintopackageroot(target,
                                        source,
                                        env,
                                        PACKAGEROOT,
                                        honor_install_location=0)
    return bld(env, target, source, TARFLAGS='-jc')
Пример #4
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['PyTar']
    bld.set_suffix('.tar.gz')
    target, source = putintopackageroot(target,
                                        source,
                                        env,
                                        PACKAGEROOT,
                                        honor_install_location=0)
    return bld(env, target, source, TARCOMPRESSION='gz', TARUID=0, TARGID=0)
Пример #5
0
def package(
    env,
    target,
    source,
    PACKAGEROOT,
    NAME,
    VERSION,
    DESCRIPTION,
    SUMMARY,
    X_IPK_PRIORITY,
    X_IPK_SECTION,
    SOURCE_URL,
    X_IPK_MAINTAINER,
    X_IPK_DEPENDS,
    **kw
):
    """ this function prepares the packageroot directory for packaging with the
    ipkg builder.
    """
    SCons.Tool.Tool("ipkg").generate(env)

    # setup the Ipkg builder
    bld = env["BUILDERS"]["Ipkg"]
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)

    # This should be overridable from the construction environment,
    # which it is by using ARCHITECTURE=.
    # Guessing based on what os.uname() returns at least allows it
    # to work for both i386 and x86_64 Linux systems.
    archmap = {"i686": "i386", "i586": "i386", "i486": "i386"}

    buildarchitecture = os.uname()[4]
    buildarchitecture = archmap.get(buildarchitecture, buildarchitecture)

    if kw.has_key("ARCHITECTURE"):
        buildarchitecture = kw["ARCHITECTURE"]

    # setup the kw to contain the mandatory arguments to this fucntion.
    # do this before calling any builder or setup function
    loc = locals()
    del loc["kw"]
    kw.update(loc)
    del kw["source"], kw["target"], kw["env"]

    # generate the specfile
    specfile = gen_ipk_dir(PACKAGEROOT, source, env, kw)

    # override the default target.
    if str(target[0]) == "%s-%s" % (NAME, VERSION):
        target = ["%s_%s_%s.ipk" % (NAME, VERSION, buildarchitecture)]

    # now apply the Ipkg builder
    return apply(bld, [env, target, specfile], kw)
def package(env, target, source, PACKAGEROOT, NAME, VERSION, DESCRIPTION,
            SUMMARY, X_IPK_PRIORITY, X_IPK_SECTION, SOURCE_URL,
            X_IPK_MAINTAINER, X_IPK_DEPENDS, **kw):
    """ this function prepares the packageroot directory for packaging with the
    ipkg builder.
    """
    SCons.Tool.Tool('ipkg').generate(env)

    # setup the Ipkg builder
    bld = env['BUILDERS']['Ipkg']
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)

    # This should be overridable from the construction environment,
    # which it is by using ARCHITECTURE=.
    # Guessing based on what os.uname() returns at least allows it
    # to work for both i386 and x86_64 Linux systems.
    archmap = {
        'i686': 'i386',
        'i586': 'i386',
        'i486': 'i386',
    }

    buildarchitecture = os.uname()[4]
    buildarchitecture = archmap.get(buildarchitecture, buildarchitecture)

    if 'ARCHITECTURE' in kw:
        buildarchitecture = kw['ARCHITECTURE']

    # setup the kw to contain the mandatory arguments to this fucntion.
    # do this before calling any builder or setup function
    loc = locals()
    del loc['kw']
    kw.update(loc)
    del kw['source'], kw['target'], kw['env']

    # generate the specfile
    specfile = gen_ipk_dir(PACKAGEROOT, source, env, kw)

    # override the default target.
    if str(target[0]) == "%s-%s" % (NAME, VERSION):
        target = ["%s_%s_%s.ipk" % (NAME, VERSION, buildarchitecture)]

    # now apply the Ipkg builder
    return bld(env, target, specfile, **kw)
Пример #7
0
def package(env, target, source, PACKAGEROOT, NAME, VERSION, DESCRIPTION,
            SUMMARY, X_DPKG_PRIORITY, X_DPKG_SECTION, SOURCE_URL,
            X_DPKG_MAINTAINER, **kw):
    """ this function prepares the packageroot directory for packaging with the
    dpkg builder.
    """
    env.Tool('dpkg')

    # setup the Dpkg builder
    bld = env['BUILDERS']['Dpkg']
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)

    # This should be overridable from the construction environment,
    # which it is by using ARCHITECTURE=.
    # Guessing based on what os.uname() returns at least allows it
    # to work for both i386 and x86_64 Linux systems.
    archmap = {
        'i686'  : 'i386',
        'i586'  : 'i386',
        'i486'  : 'i386',
    }

    buildarchitecture = os.uname()[4]
    buildarchitecture = archmap.get(buildarchitecture, buildarchitecture)

    if kw.has_key('ARCHITECTURE'):
        buildarchitecture = kw['ARCHITECTURE']

    # setup the kw to contain the mandatory arguments to this fucntion.
    # do this before calling any builder or setup function
    loc=locals()
    del loc['kw']
    kw.update(loc)
    del kw['source'], kw['target'], kw['env']

    # generate the specfile
    specfile = gen_dpkg_dir(PACKAGEROOT, source, env, kw)

    # override the default target.
    if str(target[0])=="%s-%s"%(NAME, VERSION):
        target=[ "%s_%s_%s.deb"%(NAME, VERSION, buildarchitecture) ]

    # now apply the Dpkg builder
    return apply(bld, [env, target, specfile], kw)
Пример #8
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Zip']
    bld.set_suffix('.zip')
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)
    return bld(env, target, source)
Пример #9
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Tar']
    bld.set_suffix('.tar.bz2')
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)
    target, source = stripinstallbuilder(target, source, env)
    return bld(env, target, source, TARFLAGS='-jc')
Пример #10
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Tar']
    bld.set_suffix('.tar.gz')
    target, source = putintopackageroot(target, source, env, PACKAGEROOT, honor_install_location=0)
    return bld(env, target, source, TARFLAGS='-zc')
Пример #11
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Zip']
    bld.set_suffix('.zip')
    target, source = putintopackageroot(target, source, env, PACKAGEROOT,
                                        honor_install_location=0)
    return bld(env, target, source)
Пример #12
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env['BUILDERS']['Zip']
    bld.set_suffix('.zip')
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)
    return bld(env, target, source)
Пример #13
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env["BUILDERS"]["Tar"]
    bld.set_suffix(".tar.bz2")
    target, source = putintopackageroot(target, source, env, PACKAGEROOT, honor_install_location=0)
    return bld(env, target, source, TARFLAGS="-jc")
Пример #14
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env["BUILDERS"]["Zip"]
    bld.set_suffix(".zip")
    target, source = putintopackageroot(target, source, env, PACKAGEROOT, honor_install_location=0)
    return bld(env, target, source)
Пример #15
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env["BUILDERS"]["Tar"]
    bld.set_suffix(".tar.gz")
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)
    return bld(env, target, source, TARFLAGS="-zc")
Пример #16
0
def package(env, target, source, PACKAGEROOT, **kw):
    bld = env["BUILDERS"]["Zip"]
    bld.set_suffix(".zip")
    target, source = stripinstallbuilder(target, source, env)
    target, source = putintopackageroot(target, source, env, PACKAGEROOT)
    return bld(env, target, source)