Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/subversion/
Date: Fri, 11 Aug 2017 12:18:27
Message-Id: 1502453898.73fa4aec41f27f559ab7e6e0a4b0c5b2aa32063d.polynomial-c@gentoo
1 commit: 73fa4aec41f27f559ab7e6e0a4b0c5b2aa32063d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 11 12:18:01 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 11 12:18:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73fa4aec
7
8 dev-vcs/subversion: Removed old.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-vcs/subversion/Manifest | 3 -
13 dev-vcs/subversion/subversion-1.8.17.ebuild | 512 ----------------------------
14 dev-vcs/subversion/subversion-1.9.5.ebuild | 509 ---------------------------
15 dev-vcs/subversion/subversion-1.9.6.ebuild | 510 ---------------------------
16 4 files changed, 1534 deletions(-)
17
18 diff --git a/dev-vcs/subversion/Manifest b/dev-vcs/subversion/Manifest
19 index 1de734c86af..b32163ab540 100644
20 --- a/dev-vcs/subversion/Manifest
21 +++ b/dev-vcs/subversion/Manifest
22 @@ -1,5 +1,2 @@
23 -DIST subversion-1.8.17.tar.bz2 6924354 SHA256 de119538d29a5f2c028984cb54a55a4af3e9c32fa9316331bcbe5719e474a090 SHA512 49de24703bc40ccfd5a5df15215fd037f81c20f3047be5d3321bb2ce53dc7664505460791408a8989ede4a1357a0bdb49fb90a3db6ea2e2893c14a13a15b3ae7 WHIRLPOOL 6b420eb23fbf01ba418d759c275d1f0778c3904c76b78e88d4e82ed948fb44f578f6b171f927e4a4d96cf59eb49b528c9204909951d2cb41ad62804979098f1e
24 DIST subversion-1.8.18.tar.bz2 6884906 SHA256 e56b00ad3e927183bb6568781b85fe66dd3a7372c342af6e73b21a4473c397a6 SHA512 48d596c442da34fa3eb4f0f8b10cc3d5d27841b2fc4e7a493cac8e6f4c722f63fcd67fe99dfac5bbe31ac405055072a304d9a6771974c9990927cb21c5eb31d0 WHIRLPOOL a4e44512406bdadf8d80df4d888c0a6992affc04cd1de1a59482d031039ab9a485a85ab297b26f2f5c91c7883b14e00a7300b26413c28a5868f10424ff8c1c82
25 -DIST subversion-1.9.5.tar.bz2 7904861 SHA256 8a4fc68aff1d18dcb4dd9e460648d24d9e98657fbed496c582929c6b3ce555e5 SHA512 ff7241ffae2506e97f40011242b5d5c6fa665f5463743f9acc52136b59ad84b6db00b60e70c44a9060579db49b818db06da1d1352aaee78e5bfe6ce56f32a2cf WHIRLPOOL 37a124dc2f99bb465b47083de168530f8178305e3208972d56c2c29a93bbf73ded816f742808cf9e7a5d3f13690e48cdd9f800abd85452ad1da4c13d603454f3
26 -DIST subversion-1.9.6.tar.bz2 7882084 SHA256 dbcbc51fb634082f009121f2cb64350ce32146612787ffb0f7ced351aacaae19 SHA512 bdca362ff45a7f028e2123efbc9bfd41a07e6ebdfcf62627ce24f413e0304b45011bbac1f142ceb1c031a07622c06786982f86cd9109065cae5e26fd689fc11e WHIRLPOOL 27f3701273806c8968aed62eca9f5c13a086785362173b351d0e06fdf5d96ebdf4a461a019016cf7f2ae5b74f4f01c9fabd4706a7ac764d6e23543d87a5aaaa5
27 DIST subversion-1.9.7.tar.bz2 7881909 SHA256 c3b118333ce12e501d509e66bb0a47bcc34d053990acab45559431ac3e491623 SHA512 a55efd3edaddbc099450d849fcc6fe5a8d20b85ece966d8ac2fd73ee9cb4255a0349bbcfceb4e9fca6daf054ce7c648eff8d273c6873f5dade6e62dcea7eeb2b WHIRLPOOL ec2491100ebc94fe9bb82b50daf349564ba7bf1ec7b404bf5a31aec0e1e0932843b41d96813a2659220e139c34aa996ddcbb2999528c49cea3dede2f2af43bf2
28
29 diff --git a/dev-vcs/subversion/subversion-1.8.17.ebuild b/dev-vcs/subversion/subversion-1.8.17.ebuild
30 deleted file mode 100644
31 index 663a46742ac..00000000000
32 --- a/dev-vcs/subversion/subversion-1.8.17.ebuild
33 +++ /dev/null
34 @@ -1,512 +0,0 @@
35 -# Copyright 1999-2017 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=5
39 -PYTHON_COMPAT=( python2_7 )
40 -USE_RUBY="ruby22 ruby21 ruby20"
41 -DISTUTILS_OPTIONAL=1
42 -WANT_AUTOMAKE="none"
43 -GENTOO_DEPEND_ON_PERL="no"
44 -
45 -inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common eutils flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single
46 -
47 -MY_P="${P/_/-}"
48 -DESCRIPTION="Advanced version control system"
49 -HOMEPAGE="http://subversion.apache.org/"
50 -SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2"
51 -S="${WORKDIR}/${MY_P}"
52 -
53 -LICENSE="Subversion GPL-2"
54 -SLOT="0"
55 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
56 -IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
57 -
58 -COMMON_DEPEND="
59 - app-arch/bzip2
60 - >=dev-db/sqlite-3.7.12
61 - >=dev-libs/apr-1.3:1
62 - >=dev-libs/apr-util-1.3:1
63 - dev-libs/expat
64 - sys-apps/file
65 - sys-libs/zlib
66 - berkdb? ( >=sys-libs/db-4.0.14:= )
67 - ctypes-python? ( ${PYTHON_DEPS} )
68 - gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/libgnome-keyring )
69 - http? ( >=net-libs/serf-1.2.1 )
70 - kwallet? ( sys-apps/dbus dev-qt/qtcore:4 dev-qt/qtdbus:4 dev-qt/qtgui:4 kde-frameworks/kdelibs:4 )
71 - perl? ( dev-lang/perl:= )
72 - python? ( ${PYTHON_DEPS} )
73 - ruby? ( ${RUBY_DEPS} )
74 - sasl? ( dev-libs/cyrus-sasl )"
75 -RDEPEND="${COMMON_DEPEND}
76 - apache2? ( www-servers/apache[apache2_modules_dav] )
77 - java? ( >=virtual/jre-1.5 )
78 - kwallet? ( || (
79 - ( >=kde-frameworks/kwallet-5.34.0-r1 )
80 - ( kde-apps/kwalletd:4 )
81 - ) )
82 - nls? ( virtual/libintl )
83 - perl? ( dev-perl/URI )"
84 -# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
85 -DEPEND="${COMMON_DEPEND}
86 - !!<sys-apps/sandbox-1.6
87 - ctypes-python? ( dev-python/ctypesgen )
88 - doc? ( app-doc/doxygen )
89 - gnome-keyring? ( virtual/pkgconfig )
90 - http? ( virtual/pkgconfig )
91 - java? ( >=virtual/jdk-1.5 )
92 - kwallet? ( virtual/pkgconfig )
93 - nls? ( sys-devel/gettext )
94 - test? ( ${PYTHON_DEPS} )"
95 -
96 -REQUIRED_USE="
97 - ctypes-python? ( ${PYTHON_REQUIRED_USE} )
98 - python? ( ${PYTHON_REQUIRED_USE} )
99 - test? (
100 - ${PYTHON_REQUIRED_USE}
101 - !dso
102 - )"
103 -
104 -PATCHES=(
105 - "${FILESDIR}"/${PN}-1.5.4-interix.patch
106 - "${FILESDIR}"/${PN}-1.5.6-aix-dso.patch
107 - "${FILESDIR}"/${PN}-1.8.0-hpux-dso.patch
108 - "${FILESDIR}"/${PN}-fix-parallel-build-support-for-perl-bindings.patch
109 - "${FILESDIR}"/${PN}-1.8.1-revert_bdb6check.patch
110 - "${FILESDIR}"/${PN}-1.8.16-javadoc-nolint.patch
111 -)
112 -
113 -want_apache
114 -
115 -pkg_setup() {
116 - if use berkdb ; then
117 - local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
118 - | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
119 - | sed 's:.*b::')"
120 - einfo
121 - if [[ -z "${SVN_BDB_VERSION}" ]] ; then
122 - if [[ -n "${apu_bdb_version}" ]] ; then
123 - SVN_BDB_VERSION="${apu_bdb_version}"
124 - einfo "Matching db version to apr-util"
125 - else
126 - SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
127 - einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
128 - fi
129 - fi
130 - einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
131 - einfo
132 -
133 - if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
134 - eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
135 - eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
136 - eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
137 - eerror "Aborting to avoid possible run-time crashes."
138 - die "Berkeley DB version mismatch"
139 - fi
140 - fi
141 -
142 - depend.apache_pkg_setup
143 -
144 - java-pkg-opt-2_pkg_setup
145 -
146 - if ! use http ; then
147 - ewarn "WebDAV support is disabled. You need WebDAV to"
148 - ewarn "access repositories through the HTTP protocol."
149 - ewarn "Consider enabling \"http\" USE flag"
150 - echo -ne "\a"
151 - fi
152 -
153 - if use debug ; then
154 - append-cppflags -DSVN_DEBUG -DAP_DEBUG
155 - fi
156 -
157 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E
158 - [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
159 -
160 - # Allow for custom repository locations.
161 - SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
162 -
163 - if use ruby ; then
164 - local rbslot
165 - RB_VER=""
166 - for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
167 - if has_version dev-lang/ruby:${rbslot} ; then
168 - RB_VER="${rbslot/.}"
169 - break
170 - fi
171 - done
172 - [[ -z "${RB_VER}" ]] && die "No useable ruby version found"
173 - fi
174 -}
175 -
176 -src_prepare() {
177 - epatch "${PATCHES[@]}"
178 -
179 - fperms +x build/transform_libtool_scripts.sh
180 -
181 - sed -i \
182 - -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
183 - -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
184 -
185 - # this bites us in particular on Solaris
186 - sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
187 - die "/bin/sh is not POSIX shell!"
188 -
189 - eautoconf
190 - elibtoolize
191 -
192 - sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
193 - -i build-outputs.mk || die "sed failed"
194 -
195 - if use python ; then
196 - if [[ ${CHOST} == *-darwin* ]] ; then
197 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C20130614113003.GA19257@××××××.local2%3E
198 - # in short, we don't have gnome-keyring stuff here, patch
199 - # borrowed from MacPorts
200 - epatch "${FILESDIR}"/${PN}-1.8.5-swig-python-no-gnome-keyring.patch
201 - fi
202 -
203 - # XXX: make python_copy_sources accept path
204 - S=${S}/subversion/bindings/swig/python python_copy_sources
205 - rm -r "${S}"/subversion/bindings/swig/python || die
206 - fi
207 -}
208 -
209 -src_configure() {
210 - local myconf=()
211 -
212 - if use python || use perl || use ruby; then
213 - myconf+=( --with-swig )
214 - else
215 - myconf+=( --without-swig )
216 - fi
217 -
218 - if use java ; then
219 - myconf+=( --without-junit )
220 - fi
221 -
222 - case ${CHOST} in
223 - *-aix*)
224 - # avoid recording immediate path to sharedlibs into executables
225 - append-ldflags -Wl,-bnoipath
226 - ;;
227 - *-interix*)
228 - # loader crashes on the LD_PRELOADs...
229 - myconf+=( --disable-local-library-preloading )
230 - ;;
231 - *-solaris*)
232 - # need -lintl to link
233 - use nls && append-libs intl
234 - # this breaks installation, on x64 echo replacement is 32-bits
235 - myconf+=( --disable-local-library-preloading )
236 - ;;
237 - *-mint*)
238 - myconf+=( --enable-all-static --disable-local-library-preloading )
239 - ;;
240 - *)
241 - # inject LD_PRELOAD entries for easy in-tree development
242 - myconf+=( --enable-local-library-preloading )
243 - ;;
244 - esac
245 -
246 - #version 1.7.7 again tries to link against the older installed version and fails, when trying to
247 - #compile for x86 on amd64, so workaround this issue again
248 - #check newer versions, if this is still/again needed
249 - myconf+=( --disable-disallowing-of-undefined-references )
250 -
251 - # for build-time scripts
252 - if use ctypes-python || use python || use test; then
253 - python_setup
254 - fi
255 -
256 - if use python && [[ ${CHOST} == *-darwin* ]] ; then
257 - export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
258 - export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
259 - export ac_cv_python_compile="$(tc-getCC)"
260 - fi
261 -
262 - # allow overriding Python include directory
263 - ac_cv_path_RUBY=$(usex ruby "${EPREFIX}/usr/bin/ruby${RB_VER}" "none") \
264 - ac_cv_path_RDOC=$(usex ruby "${EPREFIX}/usr/bin/rdoc${RB_VER}" "none") \
265 - ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
266 - econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
267 - $(use_with apache2 apache-libexecdir) \
268 - $(use_with apache2 apxs "${APXS}") \
269 - $(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
270 - $(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
271 - $(use_enable dso runtime-module-search) \
272 - $(use_with gnome-keyring) \
273 - $(use_enable java javahl) \
274 - $(use_with java jdk "${JAVA_HOME}") \
275 - $(use_with kwallet) \
276 - $(use_enable nls) \
277 - $(use_with sasl) \
278 - $(use_with http serf) \
279 - ${myconf[@]} \
280 - --with-apr="${EPREFIX}/usr/bin/apr-1-config" \
281 - --with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
282 - --disable-experimental-libtool \
283 - --without-jikes \
284 - --disable-mod-activation \
285 - --disable-static
286 -}
287 -
288 -src_compile() {
289 - emake local-all
290 -
291 - if use ctypes-python ; then
292 - # pre-generate .py files
293 - use ctypes-python && emake ctypes-python
294 -
295 - pushd subversion/bindings/ctypes-python >/dev/null || die
296 - distutils-r1_src_compile
297 - popd >/dev/null || die
298 - fi
299 -
300 - if use python ; then
301 - swig_py_compile() {
302 - local p=subversion/bindings/swig/python
303 - rm -f ${p} || die
304 - ln -s "${BUILD_DIR}" ${p} || die
305 -
306 - python_export PYTHON_INCLUDEDIR
307 - emake swig-py \
308 - swig_pydir="$(python_get_sitedir)/libsvn" \
309 - swig_pydir_extra="$(python_get_sitedir)/svn"
310 - }
311 -
312 - # this will give us proper BUILD_DIR for symlinking
313 - BUILD_DIR=python \
314 - python_foreach_impl swig_py_compile
315 - fi
316 -
317 - if use perl ; then
318 - emake swig-pl
319 - fi
320 -
321 - if use ruby ; then
322 - emake swig-rb
323 - fi
324 -
325 - if use java ; then
326 - emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
327 - fi
328 -
329 - if use extras ; then
330 - emake tools
331 - fi
332 -
333 - if use doc ; then
334 - doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
335 -
336 - if use java; then
337 - emake doc-javahl
338 - fi
339 - fi
340 -}
341 -
342 -src_test() {
343 - if has_version ~${CATEGORY}/${P} ; then
344 - default
345 -
346 - if use ctypes-python ; then
347 - python_test() {
348 - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
349 - || die "ctypes-python tests fail with ${EPYTHON}"
350 - }
351 -
352 - distutils-r1_src_test
353 - fi
354 -
355 - if use python ; then
356 - swig_py_test() {
357 - pushd "${BUILD_DIR}" >/dev/null || die
358 - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
359 - popd >/dev/null || die
360 - }
361 -
362 - BUILD_DIR=subversion/bindings/swig/python \
363 - python_foreach_impl swig_py_test
364 - fi
365 - else
366 - ewarn "The test suite shows errors when there is an older version of"
367 - ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
368 - ewarn "before running the test suite."
369 - ewarn "Test suite skipped."
370 - fi
371 -}
372 -
373 -src_install() {
374 - emake -j1 DESTDIR="${D}" local-install
375 -
376 - if use ctypes-python ; then
377 - pushd subversion/bindings/ctypes-python >/dev/null || die
378 - distutils-r1_src_install
379 - popd >/dev/null || die
380 - fi
381 -
382 - if use python ; then
383 - swig_py_install() {
384 - local p=subversion/bindings/swig/python
385 - rm -f ${p} || die
386 - ln -s "${BUILD_DIR}" ${p} || die
387 -
388 - emake \
389 - DESTDIR="${D}" \
390 - swig_pydir="$(python_get_sitedir)/libsvn" \
391 - swig_pydir_extra="$(python_get_sitedir)/svn" \
392 - install-swig-py
393 - }
394 -
395 - BUILD_DIR=python \
396 - python_foreach_impl swig_py_install
397 - fi
398 -
399 - if use perl ; then
400 - emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
401 - perl_delete_localpod
402 - find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -delete
403 - fi
404 -
405 - if use ruby ; then
406 - emake DESTDIR="${D}" install-swig-rb
407 - fi
408 -
409 - if use java ; then
410 - emake DESTDIR="${D}" install-javahl
411 - java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
412 - java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
413 - rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
414 - fi
415 -
416 - # Install Apache module configuration.
417 - if use apache2 ; then
418 - keepdir "${APACHE_MODULES_CONFDIR}"
419 - insinto "${APACHE_MODULES_CONFDIR}"
420 - doins "${FILESDIR}/47_mod_dav_svn.conf"
421 - fi
422 -
423 - # Install Bash Completion, bug 43179.
424 - newbashcomp tools/client-side/bash_completion svn
425 - bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
426 - rm -f tools/client-side/bash_completion
427 -
428 - # Install hot backup script, bug 54304.
429 - newbin tools/backup/hot-backup.py svn-hot-backup
430 - rm -fr tools/backup
431 -
432 - # Install svnserve init-script and xinet.d snippet, bug 43245.
433 - newinitd "${FILESDIR}"/svnserve.initd3 svnserve
434 - newconfd "${FILESDIR}"/svnserve.confd svnserve
435 - insinto /etc/xinetd.d
436 - newins "${FILESDIR}"/svnserve.xinetd svnserve
437 -
438 - #adjust default user and group with disabled apache2 USE flag, bug 381385
439 - use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
440 - -e "s\GROUP:-apache\GROUP:-svnusers\g" \
441 - -i "${ED}"etc/init.d/svnserve || die
442 - use apache2 || sed -e "0,/apache/s//svn/" \
443 - -e "s:apache:svnusers:" \
444 - -i "${ED}"etc/xinetd.d/svnserve || die
445 -
446 - # Install documentation.
447 - dodoc CHANGES COMMITTERS README
448 - dodoc tools/xslt/svnindex.{css,xsl}
449 - rm -fr tools/xslt
450 -
451 - # Install extra files.
452 - if use extras ; then
453 - cat << EOF > 80subversion-extras
454 -PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
455 -ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
456 -EOF
457 - doenvd 80subversion-extras
458 -
459 - emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
460 -
461 - find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
462 - rm -fr tools/client-side/svnmucc
463 - rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
464 - rm -fr tools/{buildbot,dev,diff,po}
465 -
466 - insinto /usr/share/${PN}
467 - find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
468 - doins -r tools
469 - fi
470 -
471 - if use doc ; then
472 - docinto html
473 - dodoc -r doc/doxygen/html/*
474 -
475 - if use java ; then
476 - java-pkg_dojavadoc doc/javadoc
477 - fi
478 - fi
479 -
480 - prune_libtool_files --all
481 -
482 - cd "${ED}"usr/share/locale
483 - for i in * ; do
484 - [[ ${i} == *$LINGUAS* ]] || { rm -r ${i} || die ; }
485 - done
486 -}
487 -
488 -pkg_preinst() {
489 - # Compare versions of Berkeley DB, bug 122877.
490 - if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]] ; then
491 - OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
492 - NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
493 - if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
494 - CHANGED_BDB_VERSION="1"
495 - fi
496 - fi
497 -}
498 -
499 -pkg_postinst() {
500 - if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
501 - ewarn "You upgraded from an older version of Berkeley DB and may experience"
502 - ewarn "problems with your repository. Run the following commands as root to fix it:"
503 - ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
504 - ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
505 - fi
506 -
507 - ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
508 -}
509 -
510 -pkg_postrm() {
511 - :
512 -}
513 -
514 -pkg_config() {
515 - # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
516 - # already has EPREFIX in it
517 - einfo "Initializing the database in ${SVN_REPOS_LOC}..."
518 - if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
519 - echo "A Subversion repository already exists and I will not overwrite it."
520 - echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
521 - else
522 - mkdir -p "${SVN_REPOS_LOC}/conf"
523 -
524 - einfo "Populating repository directory..."
525 - # Create initial repository.
526 - "${EROOT}usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
527 -
528 - einfo "Setting repository permissions..."
529 - SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
530 - SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
531 - if use apache2 ; then
532 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
533 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
534 - else
535 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
536 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
537 - fi
538 - chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
539 - chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
540 - echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
541 - echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
542 - echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
543 - echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
544 - echo "to finish the configuration."
545 - fi
546 -}
547
548 diff --git a/dev-vcs/subversion/subversion-1.9.5.ebuild b/dev-vcs/subversion/subversion-1.9.5.ebuild
549 deleted file mode 100644
550 index 096932f6f69..00000000000
551 --- a/dev-vcs/subversion/subversion-1.9.5.ebuild
552 +++ /dev/null
553 @@ -1,509 +0,0 @@
554 -# Copyright 1999-2017 Gentoo Foundation
555 -# Distributed under the terms of the GNU General Public License v2
556 -
557 -EAPI=5
558 -PYTHON_COMPAT=( python2_7 )
559 -USE_RUBY="ruby23 ruby22 ruby21 ruby20"
560 -DISTUTILS_OPTIONAL=1
561 -WANT_AUTOMAKE="none"
562 -GENTOO_DEPEND_ON_PERL="no"
563 -
564 -inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common eutils flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single
565 -
566 -MY_P="${P/_/-}"
567 -DESCRIPTION="Advanced version control system"
568 -HOMEPAGE="http://subversion.apache.org/"
569 -SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2"
570 -S="${WORKDIR}/${MY_P}"
571 -
572 -LICENSE="Subversion GPL-2"
573 -SLOT="0"
574 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
575 -IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
576 -
577 -COMMON_DEPEND="
578 - app-arch/bzip2
579 - >=dev-db/sqlite-3.7.12
580 - >=dev-libs/apr-1.3:1
581 - >=dev-libs/apr-util-1.3:1
582 - dev-libs/expat
583 - sys-apps/file
584 - sys-libs/zlib
585 - berkdb? ( >=sys-libs/db-4.0.14:= )
586 - ctypes-python? ( ${PYTHON_DEPS} )
587 - gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/libgnome-keyring )
588 - http? ( >=net-libs/serf-1.3.4 )
589 - kwallet? ( sys-apps/dbus dev-qt/qtcore:4 dev-qt/qtdbus:4 dev-qt/qtgui:4 kde-frameworks/kdelibs:4 )
590 - perl? ( dev-lang/perl:= )
591 - python? ( ${PYTHON_DEPS} )
592 - ruby? ( ${RUBY_DEPS} )
593 - sasl? ( dev-libs/cyrus-sasl )"
594 -RDEPEND="${COMMON_DEPEND}
595 - apache2? ( www-servers/apache[apache2_modules_dav] )
596 - java? ( >=virtual/jre-1.5 )
597 - kwallet? ( || (
598 - ( >=kde-frameworks/kwallet-5.34.0-r1 )
599 - ( kde-apps/kwalletd:4 )
600 - ) )
601 - nls? ( virtual/libintl )
602 - perl? ( dev-perl/URI )"
603 -# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
604 -DEPEND="${COMMON_DEPEND}
605 - !!<sys-apps/sandbox-1.6
606 - ctypes-python? ( dev-python/ctypesgen )
607 - doc? ( app-doc/doxygen )
608 - gnome-keyring? ( virtual/pkgconfig )
609 - http? ( virtual/pkgconfig )
610 - java? ( >=virtual/jdk-1.5 )
611 - kwallet? ( virtual/pkgconfig )
612 - nls? ( sys-devel/gettext )
613 - test? ( ${PYTHON_DEPS} )"
614 -
615 -REQUIRED_USE="
616 - ctypes-python? ( ${PYTHON_REQUIRED_USE} )
617 - python? ( ${PYTHON_REQUIRED_USE} )
618 - test? (
619 - ${PYTHON_REQUIRED_USE}
620 - !dso
621 - )"
622 -
623 -PATCHES=(
624 - "${FILESDIR}"/${PN}-1.5.4-interix.patch
625 - "${FILESDIR}"/${PN}-1.5.6-aix-dso.patch
626 - "${FILESDIR}"/${PN}-1.8.0-hpux-dso.patch
627 - "${FILESDIR}"/${PN}-fix-parallel-build-support-for-perl-bindings.patch
628 - "${FILESDIR}"/${PN}-1.8.1-revert_bdb6check.patch
629 - "${FILESDIR}"/${PN}-1.8.16-javadoc-nolint.patch
630 -)
631 -
632 -want_apache
633 -
634 -pkg_setup() {
635 - if use berkdb ; then
636 - local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
637 - | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
638 - | sed 's:.*b::')"
639 - einfo
640 - if [[ -z "${SVN_BDB_VERSION}" ]] ; then
641 - if [[ -n "${apu_bdb_version}" ]] ; then
642 - SVN_BDB_VERSION="${apu_bdb_version}"
643 - einfo "Matching db version to apr-util"
644 - else
645 - SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
646 - einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
647 - fi
648 - fi
649 - einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
650 - einfo
651 -
652 - if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
653 - eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
654 - eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
655 - eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
656 - eerror "Aborting to avoid possible run-time crashes."
657 - die "Berkeley DB version mismatch"
658 - fi
659 - fi
660 -
661 - depend.apache_pkg_setup
662 -
663 - java-pkg-opt-2_pkg_setup
664 -
665 - if ! use http ; then
666 - ewarn "WebDAV support is disabled. You need WebDAV to"
667 - ewarn "access repositories through the HTTP protocol."
668 - ewarn "Consider enabling \"http\" USE flag"
669 - echo -ne "\a"
670 - fi
671 -
672 - if use debug ; then
673 - append-cppflags -DSVN_DEBUG -DAP_DEBUG
674 - fi
675 -
676 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E
677 - [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
678 -
679 - # Allow for custom repository locations.
680 - SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
681 -
682 - if use ruby ; then
683 - local rbslot
684 - RB_VER=""
685 - for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
686 - if has_version dev-lang/ruby:${rbslot} ; then
687 - RB_VER="${rbslot/.}"
688 - break
689 - fi
690 - done
691 - [[ -z "${RB_VER}" ]] && die "No useable ruby version found"
692 - fi
693 -}
694 -
695 -src_prepare() {
696 - epatch "${PATCHES[@]}"
697 -
698 - fperms +x build/transform_libtool_scripts.sh
699 -
700 - sed -i \
701 - -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
702 - -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
703 -
704 - # this bites us in particular on Solaris
705 - sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
706 - die "/bin/sh is not POSIX shell!"
707 -
708 - eautoconf
709 - elibtoolize
710 -
711 - sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
712 - -i build-outputs.mk || die "sed failed"
713 -
714 - if use python ; then
715 - # XXX: make python_copy_sources accept path
716 - S=${S}/subversion/bindings/swig/python python_copy_sources
717 - rm -r "${S}"/subversion/bindings/swig/python || die
718 - fi
719 -}
720 -
721 -src_configure() {
722 - local myconf=()
723 -
724 - if use python || use perl || use ruby; then
725 - myconf+=( --with-swig )
726 - else
727 - myconf+=( --without-swig )
728 - fi
729 -
730 - if use java ; then
731 - myconf+=( --without-junit )
732 - fi
733 -
734 - case ${CHOST} in
735 - *-aix*)
736 - # avoid recording immediate path to sharedlibs into executables
737 - append-ldflags -Wl,-bnoipath
738 - ;;
739 - *-cygwin*)
740 - # no LD_PRELOAD support, no undefined symbols
741 - myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined )
742 - ;;
743 - *-interix*)
744 - # loader crashes on the LD_PRELOADs...
745 - myconf+=( --disable-local-library-preloading )
746 - ;;
747 - *-solaris*)
748 - # need -lintl to link
749 - use nls && append-libs intl
750 - # this breaks installation, on x64 echo replacement is 32-bits
751 - myconf+=( --disable-local-library-preloading )
752 - ;;
753 - *-mint*)
754 - myconf+=( --enable-all-static --disable-local-library-preloading )
755 - ;;
756 - *)
757 - # inject LD_PRELOAD entries for easy in-tree development
758 - myconf+=( --enable-local-library-preloading )
759 - ;;
760 - esac
761 -
762 - #version 1.7.7 again tries to link against the older installed version and fails, when trying to
763 - #compile for x86 on amd64, so workaround this issue again
764 - #check newer versions, if this is still/again needed
765 - myconf+=( --disable-disallowing-of-undefined-references )
766 -
767 - # for build-time scripts
768 - if use ctypes-python || use python || use test; then
769 - python_setup
770 - fi
771 -
772 - if use python && [[ ${CHOST} == *-darwin* ]] ; then
773 - export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
774 - export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
775 - export ac_cv_python_compile="$(tc-getCC)"
776 - fi
777 -
778 - # allow overriding Python include directory
779 - ac_cv_path_RUBY=$(usex ruby "${EPREFIX}/usr/bin/ruby${RB_VER}" "none") \
780 - ac_cv_path_RDOC=$(usex ruby "${EPREFIX}/usr/bin/rdoc${RB_VER}" "none") \
781 - ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
782 - econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
783 - $(use_with apache2 apache-libexecdir) \
784 - $(use_with apache2 apxs "${APXS}") \
785 - $(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
786 - $(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
787 - $(use_enable dso runtime-module-search) \
788 - $(use_with gnome-keyring) \
789 - $(use_enable java javahl) \
790 - $(use_with java jdk "${JAVA_HOME}") \
791 - $(use_with kwallet) \
792 - $(use_enable nls) \
793 - $(use_with sasl) \
794 - $(use_with http serf) \
795 - ${myconf[@]} \
796 - --with-apr="${EPREFIX}/usr/bin/apr-1-config" \
797 - --with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
798 - --disable-experimental-libtool \
799 - --without-jikes \
800 - --disable-mod-activation \
801 - --disable-static
802 -}
803 -
804 -src_compile() {
805 - emake local-all
806 -
807 - if use ctypes-python ; then
808 - # pre-generate .py files
809 - use ctypes-python && emake ctypes-python
810 -
811 - pushd subversion/bindings/ctypes-python >/dev/null || die
812 - distutils-r1_src_compile
813 - popd >/dev/null || die
814 - fi
815 -
816 - if use python ; then
817 - swig_py_compile() {
818 - local p=subversion/bindings/swig/python
819 - rm -f ${p} || die
820 - ln -s "${BUILD_DIR}" ${p} || die
821 -
822 - python_export PYTHON_INCLUDEDIR
823 - emake swig-py \
824 - swig_pydir="$(python_get_sitedir)/libsvn" \
825 - swig_pydir_extra="$(python_get_sitedir)/svn"
826 - }
827 -
828 - # this will give us proper BUILD_DIR for symlinking
829 - BUILD_DIR=python \
830 - python_foreach_impl swig_py_compile
831 - fi
832 -
833 - if use perl ; then
834 - emake swig-pl
835 - fi
836 -
837 - if use ruby ; then
838 - emake swig-rb
839 - fi
840 -
841 - if use java ; then
842 - emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
843 - fi
844 -
845 - if use extras ; then
846 - emake tools
847 - fi
848 -
849 - if use doc ; then
850 - doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
851 -
852 - if use java; then
853 - emake doc-javahl
854 - fi
855 - fi
856 -}
857 -
858 -src_test() {
859 - if has_version ~${CATEGORY}/${P} ; then
860 - default
861 -
862 - if use ctypes-python ; then
863 - python_test() {
864 - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
865 - || die "ctypes-python tests fail with ${EPYTHON}"
866 - }
867 -
868 - distutils-r1_src_test
869 - fi
870 -
871 - if use python ; then
872 - swig_py_test() {
873 - pushd "${BUILD_DIR}" >/dev/null || die
874 - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
875 - popd >/dev/null || die
876 - }
877 -
878 - BUILD_DIR=subversion/bindings/swig/python \
879 - python_foreach_impl swig_py_test
880 - fi
881 - else
882 - ewarn "The test suite shows errors when there is an older version of"
883 - ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
884 - ewarn "before running the test suite."
885 - ewarn "Test suite skipped."
886 - fi
887 -}
888 -
889 -src_install() {
890 - emake -j1 DESTDIR="${D}" local-install
891 -
892 - if use ctypes-python ; then
893 - pushd subversion/bindings/ctypes-python >/dev/null || die
894 - distutils-r1_src_install
895 - popd >/dev/null || die
896 - fi
897 -
898 - if use python ; then
899 - swig_py_install() {
900 - local p=subversion/bindings/swig/python
901 - rm -f ${p} || die
902 - ln -s "${BUILD_DIR}" ${p} || die
903 -
904 - emake \
905 - DESTDIR="${D}" \
906 - swig_pydir="$(python_get_sitedir)/libsvn" \
907 - swig_pydir_extra="$(python_get_sitedir)/svn" \
908 - install-swig-py
909 - }
910 -
911 - BUILD_DIR=python \
912 - python_foreach_impl swig_py_install
913 - fi
914 -
915 - if use perl ; then
916 - emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
917 - perl_delete_localpod
918 - find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -delete
919 - fi
920 -
921 - if use ruby ; then
922 - emake DESTDIR="${D}" install-swig-rb
923 - fi
924 -
925 - if use java ; then
926 - emake DESTDIR="${D}" install-javahl
927 - java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
928 - java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
929 - rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
930 - fi
931 -
932 - # Install Apache module configuration.
933 - if use apache2 ; then
934 - keepdir "${APACHE_MODULES_CONFDIR}"
935 - insinto "${APACHE_MODULES_CONFDIR}"
936 - doins "${FILESDIR}/47_mod_dav_svn.conf"
937 - fi
938 -
939 - # Install Bash Completion, bug 43179.
940 - newbashcomp tools/client-side/bash_completion svn
941 - bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
942 - rm -f tools/client-side/bash_completion
943 -
944 - # Install hot backup script, bug 54304.
945 - newbin tools/backup/hot-backup.py svn-hot-backup
946 - rm -fr tools/backup
947 -
948 - # Install svnserve init-script and xinet.d snippet, bug 43245.
949 - newinitd "${FILESDIR}"/svnserve.initd3 svnserve
950 - newconfd "${FILESDIR}"/svnserve.confd svnserve
951 - insinto /etc/xinetd.d
952 - newins "${FILESDIR}"/svnserve.xinetd svnserve
953 -
954 - #adjust default user and group with disabled apache2 USE flag, bug 381385
955 - use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
956 - -e "s\GROUP:-apache\GROUP:-svnusers\g" \
957 - -i "${ED}"etc/init.d/svnserve || die
958 - use apache2 || sed -e "0,/apache/s//svn/" \
959 - -e "s:apache:svnusers:" \
960 - -i "${ED}"etc/xinetd.d/svnserve || die
961 -
962 - # Install documentation.
963 - dodoc CHANGES COMMITTERS README
964 - dodoc tools/xslt/svnindex.{css,xsl}
965 - rm -fr tools/xslt
966 -
967 - # Install extra files.
968 - if use extras ; then
969 - cat << EOF > 80subversion-extras
970 -PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
971 -ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
972 -EOF
973 - doenvd 80subversion-extras
974 -
975 - emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
976 -
977 - find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
978 - rm -fr tools/client-side/svnmucc
979 - rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
980 - rm -fr tools/{buildbot,dev,diff,po}
981 -
982 - insinto /usr/share/${PN}
983 - find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
984 - doins -r tools
985 - fi
986 -
987 - if use doc ; then
988 - docinto html
989 - dodoc -r doc/doxygen/html/*
990 -
991 - if use java ; then
992 - java-pkg_dojavadoc doc/javadoc
993 - fi
994 - fi
995 -
996 - prune_libtool_files --all
997 -
998 - cd "${ED}"usr/share/locale
999 - for i in * ; do
1000 - [[ ${i} == *$LINGUAS* ]] || { rm -r ${i} || die ; }
1001 - done
1002 -}
1003 -
1004 -pkg_preinst() {
1005 - # Compare versions of Berkeley DB, bug 122877.
1006 - if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]] ; then
1007 - OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
1008 - NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
1009 - if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
1010 - CHANGED_BDB_VERSION="1"
1011 - fi
1012 - fi
1013 -}
1014 -
1015 -pkg_postinst() {
1016 - if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
1017 - ewarn "You upgraded from an older version of Berkeley DB and may experience"
1018 - ewarn "problems with your repository. Run the following commands as root to fix it:"
1019 - ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
1020 - ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
1021 - fi
1022 -
1023 - ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
1024 -}
1025 -
1026 -pkg_postrm() {
1027 - :
1028 -}
1029 -
1030 -pkg_config() {
1031 - # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
1032 - # already has EPREFIX in it
1033 - einfo "Initializing the database in ${SVN_REPOS_LOC}..."
1034 - if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
1035 - echo "A Subversion repository already exists and I will not overwrite it."
1036 - echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
1037 - else
1038 - mkdir -p "${SVN_REPOS_LOC}/conf"
1039 -
1040 - einfo "Populating repository directory..."
1041 - # Create initial repository.
1042 - "${EROOT}usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
1043 -
1044 - einfo "Setting repository permissions..."
1045 - SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
1046 - SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
1047 - if use apache2 ; then
1048 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
1049 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
1050 - else
1051 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
1052 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
1053 - fi
1054 - chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
1055 - chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
1056 - echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
1057 - echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
1058 - echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
1059 - echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
1060 - echo "to finish the configuration."
1061 - fi
1062 -}
1063
1064 diff --git a/dev-vcs/subversion/subversion-1.9.6.ebuild b/dev-vcs/subversion/subversion-1.9.6.ebuild
1065 deleted file mode 100644
1066 index f14aa4e7d8a..00000000000
1067 --- a/dev-vcs/subversion/subversion-1.9.6.ebuild
1068 +++ /dev/null
1069 @@ -1,510 +0,0 @@
1070 -# Copyright 1999-2017 Gentoo Foundation
1071 -# Distributed under the terms of the GNU General Public License v2
1072 -
1073 -EAPI=6
1074 -PYTHON_COMPAT=( python2_7 )
1075 -USE_RUBY="ruby23 ruby22 ruby21"
1076 -DISTUTILS_OPTIONAL=1
1077 -WANT_AUTOMAKE="none"
1078 -GENTOO_DEPEND_ON_PERL="no"
1079 -
1080 -inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common eutils flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single
1081 -
1082 -MY_P="${P/_/-}"
1083 -DESCRIPTION="Advanced version control system"
1084 -HOMEPAGE="http://subversion.apache.org/"
1085 -SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2"
1086 -S="${WORKDIR}/${MY_P}"
1087 -
1088 -LICENSE="Subversion GPL-2"
1089 -SLOT="0"
1090 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1091 -IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
1092 -
1093 -COMMON_DEPEND="
1094 - app-arch/bzip2
1095 - >=dev-db/sqlite-3.7.12
1096 - >=dev-libs/apr-1.3:1
1097 - >=dev-libs/apr-util-1.3:1
1098 - dev-libs/expat
1099 - sys-apps/file
1100 - sys-libs/zlib
1101 - berkdb? ( >=sys-libs/db-4.0.14:= )
1102 - ctypes-python? ( ${PYTHON_DEPS} )
1103 - gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/libgnome-keyring )
1104 - http? ( >=net-libs/serf-1.3.4 )
1105 - kwallet? ( sys-apps/dbus dev-qt/qtcore:4 dev-qt/qtdbus:4 dev-qt/qtgui:4 kde-frameworks/kdelibs:4 )
1106 - perl? ( dev-lang/perl:= )
1107 - python? ( ${PYTHON_DEPS} )
1108 - ruby? ( ${RUBY_DEPS} )
1109 - sasl? ( dev-libs/cyrus-sasl )"
1110 -RDEPEND="${COMMON_DEPEND}
1111 - apache2? ( www-servers/apache[apache2_modules_dav] )
1112 - java? ( >=virtual/jre-1.5 )
1113 - kwallet? ( || (
1114 - ( >=kde-frameworks/kwallet-5.34.0-r1 )
1115 - ( kde-apps/kwalletd:4 )
1116 - ) )
1117 - nls? ( virtual/libintl )
1118 - perl? ( dev-perl/URI )"
1119 -# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
1120 -DEPEND="${COMMON_DEPEND}
1121 - !!<sys-apps/sandbox-1.6
1122 - ctypes-python? ( dev-python/ctypesgen )
1123 - doc? ( app-doc/doxygen )
1124 - gnome-keyring? ( virtual/pkgconfig )
1125 - http? ( virtual/pkgconfig )
1126 - java? ( >=virtual/jdk-1.5 )
1127 - kwallet? ( virtual/pkgconfig )
1128 - nls? ( sys-devel/gettext )
1129 - test? ( ${PYTHON_DEPS} )"
1130 -
1131 -REQUIRED_USE="
1132 - ctypes-python? ( ${PYTHON_REQUIRED_USE} )
1133 - python? ( ${PYTHON_REQUIRED_USE} )
1134 - test? (
1135 - ${PYTHON_REQUIRED_USE}
1136 - !dso
1137 - )"
1138 -
1139 -PATCHES=(
1140 - "${FILESDIR}"/${PN}-1.5.4-interix.patch
1141 - "${FILESDIR}"/${PN}-1.5.6-aix-dso.patch
1142 - "${FILESDIR}"/${PN}-1.8.0-hpux-dso.patch
1143 - "${FILESDIR}"/${PN}-fix-parallel-build-support-for-perl-bindings.patch
1144 - "${FILESDIR}"/${PN}-1.8.1-revert_bdb6check.patch
1145 - "${FILESDIR}"/${PN}-1.8.16-javadoc-nolint.patch
1146 -)
1147 -
1148 -want_apache
1149 -
1150 -pkg_setup() {
1151 - if use berkdb ; then
1152 - local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
1153 - | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
1154 - | sed 's:.*b::')"
1155 - einfo
1156 - if [[ -z "${SVN_BDB_VERSION}" ]] ; then
1157 - if [[ -n "${apu_bdb_version}" ]] ; then
1158 - SVN_BDB_VERSION="${apu_bdb_version}"
1159 - einfo "Matching db version to apr-util"
1160 - else
1161 - SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
1162 - einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
1163 - fi
1164 - fi
1165 - einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
1166 - einfo
1167 -
1168 - if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
1169 - eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
1170 - eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
1171 - eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
1172 - eerror "Aborting to avoid possible run-time crashes."
1173 - die "Berkeley DB version mismatch"
1174 - fi
1175 - fi
1176 -
1177 - depend.apache_pkg_setup
1178 -
1179 - java-pkg-opt-2_pkg_setup
1180 -
1181 - if ! use http ; then
1182 - ewarn "WebDAV support is disabled. You need WebDAV to"
1183 - ewarn "access repositories through the HTTP protocol."
1184 - ewarn "Consider enabling \"http\" USE flag"
1185 - echo -ne "\a"
1186 - fi
1187 -
1188 - if use debug ; then
1189 - append-cppflags -DSVN_DEBUG -DAP_DEBUG
1190 - fi
1191 -
1192 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E
1193 - [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
1194 -
1195 - # Allow for custom repository locations.
1196 - SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
1197 -
1198 - if use ruby ; then
1199 - local rbslot
1200 - RB_VER=""
1201 - for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
1202 - if has_version dev-lang/ruby:${rbslot} ; then
1203 - RB_VER="${rbslot/.}"
1204 - break
1205 - fi
1206 - done
1207 - [[ -z "${RB_VER}" ]] && die "No useable ruby version found"
1208 - fi
1209 -}
1210 -
1211 -src_prepare() {
1212 - default
1213 -
1214 - fperms +x build/transform_libtool_scripts.sh
1215 -
1216 - sed -i \
1217 - -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
1218 - -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
1219 -
1220 - # this bites us in particular on Solaris
1221 - sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
1222 - die "/bin/sh is not POSIX shell!"
1223 -
1224 - eautoconf
1225 - elibtoolize
1226 -
1227 - sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
1228 - -i build-outputs.mk || die "sed failed"
1229 -
1230 - if use python ; then
1231 - # XXX: make python_copy_sources accept path
1232 - S=${S}/subversion/bindings/swig/python python_copy_sources
1233 - rm -r "${S}"/subversion/bindings/swig/python || die
1234 - fi
1235 -}
1236 -
1237 -src_configure() {
1238 - local myconf=(
1239 - --libdir="${EPREFIX%/}/usr/$(get_libdir)"
1240 - $(use_with apache2 apache-libexecdir)
1241 - $(use_with apache2 apxs "${APXS}")
1242 - $(use_with berkdb berkeley-db "db.h:${EPREFIX%/}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}")
1243 - $(use_with ctypes-python ctypesgen "${EPREFIX%/}/usr")
1244 - $(use_enable dso runtime-module-search)
1245 - $(use_with gnome-keyring)
1246 - $(use_enable java javahl)
1247 - $(use_with java jdk "${JAVA_HOME}")
1248 - $(use_with kwallet)
1249 - $(use_enable nls)
1250 - $(use_with sasl)
1251 - $(use_with http serf)
1252 - --with-apr="${EPREFIX%/}/usr/bin/apr-1-config"
1253 - --with-apr-util="${EPREFIX%/}/usr/bin/apu-1-config"
1254 - --disable-experimental-libtool
1255 - --without-jikes
1256 - --disable-mod-activation
1257 - --disable-static
1258 - )
1259 -
1260 - if use python || use perl || use ruby; then
1261 - myconf+=( --with-swig )
1262 - else
1263 - myconf+=( --without-swig )
1264 - fi
1265 -
1266 - if use java ; then
1267 - myconf+=( --without-junit )
1268 - fi
1269 -
1270 - case ${CHOST} in
1271 - *-aix*)
1272 - # avoid recording immediate path to sharedlibs into executables
1273 - append-ldflags -Wl,-bnoipath
1274 - ;;
1275 - *-cygwin*)
1276 - # no LD_PRELOAD support, no undefined symbols
1277 - myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined )
1278 - ;;
1279 - *-interix*)
1280 - # loader crashes on the LD_PRELOADs...
1281 - myconf+=( --disable-local-library-preloading )
1282 - ;;
1283 - *-solaris*)
1284 - # need -lintl to link
1285 - use nls && append-libs intl
1286 - # this breaks installation, on x64 echo replacement is 32-bits
1287 - myconf+=( --disable-local-library-preloading )
1288 - ;;
1289 - *-mint*)
1290 - myconf+=( --enable-all-static --disable-local-library-preloading )
1291 - ;;
1292 - *)
1293 - # inject LD_PRELOAD entries for easy in-tree development
1294 - myconf+=( --enable-local-library-preloading )
1295 - ;;
1296 - esac
1297 -
1298 - #version 1.7.7 again tries to link against the older installed version and fails, when trying to
1299 - #compile for x86 on amd64, so workaround this issue again
1300 - #check newer versions, if this is still/again needed
1301 - myconf+=( --disable-disallowing-of-undefined-references )
1302 -
1303 - # for build-time scripts
1304 - if use ctypes-python || use python || use test; then
1305 - python_setup
1306 - fi
1307 -
1308 - if use python && [[ ${CHOST} == *-darwin* ]] ; then
1309 - export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
1310 - export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
1311 - export ac_cv_python_compile="$(tc-getCC)"
1312 - fi
1313 -
1314 - # allow overriding Python include directory
1315 - ac_cv_path_RUBY=$(usex ruby "${EPREFIX%/}/usr/bin/ruby${RB_VER}" "none") \
1316 - ac_cv_path_RDOC=$(usex ruby "${EPREFIX%/}/usr/bin/rdoc${RB_VER}" "none") \
1317 - ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
1318 - econf "${myconf[@]}"
1319 -}
1320 -
1321 -src_compile() {
1322 - emake local-all
1323 -
1324 - if use ctypes-python ; then
1325 - # pre-generate .py files
1326 - use ctypes-python && emake ctypes-python
1327 -
1328 - pushd subversion/bindings/ctypes-python >/dev/null || die
1329 - distutils-r1_src_compile
1330 - popd >/dev/null || die
1331 - fi
1332 -
1333 - if use python ; then
1334 - swig_py_compile() {
1335 - local p=subversion/bindings/swig/python
1336 - rm -f ${p} || die
1337 - ln -s "${BUILD_DIR}" ${p} || die
1338 -
1339 - python_export PYTHON_INCLUDEDIR
1340 - emake swig-py \
1341 - swig_pydir="$(python_get_sitedir)/libsvn" \
1342 - swig_pydir_extra="$(python_get_sitedir)/svn"
1343 - }
1344 -
1345 - # this will give us proper BUILD_DIR for symlinking
1346 - BUILD_DIR=python \
1347 - python_foreach_impl swig_py_compile
1348 - fi
1349 -
1350 - if use perl ; then
1351 - emake swig-pl
1352 - fi
1353 -
1354 - if use ruby ; then
1355 - emake swig-rb
1356 - fi
1357 -
1358 - if use java ; then
1359 - emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
1360 - fi
1361 -
1362 - if use extras ; then
1363 - emake tools
1364 - fi
1365 -
1366 - if use doc ; then
1367 - doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
1368 -
1369 - if use java; then
1370 - emake doc-javahl
1371 - fi
1372 - fi
1373 -}
1374 -
1375 -src_test() {
1376 - if has_version ~${CATEGORY}/${P} ; then
1377 - default
1378 -
1379 - if use ctypes-python ; then
1380 - python_test() {
1381 - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
1382 - || die "ctypes-python tests fail with ${EPYTHON}"
1383 - }
1384 -
1385 - distutils-r1_src_test
1386 - fi
1387 -
1388 - if use python ; then
1389 - swig_py_test() {
1390 - pushd "${BUILD_DIR}" >/dev/null || die
1391 - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
1392 - popd >/dev/null || die
1393 - }
1394 -
1395 - BUILD_DIR=subversion/bindings/swig/python \
1396 - python_foreach_impl swig_py_test
1397 - fi
1398 - else
1399 - ewarn "The test suite shows errors when there is an older version of"
1400 - ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
1401 - ewarn "before running the test suite."
1402 - ewarn "Test suite skipped."
1403 - fi
1404 -}
1405 -
1406 -src_install() {
1407 - emake -j1 DESTDIR="${D}" local-install
1408 -
1409 - if use ctypes-python ; then
1410 - pushd subversion/bindings/ctypes-python >/dev/null || die
1411 - distutils-r1_src_install
1412 - popd >/dev/null || die
1413 - fi
1414 -
1415 - if use python ; then
1416 - swig_py_install() {
1417 - local p=subversion/bindings/swig/python
1418 - rm -f ${p} || die
1419 - ln -s "${BUILD_DIR}" ${p} || die
1420 -
1421 - emake \
1422 - DESTDIR="${D}" \
1423 - swig_pydir="$(python_get_sitedir)/libsvn" \
1424 - swig_pydir_extra="$(python_get_sitedir)/svn" \
1425 - install-swig-py
1426 - }
1427 -
1428 - BUILD_DIR=python \
1429 - python_foreach_impl swig_py_install
1430 - fi
1431 -
1432 - if use perl ; then
1433 - emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
1434 - perl_delete_localpod
1435 - find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -delete
1436 - fi
1437 -
1438 - if use ruby ; then
1439 - emake DESTDIR="${D}" install-swig-rb
1440 - fi
1441 -
1442 - if use java ; then
1443 - emake DESTDIR="${D}" install-javahl
1444 - java-pkg_regso "${ED%/}"/usr/$(get_libdir)/libsvnjavahl*$(get_libname)
1445 - java-pkg_dojar "${ED%/}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar
1446 - rm -fr "${ED%/}"/usr/$(get_libdir)/svn-javahl/*.jar
1447 - fi
1448 -
1449 - # Install Apache module configuration.
1450 - if use apache2 ; then
1451 - keepdir "${APACHE_MODULES_CONFDIR}"
1452 - insinto "${APACHE_MODULES_CONFDIR}"
1453 - doins "${FILESDIR}/47_mod_dav_svn.conf"
1454 - fi
1455 -
1456 - # Install Bash Completion, bug 43179.
1457 - newbashcomp tools/client-side/bash_completion svn
1458 - bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
1459 - rm -f tools/client-side/bash_completion
1460 -
1461 - # Install hot backup script, bug 54304.
1462 - newbin tools/backup/hot-backup.py svn-hot-backup
1463 - rm -fr tools/backup
1464 -
1465 - # Install svnserve init-script and xinet.d snippet, bug 43245.
1466 - newinitd "${FILESDIR}"/svnserve.initd3 svnserve
1467 - newconfd "${FILESDIR}"/svnserve.confd svnserve
1468 - insinto /etc/xinetd.d
1469 - newins "${FILESDIR}"/svnserve.xinetd svnserve
1470 -
1471 - #adjust default user and group with disabled apache2 USE flag, bug 381385
1472 - use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
1473 - -e "s\GROUP:-apache\GROUP:-svnusers\g" \
1474 - -i "${ED%/}"/etc/init.d/svnserve || die
1475 - use apache2 || sed -e "0,/apache/s//svn/" \
1476 - -e "s:apache:svnusers:" \
1477 - -i "${ED%/}"/etc/xinetd.d/svnserve || die
1478 -
1479 - # Install documentation.
1480 - dodoc CHANGES COMMITTERS README
1481 - dodoc tools/xslt/svnindex.{css,xsl}
1482 - rm -fr tools/xslt
1483 -
1484 - # Install extra files.
1485 - if use extras ; then
1486 - cat <<- EOF > 80subversion-extras
1487 - PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
1488 - ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
1489 - EOF
1490 - doenvd 80subversion-extras
1491 -
1492 - emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
1493 -
1494 - find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
1495 - rm -fr tools/client-side/svnmucc
1496 - rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
1497 - rm -fr tools/{buildbot,dev,diff,po}
1498 -
1499 - insinto /usr/share/${PN}
1500 - find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
1501 - doins -r tools
1502 - fi
1503 -
1504 - if use doc ; then
1505 - docinto html
1506 - dodoc -r doc/doxygen/html/*
1507 -
1508 - if use java ; then
1509 - java-pkg_dojavadoc doc/javadoc
1510 - fi
1511 - fi
1512 -
1513 - prune_libtool_files --all
1514 -
1515 - cd "${ED%/}"/usr/share/locale
1516 - for i in * ; do
1517 - [[ ${i} == *$LINGUAS* ]] || { rm -r ${i} || die ; }
1518 - done
1519 -}
1520 -
1521 -pkg_preinst() {
1522 - # Compare versions of Berkeley DB, bug 122877.
1523 - if use berkdb && [[ -f "${EROOT%/}/usr/bin/svn" ]] ; then
1524 - OLD_BDB_VERSION="$(scanelf -nq "${EROOT%/}/usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
1525 - NEW_BDB_VERSION="$(scanelf -nq "${ED%/}/usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
1526 - if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
1527 - CHANGED_BDB_VERSION="1"
1528 - fi
1529 - fi
1530 -}
1531 -
1532 -pkg_postinst() {
1533 - if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
1534 - ewarn "You upgraded from an older version of Berkeley DB and may experience"
1535 - ewarn "problems with your repository. Run the following commands as root to fix it:"
1536 - ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
1537 - ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
1538 - fi
1539 -
1540 - ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
1541 -}
1542 -
1543 -pkg_postrm() {
1544 - :
1545 -}
1546 -
1547 -pkg_config() {
1548 - # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
1549 - # already has EPREFIX in it
1550 - einfo "Initializing the database in ${SVN_REPOS_LOC}..."
1551 - if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
1552 - echo "A Subversion repository already exists and I will not overwrite it."
1553 - echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
1554 - else
1555 - mkdir -p "${SVN_REPOS_LOC}/conf"
1556 -
1557 - einfo "Populating repository directory..."
1558 - # Create initial repository.
1559 - "${EROOT}usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
1560 -
1561 - einfo "Setting repository permissions..."
1562 - SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
1563 - SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
1564 - if use apache2 ; then
1565 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
1566 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
1567 - else
1568 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
1569 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
1570 - fi
1571 - chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
1572 - chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
1573 - echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
1574 - echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
1575 - echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
1576 - echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
1577 - echo "to finish the configuration."
1578 - fi
1579 -}