Пример #1
0
def install():
    pythonmodules.install(pyVer="2")
    pythonmodules.install(pyVer="3")

    #inarytools.dodoc("doc/*.txt")
    inarytools.dohtml("doc/*.html")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/build")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
Пример #2
0
def _dodoc(*source_files, **kw):
    """copy doc files to /usr/share/doc/src_name recursively"""

    dest = util.join_path(get.docDIR(), kw.get('dest_dir', get.srcNAME()))
    destination = util.join_path(get.installDIR(), dest)

    if not os.access(destination, os.F_OK):
        os.makedirs(destination)

    for source_file in source_files:
        sources = glob(source_file)
        if not sources:
            raise DoJavadocError(
                _('No any file/directory matched to regex expression "{}".'.
                  format(source_file)))

        for source in sources:
            if os.path.isfile(source):
                try:
                    copy(source, destination)
                except IOError:
                    raise DoJavadocError(_('DoJavadoc failed.'))
            elif os.path.isdir(source):
                target = util.join_path(destination, source.split("/")[-1])
                try:
                    copytree(source, target)
                except IOError:
                    raise DoJavadocError(_('DoJavadoc failed.'))
Пример #3
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    inarytools.dobin("contrib/irman2lirc")

    # needed for lircd pid
    inarytools.dodir("/run/lirc")

    # example configs
    inarytools.insinto("/etc", "contrib/lircd.conf", "lircd.conf")
    inarytools.insinto("/etc", "contrib/lircmd.conf", "lircmd.conf")

    inarytools.dohtml("doc/html/*.html")
    inarytools.rename("/%s/%s" % (get.docDIR(), get.srcNAME()), "lirc")

    inarytools.insinto("/%s/lirc/contrib" % get.docDIR(), "contrib/*")
    inarytools.insinto("/lib/udev/rules.d", "contrib/*.rules", "60-lirc.rules")
Пример #4
0
def setup():
    autotools.configure("--disable-setuid \
                          --disable-rpath \
                          --with-sections=\"1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x\" \
                          --docdir=/%s/%s \
                          --without-systemd \
                          --with-device=utf8 \
                          --enable-mb-groff" % (get.docDIR(), get.srcNAME()))
Пример #5
0
def setup():
    #autotools.autoreconf("-fi")
    autotools.configure("PYTHON=/usr/bin/python3 \
                         --prefix=/usr \
                         --with-html-dir=/%s/%s/html \
                         --with-package-name='Sulin farstream package' \
                         --with-package-origin='http://www.inarylinux.org'" %
                        (get.docDIR(), get.srcNAME()))
Пример #6
0
def install():
    autotools.rawInstall('DESTDIR=%s INSTALL="install -p"' % get.installDIR())

    for i in shelltools.ls("examples"):
        if i.endswith(".png") or i.endswith(".c"):
            inarytools.insinto("/%s/%s/examples/" % (get.docDIR(), get.srcNAME()), "examples/%s" % i)

    inarytools.dodoc("AUTHORS", "COPYING", "README", "NEWS")
Пример #7
0
def install():
    autotools.rawInstall("DESTDIR=\"%s\" \
                          SBINDIR=/sbin \
                          DOCDIR=/%s/%s \
                          MANDIR=/usr/share/man \
                          " % (get.installDIR(), get.docDIR(), get.srcNAME()))

    inarytools.dodir("/var/lib/arpd")
Пример #8
0
def install():
    pythonmodules.install()

    inarytools.insinto("/etc/bash_completion.d/", "contrib/bash/bzr")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/*")

    inarytools.dodoc("COPYING.txt", "README", "NEWS", "TODO")
    shelltools.unlinkDir("{}/usr/man/".format(get.installDIR()))
Пример #9
0
def install():
    pythonmodules.install()

    shelltools.cd("../build_python3/%s" % WorkDir)
    pythonmodules.install(pyVer="3")

    for dirs in ["demos", "tests"]:
        inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)
Пример #10
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    #inarytools.doman("doc/doxywizard.1")

    # The makefile included is there to generate the html files
    # The user itself should execute it
    inarytools.insinto(get.docDIR() + "/doxygen", "examples")

    inarytools.dodoc("LANGUAGE.HOWTO", "LICENSE", "README*", "VERSION")
Пример #11
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                inarytools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))
Пример #12
0
def install():

    mesontools.ninja_install()
    inarytools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                inarytools.insinto(
                    "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                    "%s/%s" % (path, doc))
Пример #13
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    #inarytools.doman("sys-utils/klogconsole.man")
    inarytools.remove("/usr/share/man/man1/kill.1")
    inarytools.remove("/usr/share/bash-completion/completions/rfkill")

    if get.buildTYPE() == "emul32": return

    #inarytools.removeDir("/usr/lib32/pkgconfig")

    inarytools.dodoc("ABOUT-NLS", "AUTHORS", "ChangeLog", "COPYING", "README*")
    inarytools.insinto("/%s/%s" % (get.docDIR(), get.srcNAME()),
                       "Documentation")
Пример #14
0
def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--enable-jit \
                         --enable-pcre2grep-libz \
                         --enable-pcre2grep-libbz2 \
                         --enable-pcre2test-libreadline \
                         --enable-pcre2-32 \
                         --enable-pcre2-16 \
                         --enable-utf \
                         --enable-unicode-properties \
                         --enable-cpp \
                         --docdir=/%s/%s \
                         --disable-static" % (get.docDIR(), get.srcNAME()))

    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Пример #15
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fiv")
    autotools.configure("--disable-static \
                         --prefix=/usr \
                         --with-x \
                         --enable-nls \
                         --sysconfdir=/etc \
                         --libexecdir=/usr/libexec/openbox \
                         --enable-startup-notification \
                         --docdir=/%s/%s" % (get.docDIR(), get.srcNAME()))

    inarytools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
    inarytools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH",
                     "\\1DIE_RPATH_DIE")
    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Пример #16
0
def dohtml(*sourceFiles, **kw):
    """inserts the files in the list of files into /usr/share/doc/PACKAGE/html"""
    ''' example call: inarytools.dohtml("doc/doxygen/html/*")'''
    destDir = kw.get("destDir", get.srcNAME())
    destionationDirectory = join_path(get.installDIR(), get.docDIR(), destDir,
                                      'html')

    if not can_access_directory(destionationDirectory):
        makedirs(destionationDirectory)

    allowed_extensions = [
        '.png', '.gif', '.html', '.htm', '.jpg', '.css', '.js'
    ]
    disallowed_directories = ['CVS', '.git', '.svn', '.hg']

    for sourceFile in sourceFiles:
        sourceFileGlob = glob.glob(sourceFile)
        if len(sourceFileGlob) == 0:
            ctx.ui.warning(
                _("No file matched pattern \"{}\".").format(sourceFile))

        for source in sourceFileGlob:
            if os.path.isfile(source) and os.path.splitext(
                    source)[1] in allowed_extensions:
                system('install -m 0644 "{0}" {1}'.format(
                    source, destionationDirectory))
            if os.path.isdir(source) and os.path.basename(
                    source) not in disallowed_directories:
                eraser = os.path.split(source)[0]
                for root, dirs, files in os.walk(source):
                    newRoot = remove_prefix(eraser, root)
                    for sourcename in files:
                        if os.path.splitext(
                                sourcename)[1] in allowed_extensions:
                            makedirs(join_path(destionationDirectory, newRoot))
                            system('install -m 0644 {0} {1}'.format(
                                join_path(root, sourcename),
                                join_path(destionationDirectory, newRoot,
                                          sourcename)))
Пример #17
0
def install():
    pythonmodules.install()

    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "enum/LICENSE")
Пример #18
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import inarytools
from inary.actionsapi import pythonmodules
from inary.actionsapi import shelltools
from inary.actionsapi import get

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

NUMPY_FCONFIG = "config_fc --fcompiler=gnu95"
f2py_docs = "%s/%s/f2py_docs" % (get.docDIR(), get.srcNAME())

shelltools.export("LDFLAGS", "%s -shared" % get.LDFLAGS())
shelltools.export("ATLAS", "None")
shelltools.export("PTATLAS", "None")

def build():
    pythonmodules.compile(NUMPY_FCONFIG)

def install():
    pythonmodules.install(NUMPY_FCONFIG)

    inarytools.remove("/usr/bin/f2py")
    inarytools.removeDir("/usr/share")
    inarytools.dodoc("LICENSE.txt", "THANKS.txt")
Пример #19
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    if get.buildTYPE() == "emul32": return

    inarytools.dodoc("ChangeLog", "COPYING*", "README*", "TODO")
    inarytools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "contrib")
Пример #20
0
def install():
    pythonmodules.install()
    pythonmodules.install(pyVer="3")
    inarytools.insinto("%s/%s/examples" % (get.docDIR(), get.srcNAME()),
                       "examples/*")
    inarytools.dodoc("LICENSE", "CHANGES", "README.rst")
Пример #21
0
def install():
    autotools.rawInstall('DESTDIR="%s" pkghtmldir="/%s/%s/html"' % (get.installDIR(), get.docDIR(), get.srcNAME()))

    inarytools.dodoc("API", "ChangeLog", "HACKING", "README*", "STYLEGUIDE", "TODO", "USAGE")
    inarytools.dohtml("misc/*", "Dll/*")
    inarytools.dobin("misc/mlame")

    inarytools.remove("/usr/lib/libmp3lame.so")
    inarytools.remove("/usr/lib/libmp3lame.so.0")



    inarytools.dosym("/usr/lib/libmp3lame.so.0.0.0", "/usr/lib/libmp3lame.so")
    inarytools.dosym("/usr/lib/libmp3lame.so.0.0.0", "/usr/lib/libmp3lame.so.0")
Пример #22
0
def install():
    pythonmodules.install()
    pythonmodules.install(pyVer="3")

    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
Пример #23
0
from inary.actionsapi import shelltools

basename = "qt5"

prefix = "/{}".format(get.defaultprefixDIR())
libdir = "{}/lib".format(prefix)
libexecdir = "{}/libexec".format(prefix)
sysconfdir = "/etc"
bindir = "{}/bin".format(prefix)
includedir = "{}/include".format(prefix)

# qt5 spesific variables

headerdir = "{0}/include/{1}".format(prefix, basename)
datadir = "{0}/share/{1}".format(prefix, basename)
docdir = "/{0}/{1}".format(get.docDIR(), basename)
archdatadir = "{0}/{1}".format(libdir, basename)
examplesdir = "{0}/{1}/examples".format(libdir, basename)
importdir = "{0}/{1}/imports".format(libdir, basename)
plugindir = "{0}/{1}/plugins".format(libdir, basename)
qmldir = "{0}/{1}/qmldir".format(libdir, basename)
testdir = "{0}/share/{1}".format(prefix, basename)
translationdir = "{0}/translations".format(datadir)

qmake = "{}/qmake-qt5".format(bindir)


class ConfigureError(inary.actionsapi.Error):
    def __init__(self, value=''):
        inary.actionsapi.Error.__init__(self, value)
        self.value = value
Пример #24
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dodoc("AUTHORS", "ChangeLog", "README")
    inarytools.insinto("/%s/sdl-gfx/" % get.docDIR(), "Docs", "html")
Пример #25
0
def setup():
    shelltools.system("autoreconf -fiv")
    autotools.configure("docdir=/%s/%s" % (get.docDIR(), get.srcNAME()))
Пример #26
0
def install():
    pythonmodules.install()
    pythonmodules.install(pyVer="3")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/*")

    inarytools.dodoc("CHANGES.txt", "LICENSES.txt", "TODO.txt")
Пример #27
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get

exampledir = "/%s/%s/examples" % (get.docDIR(), get.srcNAME())

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.doman("doc/man/man3/*.3")
#    inarytools.dohtml("doc/html/*")
    inarytools.dodoc("README.md")

    for i in shelltools.ls("doc/*"):
        if shelltools.isFile(i):
            inarytools.dodoc(i)
Пример #28
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get

docdir = "/%s/%s" % (get.docDIR(), get.srcNAME())

shelltools.export("LC_ALL", "C")


def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--without-emacs \
                         --enable-nls \
                         --disable-static \
                         --enable-shared \
                         --with-pic \
                         --disable-rpath \
                         --with-included-libcroco")


def build():
    autotools.make("GMSGFMT=../src/msgfmt")

Пример #29
0
def dodoc(*sourceFiles, **kw):
    """inserts the files in the list of files into /usr/share/doc/PACKAGE"""
    destDir = kw.get("destDir", get.srcNAME())
    readable_insinto(join_path(get.installDIR(), get.docDIR(), destDir),
                     *sourceFiles)
Пример #30
0
def install():
    autotools.rawInstall('DESTDIR="%s" docdir=/%s/%s/html' % (get.installDIR(), get.docDIR(), get.srcNAME()))

    inarytools.insinto("/usr/include/a52dec", "liba52/a52_internal.h")
    inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "doc/liba52.txt")