예제 #1
0
def install():
    pythonmodules.install()

    pisitools.remove("/usr/share/doc/ipython/README_Windows.txt")
    pisitools.rename("/usr/share/doc/ipython", get.srcTAG())

    pisitools.domove("/usr/share/doc/%s/ipython.el"% get.srcTAG(), "/usr/share/emacs/site-lisp/")
예제 #2
0
def install():
    scons.install()

    pisitools.dohtml("*.html", "Documentation/userdocs/'*.html'", "Documentation/*.html")
    pisitools.insinto("/usr/share/doc/%s/Lobby" % get.srcTAG(), "Documentation/Lobby")
    pisitools.insinto("/usr/share/doc/%s/UML" % get.srcTAG(), "Documentation/UML/*")
    pisitools.dodoc("Documentation/*.txt", "Documentation/*.odt")
예제 #3
0
def install():
    pythonmodules.install()

    pisitools.insinto("/usr/share/doc/%s/source/" % get.srcTAG(), "doc/source/*")
    pisitools.insinto("/usr/share/doc/%s/demo/" % get.srcTAG(), "demo/*")

    pisitools.dodoc("README", "LICENSE", "CHANGES", "doc/*")
예제 #4
0
def install():
    autotools.install()

    pisitools.insinto("/usr/share/doc/%s/examples"% get.srcTAG(), "doc/*.example")
    pisitools.insinto("/usr/share/doc/%s/examples"% get.srcTAG(), "scripts/msmtpqueue/*")

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "THANKS")
예제 #5
0
def build():
    cc_args = "-DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_LDAP"
    cc_libs = "-Wl,-z,now -L/usr/lib -lpcre -lcrypt -lpthread -lpam -lssl -lcrypto -lsasl2 -lmysqlclient -lpq -lm -lz -lldap -llber"

    # Sed operations
    pisitools.dosed("src/global/mail_params.h", \
                    "#define DEF_README_DIR\s+\"no\"", \
                    "#define DEF_README_DIR \"/usr/share/doc/%s/readme\"" % get.srcTAG())

    pisitools.dosed("src/global/mail_params.h", \
                    "#define DEF_HTML_DIR\s+\"no\"", \
                    "#define DEF_HTML_DIR \"/usr/share/doc/%s/html\"" % get.srcTAG())

    pisitools.dosed("src/global/mail_params.h", \
                    "#define DEF_MANPAGE_DIR\s+\"/usr/local/man\"", \
                    "#define DEF_MANPAGE_DIR \"/usr/share/man\"")

    pisitools.dosed("src/util/sys_defs.h", \
                    "#define NATIVE_DAEMON_DIR \"/usr/libexec/postfix\"", \
                    "#define NATIVE_DAEMON_DIR \"/usr/lib/postfix\"")

    autotools.make("CC=%s \
                    OPT=\"%s\" \
                    CCARGS=\"%s\" \
                    AUXLIBS=\"%s\" makefiles" % (get.CC(), get.CFLAGS(), cc_args, cc_libs))

    autotools.make()
예제 #6
0
def install():
    autotools.install("prefix=%(D)s/usr \
                       BINDIR=%(D)s/usr/bin \
                       LIBDIR=%(D)s/usr/lib \
                       CONFDIR=%(D)s/usr/share/mplayer \
                       DATADIR=%(D)s/usr/share/mplayer \
                       MANDIR=%(D)s/usr/share/man" % {"D": get.installDIR()})

    # set the default skin for gui
    shelltools.copytree("default_skin", "%s/usr/share/mplayer/skins/default" % get.installDIR())

    # codecs conf, not something user will interact with
    pisitools.insinto("/usr/share/mplayer", "etc/codecs.conf")

    # example dvb conf
    pisitools.insinto("/usr/share/mplayer", "etc/dvb-menu.conf")

    # just for fast access to conf
    pisitools.dosym("/etc/mplayer.conf", "/usr/share/mplayer/mplayer.conf")
    pisitools.dosym("/etc/mencoder.conf", "/usr/share/mplayer/mencoder.conf")

    # install docs, tools, examples
    pisitools.dodoc("AUTHORS", "ChangeLog", "README")
    pisitools.insinto("/usr/share/doc/%s/" % get.srcTAG(), "TOOLS")
    pisitools.insinto("/usr/share/doc/%s/" % get.srcTAG(), "DOCS/tech")
    pythonmodules.fixCompiledPy("/usr/share/doc")

    # we will use our own desktop file and icon
    pisitools.remove("/usr/share/applications/mplayer.desktop")
    pisitools.remove("/usr/share/pixmaps/mplayer.xpm")
예제 #7
0
def install():
    pisitools.dobin("asus_acpid/asus_acpid")

    pisitools.doman("asus_acpid/asus_acpid.8")

    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "samples")
    pisitools.chmod("%s/usr/share/doc/%s/samples/*" % (get.installDIR(), get.srcTAG()) , 0711)
예제 #8
0
def install():
    pisitools.dodir("/usr")
    pisitools.dodir("/usr/lib")

    autotools.rawInstall("prefix=%s/usr \
                          libdir=%s/usr/lib \
                          datadir=%s/usr/share/sgml/%s " \
                          % (get.installDIR(), \
                             get.installDIR(), \
                             get.installDIR(), \
                             get.srcTAG()))

    pisitools.dosym("openjade", "/usr/bin/jade")
    pisitools.dosym("onsgmls", "/usr/bin/nsgmls")
    pisitools.dosym("osgmlnorm", "/usr/bin/sgmlnorm")
    pisitools.dosym("ospam", "/usr/bin/spam")
    pisitools.dosym("ospent", "/usr/bin/spent")
    pisitools.dosym("osx", "/usr/bin/sgml2xml")

    pisitools.insinto("/usr/share/sgml/%s" % get.srcTAG(), "dsssl/builtins.dsl")
    for i in ["dsssl/dsssl.dtd", "dsssl/style-sheet.dtd", "dsssl/fot.dtd"]:
        pisitools.insinto("/usr/share/sgml/%s/dsssl" % get.srcTAG(), i)
    pisitools.insinto("/usr/share/sgml/%s/pubtext" % get.srcTAG(), "pubtext/*")

    pisitools.dodoc("COPYING", "NEWS", "README", "VERSION")
    pisitools.dohtml("doc/*.htm")

    pisitools.insinto("/usr/share/doc/%s/jadedoc" % get.srcNAME(), "jadedoc/*.htm")
    pisitools.insinto("/usr/share/doc/%s/jadedoc/images" % get.srcNAME(), "jadedoc/images/*")
예제 #9
0
def install():
    autotools.rawInstall("DESTDIR=%s \
                          fontdir=/usr/share/libwmf/fonts \
                          wmfonedocdir=/usr/share/doc/%s/caolan \
                          wmfdocdir=/usr/share/doc/%s" %
                          ( get.installDIR(), get.srcTAG(), get.srcTAG() ) )

    pisitools.dodoc("README", "AUTHORS", "CREDITS", "ChangeLog", "NEWS", "TODO")
예제 #10
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodir("/usr/share/%s/contrib" % get.srcTAG())
    pisitools.insinto("/usr/share/%s/contrib" % get.srcTAG(), "contrib/*")

    pisitools.dodoc("AUTHORS", "CHANGES*", "COPYING", "INSTALL", "NEWS", "README", \
                    "RELEASE.NOTES*", "TODO", "doc/integrating-with-*")
예제 #11
0
def install():
    pisitools.doman("setserial.8")
    pisitools.dobin("setserial", "/bin")

    pisitools.insinto("/etc", "serial.conf")
    pisitools.dodoc("README")
    pisitools.dodir("/usr/share/doc/%s/txt" % get.srcTAG())
    pisitools.insinto("/usr/share/doc/%s/txt" % get.srcTAG(), "Documentation/*")
예제 #12
0
def install():
    autotools.install()

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README", "todo")

    #add examples
    pisitools.dodir("%s/%s/examples" % (get.docDIR(), get.srcTAG()))
    pisitools.insinto("%s/%s/examples" % (get.docDIR(), get.srcTAG()), "examples/.libs/*")
    pisitools.insinto("%s/%s/examples" % (get.docDIR(), get.srcTAG()), "examples/brainsmall.den")
예제 #13
0
def install():
    autotools.rawInstall("DESTDIR=%s prefix=/usr mandir=/usr/share/man" % get.installDIR())
    
    pisitools.domove("/usr/lib/hugs/docs/*", "/usr/share/doc/%s/" % get.srcTAG())
    pisitools.removeDir("/usr/lib/hugs/docs")
    pisitools.domove("/usr/lib/hugs/demos", "/usr/share/doc/%s/" % get.srcTAG())
    pisitools.remove("/usr/lib/hugs/Credits")
    pisitools.remove("/usr/lib/hugs/License")
    pisitools.remove("/usr/lib/hugs/Readme")
    pisitools.dodoc("Credits", "License", "Readme")
예제 #14
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

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

    pisitools.dohtml("doc/html/*.html")
    pisitools.insinto("/usr/share/doc/%s/images" % get.srcTAG(), "doc/images/*")
    pisitools.insinto("/usr/share/doc/%s/contrib" % get.srcTAG(), "contrib/*")
예제 #15
0
def install():
    autotools.make("DESTDIR=%s \
                    PREFIX=/usr \
                    MANDIR=/usr/share/man \
                    LIBDIR=/usr/lib install" % get.installDIR())

    pisitools.dodoc("CHANGES", "CONTRIBUTORS", "README")
    pisitools.dohtml("doc/lm_sensors-FAQ.html")
    pisitools.insinto("/usr/share/doc/%s/doc" % get.srcTAG(), "doc/chips")
    pisitools.insinto("/usr/share/doc/%s/doc/developers" % get.srcTAG(), "doc/developers/*")
예제 #16
0
def install():
    shelltools.cd("src")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.doman("../man/man1/*")
    pisitools.dodoc("../readme.txt","README")
    pisitools.domove("/usr/share/plt/doc/*","/usr/share/doc/%s" % get.srcTAG())
    pisitools.removeDir("/usr/share/plt")

    pisitools.dosym("/usr/lib/plt", "/usr/share/plt")
    pisitools.dosym("/usr/share/doc/%s" % get.srcTAG(), "/usr/lib/plt/doc")
예제 #17
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.insinto("/etc", "/dist/tcsd.conf")
    pisitools.chmod("%s/etc/tcsd.conf" % get.installDIR(), 0600)
    pisitools.dobin("tools/ps_convert", "/usr/share/doc/%s/tools" % get.srcTAG())
    pisitools.dobin("tools/ps_inspect", "/usr/share/doc/%s/tools" % get.srcTAG())
    pisitools.dodoc("README","AUTHORS", "ChangeLog","NICETOHAVES","TODO")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "doc/*")

    pisitools.dodir("/var/lib/tpm")
예제 #18
0
def install():
    autotools.rawInstall("DESTDIR=%s \
                         gphotodocdir=/usr/share/doc/%s \
                         HTML_DIR=/usr/share/doc/%s/sgml \
                         hotplugdocdir=/usr/share/doc/%s/linux-hotplug \
                         udevscriptdir=/lib/udev"
                         % (get.installDIR(), get.srcTAG(), get.srcTAG(), get.srcTAG()))

    pisitools.removeDir("/usr/share/doc/libgphoto2")
    pisitools.removeDir("/usr/share/doc/libgphoto2_port")

    pisitools.dodoc("ChangeLog", "NEWS*", "README", "AUTHORS", "TESTERS", "MAINTAINERS", "HACKING", "CHANGES")
예제 #19
0
def install():
    autotools.rawInstall("DESTDIR=%s docdir=/usr/share/doc/%s/html" % (get.installDIR(), get.srcTAG()))

    pisitools.doexe("gettext-tools/misc/gettextize", "/usr/bin")

    # Remove C# & Java stuff
    pisitools.remove("/usr/share/doc/%s/html/examples/build-aux/csharp*" % get.srcTAG())
    pisitools.remove("/usr/share/doc/%s/html/examples/build-aux/java*" % get.srcTAG())
    pisitools.removeDir("/usr/share/doc/%s/html/examples/*java*" % get.srcTAG())
    pisitools.removeDir("/usr/share/doc/%s/html/*java*" % get.srcTAG())

    pisitools.dodoc("AUTHORS", "BUGS", "ChangeLog", "NEWS", "THANKS", "TODO")
예제 #20
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.domove("%s/docs/*" % hugsdir, "%s/%s" % (get.docDIR(), get.srcTAG()))
    pisitools.domove("%s/demos"  % hugsdir, "%s/%s" % (get.docDIR(), get.srcTAG()))

    pisitools.removeDir("%s/docs" % hugsdir)
    pisitools.remove("%s/Credits" % hugsdir)
    pisitools.remove("%s/License" % hugsdir)
    pisitools.remove("%s/Readme"  % hugsdir)

    pisitools.dodoc("Credits", "License", "Readme")
예제 #21
0
def setup():
#    shelltools.chmod("hw/vnc/symlink-vnc.sh")

    #autotools.autoreconf("-fiv")
    autotools.configure("--prefix=/usr \
                         --localstatedir=/var \
                         --enable-install-libxf86config \
                         --enable-aiglx \
                         --enable-glx-tls \
                         --enable-composite \
                         --enable-xcsecurity \
                         --enable-record \
                         --enable-dri \
                         --enable-dri2 \
                         --enable-config-udev \
                         --disable-config-hal \
                         --enable-xfree86-utils \
                         --enable-xorg \
                         --enable-dmx \
                         --enable-xvfb \
                         --disable-xnest \
                         --enable-kdrive \
                         --enable-kdrive-evdev \
                         --enable-kdrive-kbd \
                         --enable-kdrive-mouse \
                         --enable-xephyr \
                         --disable-xfake \
                         --disable-xfbdev \
                         --disable-devel-docs \
                         --disable-static \
                         --without-doxygen \
                         --with-pic \
                         --without-dtrace \
                         --with-int10=x86emu \
                         --with-os-name=\"PisiLinux\" \
                         --with-os-vendor=\"Pisi GNU/Linux Community\" \
                         --with-builderstring=\"Package: %s\" \
                         --with-fontrootdir=/usr/share/fonts \
                         --with-default-font-path=catalogue:/etc/X11/fontpath.d,built-ins \
                         --with-xkb-output=/var/lib/xkb \
                         --with-dri-driver-path=/usr/lib/xorg/modules/dri \
                         --without-xmlto \
                         --without-fop \      
                         --enable-install-setuid  \
                         --enable-suid-wrapper  \          
                         PCI_TXT_IDS_DIR=/usr/share/X11/pci \
                         XSERVERCFLAGS_LIBS=-L/usr/lib \
                         XSERVERCFLAGS_CFLAGS=-I/usr/include  \
                         PKG_CONFIG_PATH=/usr/lib/pkgconfig \
                         " % get.srcTAG())
    
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
    pisitools.dosed("hw/xfree86/dri/dri.h", "xf86dri.h", "X11/dri/xf86dri.h")
예제 #22
0
def install():
    pisitools.insinto("/usr/share/texmf/tex/latex/%s/" % WorkDir, "*.sty")

    pisitools.dobin("makeglossaries")
    pisitools.insinto("/usr/share/texmf-site/tex/latex/%s/dict/" % WorkDir, "*.dict")

    for dvidoc in shelltools.ls("*.pdf"):
        print dvidoc
        pisitools.dodoc(dvidoc)
        pisitools.dosym("/usr/share/doc/%s/%s" % (get.srcTAG(), dvidoc), "/usr/share/texmf/doc/latex/%s/%s" % (WorkDir, dvidoc))

    pisitools.insinto("/usr/share/doc/%s/examples/" % get.srcTAG(), "*.tex")
    pisitools.dodoc("README", "CHANGES")
예제 #23
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Remove precompiled lisp files
    pisitools.remove("/usr/share/emacs/site-lisp/*.elc")

    # Docs, Demo, Manual and Tutorial files
    pisitools.insinto("/usr/share/doc/%s/demo" % get.srcTAG(), "demo/*")
    pisitools.remove("/usr/share/doc/%s/demo/Makefile*" % get.srcTAG())
    pisitools.insinto("/usr/share/doc/%s/manual" % get.srcTAG(), "docs/gnuplot.pdf")
    pisitools.insinto("/usr/share/doc/%s/tutorial" % get.srcTAG(), "tutorial/*.pdf")

    pisitools.dodoc("BUGS", "ChangeLog", "FAQ", "NEWS", "README*", "TODO")
예제 #24
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    
    pisitools.dodoc("README*", "TODO")

    pisitools.domove("/usr/share/doc/%s/man-html" % get.srcTAG(), "/usr/share/doc/%s/html" % get.srcTAG())
    pisitools.domove("/usr/share/doc/%s/man-text" % get.srcTAG(), "/usr/share/doc/%s/text" % get.srcTAG())

    # install ispell/aspell compatibility scripts
    pisitools.doexe("scripts/ispell", "/usr/bin")
    pisitools.domove("/usr/bin/ispell", "/usr/bin/", "ispell-aspell")
    pisitools.doexe("scripts/spell", "/usr/bin")
    pisitools.domove("/usr/bin/spell", "/usr/bin/", "spell-aspell")
예제 #25
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dohtml("Docs/*.html")

    for dirs in ("Docs/api", "Docs/manual", "Docs/Readme", "Docs/vbo-update"):
        shelltools.copytree(dirs, "%s/%s/%s/html" % (get.installDIR(), get.docDIR(), get.srcTAG()))

    for dirs in ("api", "api/html", "manual", "manual/images", "Readme", "vbo-update"):
        pisitools.removeDir("/usr/share/doc/%s/html/%s/CVS" % (get.srcTAG(), dirs))

    pisitools.dodoc("AUTHORS", "BUGS", "COPYING", "NEWS", "LINUX.DEV"
                    "README", "Docs/shadows/OgreShadows.pdf", "Docs/README.linux",
                    "Docs/licenses/*.txt")
예제 #26
0
def install():
    pisitools.dodir("/usr")
    pisitools.dodir("/usr/share/doc/%s/examples" % get.srcTAG())
    pisitools.dodir("/usr/share/doc/%s/html" % get.srcTAG())

    autotools.rawInstall("prefix=%s/usr manroot=%s/usr/share/man inforoot=%s/usr/share/info \
                         docdir=%s/usr/share/doc/%s" % (get.installDIR(), get.installDIR(), get.installDIR(), get.installDIR(), get.srcTAG()))

    # The following links are required for xman
    pisitools.dosym("eqn", "/usr/bin/geqn")
    pisitools.dosym("tbl", "/usr/bin/gtbl")
    pisitools.dosym("soelim", "/usr/bin/zsoelim")

    pisitools.dodoc("BUG-REPORT", "ChangeLog", "FDL", "MORE.STUFF", "NEWS", "PROBLEMS", "PROJECTS", "README", "REVISION", "TODO", "VERSION")
예제 #27
0
def install():
    pisitools.dosbin("vsftpd")

    pisitools.dodir("/home/ftp")
    pisitools.dodir("/home/ftp/incoming")
    pisitools.dodir("/usr/share/vsftpd/empty")

    pisitools.newdoc("vsftpd.conf", "vsftpd.conf.example")
    pisitools.doman("vsftpd.conf.5", "vsftpd.8")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "SECURITY")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "EXAMPLE")
    pisitools.dodoc("AUDIT", "BENCHMARKS", "BUGS", "Changelog", "FAQ",\
                    "LICENSE", "README*", "REFS", "REWARD", "SIZE", \
                    "SPEED", "TODO", "TUNING")
예제 #28
0
def install():
    cmaketools.rawInstall("DESTDIR=%s root=%s" % (get.installDIR(), get.installDIR()))
 
    #add examples
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "Examples")

    #remove Win32 examples
    pisitools.removeDir("/usr/share/doc/%s/Examples/GUI/Win32" % get.srcTAG())

    #remove Win32 header
    pisitools.remove("/usr/include/vtk-5.0/vtkWin32Header.h")
    
    #install python modul
    shelltools.cd("Wrapping/Python")
    pythonmodules.install() 
예제 #29
0
def install():
    autotools.rawInstall("BUILDROOT=%s" % get.installDIR())

    pisitools.dodir("/usr/share/cups/profiles")
    pisitools.dodir("/usr/libexec/cups/driver")
    pisitools.dodir("/var/log/cups")
    pisitools.dodir("/var/run/cups/certs")
    pisitools.dodir("/var/cache/cups")
    pisitools.dodir("/var/spool/cups/tmp")

    pisitools.dodoc("CHANGES.txt", "CREDITS.txt", "ENCRYPTION.txt", "LICENSE.txt", "README.txt")

    pisitools.dosym("/usr/share/cups/docs", "/usr/share/doc/%s/html" % get.srcTAG())

    # cleanups
    pisitools.removeDir("/etc/pam.d")
    pisitools.removeDir("/usr/share/applications")

    # allow raw printing
    pisitools.dosed("%s/etc/cups/mime.types" % get.installDIR(), "^#application/octet-stream", "application/octet-stream")

    # Enable network connections use PCL drivers, for other OS clients (yes, raw printing)
    pisitools.dosed("%s/etc/cups/mime.convs" % get.installDIR(), "^#application/octet-stream", "application/octet-stream")

    # Let cups use all available protocols, like slp
    pisitools.dosed("%s/etc/cups/cupsd.conf" % get.installDIR(), "^#BrowseProtocols.*", "BrowseProtocols all")
예제 #30
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # move docs into proper place
    pisitools.domove("/usr/share/libatomic_ops/", "/usr/share/doc/%s" % get.srcTAG())

    pisitools.remove("/usr/include/atomic_ops/sysdeps/README")
예제 #31
0
def install():
    pythonmodules.install()

    for doc in ["docs/*", "demos", "changes", "README", "license.txt"]:
        pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), doc)
예제 #32
0
def build():
    autotools.make("pkgdocdir=/usr/share/doc/%s" % get.srcTAG())
예제 #33
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

samples = "%s/%s/samples" % (get.docDIR(), get.srcTAG())

def install():
    pythonmodules.install()

    pisitools.insinto(samples, "samples/*")
    pisitools.dodoc("license.txt", "README")
예제 #34
0
def install():
    for dir in ["base", "emulation", "extensions", "themes"]:
        pisitools.insinto("/usr/share/texmf-dist/latex-beamer", dir)

    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "examples")
    pisitools.dodoc("README", "ChangeLog", "doc/*.pdf")
예제 #35
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get

WorkDir = "pygame-%srelease" % get.srcVERSION()
docdir = "%s/%s" % (get.docDIR(), get.srcTAG())


def build():
    pythonmodules.compile()
    shelltools.copy(
        "lib/pygame_icon.bmp", "build/lib.linux-i686-%s/pygame/" %
        get.curPYTHON().replace("python", ""))


def install():
    pythonmodules.install()

    pisitools.insinto(docdir, "docs", "html")
    pisitools.insinto(docdir, "examples")
예제 #36
0
def install():
    docdir = "%s/%s/%s" % (get.installDIR(), get.docDIR(), get.srcTAG())
    autotools.rawInstall("PKG_ROOT=%s DOC_PREFIX=%s" %
                         (get.installDIR(), docdir))
    pisitools.remove("/usr/X11R6/include/X11/pixmaps/tuxpaint.xpm")
예제 #37
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

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

htmltxt = "%s/%s/html" % (get.docDIR(), get.srcTAG())


def install():
    pythonmodules.install()

    pisitools.dohtml("doc/")
    pisitools.insinto(htmltxt, "doc/*.txt")

    pisitools.dodoc("README.txt", "COPYING", "ChangeLog")
예제 #38
0
def install():
    pisitools.dodoc("README", "LICENSE", "NEWS", "ChangeLog")
    autotools.rawInstall("DESTDIR='%s' docdir='/%s/%s'" % (get.installDIR(), get.docDIR(), get.srcTAG()))
    pisitools.domove("/usr/share/doc/yaz/common/id.png", "/%s/%s" % (get.docDIR(), get.srcTAG()))
    pisitools.domove("/usr/share/doc/yaz/common/style1.css", "/%s/%s" % (get.docDIR(), get.srcTAG()))
    pisitools.removeDir("/usr/share/doc/yaz")
예제 #39
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

params = {"CXX": get.CXX(), \
          "datadir": get.dataDIR(), \
          "srctag": get.srcTAG(), \
          "installdir": get.installDIR(), \
          "htmldir": "%s/%s/html" % (get.docDIR(),get.srcTAG())}


def build():
    autotools.make("CXX=%(CXX)s \
                    DATADIR=/%(datadir)s/blobAndConquer/ \
                    DOCDIR=/%(htmldir)s/" % params)


def install():
    autotools.rawInstall('DESTDIR=%(installdir)s \
                          BINDIR=%(installdir)s/usr/bin/ \
                          DATADIR=%(installdir)s/%(datadir)s/blobAndConquer/ \
                          DOCDIR=%(installdir)s/%(htmldir)s/' % params)

    pisitools.insinto("/usr/share/pixmaps", "icons/blobAndConquer.png")
예제 #40
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get

examples = "%s/%s/examples" % (get.docDIR(), get.srcTAG())
utils = "%s/%s/utils" % (get.docDIR(), get.srcTAG())


def setup():
    shelltools.chmod("examples/*", 0644)
    shelltools.chmod("utils/*", 0644)


def build():
    pythonmodules.compile()

    # we need texi to create ps
    # for d in ["doc/html", "doc/info", "doc/ps"]:
    for d in ["doc/html", "doc/info"]:
        shelltools.cd(d)
        autotools.make()
        shelltools.cd("../..")
예제 #41
0
def setup():
    pisitools.dosed("doc/Makefile.in", "srcTAG", "%s/samples" % get.srcTAG())
    pisitools.dosed("Makefile.in", "srcTAG", get.srcTAG())

    autotools.configure()
예제 #42
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

params = {"datadir": get.dataDIR(), \
          "docdir": get.docDIR(), \
          "srctag": get.srcTAG(), \
          "installdir": get.installDIR()}


def build():
    autotools.make(
        'DATADIR=/%(datadir)s/blobwars/ DOCDIR=/%(docdir)s/%(srctag)s/' %
        params)


def install():
    autotools.rawInstall('DESTDIR=%(installdir)s \
                          BINDIR=%(installdir)s/usr/bin/ \
                          DATADIR=%(installdir)s/%(datadir)s/blobwars/ \
                          DOCDIR=%(installdir)s/%(docdir)s/%(srctag)s/' %
                         params)
예제 #43
0
def setup():
    autotools.configure("--with-libwmf \
                         --disable-static \
                         --with-libxml2 \
                         --with-docdir=/usr/share/doc/%s" % get.srcTAG())
예제 #44
0
def setup():
    autotools.configure("--bindir=/usr/bin \
                         --docdir=/usr/share/doc/%s" % get.srcTAG())
예제 #45
0
def install():
    pythonmodules.install()

    pisitools.insinto("/usr/share/doc/%s/examples" % get.srcTAG(), "examples/*")
예제 #46
0
def install():
     pythonmodules.install()
     pisitools.rename("/usr/lib/python2.4/site-packages/_pg.so", "_pgmodule.so")
     pisitools.dodoc("docs/*")
     pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "tutorial")
예제 #47
0
def build():
    autotools.make('DATADIR=/%s/blobwars/ DOCDIR=/%s/%s/' %
                   (get.dataDIR(), get.docDIR(), get.srcTAG()))
예제 #48
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "THANKS")
    pisitools.insinto("/%s/%s/examples/" % (get.docDIR(), get.srcTAG()),
                      "examples/*.c")
예제 #49
0
def install():
    pythonmodules.install()

    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcTAG()), "doc/*")
    pisitools.dodoc("ChangeLog")
예제 #50
0
def setup():
    pisitools.dosed("Makefile", "-O -Wall -c", "-Wall -c %s" % get.CFLAGS())
    pisitools.dosed("Makefile", "-O -Wall -lfreeimage",
                    "-Wall %s -lfreeimage" % get.LDFLAGS())
    pisitools.dosed("Makefile", "doc/\$\(PROGRAM\)", "doc/%s" % get.srcTAG())
    pisitools.dosed("Makefile", "/usr/local", "/usr")
예제 #51
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("LICENSE", "README", "TODO")
    pisitools.insinto("/usr/share/doc/%s/examples/" % get.srcTAG(),
                      "examples/*")
예제 #52
0
def host_def_setup():
    HOSTCONF = "config/cf/host.def"

    shelltools.echo(
        HOSTCONF,
        "#define XVendorString \"Pardus (The X.Org Foundation 6.9.0)\"")
    # FHS install locations
    shelltools.echo(HOSTCONF, "#define ManDirectoryRoot /usr/share/man")
    shelltools.echo(HOSTCONF,
                    "#define DocDir /usr/share/doc/%s" % get.srcTAG())
    shelltools.echo(HOSTCONF, "#define FontDir /usr/share/fonts")
    shelltools.echo(HOSTCONF, "#define BinDir /usr/bin")
    shelltools.echo(HOSTCONF, "#define IncRoot /usr/include")
    shelltools.echo(HOSTCONF, "#define LibDir /usr/lib/X11")
    shelltools.echo(HOSTCONF, "#define UsrLibDir /usr/lib")
    shelltools.echo(HOSTCONF, "#define LinkGLToUsrInclude NO")

    # Make man4 and man7 stuff get 'x' suffix like everything else
    # Necessary so we can install to /usr/share/man without overwriting
    shelltools.echo(HOSTCONF, "#define DriverManDir \$(MANSOURCEPATH)4")
    shelltools.echo(
        HOSTCONF,
        "#define DriverManSuffix 4x /* use just one tab or cpp will die */")
    shelltools.echo(HOSTCONF, "#define MiscManDir \$(MANSOURCEPATH)7")
    shelltools.echo(
        HOSTCONF,
        "#define MiscManSuffix 7x /* use just one tab or cpp will die */")

    # Don't build xterm -- use external
    shelltools.echo(HOSTCONF, "#define BuildXterm NO")

    # Xwrapper has been removed so we now need to use the set uid server
    # again, this mustve happened somewhere after 4.3.0 in the development.
    shelltools.echo(HOSTCONF, "#define InstallXserverSetUID YES")
    shelltools.echo(HOSTCONF, "#define BuildServersOnly NO")

    shelltools.echo(HOSTCONF, "#define HaveLib64 NO")

    # Set location of DRM source to be installed
    shelltools.echo(HOSTCONF, "#define InstSrcDir /usr/src/%s" % get.srcTAG())

    shelltools.echo(HOSTCONF, "#define CcCmd %s" % get.CC())
    shelltools.echo(
        HOSTCONF,
        "#define OptimizedCDebugFlags %s GccAliasingArgs" % get.CFLAGS())
    shelltools.echo(
        HOSTCONF, "#define OptimizedCplusplusDebugFlags %s GccAliasingArgs" %
        get.CXXFLAGS())

    shelltools.echo(HOSTCONF, "#define DoLoadableServer  YES")
    shelltools.echo(HOSTCONF, "#define MakeDllModules    YES")

    # Use less RAM
    shelltools.echo(HOSTCONF, "#define GccWarningOptions -Wno-return-type -w")

    shelltools.echo(HOSTCONF, "#define HasPam YES")
    shelltools.echo(HOSTCONF, "#define HasPamMisc YES")

    # optimize Mesa for architecture
    shelltools.echo(HOSTCONF, "#define HasMMXSupport YES")
    shelltools.echo(HOSTCONF, "#define HasSSESupport YES")

    # Do we want the glx extension?
    shelltools.echo(HOSTCONF, "#define BuildGlxExt YES")
    shelltools.echo(HOSTCONF, "#define BuildGLXLibrary YES")
    shelltools.echo(HOSTCONF, "#define BuildXF86DRI YES")
    # Needs GL headers
    shelltools.echo(HOSTCONF, "#define BuildGLULibrary YES")

    # Make xv optional for more minimal builds
    shelltools.echo(HOSTCONF, "#define BuildXvLibrary YES")
    shelltools.echo(HOSTCONF, "#define BuildXvExt YES")
    # Depends on X11/extensions/Xv.h
    shelltools.echo(HOSTCONF, "#define BuildXF86RushExt YES")
    shelltools.echo(HOSTCONF, "#define BuildXF86RushLibrary YES")

    # The definitions for fontconfig
    shelltools.echo(HOSTCONF, "#define UseFontconfig YES")
    shelltools.echo(HOSTCONF, "#define HasFontconfig YES")

    # Use the xorg Xft2 lib
    shelltools.echo(HOSTCONF, "#define SharedLibXft YES")

    shelltools.echo(HOSTCONF, "#define BuildLinuxDocPS YES")
    shelltools.echo(HOSTCONF, "#define BuildSpecsDocs YES")
    shelltools.echo(HOSTCONF, "#define BuildHtmlManPages YES")
    shelltools.echo(HOSTCONF, "#define InstallHardcopyDocs YES")

    # Native Language Support Fonts
    shelltools.echo(HOSTCONF, "#define BuildCyrillicFonts NO")
    shelltools.echo(HOSTCONF, "#define BuildArabicFonts NO")
    shelltools.echo(HOSTCONF, "#define BuildGreekFonts NO")
    shelltools.echo(HOSTCONF, "#define BuildHebrewFonts NO")
    shelltools.echo(HOSTCONF, "#define BuildThaiFonts NO")

    # Crappy bitmap fonts
    shelltools.echo(HOSTCONF, "#define Build75DpiFonts YES")
    shelltools.echo(HOSTCONF, "#define Build100DpiFonts YES")

    # Type1 fonts
    shelltools.echo(HOSTCONF, "#define BuildType1Fonts YES")

    # TrueType fonts
    shelltools.echo(HOSTCONF, "#define BuildTrueTypeFonts YES")

    # Distributed Multiheaded X
    shelltools.echo(HOSTCONF, "#define BuildDmx YES")

    shelltools.echo(HOSTCONF, "#define BuildXprint YES")
    shelltools.echo(HOSTCONF, "#define BuildXprintClients YES")

    shelltools.echo(HOSTCONF, "#define BuildFontServer NO")
예제 #53
0
def setup():
    pisitools.dosed("src/libmm3d/mm3dconfig.h", "(/share/doc/)mm3d/",
                    r"\1%s/" % get.srcTAG())
    autotools.configure()
예제 #54
0
def setup():
    pisitools.dosed("setup.py", "share/doc/gazpacho",
                    "share/doc/%s" % get.srcTAG())
예제 #55
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --disable-sqlite \
                         --enable-flac \
                         --enable-alsa \
                         --disable-werror \
                         --disable-gcc-pipe \
                         --disable-dependency-tracking")

    pisitools.dosed("doc/Makefile", "^htmldocdir.*", "htmldocdir = /usr/share/doc/%s/html" % get.srcTAG())
예제 #56
0
def setup():
    autotools.configure("--disable-static \
                         --with-html-dir=%s/usr/share/doc/%s/html" %
                        (get.installDIR(), get.srcTAG()))
예제 #57
0
def install():
    pisitools.insinto("/usr/lib", "libsift.dll")

    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "TODO")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "VERSION")
예제 #58
0
def setup():
    autotools.configure("--disable-static \
                         --with-gstreamer \
                         --with-html-dir=/%s/%s/html"
                         % (get.docDIR(), get.srcTAG()))
예제 #59
0
def setup():
    autotools.configure("--prefix=/usr \
                         --enable-static=no \
                         --docdir=/usr/share/doc/%s/" % (get.srcTAG()))
예제 #60
0
def install():
    autotools.rawInstall("DESTDIR=\"%s\" pkgdocdir=/usr/share/doc/%s" % (get.installDIR(), get.srcTAG()))