def install(): pythonmodules.install() pisitools.insinto("%s/%s/examples" % (get.docDIR(), get.srcNAME()), "capture_*.py") pisitools.insinto("%s/%s/examples" % (get.docDIR(), get.srcNAME()), "list_devices.py") pisitools.dodoc("README")
def install(): for datas in ["*.php", "cacti.sql"]: pisitools.insinto(dataDir, datas) pisitools.insinto(logDir, "log/*") for libs in ["rra", "scripts", "cli"]: pisitools.insinto(libDir, libs) for d in siteDirs: pisitools.insinto(dataDir, d) pisitools.domove("%s/include/config.php" % dataDir, confDir, confFile) for data in ["poller", "cmd"]: shelltools.chmod("%s%s/%s.php" % (get.installDIR(), dataDir, data), 0755) shelltools.touch("%s/%s/poller.log" % (get.installDIR(), logDir)) pisitools.dosym("%s/%s" % (confDir, confFile), "%s/include/config.php" % dataDir) pisitools.dosym("%s/rra" % libDir, "%s/rra" % dataDir) pisitools.dosym("%s/scripts" % libDir, "%s/scripts" % dataDir) pisitools.dosym("%s/cli" % libDir, "%s/cli" % dataDir) pisitools.dosym(logDir, "%s/log" % dataDir) pisitools.dosym("%s/lib" % dataDir, "%s/lib" % libDir) pisitools.dosym("%s/include" % dataDir, "%s/include" % libDir) pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "docs/*") for f in unnecFiles: pisitools.remove("%s/%s/html/%s" % (get.docDIR(), get.srcNAME(), f))
def install(): autotools.install() pisitools.dodoc("README", "HOWTO", "COPYING") pisitools.dodir("/%s/fio/examples" % get.docDIR()) pisitools.insinto("/%s/fio/examples" % get.docDIR(), "examples/*")
def install(): pythonmodules.install() pisitools.dodoc("doc/*.txt") pisitools.dohtml("doc/*.html") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/build") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
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", "LICENSE") pisitools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "TOOLS") pisitools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "DOCS/tech") pythonmodules.fixCompiledPy("/usr/share/doc")
def install(): for i in ["data", "external", "lib", "modules", "plugins", "scripts", "tools"]: pisitools.insinto(datadir, i) if shelltools.isDirectory("%s/%s/external/source" % (get.installDIR(), datadir)): pisitools.removeDir("%s/external/source" % datadir) executables = shelltools.ls("msf*") # is it really necessary ? # executables.append("armitage") # needs ruby gtk, and it is said it is kind of bad #executables.remove("msfgui") # msfweb disabled until Rails is packaged # executables.remove("msfweb") for i in executables: pisitools.insinto(bindir, i) # FHS patch obsoletes this # pisitools.dosym("/usr/bin/metasploit", i) # Cleanup gui # FIXME: We leave gui components since they are checked by cli, but we don't support them # until necessary packages hit the repos, or the user installs them with gems #for i in ["meterpreter", "msfgui", "templates"]: # if shelltools.isDirectory("%s/%s/data/%s" % (get.installDIR(), datadir, i)): # pisitools.removeDir("%s/data/%s" % (datadir, i)) # pisitools.dodoc("documentation/*.txt", "documentation/*.pdf", "documentation/COPYING") pisitools.insinto("/%s" % get.docDIR(), "documentation", get.srcNAME()) pisitools.insinto("/%s/%s" % (get.docDIR(), get.srcNAME()), "test") pisitools.dodoc("HACKING")
def install(): pythonmodules.install() pisitools.dodoc("doc/usersguide.pdf", "ANNOUNCE.txt", "LICENSE.txt", \ "MIGRATING_TO_2.x.txt", "README.txt", "RELEASE_NOTES.txt", "THANKS") pisitools.insinto("%s/%s/examples" % (get.docDIR(), get.srcNAME()), "examples/*" ) pisitools.insinto("%s/%s/scripts" % (get.docDIR(), get.srcNAME()), "doc/scripts/*.py" )
def install(): shelltools.system('sed -i "s:mako-render:&3:g" setup.py') pythonmodules.install(pyVer="3") #pisitools.dodoc("doc/*.txt") pisitools.dohtml("doc/*.html") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/build") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
def install(): for f in ("install_bin", "install_plugin", "install_lib", "install_include", "install_data", "install_config", "install_doc"): shelltools.system("jam -s DESTDIR=%s %s" % (get.installDIR(), f)) pisitools.domove("/%s/cel/*" % get.docDIR(), "/%s/%s" % (get.docDIR(), get.srcTAG())) pisitools.removeDir("/%s/cel" % get.docDIR()) pisitools.dodoc("COPYING", "README")
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")
def install(): docdir = "%s/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME()) autotools.rawInstall("PKG_ROOT=%s DOC_PREFIX=%s" % (get.installDIR(), docdir)) pisitools.remove("/usr/X11R6/include/X11/pixmaps/tuxpaint.xpm") pisitools.domove("/usr/share/doc/tuxpaint-dev", "%s/%s/dev" % (get.docDIR(), get.srcNAME())) pisitools.insinto("/usr/share/applications", "src/tuxpaint.desktop") shelltools.chmod(get.installDIR() + "/usr/share/applications/tuxpaint.desktop", 0644)
def install(): docdir = "%s/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME()) autotools.rawInstall("PKG_ROOT=%s DOC_PREFIX=%s" % (get.installDIR(), docdir)) pisitools.domove("/usr/share/doc/tuxpaint-dev", "%s/%s/dev" % (get.docDIR(), get.srcNAME())) pisitools.insinto("/usr/share/applications", "src/tuxpaint.desktop") shelltools.chmod(get.installDIR() + "/usr/share/applications/tuxpaint.desktop", 0644) pisitools.remove("/usr/lib/tuxpaint/plugins/puzzle.so")
def install(): for package in shelltools.ls("."): if package in SkipFiles: continue shelltools.cd(package) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../") pisitools.domove("%s/*[!-]proto/*" % get.docDIR(), "/".join((get.docDIR(), get.srcNAME()))) pisitools.removeDir("%s/*[!-]proto" % get.docDIR())
def install(): pisitools.insinto("/usr/share/java", "dagitim/jar/*") pisitools.dosym("zemberek-az-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-az.jar") pisitools.dosym("zemberek-cekirdek-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-cekirdek.jar") pisitools.dosym("zemberek-demo-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-demo.jar") pisitools.dosym("zemberek-tk-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-tk.jar") pisitools.dosym("zemberek-tr-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-tr.jar") pisitools.dodir(get.docDIR()) shelltools.copytree("dokuman", "%s/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME()))
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("/%s/lirc/images" % get.docDIR(), "doc/images/*") pisitools.insinto("/%s/lirc/contrib" % get.docDIR(), "contrib/*")
def setup(): pisitools.dosed("sylpheed.desktop", "Icon=sylpheed", "Icon=sylpheed-128x128") autotools.configure( "--enable-ldap \ --enable-compface \ --disable-updatecheck \ --disable-static \ --with-manualdir=/%s/manual \ --with-faqdir=/%s/faq" % (get.docDIR(), get.docDIR()) )
def install(): shelltools.makedirs("%s/usr/bin" % get.installDIR()) shelltools.makedirs("%s/stublibs" % Base) autotools.install("BINDIR=%s/usr/bin INSTALLDIR=%s/lablGL DLLDIR=%s/stublibs" % (get.installDIR(), Base, Base)) pisitools.remove("/usr/lib/ocaml/lablGL/*.a") pisitools.dodoc("CHANGES", "COPYRIGHT", "README") pisitools.insinto("%s/lablgl/examples/Togl" % get.docDIR(), "Togl/examples") pisitools.insinto("%s/lablgl/examples/LablGlut" % get.docDIR(), "LablGlut/examples")
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")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "plugins/ommysql/createDB.sql", "createMySQLDB.sql") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "plugins/ompgsql/createDB.sql", "createPgSQLDB.sql") pisitools.dodoc("COPYING*", "README", "AUTHORS", "ChangeLog")
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.rename("/%s/%s" % (get.docDIR(), get.srcNAME()), "lirc") pisitools.insinto("/%s/lirc/images" % get.docDIR(), "doc/images/*") pisitools.insinto("/%s/lirc/contrib" % get.docDIR(), "contrib/*") pisitools.insinto("/lib/udev/rules.d", "contrib/lirc.rules", "10-lirc.rules")
def install(): pythonmodules.install() pisitools.dodoc("mx/LICENSE", "mx/COPYRIGHT") pisitools.dodoc("LICENSE", "COPYRIGHT", "MANIFEST", "README") # Make dir under docs for examples pisitools.dodir("%s/%s/Examples/DateTime" % (get.docDIR(), get.srcNAME())) pisitools.dodir("%s/%s/Examples/TextTools" % (get.docDIR(), get.srcNAME())) # Move examples from /usr/lib pisitools.domove("%s/DateTime/Examples/*.py" % MX_DIR, "%s/%s/Examples/DateTime/" % (get.docDIR(), get.srcNAME())) pisitools.domove("%s/TextTools/Examples/*.py" % MX_DIR, "%s/%s/Examples/TextTools/" % (get.docDIR(), get.srcNAME()))
def install(): if get.buildTYPE() == "emul32": autotools.rawInstall("DESTDIR=%s \ PROJ_etcdir=/etc/llvm \ PROJ_libdir=/usr/lib32/llvm \ PROJ_docsdir=/%s/llvm" % (get.installDIR(), get.docDIR())) pisitools.removeDir("/emul32") # Remove executable bit from static libs shelltools.chmod("%s/usr/lib32/*/*.a" % get.installDIR(), 0644) return else: autotools.rawInstall("DESTDIR=%s \ PROJ_etcdir=/etc/llvm \ PROJ_libdir=%s \ PROJ_docsdir=/%s/llvm" % (get.installDIR(), libdir, get.docDIR())) # Install static analyzers which aren't installed by default for exe in ("scan-build", "scan-view"): pisitools.insinto("/usr/lib/clang-analyzer/%s" % exe, "tools/clang/tools/%s/%s" % (exe, exe)) pisitools.dosym("/usr/lib/clang-analyzer/%s/%s" % (exe, exe), "/usr/bin/%s" % exe) pisitools.dodir("/etc/ld.so.conf.d") shelltools.echo("%s/etc/ld.so.conf.d/51-llvm.conf" % get.installDIR(), "/usr/lib/llvm") # Remove executable bit from static libs shelltools.chmod("%s/usr/lib/*/*.a" % get.installDIR(), 0644) # Symlink the gold plugin where clang expects it pisitools.dosym("llvm/LLVMgold.so", "/usr/lib/LLVMgold.so") # Remove example file pisitools.remove("/usr/lib/llvm/*LLVMHello.*") pisitools.remove("/usr/share/doc/llvm/*.tar.gz") pisitools.remove("/usr/share/doc/llvm/ocamldoc/html/*.tar.gz") pisitools.removeDir("/usr/share/doc/llvm/ps") # Install vim syntax files for .ll and .td files # llvm.vim additional file add ftdetct vim file to detect .ll and .td as llvm files pisitools.insinto("/usr/share/vim/vimfiles/syntax", "utils/vim/*.vim") # Install kate syntax file pisitools.insinto("%s/katepart/syntax" % kde4.appsdir, "utils/kate/*.xml") pisitools.dodoc("CREDITS.TXT", "LICENSE.TXT", "README.txt")
def install(): #shelltools.export("HOME", "%s" %get.workDIR()) autotools.rawInstall('DESTDIR=%s INSTALL="install -p"'% get.installDIR()) pisitools.removeDir("/usr/share/locale") for i in shelltools.ls("examples"): if i.endswith(".png") or i.endswith(".c"): pisitools.insinto("/%s/%s/examples/" % (get.docDIR(), get.srcNAME()), "examples/%s" % i)
def setup(): shelltools.export("AUTOPOINT", "true") autotools.autoreconf("-fiv") autotools.configure("--disable-static \ --enable-nls \ --enable-startup-notification \ --docdir=/%s/%s" % (get.docDIR(), get.srcNAME()))
def install(): shelltools.export("PYTHON_DIR", "/usr/lib/%s" % get.curPYTHON()) # install svn autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dobin("svn-config") # install swig-py autotools.rawInstall("DESTDIR=%s DISTUTIL_PARAM=--prefix=%s LD_LIBRARY_PATH=\"-L%s/usr/lib\"" % \ (get.installDIR(), get.installDIR(), get.installDIR()), "install-swig-py") # install swig-pl autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-pl") # Move py/c'into proper dir pisitools.domove("/usr/lib/svn-python/svn", "/usr/lib/%s/site-packages" % get.curPYTHON()) pisitools.domove("/usr/lib/svn-python/libsvn", "/usr/lib/%s/site-packages" % get.curPYTHON()) pisitools.removeDir("/usr/lib/svn-python") # some helper tools pisitools.insinto("/usr/bin/", "tools/backup/hot-backup.py", "svn-hot-backup") pisitools.insinto("/usr/bin/", "contrib/client-side/svn_load_dirs.pl", "svn-load-dirs") pisitools.insinto("/usr/bin/", "contrib/client-side/svnmerge.py", "svnmerge") shelltools.chmod("%s/usr/bin/svnmerge" % get.installDIR(), 0755) # Documentation and etc. pisitools.dodoc("BUGS", "COMMITTERS", "COPYING", "HACKING", "README", \ "CHANGES", "tools/xslt/svnindex.css", "tools/xslt/svnindex.xsl") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcTAG()), "contrib") perlmodules.fixLocalPod()
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto("/usr/share/hal/fdi/information/20thirdparty/", "scripts/hal/20-ups-nut-device.fdi") pisitools.dodir("/usr/libexec") for f in shelltools.ls("drivers"): if f.startswith("hald-addon-"): pisitools.dosym("/lib/nut/%s" % f, "/usr/libexec/%s" % f) # needed by scripts, this trick is for safely unmounting /usr pisitools.dosym("/lib/nut/upsdrvctl", "/usr/sbin/upsdrvctl") # nut's own statedir pisitools.dodir(nutconfig["STATE_PATH"]) shelltools.chmod("%s/%s" % (get.installDIR(), nutconfig["STATE_PATH"]), 0770) # let configs work for f in shelltools.ls("%s/%s/*.sample" % (get.installDIR(), nutconfig["CONF_DIR"])): _file = shelltools.baseName(f) pisitools.rename("%s/%s" % (nutconfig["CONF_DIR"], _file), _file[:-7]) # docs examples and cable diagrams pisitools.newdoc("lib/README", "README.lib") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcTAG()), "docs/cables") pisitools.dodoc("ChangeLog", "CREDITS", "MAINTAINERS", "NEWS", "README", "UPGRADING", "docs/FAQ", "docs/*.txt")
def dohtml(*sourceFiles, **kw): """inserts the files in the list of files into /usr/share/doc/PACKAGE/html""" """ example call: pisitools.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: raise FileError(_('No file matched pattern "%s"') % sourceFile) for source in sourceFileGlob: if os.path.isfile(source) and os.path.splitext(source)[1] in allowed_extensions: system('install -m0644 "%s" %s' % (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 -m0644 %s %s" % (join_path(root, sourcename), join_path(destionationDirectory, newRoot, sourcename)) )
def install(): pisitools.dobin('mongoose') pisitools.dolib_so("%s.%s" % (LIBNAME, LIBSUFFIX), LIBDIR) suffixMinor = "" for i in LIBSUFFIX.split("."): pisitools.dosym("%s.%s" % (LIBNAME, LIBSUFFIX), "/usr/lib/%s%s" % (LIBNAME, suffixMinor)) suffixMinor += ".%s" % i pisitools.doman('mongoose.1') pisitools.dodoc("LICENSE") for i in ['bindings', 'examples', 'test']: pisitools.insinto("%s/%s/" % (get.docDIR(), get.srcNAME()), i) fixPerms("%s/%s" % (get.installDIR(), get.docDIR()))
def install(): shelltools.cd("src") autotools.rawInstall("DESTDIR=\"%s\" docdir=/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME())) # Install symnlinks for easier usage for f in ["connect", "relay", "server", "setup", "sniff", "start", "status", "stop"]: pisitools.dosym("pppoe-%s" % f, "/usr/sbin/adsl-%s" % f)
def install(): autotools.install() perlmodules.fixLocalPod() pisitools.removeDir("/usr/share/rrdtool/fonts") pisitools.rename("%s/rrdtool-%s" % (get.docDIR(), get.srcVERSION()), get.srcTAG())
def build(): autotools.make("-j1 install_doc_dir=/%s/%s all" % (get.docDIR(), get.installDIR()))
#!/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/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 examples = "%s/%s/examples" % (get.docDIR(), get.srcTAG()) def setup(): shelltools.system("./config_unix.py") def build(): pythonmodules.compile() def install(): pythonmodules.install() pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README") shelltools.chmod("test/*", 0644) pisitools.insinto(examples, "test/*")
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import pythonmodules from pisi.actionsapi import get import os WorkDir = "pygame-%srelease" % get.srcVERSION() docdir = "%s/%s" % (get.docDIR(), get.srcNAME()) pyversion = get.curPYTHON().replace("python", "") arch = get.ARCH().replace("-", "_") def fixperms(d): for root, dirs, files in os.walk(d): for name in dirs: shelltools.chmod(os.path.join(root, name), 0755) for name in files: shelltools.chmod(os.path.join(root, name), 0644) def setup(): for d in ["src", "lib", "docs", "examples"]: fixperms(d)
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyleft 2012 Pardus ANKA Community # Copyright 2005-2011 TUBITAK/UEAKE # 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 autotools from pisi.actionsapi import shelltools from pisi.actionsapi import get examples = "%s/%s/examples" % (get.docDIR(), get.srcNAME()) WorkDir = "Jinja2-%s" % get.srcVERSION() def build(): pythonmodules.compile() def install(): pythonmodules.install() pisitools.insinto(examples, "examples/*") #Create docs with python-Sphinx shelltools.cd("docs") autotools.make("html")
#!/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 get from pisi.actionsapi import shelltools tutorial = "%s/%s/tutorial" % (get.docDIR(), get.srcNAME()) def setup(): shelltools.chmod("tutorial/*", 0644) autotools.configure("--enable-threads") def build(): autotools.make() def install(): autotools.install() pisitools.dodoc( "COPYRIGHT", "LICENSE", "RELEASE-NOTES", "Userguide.pdf",
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get import os slshdoc = "/%s/slsh" % get.docDIR() slangdoc = "/%s/slang/" % get.docDIR() def setup(): autotools.configure("--prefix=/usr \ --without-onig \ --sysconfdir=/etc") def build(): autotools.make("-j1 install_doc_dir=/%s/%s all" % (get.docDIR(), get.installDIR())) def check(): #autotools.make("check") pass
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2006 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 get docdir = "%s/%s" % (get.docDIR(), get.srcTAG()) def setup(): shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS()) shelltools.system("./bootstrap --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --sysconfdir=/etc \ --libdir=/usr/lib \ --localstatedir=/var/lib \ --disable-warns-as-err \ --enable-server \ --datadir=/usr/share/mpeg4ip \ --enable-a52dec \ --enable-alsa \ --enable-arts \ --enable-esd \ --enable-faac \
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.rename("/%s/tiff-%s" % (get.docDIR(), get.srcVERSION()), get.srcNAME())
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import pythonmodules from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get code = "%s/%s/code" % (get.docDIR(), get.srcNAME()) def build(): pisitools.dosed("setup.py", "pysqlite2-doc", "share/doc/pysqlite") pythonmodules.compile("build_docs") def setup(): shelltools.chmod("doc/includes/sqlite3/*", 0644) def install(): pythonmodules.install() pisitools.dohtml("build/doc/") pisitools.insinto(code, "doc/includes/sqlite3/*") #pisitools.remove("%s/%s/install-source.txt" % (get.docDIR(), get.srcNAME()))
def install(): cmaketools.install() pisitools.removeDir("%s/octave-html" % get.docDIR()) pisitools.dodoc("LICENSE_GPL.txt", "readme.txt")
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get import os WorkDir = "python-%s-docs-html" % get.srcVERSION() docdir = "/%s/%s/html" % (get.docDIR(), get.srcNAME()) def fixperms(d): for root, dirs, files in os.walk(d): for name in dirs: shelltools.chmod(os.path.join(root, name), 0755) for name in files: shelltools.chmod(os.path.join(root, name), 0644) def install(): pisitools.insinto(docdir, "*") pisitools.removeDir("%s/_sources" % docdir) fixperms(os.path.join(get.installDIR(), docdir.lstrip("/"))) pisitools.dodir("/etc/env.d")
def install(): pythonmodules.install() pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples") pisitools.dohtml("doc/html/*")
def install(): pythonmodules.install(pyVer="3") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
iconsdir = "%s/share/icons" % prefix applicationsdir = "%s/share/applications" % prefix mandir = "/%s" % get.manDIR() sharedir = "%s/share" % prefix localedir = "%s/share/locale" % prefix qmldir = "%s/lib/qt5/qml" % prefix plugindir = "%s/lib/qt5/plugins" % prefix moduledir = "%s/lib/qt5/mkspecs/modules" % prefix pythondir = "%s/bin/python3" % prefix appsdir = "%s" % sharedir configdir = "%s/config" % sharedir sysconfdir = "/etc" servicesdir = "%s/services" % sharedir servicetypesdir = "%s/servicetypes" % sharedir includedir = "%s/include" % prefix docdir = "/%s" % get.docDIR() htmldir = "%s/html" % docdir wallpapersdir = "%s/share/wallpapers" % prefix def configure(parameters='', installPrefix=prefix, sourceDir='..'): ''' parameters -DLIB_INSTALL_DIR="hede" -DSOMETHING_USEFUL=1''' shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure( "-DDATA_INSTALL_DIR:PATH=%s \ -DINCLUDE_INSTALL_DIR:PATH=%s \ -DCONFIG_INSTALL_DIR:PATH=%s \ -DLIBEXEC_INSTALL_DIR:PATH=%s \
def install(): pythonmodules.install() #pisitools.dohtml("docs/_build/*") pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "docs/*.txt")
def install(): perlmodules.install() pisitools.insinto("%s/%s/examples/" % (get.docDIR(), get.srcNAME()), "examples/*")
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get contrib = "%s/%s/contrib" % (get.docDIR(), get.srcNAME()) def setup(): shelltools.chmod("contrib/*", 0644) autotools.rawConfigure("prefix=/usr") def build(): autotools.make() def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto(contrib, "contrib/*") pisitools.domove("%s/_cmus" % contrib, "/usr/share/zsh/site-functions/") pisitools.dodoc("AUTHORS", "COPYING", "README", "Doc/*.txt")
#!/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 pisitools from pisi.actionsapi import pythonmodules from pisi.actionsapi import shelltools from pisi.actionsapi import get examples = "%s/%s/examples" % (get.docDIR(), get.srcNAME()) htmltxt = "%s/%s/html" % (get.docDIR(), get.srcNAME()) WorkDir = "Genshi-%s" % get.srcVERSION() def setup(): shelltools.chmod("examples/*", 0644) def build(): pythonmodules.compile() def install(): pythonmodules.install() pisitools.dohtml("doc/") pisitools.insinto(examples, "examples/*") pisitools.insinto(htmltxt, "doc/*.txt")
def install(): pisitools.insinto("/usr/lib/qt4/plugins/script", "plugins/script/*") pisitools.insinto("%s/qtscriptgenerator" % get.docDIR(), "doc/*") pisitools.dodoc("LICENSE*", "LGPL*")
def install(): pythonmodules.install() pisitools.remove("%s/%s/INSTALL.txt" % (get.docDIR(), get.srcNAME()))
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "THANKS") pisitools.insinto("/%s/%s/examples/" % (get.docDIR(), get.srcNAME()), "examples/*.c")
def install(): pythonmodules.install() pisitools.dodoc("NEWS", "TODO", "README", "BRANCH.TODO") pisitools.insinto(get.docDIR(), "usr/share/doc/")
def install(): pythonmodules.install(pyVer="3") pisitools.dodoc("LICENSE*") for dirs in ["examples"]: pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)
def install(): pythonmodules.install() pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/*") pisitools.dodoc("CHANGES.txt", "README.txt", "LICENSES.txt", "TODO.txt")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # installing manually since make install causes sandbox violation pisitools.insinto("/etc/gconf/schemas/", "gnome-mplayer.schemas") pisitools.remove("/%s/%s/INSTALL" % (get.docDIR(), get.srcNAME()))
def install(): pythonmodules.install() pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples/") pisitools.dohtml("doc/*.html") pisitools.dodoc("NOTICE", "background-associations.txt")
def install(): autotools.install() pisitools.dodoc("AUTHORS", "ChangeLog", "LICENSE", "README") shelltools.copytree( "Docs", "%s/%s/%s/html" % (get.installDIR(), get.docDIR(), get.srcTAG()))
def install(): pythonmodules.install() for dirs in ["demos", "tests"]: pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)
from pisi.actionsapi import shelltools basename = "qt5" prefix = "/%s" % get.defaultprefixDIR() libdir = "%s/lib" % prefix libexecdir = "%s/libexec" % prefix sysconfdir = "/etc" bindir = "%s/bin" % prefix includedir = "%s/include" % prefix # qt5 spesific variables headerdir = "%s/include/%s" % (prefix, basename) datadir = "%s/share/%s" % (prefix, basename) docdir = "/%s/%s" % (get.docDIR(), basename) archdatadir = "%s/%s" % (libdir, basename) examplesdir = "%s/%s/examples" % (libdir, basename) importdir = "%s/%s/imports" % (libdir, basename) plugindir = "%s/%s/plugins" % (libdir, basename) qmldir = "%s/%s/qml" % (libdir, basename) testdir = "%s/share/%s" % (prefix, basename) translationdir = "%s/translations" % datadir qmake = "%s/qmake-qt5" % bindir class ConfigureError(pisi.actionsapi.Error): def __init__(self, value=''): pisi.actionsapi.Error.__init__(self, value) self.value = value
def setup(): autotools.configure('--enable-sdl-net \ --localstatedir=/usr/share/lbreakout2 \ --with-docdir="/%s/%s/html"' % (get.docDIR(), get.srcNAME()))