123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #!/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 get
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import perlmodules
- def setup():
- shelltools.export("PYTHON", "/usr/bin/python3")
- # Respect the user LDFLAGS
- shelltools.system("./autogen.sh")
- shelltools.export("EXTRA_LDFLAGS", get.LDFLAGS())
- autotools.configure("--disable-static \
- --with-jdk=/usr/lib/jvm/java-8-openjdk \
- --enable-javahl \
- --with-apr=/usr \
- --with-apr-util=/usr \
- --with-apache-libexecdir=/usr/lib/apache2/modules \
- --with-apxs \
- --with-serf=/usr \
- --with-sqlite=/usr \
- --with-zlib=/usr \
- --with-jikes=no \
- --with-lz4=internal \
- --with-utf8proc=internal \
- --without-berkeley-db \
- --disable-mod-activation")
- pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
- def build():
- # svn
- autotools.make()
- # python bindings
- autotools.make("swig-py")
- # perl bindings (needed by git-svn*)
- # Sometimes parallel build breaks perl bindings
- autotools.make("-j1 swig-pl")
- # java bindings
- autotools.make("-j1 javahl")
- def install():
- # install svn
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
- # install swig-py
- autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-py")
- # install swig-pl
- autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-pl")
- # install javahl
- autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-javahl")
- # 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")
- # FIXME: these tools are replaced by new ones
- # 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)
- # Install upstream bash completion script
- pisitools.insinto("/etc/bash_completion.d", "tools/client-side/bash_completion", "subversion")
- # Documentation and etc.
- #pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "contrib")
- pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "tools/xslt")
- pisitools.insinto("/var/www/localhost/htdocs", "tools/xslt/*")
- # Create virtual repository root
- pisitools.dodir("/var/svn")
- pisitools.dodoc("README")
- # remove unnecessary files i.e. perllocal.pod, .packlist
- perlmodules.removePacklist()
- perlmodules.removePodfiles()
|