예제 #1
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/test*")
    pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/pj_out*.dist")

    pisitools.dodoc("nad/README.NAD", "nad/README.NADUS")
예제 #2
0
def setup():
    shelltools.cd("libs")
    shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR())
    shelltools.cd("../pstocanonij")
    shelltools.system("./autogen.sh --prefix=/%s --enable-progpath=/%s/bin" % (get.defaultprefixDIR(), get.defaultprefixDIR()))
    shelltools.cd("../backend")
    shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR())
    shelltools.cd("../backendnet")
    shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR())
    shelltools.cd("..")
예제 #3
0
파일: actions.py 프로젝트: aydemir/packages
def setup():
    shelltools.cd("libs")
    shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR())
    shelltools.cd("../pstocanonij")
    shelltools.system("./autogen.sh --prefix=/%s --enable-progpath=/%s/bin" %
                      (get.defaultprefixDIR(), get.defaultprefixDIR()))
    shelltools.cd("../backend")
    shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR())
    shelltools.cd("../backendnet")
    shelltools.system("./autogen.sh --prefix=/%s" % get.defaultprefixDIR())
    shelltools.cd("..")
예제 #4
0
def setup():
    shelltools.export("LDFLAGS", "%s -Wl,--no-as-needed" % get.LDFLAGS())

    shelltools.cd("buftool")
    shelltools.system("./autogen.sh --prefix=/%s --enable-static --disable-shared" % get.defaultprefixDIR())

    shelltools.cd("../cpca")
    shelltools.system("./autogen.sh --prefix=/%s --enable-shared --disable-static" % get.defaultprefixDIR())

    shelltools.cd("../cngplp")
    shelltools.system("./autogen.sh")

    shelltools.cd("..")
예제 #5
0
def install():
    shelltools.cd("scangearmp")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.insinto("/%s/udev/rules.d/" % get.confDIR(), "etc/*.rules")
    pisitools.dosym("/%s/bin/scangearmp" % get.defaultprefixDIR(), "/usr/lib/gimp/2.0/plug-ins/scangearmp")

    shelltools.cd("..")
    for model in model_numbers:
        pisitools.insinto("/%s/lib/bjlib" % get.defaultprefixDIR(), "%s/*.tbl" % model)
        pisitools.insinto("/%s/lib/bjlib" % get.defaultprefixDIR(), "%s/*.DAT" % model)
        pisitools.dolib("%s/libs_bin%s/*.so" % (model, arch_bit))
    pisitools.dolib("com/libs_bin%s/*.so" %  arch_bit)

    pisitools.dodoc("LICENSE*", "scangearmp/AUTHORS", "scangearmp/ChangeLog", "scangearmp/LICENSE", "scangearmp/NEWS", "scangearmp/COPYING")
예제 #6
0
def configure(parameters=""):
    '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"'''
    if can_access_file("configure"):
        gnuconfig_update()

        args = (
            "./configure \
                --prefix=/%s \
                --build=%s \
                --mandir=/%s \
                --infodir=/%s \
                --datadir=/%s \
                --sysconfdir=/%s \
                --localstatedir=/%s \
                %s"
            % (
                get.defaultprefixDIR(),
                get.HOST(),
                get.manDIR(),
                get.infoDIR(),
                get.dataDIR(),
                get.confDIR(),
                get.localstateDIR(),
                parameters,
            )
        )

        if system(args):
            raise ConfigureError(_("Configure failed."))
    else:
        raise ConfigureError(_("No configure script found."))
예제 #7
0
def install(parameters="", argument="install"):
    """install source into install directory with given parameters"""
    if can_access_file("makefile") or can_access_file("Makefile") or can_access_file("GNUmakefile"):
        args = (
            "make prefix=%(prefix)s/%(defaultprefix)s \
                datadir=%(prefix)s/%(data)s \
                infodir=%(prefix)s/%(info)s \
                localstatedir=%(prefix)s/%(localstate)s \
                mandir=%(prefix)s/%(man)s \
                sysconfdir=%(prefix)s/%(conf)s \
                %(parameters)s \
                %(argument)s"
            % {
                "prefix": get.installDIR(),
                "defaultprefix": get.defaultprefixDIR(),
                "man": get.manDIR(),
                "info": get.infoDIR(),
                "localstate": get.localstateDIR(),
                "conf": get.confDIR(),
                "data": get.dataDIR(),
                "parameters": parameters,
                "argument": argument,
            }
        )

        if system(args):
            raise InstallError(_("Install failed."))
        else:
            fixInfoDir()
    else:
        raise InstallError(_("No Makefile found."))
예제 #8
0
def install():
    shelltools.cd("src")
    autotools.rawInstall("DESTDIR=%s EXAMPLEDIR=%s/%s/%s/examples" %
            (get.installDIR(),
             get.defaultprefixDIR(),
             get.docDIR(),
             get.srcNAME()))

    # Install additional headers
    for d in ("kadm5", "krb5"):
        pisitools.insinto("/usr/include/%s" % d, "include/%s/*.h" % d)

    pisitools.dodoc("plugins/kdb/ldap/libkdb_ldap/kerberos.ldif")
    pisitools.dodoc("plugins/kdb/ldap/libkdb_ldap/kerberos.schema")

    shelltools.cd("..")

    pisitools.dodir("/var/kerberos/krb5kdc")

    for plugin in ("preauth", "kdb", "authdata"):
        pisitools.dodir("/usr/lib/krb5/plugins/%s" % plugin)

    # Install info and docs
    pisitools.doinfo("doc/*.info")
    pisitools.dodoc("README")
예제 #9
0
파일: autotools.py 프로젝트: zaxebo1/pisi-1
def install(parameters='', argument='install'):
    '''install source into install directory with given parameters'''
    if can_access_file('makefile') or can_access_file(
            'Makefile') or can_access_file('GNUmakefile'):
        args = 'make prefix=%(prefix)s/%(defaultprefix)s \
                datadir=%(prefix)s/%(data)s \
                infodir=%(prefix)s/%(info)s \
                localstatedir=%(prefix)s/%(localstate)s \
                mandir=%(prefix)s/%(man)s \
                sysconfdir=%(prefix)s/%(conf)s \
                %(parameters)s \
                %(argument)s' % {
            'prefix': get.installDIR(),
            'defaultprefix': get.defaultprefixDIR(),
            'man': get.manDIR(),
            'info': get.infoDIR(),
            'localstate': get.localstateDIR(),
            'conf': get.confDIR(),
            'data': get.dataDIR(),
            'parameters': parameters,
            'argument': argument
        }

        if system(args):
            raise InstallError(_('Install failed.'))
    else:
        raise InstallError(_('No Makefile found.'))

    fixInfoDir()
예제 #10
0
def build():
    pisitools.dosed("Makefile", "^PREFIX=/usr/local$",
                    "PREFIX=%s" % get.defaultprefixDIR())
    pisitools.dosed("mylib.ml", "LIBDIR", libdir)
    autotools.make("BINDIR=%s LIBDIR=%s" % \
                    (get.installDIR() + bindir, \
                     get.installDIR() + libdir))
예제 #11
0
def rake_install(parameters=''):
    '''execute rake script for installation'''
    if system('rake -t -l %s %s' %
              (os.path.join('/', get.defaultprefixDIR(), 'lib'), parameters)):
        raise InstallError(_('Install failed.'))

    auto_dodoc()
예제 #12
0
def setup():
    autotools.rawConfigure('--prefix-dir="/%s" \
                            --binary-dir="bin" \
                            --data-dir="share/%s" \
                            --icon-dir="share/pixmaps" \
                            --icon-theme-dir="share/icons/hicolor" \
                            --man-dir="share/man/man6" \
                            --menu-dir="share/applications" \
                            --doc-dir="share/doc/%s" \
                            --install-dir="%s" \
                            --disable-strip \
                            --enable-lto \
                            --menu-group="Game;StrategyGame;" \
                            --without-allegro \
                            --with-sdl \
                            --with-zlib \
                            --with-liblzo2 \
                            --with-png \
                            --with-freetype \
                            --with-fontconfig \
                            --with-icu \
                            --without-iconv \
                            ' % (get.defaultprefixDIR(),
                                 get.srcNAME(),
                                 get.srcNAME(),
                                 get.installDIR()
                            ))
예제 #13
0
def install(parameters=''):
    '''does ruby setup.rb install'''
    if system('ruby -w setup.rb --prefix=/%s --destdir=%s %s' %
              (get.defaultprefixDIR(), get.installDIR(), parameters)):
        raise InstallError(_('Install failed.'))

    auto_dodoc()
예제 #14
0
def build():
    shelltools.cd("cnijfilter")
    for model in printer_models:
        shelltools.system("./autogen.sh --prefix=/%s --program-suffix=%s" % (get.defaultprefixDIR(), model))
        autotools.make()
        shelltools.move("src/cif", "src/cif%s" % model)
        autotools.make("clean")
예제 #15
0
def configure(parameters = "", installPrefix = "/%s" % get.defaultprefixDIR(), sourceDir = ".."):
    ''' parameters -DLIB_INSTALL_DIR="target_dir" -DSOMETHING_USEFUL=1'''

    config_params = [
                     ("-DSYSCONF_INSTALL_DIR", "/etc"),
                     ("-DLIB_INSTALL_DIR", "lib"),
                     ("-DLIBEXEC_INSTALL_DIR", "libexec"),
                     ("-DLOCALE_INSTALL_DIR", "/usr/share/locale"),
                     ("-DKDE_INSTALL_USE_QT_SYS_PATHS", "ON"),
                     ("-DQML_INSTALL_DIR", "lib/qt5/qml"),
                     ("-DPLUGIN_INSTALL_DIR", "/usr/lib/qt5/plugins"),
                     ("-DECM_MKSPECS_INSTALL_DIR", "/usr/lib/qt5/mkspecs/modules"),
                     ("-DBUILD_TESTING", "OFF"),
                     ("-DCMAKE_BUILD_TYPE", "Release"),
                     ("-DPYTHON_EXECUTABLE", "/usr/bin/python3")
                     ]

    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.configure("%s %s" % (" ".join(["%s=%s" % (k, v) for k, v in config_params if not "%s=" % k in parameters]), parameters),
                         installPrefix,
                         sourceDir)

    shelltools.cd("..")
예제 #16
0
파일: autotools.py 프로젝트: Tayyib/uludag
def install(parameters = '', argument = 'install'):
    '''install source into install directory with given parameters'''
    if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'):
        args = 'make prefix=%(prefix)s/%(defaultprefix)s \
                datadir=%(prefix)s/%(data)s \
                infodir=%(prefix)s/%(info)s \
                localstatedir=%(prefix)s/%(localstate)s \
                mandir=%(prefix)s/%(man)s \
                sysconfdir=%(prefix)s/%(conf)s \
                %(parameters)s \
                %(argument)s' % {'prefix': get.installDIR(),
                            'defaultprefix': get.defaultprefixDIR(),
                            'man': get.manDIR(),
                            'info': get.infoDIR(),
                            'localstate': get.localstateDIR(),
                            'conf': get.confDIR(),
                            'data': get.dataDIR(),
                            'parameters': parameters,
                            'argument':argument}

        if system(args):
            raise InstallError(_('Install failed.'))
        else:
            fixInfoDir()
    else:
        raise InstallError(_('No Makefile found.'))
예제 #17
0
파일: mesontools.py 프로젝트: marcin-/core
def configure(parameters='', build_dir='build'):
    """
    Configures the project into the build directory with the parameters using meson.

    Args:
        parameters (str): Extra parameters for the command. Default is empty string.
        build_dir (str): Build directory. Default is 'build'.

    Examples:
        >>> mesontools.configure()
        >>> mesontools.configure('extra parameters')
        >>> mesontools.configure('extra parameters', 'custom_build_dir')
    """
    default_parameters = ' '.join([
        '--prefix=/%s' % get.defaultprefixDIR(),
        '--bindir=/usr/bin',
        '--datadir=/%s' % get.dataDIR(),
        '--includedir=/usr/include',
        '--infodir=/%s' % get.infoDIR(),
        '--libdir=/%s' %
        ('usr/lib32' if get.buildTYPE() == 'emul32' else 'usr/lib'),
        '--libexecdir=/%s' % get.libexecDIR(),
        '--localedir=/usr/share/locale',
        '--localstatedir=/%s' % get.localstateDIR(),
        '--mandir=/%s' % get.manDIR(),
        '--sbindir=/%s' % get.sbinDIR(),
        '--sharedstatedir=com',
        '--sysconfdir=/etc',
        '--default-library=shared',
    ])
    if system('meson setup %s %s %s' %
              (default_parameters, parameters, build_dir)):
        raise ConfigureError(_('Configuration failed.'))
예제 #18
0
파일: actions.py 프로젝트: hasanakgoz/2013
def setup():
    autotools.rawConfigure(
        "--with-diffutils \
                            --prefix=/%s \
                            --host=%s \ "
        % (get.defaultprefixDIR(), get.HOST())
    )
예제 #19
0
def install(parameters='', argument='install', no_sb2=False):
    '''install source into install directory with given parameters'''
    cmd = 'make prefix=%(prefix)s/%(defaultprefix)s \
           datadir=%(prefix)s/%(data)s \
           infodir=%(prefix)s/%(info)s \
           localstatedir=%(prefix)s/%(localstate)s \
           mandir=%(prefix)s/%(man)s \
           sysconfdir=%(prefix)s/%(conf)s \
           %(parameters)s \
           %(argument)s' % {
        'prefix': get.installDIR(),
        'defaultprefix': get.defaultprefixDIR(),
        'man': get.manDIR(),
        'info': get.infoDIR(),
        'localstate': get.localstateDIR(),
        'conf': get.confDIR(),
        'data': get.dataDIR(),
        'parameters': parameters,
        'argument': argument,
    }

    if crosscompiling and not no_sb2:
        cmd = "sb2 -e %s" % cmd

    if system(cmd):
        raise InstallError(_('Install failed.'))
    else:
        fixInfoDir()
예제 #20
0
def install():
    shelltools.cd("libs")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("../pstocanonij")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("../backend")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("../backendnet")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../cnijfilter")
    for model in printer_models:
        pisitools.dobin("src/cif%s" % model)

    shelltools.cd("..")
    for model in model_numbers:
        pisitools.insinto("/usr/lib/bjlib", "%s/database/*" % model)
        if get.ARCH() == "i686":
            pisitools.dolib("%s/libs_bin%s/*.so" % (model, "32"))
        else:
            pisitools.dolib("%s/libs_bin%s/*.so" % (model, "64"))
    if get.ARCH() == "i686":
        pisitools.dolib("com/libs_bin%s/*.so" % "32")
    else:
        pisitools.dolib("com/libs_bin%s/*.so" % "64")
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(),
                      "ppd/*.ppd")

    pisitools.dodoc("LICENSE*")
예제 #21
0
파일: autotools.py 프로젝트: zaxebo1/pisi
def configure(parameters = ''):
    '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		
    if can_access_file('configure'):
        gnuconfig_update()

        prefix = get.emul32prefixDIR() if get.buildTYPE() == "emul32" else get.defaultprefixDIR()
        args = './configure \
                --prefix=/%s \
                --build=%s \
                --mandir=/%s \
                --infodir=/%s \
                --datadir=/%s \
                --sysconfdir=/%s \
                --localstatedir=/%s \
                --libexecdir=/%s \
                %s' % (prefix, \
                       get.HOST(), get.manDIR(), \
                       get.infoDIR(), get.dataDIR(), \
                       get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters)

        if get.buildTYPE() == "emul32":
            args += " --libdir=/usr/lib32"

        if system(args):
            raise ConfigureError(_('Configure failed.'))
    else:
        raise ConfigureError(_('No configure script found.'))
예제 #22
0
def setup():
    shelltools.export("LDFLAGS", "-Wl,-z,defs")

    args = '../configure \
            --prefix=/%s \
            --build=%s \
            --mandir=/%s \
            --infodir=/%s \
            --datadir=/%s \
            --sysconfdir=/%s \
            --localstatedir=/%s \
            --libexecdir=/%s \
            ' % (get.defaultprefixDIR(), \
                 get.HOST(), get.manDIR(), \
                 get.infoDIR(), get.dataDIR(), \
                 get.confDIR(), get.localstateDIR(), get.libexecDIR())

    args += "--with-pic \
             --disable-static \
             --with-ipc=%(ipc_type)s \
             --program-suffix=-%(ipc_type)s"

    for ipc_type in ipc_types:
        shelltools.makedirs(ipc_type)

        shelltools.cd(ipc_type)
        shelltools.system(args % {'ipc_type':ipc_type})
        shelltools.cd('..')
예제 #23
0
def configure(parameters = ''):
    '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"'''

    if can_access_file('ltmain.sh'):
        libtoolize("--copy --force")

    if can_access_file('configure'):
        gnuconfig_update()

        args = './configure \
                --prefix=/%s \
                --build=%s \
                --mandir=/%s \
                --infodir=/%s \
                --datadir=/%s \
                --sysconfdir=/%s \
                --localstatedir=/%s \
                --libexecdir=/%s \
                %s' % (get.defaultprefixDIR(), \
                       get.HOST(), get.manDIR(), \
                       get.infoDIR(), get.dataDIR(), \
                       get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters)

        if system(args):
            raise ConfigureError(_('Configure failed.'))
    else:
        raise ConfigureError(_('No configure script found.'))
예제 #24
0
def install():
    shelltools.cd("libs")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("../pstocanonij")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("../backend")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("../backendnet")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../cnijfilter")
    for model in printer_models:
        pisitools.dobin("src/cif%s" % model)

    shelltools.cd("..")
    for model in model_numbers:
        pisitools.insinto("/usr/lib/bjlib", "%s/database/*" % model)
        if get.ARCH() == "i686":
            pisitools.dolib("%s/libs_bin%s/*.so" % (model, "32"))
        else:
            pisitools.dolib("%s/libs_bin%s/*.so" % (model, "64"))
    if get.ARCH() == "i686":
        pisitools.dolib("com/libs_bin%s/*.so" %  "32")
    else:
        pisitools.dolib("com/libs_bin%s/*.so" % "64")
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "ppd/*.ppd")

    pisitools.dodoc("LICENSE*")
예제 #25
0
파일: autotools.py 프로젝트: zaxebo1/pisi
def install(parameters = '', argument = 'install'):
    '''install source into install directory with given parameters'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		    
    args = 'make prefix=%(prefix)s/%(defaultprefix)s \
            datadir=%(prefix)s/%(data)s \
            infodir=%(prefix)s/%(info)s \
            localstatedir=%(prefix)s/%(localstate)s \
            mandir=%(prefix)s/%(man)s \
            sysconfdir=%(prefix)s/%(conf)s \
            %(parameters)s \
            %(argument)s' % {
                                'prefix': get.installDIR(),
                                'defaultprefix': get.defaultprefixDIR(),
                                'man': get.manDIR(),
                                'info': get.infoDIR(),
                                'localstate': get.localstateDIR(),
                                'conf': get.confDIR(),
                                'data': get.dataDIR(),
                                'parameters': parameters,
                                'argument':argument,
                            }

    if system(args):
        raise InstallError(_('Install failed.'))
    else:
        fixInfoDir()

    if get.buildTYPE() == "emul32":
        fixpc()
        if isDirectory("%s/emul32" % get.installDIR()): removeDir("/emul32")
예제 #26
0
def install(parameters = '', argument = 'install', no_sb2=False):
    '''install source into install directory with given parameters'''
    cmd = 'make prefix=%(prefix)s/%(defaultprefix)s \
           datadir=%(prefix)s/%(data)s \
           infodir=%(prefix)s/%(info)s \
           localstatedir=%(prefix)s/%(localstate)s \
           mandir=%(prefix)s/%(man)s \
           sysconfdir=%(prefix)s/%(conf)s \
           %(parameters)s \
           %(argument)s' % {
                                'prefix': get.installDIR(),
                                'defaultprefix': get.defaultprefixDIR(),
                                'man': get.manDIR(),
                                'info': get.infoDIR(),
                                'localstate': get.localstateDIR(),
                                'conf': get.confDIR(),
                                'data': get.dataDIR(),
                                'parameters': parameters,
                                'argument':argument,
                           }

    if crosscompiling and not no_sb2:
        cmd = "sb2 -e %s" % cmd

    if system(cmd):
        raise InstallError(_('Install failed.'))
    else:
        fixInfoDir()
예제 #27
0
def setup():
    autotools.rawConfigure('--prefix-dir="/%s" \
                            --binary-dir="bin" \
                            --data-dir="share/%s" \
                            --icon-dir="share/pixmaps" \
                            --icon-theme-dir="share/icons/hicolor" \
                            --man-dir="share/man/man6" \
                            --menu-dir="share/applications" \
                            --doc-dir="share/doc/%s" \
                            --install-dir="%s" \
                            --disable-strip \
                            --enable-lto \
                            --menu-group="Game;StrategyGame;" \
                            --without-allegro \
                            --with-sdl \
                            --with-zlib \
                            --with-liblzo2 \
                            --with-png \
                            --with-freetype \
                            --with-fontconfig \
                            --with-icu \
                            --without-iconv \
                            ' % (get.defaultprefixDIR(),
                                 get.srcNAME(),
                                 get.srcNAME(),
                                 get.installDIR()
                            ))
예제 #28
0
def install():

    autotools.rawInstall("DESTDIR=/%s PREFIX=/%s \
                        XDG_DATA_DIRS=/usr/share \
                        XDG_CONFIG_DIRS=/etc/xdg \
                        LIBINSTALLDIR=/usr/lib/%s/site-packages" % (get.installDIR(),get.defaultprefixDIR(),get.curPYTHON()))

    pisitools.dodoc("FUTURE","README","COPYING")
예제 #29
0
def build():
    shelltools.cd("cnijfilter")
    for model in printer_models:
        shelltools.system("./autogen.sh --prefix=/%s --program-suffix=%s" %
                          (get.defaultprefixDIR(), model))
        autotools.make()
        shelltools.move("src/cif", "src/cif%s" % model)
        autotools.make("clean")
예제 #30
0
def setup():
    pisitools.dosed("build/mak/compiler/gcc.mak", "^GCC.CFLAGS.release.*$",
                    "GCC.CFLAGS.release = ")
    pisitools.dosed("build/mak/compiler/gcc.mak", "^GCC.CXXFLAGS = \$.*$",
                    "GCC.CXXFLAGS = $(GCC.CFLAGS)")
    autotools.rawConfigure(
        "--prefix=/%s --mode=release --staticlibs=NO --target=..generic" %
        get.defaultprefixDIR())
예제 #31
0
def install():
    pisitools.dobin("usr/local/bin/cifmp520")
    for lib in libs:
        pisitools.insinto("/usr/lib", "usr/lib/%s" % lib, "%s.so" % lib.split(".so")[0])
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "usr/share/cups/model/*.ppd")
    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/*")

    pisitools.dohtml("guidemp520series-pd-2.80-1/MP520series/*")
예제 #32
0
def setup():
    shelltools.export("LDFLAGS", "%s -Wl,--no-as-needed" % get.LDFLAGS())

    shelltools.cd("buftool")
    shelltools.system(
        "./autogen.sh --prefix=/%s --enable-static --disable-shared" %
        get.defaultprefixDIR())

    shelltools.cd("../cpca")
    shelltools.system(
        "./autogen.sh --prefix=/%s --enable-shared --disable-static" %
        get.defaultprefixDIR())

    shelltools.cd("../cngplp")
    shelltools.system("./autogen.sh")

    shelltools.cd("..")
예제 #33
0
def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.system("../configure --mandir=/%s --datadir=/%s \
                       --prefix=/%s \
                       --target=avr \
                       --disable-werror \
                       --disable-nls" % (get.manDIR(), get.dataDIR(), get.defaultprefixDIR()))
예제 #34
0
def build():
    shelltools.unlink("config.sh")

    pisitools.dosed("Makefile", "^PREFIX=/usr/local$", "PREFIX=%s" % get.defaultprefixDIR())
    pisitools.dosed("mylib.ml", "LIBDIR", libdir)
    autotools.make("BINDIR=%s LIBDIR=%s" % \
                    (get.installDIR() + bindir, \
                     get.installDIR() + libdir))
예제 #35
0
def setup():
    shelltools.system("rm -rf jp3d libs")

    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.configure("-DBUILD_EXAMPLES:BOOL=ON \
                          -DBUILD_SHARED_LIBS:BOOL=ON \
                          -DINCLUDE_INSTALL_DIR=/%s/include" % get.defaultprefixDIR(), sourceDir="..")
예제 #36
0
def install():
    pisitools.dobin("usr/local/bin/cifip1800")
    for lib in libs:
        pisitools.insinto("/usr/lib", "usr/lib/%s" % lib, "%s.so" % lib.split(".so")[0])
    pisitools.dosym("libpng.so", "/usr/lib/libpng.so.3")
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(), "usr/share/cups/model/*.ppd")
    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/*")

    pisitools.dohtml("guideip1800series-pd-2.70-1/iP1800series/*")
예제 #37
0
def setup():
    shelltools.system("rm -rf jp3d libs")

    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.configure("-DBUILD_EXAMPLES:BOOL=ON \
                          -DBUILD_SHARED_LIBS:BOOL=ON \
                          -DINCLUDE_INSTALL_DIR=/%s/include" % get.defaultprefixDIR(), sourceDir="..")
예제 #38
0
def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), sourceDir = '.'):
    '''configure source with given cmake parameters = "-DCMAKE_BUILD_TYPE -DCMAKE_CXX_FLAGS ... "'''
    if can_access_file(join_path(sourceDir, 'CMakeLists.txt')):
        args = 'cmake -DCMAKE_INSTALL_PREFIX=%s %s %s' % (installPrefix, parameters, sourceDir)

        if system(args):
            raise ConfigureError(_('Configure failed.'))
    else:
        raise ConfigureError(_('No configure script found for cmake.'))
예제 #39
0
def install():

    autotools.rawInstall(
        "DESTDIR=/%s PREFIX=/%s \
                        XDG_DATA_DIRS=/usr/share \
                        XDG_CONFIG_DIRS=/etc/xdg \
                        LIBINSTALLDIR=usr/lib/%s/site-packages" %
        (get.installDIR(), get.defaultprefixDIR(), get.curPYTHON()))

    pisitools.dodoc("FUTURE", "README", "COPYING")
예제 #40
0
def install():
    # autotools.rawInstall("DESTDIR=%s PREFIX=/%s" % (get.installDIR(), get.defaultprefixDIR()))
    autotools.make("pure_install DESTDIR=%s PREFIX=/%s" % (get.installDIR(), get.defaultprefixDIR()))
    # pisitools.move("%s/ocsinventory-agent" % get.binDIR(), "%s/ocsinventory-agent" % get.sbinDIR())
    pisitools.dodir("/var/log/ocsinventory-agent")
    pisitools.dodir("/var/lib/ocsinventory-agent")
    # pisitools.dodir("%s/logrotate.d" % get.confDIR())
    # pisitools.dodir("%s/cron.hourly" % get.confDIR())
    # pisitools.dodir("%s/ocsinventory/ocsinventory-agent" % get.confDIR())
    pisitools.insinto("%s/" % get.confDIR(), "etc/*")
예제 #41
0
파일: actions.py 프로젝트: aydemir/packages
def install():
    pisitools.dobin("usr/local/bin/cifmp520")
    for lib in libs:
        pisitools.insinto("/usr/lib", "usr/lib/%s" % lib,
                          "%s.so" % lib.split(".so")[0])
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(),
                      "usr/share/cups/model/*.ppd")
    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/*")

    pisitools.dohtml("guidemp520series-pd-2.80-1/MP520series/*")
예제 #42
0
def setup():
    pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CFLAGS.release.*$", "GCC.CFLAGS.release = ")
    pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CXXFLAGS = \$.*$", "GCC.CXXFLAGS = $(GCC.CFLAGS)")

    pisitools.dosed("configure", "3.81", "4.0")
    autotools.rawConfigure(
        "--prefix=/%s --mode=release --staticlibs=NO --libdir=/usr/lib --target=..generic --vectorization="
        % get.defaultprefixDIR()
    )
    pisitools.dosed("config.mak", "CONF_DOCDIR=.*", "CONF_DOCDIR=/usr/share/doc/lensfun/")
예제 #43
0
def setup():
    pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CFLAGS.release.*$",
                    "GCC.CFLAGS.release = ")
    pisitools.dosed("build/tibs/compiler/gcc.mak", "^GCC.CXXFLAGS = \$.*$",
                    "GCC.CXXFLAGS = $(GCC.CFLAGS)")

    autotools.rawConfigure(
        "--prefix=/%s --mode=release --staticlibs=NO --target=..generic --vectorization="
        % get.defaultprefixDIR())
    pisitools.dosed("config.mak", "CONF_DOCDIR=.*",
                    "CONF_DOCDIR=/usr/share/doc/lensfun/")
예제 #44
0
def install():
    # autotools.rawInstall("DESTDIR=%s PREFIX=/%s" % (get.installDIR(), get.defaultprefixDIR()))
    autotools.make("pure_install DESTDIR=%s PREFIX=/%s" %
                   (get.installDIR(), get.defaultprefixDIR()))
    # pisitools.move("%s/ocsinventory-agent" % get.binDIR(), "%s/ocsinventory-agent" % get.sbinDIR())
    pisitools.dodir("/var/log/ocsinventory-agent")
    pisitools.dodir("/var/lib/ocsinventory-agent")
    # pisitools.dodir("%s/logrotate.d" % get.confDIR())
    # pisitools.dodir("%s/cron.hourly" % get.confDIR())
    # pisitools.dodir("%s/ocsinventory/ocsinventory-agent" % get.confDIR())
    pisitools.insinto("%s/" % get.confDIR(), "etc/*")
예제 #45
0
파일: actions.py 프로젝트: aydemir/packages
def install():
    pisitools.dobin("usr/local/bin/cifip1800")
    for lib in libs:
        pisitools.insinto("/usr/lib", "usr/lib/%s" % lib,
                          "%s.so" % lib.split(".so")[0])
    pisitools.dosym("libpng.so", "/usr/lib/libpng.so.3")
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(),
                      "usr/share/cups/model/*.ppd")
    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/*")

    pisitools.dohtml("guideip1800series-pd-2.70-1/iP1800series/*")
예제 #46
0
def setup():
    autotools.rawConfigure("--without-allegro \
                            --prefix-dir=/%s \
                            --binary-dir=bin \
                            --data-dir=share/openttd \
                            --install-dir=%s \
                            --doc-dir=share/doc/openttd \
                            --icon-theme-dir=share/icons/hicolor \
                            " % (get.defaultprefixDIR(),
                                get.installDIR(),
                            ))
예제 #47
0
def install():
    autotools.rawInstall("DESTDIR=%s \
                          prefix=/%s \
                          install"
                         %(get.installDIR(),
                           get.defaultprefixDIR()))

    # Remove unneeded files
    pisitools.remove("/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/example.pl"
                     % (get.curPERL(), get.ARCH()))
    pisitools.dodoc("COPYING", "README")
예제 #48
0
def install():
    autotools.rawInstall("DESTDIR=%s \
                          prefix=/%s \
                          install" %
                         (get.installDIR(), get.defaultprefixDIR()))

    # Remove unneeded files
    pisitools.remove(
        "/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/example.pl" %
        (get.curPERL(), get.ARCH()))
    pisitools.dodoc("COPYING", "README")
예제 #49
0
def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), sourceDir = '.'):
    '''configure source with given cmake parameters = "-DCMAKE_BUILD_TYPE -DCMAKE_CXX_FLAGS ... "'''
    if can_access_file(join_path(sourceDir, 'CMakeLists.txt')):
        args = 'cmake -DCMAKE_INSTALL_PREFIX=%s \
                      -DCMAKE_C_FLAGS="%s" \
                      -DCMAKE_CXX_FLAGS="%s" \
                      -DCMAKE_LD_FLAGS="%s" %s %s' % (installPrefix, get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS(), parameters, sourceDir)

        if system(args):
            raise ConfigureError(_('Configure failed.'))
    else:
        raise ConfigureError(_('No configure script found for cmake.'))
예제 #50
0
def install():
    autotools.rawInstall("PREFIX=/%s DESTDIR=%s" % (get.defaultprefixDIR(), get.installDIR()))

    # we love vim
    pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "examples/tmux.vim", "tmux.vim")
    pisitools.insinto("/usr/share/doc/tmux/examples", "examples/*")
    pisitools.remove("/usr/share/doc/tmux/examples/tmux.vim")

    # Bash completion
    pisitools.domove("/usr/share/doc/tmux/examples/bash_completion_tmux.sh", "/etc/bash_completion.d", "tmux")

    pisitools.dodoc("CHANGES", "FAQ", "NOTES")
예제 #51
0
def install():
    autotools.rawInstall("PREFIX=/%s DESTDIR=%s" % (get.defaultprefixDIR(), get.installDIR()))

    # we love vim
    pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "examples/tmux.vim", "tmux.vim")
    pisitools.insinto("/usr/share/doc/tmux/examples", "examples/*")
    pisitools.remove("/usr/share/doc/tmux/examples/tmux.vim")

    # Bash completion
    pisitools.domove("/usr/share/doc/tmux/examples/bash_completion_tmux.sh", "/etc/bash_completion.d", "tmux")

    pisitools.dodoc("CHANGES", "FAQ")
예제 #52
0
def setup():
    autotools.rawConfigure("--without-allegro \
                            --prefix-dir=/%s \
                            --binary-dir=bin \
                            --data-dir=share/openttd \
                            --install-dir=%s \
                            --doc-dir=share/doc/openttd \
                            --icon-theme-dir=share/icons/hicolor \
                            " % (
        get.defaultprefixDIR(),
        get.installDIR(),
    ))
예제 #53
0
def install():
    shelltools.cd("cnijfilter")
    for model in printer_models:
        pisitools.dobin("src/cif%s" % model)

    shelltools.cd("..")
    for model in model_numbers:
        pisitools.insinto("/usr/lib/bjlib", "%s/database/*" % model)
        pisitools.dolib("%s/libs_bin/*.so" % model)
    pisitools.insinto("/%s/share/cups/model" % get.defaultprefixDIR(),
                      "ppd/*.ppd")

    pisitools.dodoc("LICENSE*")
예제 #54
0
def install():
    # install server
    shelltools.cd("Apache")
    autotools.make("pure_install DESTDIR=%s PREFIX=/%s" %
                   (get.installDIR(), get.defaultprefixDIR()))
    shelltools.cd("..")
    pisitools.insinto("%s/ocsinventory-server/" % get.dataDIR(), "binutils/*")
    pisitools.remove("%s/ocsinventory-server/create-release-tarball.sh" %
                     get.dataDIR())
    # pisitools.remove("/usr/lib/perl5/vendor_perl/5.10.1/Apache/Ocsinventory/Server/Modperl1.pm")
    pisitools.removeDir(
        "/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi")
    pisitools.dodir("/var/log/ocsinventory-server")
    pisitools.dodir("%s/logrotate.d" % get.confDIR())
    pisitools.dosed("etc/logrotate.d/ocsinventory-server",
                    "PATH_TO_LOG_DIRECTORY", "/var/log/ocsinventory-server")
    pisitools.insinto("%s/logrotate.d" % get.confDIR(),
                      "etc/logrotate.d/ocsinventory-server")
    pisitools.insinto("%s/apache2/conf.d/" % get.confDIR(),
                      "etc/ocsinventory/ocsinventory-server.conf",
                      "ocsinventory-server.conf.default")
    pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf",
                    "DATABASE_SERVER", "localhost")
    pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf",
                    "DATABASE_PORT", "3306")
    pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf", "VERSION_MP",
                    "2")
    pisitools.dosed("etc/ocsinventory/ocsinventory-server.conf",
                    "PATH_TO_LOG_DIRECTORY", "/var/log/ocsinventory-server")
    pisitools.insinto("%s/apache2/conf.d/" % get.confDIR(),
                      "etc/ocsinventory/ocsinventory-server.conf")

    # install reports
    shelltools.copytree(
        "%s/ocsreports" % get.curDIR(),
        "%s/%s/ocsinventory-reports" % (get.installDIR(), get.dataDIR()))
    shelltools.system(
        "/usr/bin/find %s/%s/ocsinventory-reports \( -name \*.php -o -name \*.css \) -exec chmod -x {} \;"
        % (get.installDIR(), get.dataDIR()))
    pisitools.dodir("%s/ocsinventory/ocsinventory-reports" % get.confDIR())
    pisitools.domove(
        "%s/ocsinventory-reports/dbconfig.inc.php" % get.dataDIR(),
        "%s/ocsinventory/ocsinventory-reports/" % get.confDIR())
    pisitools.dosym(
        "../../../%s/ocsinventory/ocsinventory-reports/dbconfig.inc.php" %
        get.confDIR(),
        "%s/ocsinventory-reports/dbconfig.inc.php" % get.dataDIR())
    pisitools.dodir("%s/ocsinventory-reports/download" % get.localstateDIR())
    pisitools.dodir("%s/ocsinventory-reports/ipd" % get.localstateDIR())
    pisitools.insinto("%s/ocsinventory-reports/" % get.dataDIR(),
                      "binutils/ipdiscover-util.pl")