|
|
webdav-serf? ( net-libs/serf )" | webdav-serf? ( net-libs/serf )" |
| |
RDEPEND="${CDEPEND} | RDEPEND="${CDEPEND} |
java? ( >=virtual/jre-1.4 ) |
java? ( >=virtual/jre-1.5 ) |
nls? ( virtual/libintl ) | nls? ( virtual/libintl ) |
perl? ( dev-perl/URI )" | perl? ( dev-perl/URI )" |
| |
DEPEND="${CDEPEND} | DEPEND="${CDEPEND} |
java? ( >=virtual/jdk-1.4 ) |
java? ( >=virtual/jdk-1.5 ) |
nls? ( sys-devel/gettext )" | nls? ( sys-devel/gettext )" |
| |
want_apache | want_apache |
|
|
} | } |
| |
src_compile() { | src_compile() { |
local myconf= |
local myconf |
| |
if use python || use perl || use ruby; then | if use python || use perl || use ruby; then |
myconf="${myconf} --with-swig" | myconf="${myconf} --with-swig" |
|
|
newins "${FILESDIR}"/svnserve.xinetd svnserve | newins "${FILESDIR}"/svnserve.xinetd svnserve |
| |
# Install documentation. | # Install documentation. |
dodoc BUGS CHANGES COMMITTERS HACKING INSTALL README TRANSLATING |
dodoc CHANGES COMMITTERS README |
|
dohtml www/hacking.html |
dodoc tools/xslt/svnindex.{css,xsl} | dodoc tools/xslt/svnindex.{css,xsl} |
rm -fr tools/xslt | rm -fr tools/xslt |
| |
|
|
pkg_preinst() { | pkg_preinst() { |
# Compare versions of Berkeley DB, bug 122877. | # Compare versions of Berkeley DB, bug 122877. |
if use berkdb && [[ -f "${ROOT}usr/bin/svn" ]] ; then | if use berkdb && [[ -f "${ROOT}usr/bin/svn" ]] ; then |
OLD_BDB_VERSION="$(scanelf -qn "${ROOT}usr/lib/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")" |
OLD_BDB_VERSION="$(scanelf -nq "${ROOT}usr/lib/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")" |
NEW_BDB_VERSION="$(scanelf -qn "${D}usr/lib/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")" |
NEW_BDB_VERSION="$(scanelf -nq "${D}usr/lib/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")" |
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then | if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then |
CHANGED_BDB_VERSION=1 | CHANGED_BDB_VERSION=1 |
fi | fi |