#!/bin/bash # subversion # # Douglas Thrift # # $Id$ name=subversion version=1.4.3 revision=0 categories=(base devel) description='Version control system' url='http://subversion.tigris.org/' depends=('base/apr' 'base/neon') sources=(http://subversion.tigris.org/downloads/$name-$version.tar.bz2) with=(apache_module java perl python ruby) [[ -n $with_apache_module ]] && depends=(${depends[*]} 'www/apache') [[ -n $with_java ]] && depends=(${depends[*]} 'java/jdk') [[ -n $with_perl ]] && depends=(${depends[*]} 'base/perl') [[ -n $with_python ]] && depends=(${depends[*]} 'lang/python') [[ -n $with_ruby ]] && depends=(${depends[*]} 'lang/ruby') function build() { gnu_configure --prefix=/usr --mandir=/usr/share/man --with-apr=/usr --with-apr-util=/usr ${with_apache_module:+--with-apxs} --with-neon=/usr `[[ -z $with_java$with_perl$with_python$with_ruby ]] && echo --without-swig --disable-swig-bindings` ${with_java:+--enable-javahl} || return $? for interface in ${with_java:+javahl} ${with_perl:+swig-pl} ${with_python:+swig-py} ${with_ruby:+swig-rb}; do gmake $interface && gmake install-$interface DESTDIR=$package || return $? done }