diff options
Diffstat (limited to 'extra/subversion/PKGBUILD')
-rw-r--r-- | extra/subversion/PKGBUILD | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/extra/subversion/PKGBUILD b/extra/subversion/PKGBUILD index d6edcf95e..c7eb2b598 100644 --- a/extra/subversion/PKGBUILD +++ b/extra/subversion/PKGBUILD @@ -7,13 +7,16 @@ pkgname=subversion pkgver=1.7.9 pkgrel=1 pkgdesc="A Modern Concurrent Version Control System" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('APACHE') depends=('neon' 'apr-util' 'sqlite' 'file' 'serf') optdepends=('libgnome-keyring' 'kdeutils-kwallet' 'bash-completion: for svn bash completion' \ 'python2: for some hook scripts' 'java-environment') #'ruby: for some hook scripts') makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'java-runtime' 'java-environment' 'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs') +[ "$CARCH" = "mips64el" ] && \ +makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' + 'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs') backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve') url="http://subversion.apache.org/" provides=('svn') @@ -42,16 +45,26 @@ build() { patch -Np0 -i ../subversion.rpath.fix.patch sed -i 's|/usr/bin/env python|/usr/bin/env python2|' tools/hook-scripts/{,mailer/{,tests/}}*.py + if [ "$CARCH" = "mips64el" ]; then + ./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr \ + --with-zlib=/usr --with-neon=/usr --with-serf=/usr --with-apxs \ + --with-sqlite=/usr --with-berkeley-db=:/usr/include/:/usr/lib:db-5.3 \ + --disable-javahl --with-gnome-keyring --with-kwallet \ + --disable-static + else ./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr \ --with-zlib=/usr --with-neon=/usr --with-serf=/usr --with-apxs \ --with-sqlite=/usr --with-berkeley-db=:/usr/include/:/usr/lib:db-5.3 \ --enable-javahl --with-gnome-keyring --with-kwallet \ --disable-static + fi make external-all make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all make swig_pydir=/usr/lib/python2.7/site-packages/libsvn \ - swig_pydir_extra=/usr/lib/python2.7/site-packages/svn swig-py swig-pl javahl #swig-rb + swig_pydir_extra=/usr/lib/python2.7/site-packages/svn swig-py swig-pl #swig-rb + + [ "$CARCH" = "mips64el" ] || make javahl } #check() { @@ -67,7 +80,9 @@ package() { make DESTDIR="${pkgdir}" INSTALLDIRS=vendor \ swig_pydir=/usr/lib/python2.7/site-packages/libsvn \ swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \ - install install-swig-py install-swig-pl install-javahl #install-swig-rb + install install-swig-py install-swig-pl #install-swig-rb + + [ "$CARCH" = "mips64el" ] || make install-javahl install -dm755 "${pkgdir}"/usr/share/subversion cp -a tools/hook-scripts "${pkgdir}"/usr/share/subversion/ |