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: Tue, 12 Mar 2019 08:59:15
Message-Id: 1552381145.92632d15eb4b6c30cd6c68949f5297137f448ef7.polynomial-c@gentoo
1 commit: 92632d15eb4b6c30cd6c68949f5297137f448ef7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 12 08:58:38 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 12 08:59:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92632d15
7
8 dev-vcs/subversion: Removed old.
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-vcs/subversion/Manifest | 2 -
14 dev-vcs/subversion/subversion-1.10.3.ebuild | 528 ----------------------------
15 dev-vcs/subversion/subversion-1.11.0.ebuild | 528 ----------------------------
16 3 files changed, 1058 deletions(-)
17
18 diff --git a/dev-vcs/subversion/Manifest b/dev-vcs/subversion/Manifest
19 index 74cd6d00145..27b062f7068 100644
20 --- a/dev-vcs/subversion/Manifest
21 +++ b/dev-vcs/subversion/Manifest
22 @@ -1,7 +1,5 @@
23 DIST subversion-1.10.0_rc1-patches-1.tar.xz 2984 BLAKE2B 7c9619b95ca6b433a58dc5baf3a1e1b14ef0017f714af81762b975d50a37b743788a4da65cf7f9eb8e633cbc813ad8dd974b530a19ec2d3fc74b75921f8f0c17 SHA512 aa7a25a253ea2da99520399d292d3e1602985392bae6dc5582003fdb9719d654638754b6e370b68b184ee6729ba3833bd511c09b2cb36f8f476b42063f55fbb2
24 -DIST subversion-1.10.3.tar.bz2 8374465 BLAKE2B 48610f0edec52dad43a4fd971098ed5d8b43a5396fcc3fdaa42af6ff7ce4722300f0c32a342521072abcccbc32e1364a87fc644913cb4a3a21658793f5991234 SHA512 e753c76be2c7a7d1e47ef70a417f33ad48a5076ddbe02062b478b0baf8ce063f101aab3a86895e33f6277f273917b87d8c07b002e3e4f9fe3a750a2f8142ef6d
25 DIST subversion-1.10.4.tar.bz2 8392477 BLAKE2B 93364178d2252332b070ebddd5791cb43e0000802d820848a6ca2e13ae3036a9119901dcde1b73ea09bd34af3fd72b923bdd2765e302359e7f1ecf49a6840685 SHA512 c44a4a4a9533cd4f4cb6ddbc3ce98585a96da6c8e75497d087034b52f899797bb0972dfc0e79db99e81149e59e7fa765398c6ad35eba64f11f4ae9c3b3537434
26 -DIST subversion-1.11.0.tar.bz2 8490744 BLAKE2B 27b2172e1ebae5641fc2bc73fd77f479278bc0725645e6bf8f974932e5c313552c508cdeeddce101f12fb983398ff81fd2ca2408950513d4ad0bd2cae4fcf729 SHA512 d73cc800080529b1716a027fd3001d9c963a3cb69619d059498c99426cccc21a2985d1eeb5e1bff8d421fff477a9dff6f9be1c092470152452cf5e7175414e92
27 DIST subversion-1.11.1.tar.bz2 8499709 BLAKE2B f14bbe9b28dec32894a8c262d32f36e01c9866352f1c54b5468804e81c1eadb895cbe9e33783a9e7d4a7f54dfa3b25b762015b9ca4886a14628c434254995c77 SHA512 2d082f715bf592ffc6a19311a9320dbae2ff0ee126b0472ce1c3f10e9aee670f43d894889430e6d093620f7b69c611e9a26773bc7a2f8b599ec37540ecd84a8d
28 DIST subversion-1.12.0-rc1.tar.bz2 8503704 BLAKE2B e9f2779155aa45ee0f60359d292c085c1a4bbb2237964d6c045278d7dff71e665662c3af8bfcd81139eb7c501f8f0923377c80348202d1dfb1c9087fafe5a1ed SHA512 b82205d6530ba36d29194382897dbf0b79bd81326eebdaf71f21d061d3759c4f77fecfc2f9f5e761bef9e2534eb4567d62b96618813be644059d5c20219ff546
29 DIST subversion-1.8.18-patchset.tar.bz2 7407 BLAKE2B dc3b6d80dfdf4c6cc30f1663c8cee3eebc4f42d433c3965d8b309f9cc79c31b566a74cf43b3b04037c2498b6a2bffe2c60953c5cfb25aec61a8e4a7e928efcae SHA512 b5c207ed7b6923f1259290563409b2e946a512cc052e4e5d8a061abf3f0909dbbb15c0525a1fca618f1ec5e4abbbc8b49f3f0f714c9dd100f1d6c7e6d88442b2
30
31 diff --git a/dev-vcs/subversion/subversion-1.10.3.ebuild b/dev-vcs/subversion/subversion-1.10.3.ebuild
32 deleted file mode 100644
33 index b13dd328ecf..00000000000
34 --- a/dev-vcs/subversion/subversion-1.10.3.ebuild
35 +++ /dev/null
36 @@ -1,528 +0,0 @@
37 -# Copyright 1999-2019 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -
42 -PYTHON_COMPAT=( python2_7 )
43 -USE_RUBY="ruby25 ruby24 ruby23"
44 -DISTUTILS_OPTIONAL=1
45 -WANT_AUTOMAKE="none"
46 -GENTOO_DEPEND_ON_PERL="no"
47 -
48 -inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single xdg-utils
49 -
50 -MY_P="${P/_/-}"
51 -DESCRIPTION="Advanced version control system"
52 -HOMEPAGE="https://subversion.apache.org/"
53 -SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2
54 - https://dev.gentoo.org/~polynomial-c/${PN}-1.10.0_rc1-patches-1.tar.xz"
55 -S="${WORKDIR}/${MY_P}"
56 -
57 -LICENSE="Subversion GPL-2"
58 -SLOT="0"
59 -[[ "${PV}" = *_rc* ]] || \
60 -KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~ppc ~ppc64 sparc x86"
61 -IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
62 -
63 -COMMON_DEPEND="
64 - app-arch/bzip2
65 - app-arch/lz4
66 - >=dev-db/sqlite-3.7.12
67 - >=dev-libs/apr-1.3:1
68 - >=dev-libs/apr-util-1.3:1
69 - dev-libs/expat
70 - dev-libs/libutf8proc:=
71 - sys-apps/file
72 - sys-libs/zlib
73 - berkdb? ( >=sys-libs/db-4.0.14:= )
74 - ctypes-python? ( ${PYTHON_DEPS} )
75 - gnome-keyring? (
76 - dev-libs/glib:2
77 - gnome-base/libgnome-keyring
78 - sys-apps/dbus
79 - )
80 - http? ( >=net-libs/serf-1.3.4 )
81 - kwallet? (
82 - dev-qt/qtcore:5
83 - dev-qt/qtdbus:5
84 - dev-qt/qtgui:5
85 - kde-frameworks/kcoreaddons:5
86 - kde-frameworks/ki18n:5
87 - kde-frameworks/kwallet:5
88 - sys-apps/dbus
89 - )
90 - perl? ( dev-lang/perl:= )
91 - python? ( ${PYTHON_DEPS} )
92 - ruby? ( ${RUBY_DEPS} )
93 - sasl? ( dev-libs/cyrus-sasl )"
94 -RDEPEND="${COMMON_DEPEND}
95 - apache2? ( www-servers/apache[apache2_modules_dav] )
96 - java? ( >=virtual/jre-1.5 )
97 - nls? ( virtual/libintl )
98 - perl? ( dev-perl/URI )"
99 -# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
100 -DEPEND="${COMMON_DEPEND}
101 - !!<sys-apps/sandbox-1.6
102 - ctypes-python? ( dev-python/ctypesgen )
103 - doc? ( app-doc/doxygen )
104 - gnome-keyring? ( virtual/pkgconfig )
105 - http? ( virtual/pkgconfig )
106 - java? ( >=virtual/jdk-1.5 )
107 - kwallet? (
108 - kde-frameworks/kdelibs4support:5
109 - virtual/pkgconfig
110 - )
111 - nls? ( sys-devel/gettext )
112 - perl? ( dev-lang/swig )
113 - python? ( dev-lang/swig )
114 - ruby? ( dev-lang/swig )
115 - test? ( ${PYTHON_DEPS} )"
116 -
117 -REQUIRED_USE="
118 - ctypes-python? ( ${PYTHON_REQUIRED_USE} )
119 - python? ( ${PYTHON_REQUIRED_USE} )
120 - test? (
121 - ${PYTHON_REQUIRED_USE}
122 - !dso
123 - )"
124 -
125 -want_apache
126 -
127 -pkg_setup() {
128 - if use berkdb ; then
129 - local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
130 - | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
131 - | sed 's:.*b::')"
132 - einfo
133 - if [[ -z "${SVN_BDB_VERSION}" ]] ; then
134 - if [[ -n "${apu_bdb_version}" ]] ; then
135 - SVN_BDB_VERSION="${apu_bdb_version}"
136 - einfo "Matching db version to apr-util"
137 - else
138 - SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
139 - einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
140 - fi
141 - fi
142 - einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
143 - einfo
144 -
145 - if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
146 - eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
147 - eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
148 - eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
149 - eerror "Aborting to avoid possible run-time crashes."
150 - die "Berkeley DB version mismatch"
151 - fi
152 - fi
153 -
154 - depend.apache_pkg_setup
155 -
156 - java-pkg-opt-2_pkg_setup
157 -
158 - if ! use http ; then
159 - ewarn "WebDAV support is disabled. You need WebDAV to"
160 - ewarn "access repositories through the HTTP protocol."
161 - ewarn "Consider enabling \"http\" USE flag"
162 - echo -ne "\a"
163 - fi
164 -
165 - if use debug ; then
166 - append-cppflags -DSVN_DEBUG -DAP_DEBUG
167 - fi
168 -
169 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E
170 - [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
171 -
172 - # Allow for custom repository locations.
173 - SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
174 -
175 - if use ruby ; then
176 - local rbslot
177 - RB_VER=""
178 - for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
179 - if has_version dev-lang/ruby:${rbslot} ; then
180 - RB_VER="${rbslot/.}"
181 - break
182 - fi
183 - done
184 - [[ -z "${RB_VER}" ]] && die "No useable ruby version found"
185 - fi
186 -}
187 -
188 -src_prepare() {
189 - eapply "${WORKDIR}/patches"
190 - eapply "${FILESDIR}"/${PN}-1.9.7-fix-wc-queries-test-test.patch
191 - eapply_user
192 -
193 - fperms +x build/transform_libtool_scripts.sh
194 -
195 - sed -i \
196 - -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
197 - -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
198 -
199 - # this bites us in particular on Solaris
200 - sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
201 - die "/bin/sh is not POSIX shell!"
202 -
203 - eautoconf
204 - elibtoolize
205 -
206 - sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
207 - -i build-outputs.mk || die "sed failed"
208 -
209 - if use python ; then
210 - # XXX: make python_copy_sources accept path
211 - S=${S}/subversion/bindings/swig/python python_copy_sources
212 - rm -r "${S}"/subversion/bindings/swig/python || die
213 - fi
214 -
215 - xdg_environment_reset
216 -}
217 -
218 -src_configure() {
219 - local myconf=(
220 - --libdir="${EPREFIX%/}/usr/$(get_libdir)"
221 - $(use_with apache2 apache-libexecdir)
222 - $(use_with apache2 apxs "${APXS}")
223 - $(use_with berkdb berkeley-db "db.h:${EPREFIX%/}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}")
224 - $(use_with ctypes-python ctypesgen "${EPREFIX%/}/usr")
225 - $(use_enable dso runtime-module-search)
226 - $(use_with gnome-keyring)
227 - $(use_enable java javahl)
228 - $(use_with java jdk "${JAVA_HOME}")
229 - $(use_with kwallet)
230 - $(use_enable nls)
231 - $(use_with sasl)
232 - $(use_with http serf)
233 - --with-apr="${EPREFIX%/}/usr/bin/apr-1-config"
234 - --with-apr-util="${EPREFIX%/}/usr/bin/apu-1-config"
235 - --disable-experimental-libtool
236 - --without-jikes
237 - --disable-mod-activation
238 - --disable-static
239 - )
240 -
241 - if use python || use perl || use ruby; then
242 - myconf+=( --with-swig )
243 - else
244 - myconf+=( --without-swig )
245 - fi
246 -
247 - if use java ; then
248 - myconf+=( --without-junit )
249 - fi
250 -
251 - case ${CHOST} in
252 - *-aix*)
253 - # avoid recording immediate path to sharedlibs into executables
254 - append-ldflags -Wl,-bnoipath
255 - ;;
256 - *-cygwin*)
257 - # no LD_PRELOAD support, no undefined symbols
258 - myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined )
259 - ;;
260 - *-interix*)
261 - # loader crashes on the LD_PRELOADs...
262 - myconf+=( --disable-local-library-preloading )
263 - ;;
264 - *-solaris*)
265 - # need -lintl to link
266 - use nls && append-libs intl
267 - # this breaks installation, on x64 echo replacement is 32-bits
268 - myconf+=( --disable-local-library-preloading )
269 - ;;
270 - *-mint*)
271 - myconf+=( --enable-all-static --disable-local-library-preloading )
272 - ;;
273 - *)
274 - # inject LD_PRELOAD entries for easy in-tree development
275 - myconf+=( --enable-local-library-preloading )
276 - ;;
277 - esac
278 -
279 - #version 1.7.7 again tries to link against the older installed version and fails, when trying to
280 - #compile for x86 on amd64, so workaround this issue again
281 - #check newer versions, if this is still/again needed
282 - myconf+=( --disable-disallowing-of-undefined-references )
283 -
284 - # for build-time scripts
285 - if use ctypes-python || use python || use test; then
286 - python_setup
287 - fi
288 -
289 - if use python && [[ ${CHOST} == *-darwin* ]] ; then
290 - export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
291 - export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
292 - export ac_cv_python_compile="$(tc-getCC)"
293 - fi
294 -
295 - # allow overriding Python include directory
296 - ac_cv_path_RUBY=$(usex ruby "${EPREFIX%/}/usr/bin/ruby${RB_VER}" "none") \
297 - ac_cv_path_RDOC=$(usex ruby "${EPREFIX%/}/usr/bin/rdoc${RB_VER}" "none") \
298 - ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
299 - econf "${myconf[@]}"
300 -}
301 -
302 -src_compile() {
303 - emake local-all
304 -
305 - if use ctypes-python ; then
306 - # pre-generate .py files
307 - use ctypes-python && emake ctypes-python
308 -
309 - pushd subversion/bindings/ctypes-python >/dev/null || die
310 - distutils-r1_src_compile
311 - popd >/dev/null || die
312 - fi
313 -
314 - if use python ; then
315 - swig_py_compile() {
316 - local p=subversion/bindings/swig/python
317 - rm -f ${p} || die
318 - ln -s "${BUILD_DIR}" ${p} || die
319 -
320 - python_export PYTHON_INCLUDEDIR
321 - emake swig-py \
322 - swig_pydir="$(python_get_sitedir)/libsvn" \
323 - swig_pydir_extra="$(python_get_sitedir)/svn"
324 - }
325 -
326 - # this will give us proper BUILD_DIR for symlinking
327 - BUILD_DIR=python \
328 - python_foreach_impl swig_py_compile
329 - fi
330 -
331 - if use perl ; then
332 - emake swig-pl
333 - fi
334 -
335 - if use ruby ; then
336 - emake swig-rb
337 - fi
338 -
339 - if use java ; then
340 - emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
341 - fi
342 -
343 - if use extras ; then
344 - emake tools
345 - fi
346 -
347 - if use doc ; then
348 - doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
349 -
350 - if use java; then
351 - emake doc-javahl
352 - fi
353 - fi
354 -}
355 -
356 -src_test() {
357 - if has_version ~${CATEGORY}/${P} ; then
358 - default
359 -
360 - if use ctypes-python ; then
361 - python_test() {
362 - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
363 - || die "ctypes-python tests fail with ${EPYTHON}"
364 - }
365 -
366 - distutils-r1_src_test
367 - fi
368 -
369 - if use python ; then
370 - swig_py_test() {
371 - pushd "${BUILD_DIR}" >/dev/null || die
372 - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
373 - popd >/dev/null || die
374 - }
375 -
376 - BUILD_DIR=subversion/bindings/swig/python \
377 - python_foreach_impl swig_py_test
378 - fi
379 - else
380 - ewarn "The test suite shows errors when there is an older version of"
381 - ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
382 - ewarn "before running the test suite."
383 - ewarn "Test suite skipped."
384 - fi
385 -}
386 -
387 -src_install() {
388 - emake -j1 DESTDIR="${D}" local-install
389 -
390 - if use ctypes-python ; then
391 - pushd subversion/bindings/ctypes-python >/dev/null || die
392 - distutils-r1_src_install
393 - popd >/dev/null || die
394 - fi
395 -
396 - if use python ; then
397 - swig_py_install() {
398 - local p=subversion/bindings/swig/python
399 - rm -f ${p} || die
400 - ln -s "${BUILD_DIR}" ${p} || die
401 -
402 - emake \
403 - DESTDIR="${D}" \
404 - swig_pydir="$(python_get_sitedir)/libsvn" \
405 - swig_pydir_extra="$(python_get_sitedir)/svn" \
406 - install-swig-py
407 - }
408 -
409 - BUILD_DIR=python \
410 - python_foreach_impl swig_py_install
411 - fi
412 -
413 - if use perl ; then
414 - emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
415 - perl_delete_localpod
416 - find "${ED}" \( -name .packlist -o -name "*.bs" \) -delete || die
417 - fi
418 -
419 - if use ruby ; then
420 - emake DESTDIR="${D}" install-swig-rb
421 - fi
422 -
423 - if use java ; then
424 - emake DESTDIR="${D}" install-javahl
425 - java-pkg_regso "${ED%/}"/usr/$(get_libdir)/libsvnjavahl*$(get_libname)
426 - java-pkg_dojar "${ED%/}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar
427 - rm -fr "${ED%/}"/usr/$(get_libdir)/svn-javahl/*.jar
428 - fi
429 -
430 - # Install Apache module configuration.
431 - if use apache2 ; then
432 - keepdir "${APACHE_MODULES_CONFDIR}"
433 - insinto "${APACHE_MODULES_CONFDIR}"
434 - doins "${FILESDIR}/47_mod_dav_svn.conf"
435 - fi
436 -
437 - # Install Bash Completion, bug 43179.
438 - newbashcomp tools/client-side/bash_completion svn
439 - bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
440 - rm -f tools/client-side/bash_completion
441 -
442 - # Install hot backup script, bug 54304.
443 - newbin tools/backup/hot-backup.py svn-hot-backup
444 - rm -fr tools/backup
445 -
446 - # Install svnserve init-script and xinet.d snippet, bug 43245.
447 - newinitd "${FILESDIR}"/svnserve.initd3 svnserve
448 - newconfd "${FILESDIR}"/svnserve.confd svnserve
449 - insinto /etc/xinetd.d
450 - newins "${FILESDIR}"/svnserve.xinetd svnserve
451 -
452 - #adjust default user and group with disabled apache2 USE flag, bug 381385
453 - if ! use apache2 ; then
454 - sed -e "s\USER:-apache\USER:-svn\g" \
455 - -e "s\GROUP:-apache\GROUP:-svnusers\g" \
456 - -i "${ED%/}"/etc/init.d/svnserve || die
457 - sed -e "0,/apache/s//svn/" \
458 - -e "s:apache:svnusers:" \
459 - -i "${ED%/}"/etc/xinetd.d/svnserve || die
460 - fi
461 -
462 - # Install documentation.
463 - dodoc CHANGES COMMITTERS README
464 - dodoc tools/xslt/svnindex.{css,xsl}
465 - rm -fr tools/xslt
466 -
467 - # Install extra files.
468 - if use extras ; then
469 - cat <<- EOF > 80subversion-extras
470 - PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
471 - ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
472 - EOF
473 - doenvd 80subversion-extras
474 -
475 - emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
476 -
477 - find tools \( -name "*.bat" -o -name "*.in" -o -name ".libs" \) -print0 | xargs -0 rm -fr
478 - rm -fr tools/client-side/svnmucc
479 - rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
480 - rm -fr tools/{buildbot,dev,diff,po}
481 -
482 - insinto /usr/share/${PN}
483 - find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
484 - doins -r tools
485 - fi
486 -
487 - if use doc ; then
488 - docinto html
489 - dodoc -r doc/doxygen/html/*
490 -
491 - if use java ; then
492 - java-pkg_dojavadoc doc/javadoc
493 - fi
494 - fi
495 -
496 - prune_libtool_files --all
497 -
498 - cd "${ED%/}"/usr/share/locale
499 - for i in * ; do
500 - if [[ ${i} != *${LINGUAS}* ]] ; then
501 - rm -r ${i} || die
502 - fi
503 - done
504 -}
505 -
506 -pkg_preinst() {
507 - # Compare versions of Berkeley DB, bug 122877.
508 - if use berkdb && [[ -f "${EROOT}/usr/bin/svn" ]] ; then
509 - 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/")"
510 - 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/")"
511 - if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
512 - CHANGED_BDB_VERSION="1"
513 - fi
514 - fi
515 -}
516 -
517 -pkg_postinst() {
518 - if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
519 - ewarn "You upgraded from an older version of Berkeley DB and may experience"
520 - ewarn "problems with your repository. Run the following commands as root to fix it:"
521 - ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
522 - ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
523 - fi
524 -
525 - ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
526 -}
527 -
528 -pkg_postrm() {
529 - :
530 -}
531 -
532 -pkg_config() {
533 - # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
534 - # already has EPREFIX in it
535 - einfo "Initializing the database in ${SVN_REPOS_LOC}..."
536 - if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
537 - echo "A Subversion repository already exists and I will not overwrite it."
538 - echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
539 - else
540 - mkdir -p "${SVN_REPOS_LOC}/conf"
541 -
542 - einfo "Populating repository directory..."
543 - # Create initial repository.
544 - "${EROOT}/usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
545 -
546 - einfo "Setting repository permissions..."
547 - SVNSERVE_USER="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
548 - SVNSERVE_GROUP="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
549 - if use apache2 ; then
550 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
551 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
552 - else
553 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
554 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
555 - fi
556 - chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
557 - chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
558 - echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
559 - echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
560 - echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
561 - echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
562 - echo "to finish the configuration."
563 - fi
564 -}
565
566 diff --git a/dev-vcs/subversion/subversion-1.11.0.ebuild b/dev-vcs/subversion/subversion-1.11.0.ebuild
567 deleted file mode 100644
568 index a4a22eed915..00000000000
569 --- a/dev-vcs/subversion/subversion-1.11.0.ebuild
570 +++ /dev/null
571 @@ -1,528 +0,0 @@
572 -# Copyright 1999-2019 Gentoo Authors
573 -# Distributed under the terms of the GNU General Public License v2
574 -
575 -EAPI=6
576 -
577 -PYTHON_COMPAT=( python2_7 )
578 -USE_RUBY="ruby25 ruby24 ruby23"
579 -DISTUTILS_OPTIONAL=1
580 -WANT_AUTOMAKE="none"
581 -GENTOO_DEPEND_ON_PERL="no"
582 -
583 -inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single xdg-utils
584 -
585 -MY_P="${P/_/-}"
586 -DESCRIPTION="Advanced version control system"
587 -HOMEPAGE="https://subversion.apache.org/"
588 -SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2
589 - https://dev.gentoo.org/~polynomial-c/${PN}-1.10.0_rc1-patches-1.tar.xz"
590 -S="${WORKDIR}/${MY_P}"
591 -
592 -LICENSE="Subversion GPL-2"
593 -SLOT="0"
594 -[[ "${PV}" = *_rc* ]] || \
595 -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
596 -IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
597 -
598 -COMMON_DEPEND="
599 - app-arch/bzip2
600 - app-arch/lz4
601 - >=dev-db/sqlite-3.7.12
602 - >=dev-libs/apr-1.3:1
603 - >=dev-libs/apr-util-1.3:1
604 - dev-libs/expat
605 - dev-libs/libutf8proc:=
606 - sys-apps/file
607 - sys-libs/zlib
608 - berkdb? ( >=sys-libs/db-4.0.14:= )
609 - ctypes-python? ( ${PYTHON_DEPS} )
610 - gnome-keyring? (
611 - dev-libs/glib:2
612 - gnome-base/libgnome-keyring
613 - sys-apps/dbus
614 - )
615 - http? ( >=net-libs/serf-1.3.4 )
616 - kwallet? (
617 - dev-qt/qtcore:5
618 - dev-qt/qtdbus:5
619 - dev-qt/qtgui:5
620 - kde-frameworks/kcoreaddons:5
621 - kde-frameworks/ki18n:5
622 - kde-frameworks/kwallet:5
623 - sys-apps/dbus
624 - )
625 - perl? ( dev-lang/perl:= )
626 - python? ( ${PYTHON_DEPS} )
627 - ruby? ( ${RUBY_DEPS} )
628 - sasl? ( dev-libs/cyrus-sasl )"
629 -RDEPEND="${COMMON_DEPEND}
630 - apache2? ( www-servers/apache[apache2_modules_dav] )
631 - java? ( >=virtual/jre-1.5 )
632 - nls? ( virtual/libintl )
633 - perl? ( dev-perl/URI )"
634 -# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
635 -DEPEND="${COMMON_DEPEND}
636 - !!<sys-apps/sandbox-1.6
637 - ctypes-python? ( dev-python/ctypesgen )
638 - doc? ( app-doc/doxygen )
639 - gnome-keyring? ( virtual/pkgconfig )
640 - http? ( virtual/pkgconfig )
641 - java? ( >=virtual/jdk-1.5 )
642 - kwallet? (
643 - kde-frameworks/kdelibs4support:5
644 - virtual/pkgconfig
645 - )
646 - nls? ( sys-devel/gettext )
647 - perl? ( dev-lang/swig )
648 - python? ( dev-lang/swig )
649 - ruby? ( dev-lang/swig )
650 - test? ( ${PYTHON_DEPS} )"
651 -
652 -REQUIRED_USE="
653 - ctypes-python? ( ${PYTHON_REQUIRED_USE} )
654 - python? ( ${PYTHON_REQUIRED_USE} )
655 - test? (
656 - ${PYTHON_REQUIRED_USE}
657 - !dso
658 - )"
659 -
660 -want_apache
661 -
662 -pkg_setup() {
663 - if use berkdb ; then
664 - local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
665 - | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
666 - | sed 's:.*b::')"
667 - einfo
668 - if [[ -z "${SVN_BDB_VERSION}" ]] ; then
669 - if [[ -n "${apu_bdb_version}" ]] ; then
670 - SVN_BDB_VERSION="${apu_bdb_version}"
671 - einfo "Matching db version to apr-util"
672 - else
673 - SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
674 - einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
675 - fi
676 - fi
677 - einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
678 - einfo
679 -
680 - if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
681 - eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
682 - eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
683 - eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
684 - eerror "Aborting to avoid possible run-time crashes."
685 - die "Berkeley DB version mismatch"
686 - fi
687 - fi
688 -
689 - depend.apache_pkg_setup
690 -
691 - java-pkg-opt-2_pkg_setup
692 -
693 - if ! use http ; then
694 - ewarn "WebDAV support is disabled. You need WebDAV to"
695 - ewarn "access repositories through the HTTP protocol."
696 - ewarn "Consider enabling \"http\" USE flag"
697 - echo -ne "\a"
698 - fi
699 -
700 - if use debug ; then
701 - append-cppflags -DSVN_DEBUG -DAP_DEBUG
702 - fi
703 -
704 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E
705 - [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
706 -
707 - # Allow for custom repository locations.
708 - SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
709 -
710 - if use ruby ; then
711 - local rbslot
712 - RB_VER=""
713 - for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
714 - if has_version dev-lang/ruby:${rbslot} ; then
715 - RB_VER="${rbslot/.}"
716 - break
717 - fi
718 - done
719 - [[ -z "${RB_VER}" ]] && die "No useable ruby version found"
720 - fi
721 -}
722 -
723 -src_prepare() {
724 - eapply "${WORKDIR}/patches"
725 - eapply "${FILESDIR}"/${PN}-1.9.7-fix-wc-queries-test-test.patch
726 - eapply_user
727 -
728 - fperms +x build/transform_libtool_scripts.sh
729 -
730 - sed -i \
731 - -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
732 - -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
733 -
734 - # this bites us in particular on Solaris
735 - sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
736 - die "/bin/sh is not POSIX shell!"
737 -
738 - eautoconf
739 - elibtoolize
740 -
741 - sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
742 - -i build-outputs.mk || die "sed failed"
743 -
744 - if use python ; then
745 - # XXX: make python_copy_sources accept path
746 - S=${S}/subversion/bindings/swig/python python_copy_sources
747 - rm -r "${S}"/subversion/bindings/swig/python || die
748 - fi
749 -
750 - xdg_environment_reset
751 -}
752 -
753 -src_configure() {
754 - local myconf=(
755 - --libdir="${EPREFIX%/}/usr/$(get_libdir)"
756 - $(use_with apache2 apache-libexecdir)
757 - $(use_with apache2 apxs "${APXS}")
758 - $(use_with berkdb berkeley-db "db.h:${EPREFIX%/}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}")
759 - $(use_with ctypes-python ctypesgen "${EPREFIX%/}/usr")
760 - $(use_enable dso runtime-module-search)
761 - $(use_with gnome-keyring)
762 - $(use_enable java javahl)
763 - $(use_with java jdk "${JAVA_HOME}")
764 - $(use_with kwallet)
765 - $(use_enable nls)
766 - $(use_with sasl)
767 - $(use_with http serf)
768 - --with-apr="${EPREFIX%/}/usr/bin/apr-1-config"
769 - --with-apr-util="${EPREFIX%/}/usr/bin/apu-1-config"
770 - --disable-experimental-libtool
771 - --without-jikes
772 - --disable-mod-activation
773 - --disable-static
774 - )
775 -
776 - if use python || use perl || use ruby; then
777 - myconf+=( --with-swig )
778 - else
779 - myconf+=( --without-swig )
780 - fi
781 -
782 - if use java ; then
783 - myconf+=( --without-junit )
784 - fi
785 -
786 - case ${CHOST} in
787 - *-aix*)
788 - # avoid recording immediate path to sharedlibs into executables
789 - append-ldflags -Wl,-bnoipath
790 - ;;
791 - *-cygwin*)
792 - # no LD_PRELOAD support, no undefined symbols
793 - myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined )
794 - ;;
795 - *-interix*)
796 - # loader crashes on the LD_PRELOADs...
797 - myconf+=( --disable-local-library-preloading )
798 - ;;
799 - *-solaris*)
800 - # need -lintl to link
801 - use nls && append-libs intl
802 - # this breaks installation, on x64 echo replacement is 32-bits
803 - myconf+=( --disable-local-library-preloading )
804 - ;;
805 - *-mint*)
806 - myconf+=( --enable-all-static --disable-local-library-preloading )
807 - ;;
808 - *)
809 - # inject LD_PRELOAD entries for easy in-tree development
810 - myconf+=( --enable-local-library-preloading )
811 - ;;
812 - esac
813 -
814 - #version 1.7.7 again tries to link against the older installed version and fails, when trying to
815 - #compile for x86 on amd64, so workaround this issue again
816 - #check newer versions, if this is still/again needed
817 - myconf+=( --disable-disallowing-of-undefined-references )
818 -
819 - # for build-time scripts
820 - if use ctypes-python || use python || use test; then
821 - python_setup
822 - fi
823 -
824 - if use python && [[ ${CHOST} == *-darwin* ]] ; then
825 - export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
826 - export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
827 - export ac_cv_python_compile="$(tc-getCC)"
828 - fi
829 -
830 - # allow overriding Python include directory
831 - ac_cv_path_RUBY=$(usex ruby "${EPREFIX%/}/usr/bin/ruby${RB_VER}" "none") \
832 - ac_cv_path_RDOC=$(usex ruby "${EPREFIX%/}/usr/bin/rdoc${RB_VER}" "none") \
833 - ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
834 - econf "${myconf[@]}"
835 -}
836 -
837 -src_compile() {
838 - emake local-all
839 -
840 - if use ctypes-python ; then
841 - # pre-generate .py files
842 - use ctypes-python && emake ctypes-python
843 -
844 - pushd subversion/bindings/ctypes-python >/dev/null || die
845 - distutils-r1_src_compile
846 - popd >/dev/null || die
847 - fi
848 -
849 - if use python ; then
850 - swig_py_compile() {
851 - local p=subversion/bindings/swig/python
852 - rm -f ${p} || die
853 - ln -s "${BUILD_DIR}" ${p} || die
854 -
855 - python_export PYTHON_INCLUDEDIR
856 - emake swig-py \
857 - swig_pydir="$(python_get_sitedir)/libsvn" \
858 - swig_pydir_extra="$(python_get_sitedir)/svn"
859 - }
860 -
861 - # this will give us proper BUILD_DIR for symlinking
862 - BUILD_DIR=python \
863 - python_foreach_impl swig_py_compile
864 - fi
865 -
866 - if use perl ; then
867 - emake swig-pl
868 - fi
869 -
870 - if use ruby ; then
871 - emake swig-rb
872 - fi
873 -
874 - if use java ; then
875 - emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
876 - fi
877 -
878 - if use extras ; then
879 - emake tools
880 - fi
881 -
882 - if use doc ; then
883 - doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
884 -
885 - if use java; then
886 - emake doc-javahl
887 - fi
888 - fi
889 -}
890 -
891 -src_test() {
892 - if has_version ~${CATEGORY}/${P} ; then
893 - default
894 -
895 - if use ctypes-python ; then
896 - python_test() {
897 - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
898 - || die "ctypes-python tests fail with ${EPYTHON}"
899 - }
900 -
901 - distutils-r1_src_test
902 - fi
903 -
904 - if use python ; then
905 - swig_py_test() {
906 - pushd "${BUILD_DIR}" >/dev/null || die
907 - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
908 - popd >/dev/null || die
909 - }
910 -
911 - BUILD_DIR=subversion/bindings/swig/python \
912 - python_foreach_impl swig_py_test
913 - fi
914 - else
915 - ewarn "The test suite shows errors when there is an older version of"
916 - ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
917 - ewarn "before running the test suite."
918 - ewarn "Test suite skipped."
919 - fi
920 -}
921 -
922 -src_install() {
923 - emake -j1 DESTDIR="${D}" local-install
924 -
925 - if use ctypes-python ; then
926 - pushd subversion/bindings/ctypes-python >/dev/null || die
927 - distutils-r1_src_install
928 - popd >/dev/null || die
929 - fi
930 -
931 - if use python ; then
932 - swig_py_install() {
933 - local p=subversion/bindings/swig/python
934 - rm -f ${p} || die
935 - ln -s "${BUILD_DIR}" ${p} || die
936 -
937 - emake \
938 - DESTDIR="${D}" \
939 - swig_pydir="$(python_get_sitedir)/libsvn" \
940 - swig_pydir_extra="$(python_get_sitedir)/svn" \
941 - install-swig-py
942 - }
943 -
944 - BUILD_DIR=python \
945 - python_foreach_impl swig_py_install
946 - fi
947 -
948 - if use perl ; then
949 - emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
950 - perl_delete_localpod
951 - find "${ED}" \( -name .packlist -o -name "*.bs" \) -delete || die
952 - fi
953 -
954 - if use ruby ; then
955 - emake DESTDIR="${D}" install-swig-rb
956 - fi
957 -
958 - if use java ; then
959 - emake DESTDIR="${D}" install-javahl
960 - java-pkg_regso "${ED%/}"/usr/$(get_libdir)/libsvnjavahl*$(get_libname)
961 - java-pkg_dojar "${ED%/}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar
962 - rm -fr "${ED%/}"/usr/$(get_libdir)/svn-javahl/*.jar
963 - fi
964 -
965 - # Install Apache module configuration.
966 - if use apache2 ; then
967 - keepdir "${APACHE_MODULES_CONFDIR}"
968 - insinto "${APACHE_MODULES_CONFDIR}"
969 - doins "${FILESDIR}/47_mod_dav_svn.conf"
970 - fi
971 -
972 - # Install Bash Completion, bug 43179.
973 - newbashcomp tools/client-side/bash_completion svn
974 - bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
975 - rm -f tools/client-side/bash_completion
976 -
977 - # Install hot backup script, bug 54304.
978 - newbin tools/backup/hot-backup.py svn-hot-backup
979 - rm -fr tools/backup
980 -
981 - # Install svnserve init-script and xinet.d snippet, bug 43245.
982 - newinitd "${FILESDIR}"/svnserve.initd3 svnserve
983 - newconfd "${FILESDIR}"/svnserve.confd svnserve
984 - insinto /etc/xinetd.d
985 - newins "${FILESDIR}"/svnserve.xinetd svnserve
986 -
987 - #adjust default user and group with disabled apache2 USE flag, bug 381385
988 - if ! use apache2 ; then
989 - sed -e "s\USER:-apache\USER:-svn\g" \
990 - -e "s\GROUP:-apache\GROUP:-svnusers\g" \
991 - -i "${ED%/}"/etc/init.d/svnserve || die
992 - sed -e "0,/apache/s//svn/" \
993 - -e "s:apache:svnusers:" \
994 - -i "${ED%/}"/etc/xinetd.d/svnserve || die
995 - fi
996 -
997 - # Install documentation.
998 - dodoc CHANGES COMMITTERS README
999 - dodoc tools/xslt/svnindex.{css,xsl}
1000 - rm -fr tools/xslt
1001 -
1002 - # Install extra files.
1003 - if use extras ; then
1004 - cat <<- EOF > 80subversion-extras
1005 - PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
1006 - ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
1007 - EOF
1008 - doenvd 80subversion-extras
1009 -
1010 - emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
1011 -
1012 - find tools \( -name "*.bat" -o -name "*.in" -o -name ".libs" \) -print0 | xargs -0 rm -fr
1013 - rm -fr tools/client-side/svnmucc
1014 - rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
1015 - rm -fr tools/{buildbot,dev,diff,po}
1016 -
1017 - insinto /usr/share/${PN}
1018 - find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
1019 - doins -r tools
1020 - fi
1021 -
1022 - if use doc ; then
1023 - docinto html
1024 - dodoc -r doc/doxygen/html/*
1025 -
1026 - if use java ; then
1027 - java-pkg_dojavadoc doc/javadoc
1028 - fi
1029 - fi
1030 -
1031 - prune_libtool_files --all
1032 -
1033 - cd "${ED%/}"/usr/share/locale
1034 - for i in * ; do
1035 - if [[ ${i} != *${LINGUAS}* ]] ; then
1036 - rm -r ${i} || die
1037 - fi
1038 - done
1039 -}
1040 -
1041 -pkg_preinst() {
1042 - # Compare versions of Berkeley DB, bug 122877.
1043 - if use berkdb && [[ -f "${EROOT}/usr/bin/svn" ]] ; then
1044 - 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/")"
1045 - 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/")"
1046 - if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
1047 - CHANGED_BDB_VERSION="1"
1048 - fi
1049 - fi
1050 -}
1051 -
1052 -pkg_postinst() {
1053 - if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
1054 - ewarn "You upgraded from an older version of Berkeley DB and may experience"
1055 - ewarn "problems with your repository. Run the following commands as root to fix it:"
1056 - ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
1057 - ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
1058 - fi
1059 -
1060 - ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
1061 -}
1062 -
1063 -pkg_postrm() {
1064 - :
1065 -}
1066 -
1067 -pkg_config() {
1068 - # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
1069 - # already has EPREFIX in it
1070 - einfo "Initializing the database in ${SVN_REPOS_LOC}..."
1071 - if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
1072 - echo "A Subversion repository already exists and I will not overwrite it."
1073 - echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
1074 - else
1075 - mkdir -p "${SVN_REPOS_LOC}/conf"
1076 -
1077 - einfo "Populating repository directory..."
1078 - # Create initial repository.
1079 - "${EROOT}/usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
1080 -
1081 - einfo "Setting repository permissions..."
1082 - SVNSERVE_USER="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
1083 - SVNSERVE_GROUP="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
1084 - if use apache2 ; then
1085 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
1086 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
1087 - else
1088 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
1089 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
1090 - fi
1091 - chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
1092 - chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
1093 - echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
1094 - echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
1095 - echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
1096 - echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
1097 - echo "to finish the configuration."
1098 - fi
1099 -}