1 |
commit: 5af43e3af3676dd0207045891bf6fb19eff1a533 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 27 20:47:46 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 27 20:48:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5af43e3a |
7 |
|
8 |
dev-vcs/subversion: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
dev-vcs/subversion/Manifest | 1 - |
14 |
dev-vcs/subversion/subversion-1.14.0_rc2.ebuild | 537 ------------------------ |
15 |
2 files changed, 538 deletions(-) |
16 |
|
17 |
diff --git a/dev-vcs/subversion/Manifest b/dev-vcs/subversion/Manifest |
18 |
index b972cfe6110..7612c82d7f2 100644 |
19 |
--- a/dev-vcs/subversion/Manifest |
20 |
+++ b/dev-vcs/subversion/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
DIST subversion-1.10.0_rc1-patches-1.tar.xz 2984 BLAKE2B 7c9619b95ca6b433a58dc5baf3a1e1b14ef0017f714af81762b975d50a37b743788a4da65cf7f9eb8e633cbc813ad8dd974b530a19ec2d3fc74b75921f8f0c17 SHA512 aa7a25a253ea2da99520399d292d3e1602985392bae6dc5582003fdb9719d654638754b6e370b68b184ee6729ba3833bd511c09b2cb36f8f476b42063f55fbb2 |
23 |
DIST subversion-1.12.2.tar.bz2 8506584 BLAKE2B 535e4c6c369537baa7f9fc9123d0314de1bb8d4b3c51e0216662047fd1084ceb6a1f349de54bf575f0eb8e1041fcd6525e6cf27dbd908e2148578cb9fb807bb3 SHA512 b1f859b460afa54598778d8633f648acb4fa46138f7d6f0c1451e3c6a1de71df859233cd9ac7f19f0f20d7237ed3988f0a38da7552ffa58391e19d957bc7c136 |
24 |
DIST subversion-1.13.0.tar.bz2 8508122 BLAKE2B 761def1bb3a1fe5333534ebda0940b618c343f919688055cdef69552bc515ad6cd9db3ac67c8c73075487d4f45d93bb57fa467288756dfa163fc72c8e8c7b548 SHA512 36f390b412bf772bf894efc2aadc247f12ca30ac407e04f664c14411c3519e1bb242d1239f2f44cbcb86eafc7c413efc8eadbfe1d1e75118235a7b7adc6c85b2 |
25 |
-DIST subversion-1.14.0-rc2.tar.bz2 8497728 BLAKE2B 471e9fe35f9e88d6bd2e3811789937bb609da4735cc836d58fc64e8e384666167d1b4be683f420a7db7be555c94c49cecb115ff25649acd74acd79514f11efe7 SHA512 149e961939bf12aafa8b545b3bd1713dfee95d05134b500a8e4279cd1719528f13ff4fdda7ed77ce74630dbd2390f9c7cfcd0a0595f92d95c4ba914f8bd3a76c |
26 |
DIST subversion-1.14.0.tar.bz2 8497531 BLAKE2B 261f1401a96b181ccbdea9ab6e1dde301aa2c67296a0dc458a1d7e544530411b656d0d5335f985c9222c2d44fc8f962b1a960b81e4ff4883d373cb4405af2461 SHA512 af6b706fdc91f7ab292fce9d9de582da306fd11e92767dc852687e71a6a8b65bb867fa70d5afd7f76a46005acb1b3c2d3193e690def48cd26875b3a7851cd13b |
27 |
|
28 |
diff --git a/dev-vcs/subversion/subversion-1.14.0_rc2.ebuild b/dev-vcs/subversion/subversion-1.14.0_rc2.ebuild |
29 |
deleted file mode 100644 |
30 |
index 5eb5d763687..00000000000 |
31 |
--- a/dev-vcs/subversion/subversion-1.14.0_rc2.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,537 +0,0 @@ |
34 |
-# Copyright 1999-2020 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=6 |
38 |
- |
39 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} ) |
40 |
-USE_RUBY="ruby26 ruby25 ruby24" |
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 flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single toolchain-funcs xdg-utils |
46 |
- |
47 |
-MY_P="${P/_/-}" |
48 |
-DESCRIPTION="Advanced version control system" |
49 |
-HOMEPAGE="https://subversion.apache.org/" |
50 |
-SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2 |
51 |
- https://dev.gentoo.org/~polynomial-c/${PN}-1.10.0_rc1-patches-1.tar.xz" |
52 |
-S="${WORKDIR}/${MY_P}" |
53 |
- |
54 |
-LICENSE="Subversion GPL-2" |
55 |
-SLOT="0" |
56 |
-[[ "${PV}" = *_rc* ]] || \ |
57 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
58 |
-IUSE="apache2 berkdb ctypes-python debug doc extras gnome-keyring java kwallet nls perl python ruby sasl test" |
59 |
-RESTRICT="!test? ( test )" |
60 |
- |
61 |
-COMMON_DEPEND=" |
62 |
- app-arch/bzip2 |
63 |
- app-arch/lz4 |
64 |
- >=dev-db/sqlite-3.7.12 |
65 |
- >=dev-libs/apr-1.3:1 |
66 |
- >=dev-libs/apr-util-1.3:1 |
67 |
- dev-libs/expat |
68 |
- dev-libs/libutf8proc:= |
69 |
- >=net-libs/serf-1.3.4 |
70 |
- sys-apps/file |
71 |
- sys-libs/zlib |
72 |
- berkdb? ( >=sys-libs/db-4.0.14:= ) |
73 |
- ctypes-python? ( ${PYTHON_DEPS} ) |
74 |
- gnome-keyring? ( |
75 |
- dev-libs/glib:2 |
76 |
- app-crypt/libsecret |
77 |
- sys-apps/dbus |
78 |
- ) |
79 |
- kwallet? ( |
80 |
- dev-qt/qtcore:5 |
81 |
- dev-qt/qtdbus:5 |
82 |
- dev-qt/qtgui:5 |
83 |
- kde-frameworks/kcoreaddons:5 |
84 |
- kde-frameworks/ki18n:5 |
85 |
- kde-frameworks/kwallet:5 |
86 |
- sys-apps/dbus |
87 |
- ) |
88 |
- perl? ( dev-lang/perl:= ) |
89 |
- python? ( ${PYTHON_DEPS} ) |
90 |
- ruby? ( ${RUBY_DEPS} ) |
91 |
- sasl? ( dev-libs/cyrus-sasl ) |
92 |
-" |
93 |
-RDEPEND="${COMMON_DEPEND} |
94 |
- apache2? ( |
95 |
- acct-group/apache |
96 |
- acct-user/apache |
97 |
- www-servers/apache[apache2_modules_dav] |
98 |
- ) |
99 |
- !apache2? ( |
100 |
- acct-group/svnusers |
101 |
- acct-user/svn |
102 |
- ) |
103 |
- java? ( >=virtual/jre-1.8 ) |
104 |
- nls? ( virtual/libintl ) |
105 |
- perl? ( dev-perl/URI ) |
106 |
-" |
107 |
-# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once |
108 |
-DEPEND="${COMMON_DEPEND} |
109 |
- virtual/pkgconfig |
110 |
- !!<sys-apps/sandbox-1.6 |
111 |
- ctypes-python? ( dev-python/ctypesgen ) |
112 |
- doc? ( app-doc/doxygen ) |
113 |
- gnome-keyring? ( virtual/pkgconfig ) |
114 |
- java? ( >=virtual/jdk-1.8 ) |
115 |
- kwallet? ( |
116 |
- kde-frameworks/kdelibs4support:5 |
117 |
- virtual/pkgconfig |
118 |
- ) |
119 |
- nls? ( sys-devel/gettext ) |
120 |
- perl? ( dev-lang/swig ) |
121 |
- python? ( dev-lang/swig ) |
122 |
- ruby? ( dev-lang/swig ) |
123 |
- test? ( ${PYTHON_DEPS} ) |
124 |
-" |
125 |
- |
126 |
-REQUIRED_USE=" |
127 |
- ctypes-python? ( ${PYTHON_REQUIRED_USE} ) |
128 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
129 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
130 |
-" |
131 |
- |
132 |
-want_apache |
133 |
- |
134 |
-pkg_setup() { |
135 |
- if use berkdb ; then |
136 |
- local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \ |
137 |
- | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \ |
138 |
- | sed 's:.*b::')" |
139 |
- einfo |
140 |
- if [[ -z "${SVN_BDB_VERSION}" ]] ; then |
141 |
- if [[ -n "${apu_bdb_version}" ]] ; then |
142 |
- SVN_BDB_VERSION="${apu_bdb_version}" |
143 |
- einfo "Matching db version to apr-util" |
144 |
- else |
145 |
- SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")" |
146 |
- einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB." |
147 |
- fi |
148 |
- fi |
149 |
- einfo "Using: Berkeley DB ${SVN_BDB_VERSION}" |
150 |
- einfo |
151 |
- |
152 |
- if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then |
153 |
- eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying" |
154 |
- eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}." |
155 |
- eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"." |
156 |
- eerror "Aborting to avoid possible run-time crashes." |
157 |
- die "Berkeley DB version mismatch" |
158 |
- fi |
159 |
- fi |
160 |
- |
161 |
- depend.apache_pkg_setup |
162 |
- |
163 |
- java-pkg-opt-2_pkg_setup |
164 |
- |
165 |
- # https://issues.apache.org/jira/browse/SVN-4813#comment-16813739 |
166 |
- append-cppflags -P |
167 |
- |
168 |
- if use debug ; then |
169 |
- append-cppflags -DSVN_DEBUG -DAP_DEBUG |
170 |
- fi |
171 |
- |
172 |
- # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E |
173 |
- [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__ |
174 |
- |
175 |
- # Allow for custom repository locations. |
176 |
- SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}" |
177 |
- |
178 |
- if use ruby ; then |
179 |
- local rbslot |
180 |
- RB_VER="" |
181 |
- for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do |
182 |
- if has_version dev-lang/ruby:${rbslot} ; then |
183 |
- RB_VER="${rbslot/.}" |
184 |
- break |
185 |
- fi |
186 |
- done |
187 |
- [[ -z "${RB_VER}" ]] && die "No useable ruby version found" |
188 |
- fi |
189 |
-} |
190 |
- |
191 |
-src_prepare() { |
192 |
- # https://bugs.gentoo.org/721300 |
193 |
- rm "${WORKDIR}"/patches/subversion-1.10.0_rc1-utf8proc_include.patch || die |
194 |
- |
195 |
- eapply "${WORKDIR}/patches" |
196 |
- eapply_user |
197 |
- |
198 |
- chmod +x build/transform_libtool_scripts.sh || die |
199 |
- |
200 |
- sed -i \ |
201 |
- -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \ |
202 |
- -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac |
203 |
- |
204 |
- # this bites us in particular on Solaris |
205 |
- sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \ |
206 |
- die "/bin/sh is not POSIX shell!" |
207 |
- |
208 |
- eautoconf |
209 |
- elibtoolize |
210 |
- |
211 |
- sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \ |
212 |
- -i build-outputs.mk || die "sed failed" |
213 |
- |
214 |
- if use python ; then |
215 |
- # XXX: make python_copy_sources accept path |
216 |
- S=${S}/subversion/bindings/swig/python python_copy_sources |
217 |
- rm -r "${S}"/subversion/bindings/swig/python || die |
218 |
- fi |
219 |
- |
220 |
- xdg_environment_reset |
221 |
-} |
222 |
- |
223 |
-src_configure() { |
224 |
- local myconf=( |
225 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
226 |
- $(use_with apache2 apache-libexecdir) |
227 |
- $(use_with apache2 apxs "${EPREFIX}"/usr/bin/apxs) |
228 |
- $(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") |
229 |
- $(use_with ctypes-python ctypesgen "${EPREFIX}/usr") |
230 |
- --disable-runtime-module-search |
231 |
- $(use_with gnome-keyring) |
232 |
- $(use_enable java javahl) |
233 |
- $(use_with java jdk "${JAVA_HOME}") |
234 |
- $(use_with kwallet) |
235 |
- $(use_enable nls) |
236 |
- $(use_with sasl) |
237 |
- --with-serf |
238 |
- --with-apr="${EPREFIX}/usr/bin/apr-1-config" |
239 |
- --with-apr-util="${EPREFIX}/usr/bin/apu-1-config" |
240 |
- --disable-experimental-libtool |
241 |
- --without-jikes |
242 |
- --disable-mod-activation |
243 |
- --disable-static |
244 |
- --enable-svnxx |
245 |
- ) |
246 |
- |
247 |
- if use python || use perl || use ruby; then |
248 |
- myconf+=( --with-swig ) |
249 |
- else |
250 |
- myconf+=( --without-swig ) |
251 |
- fi |
252 |
- |
253 |
- if use java ; then |
254 |
- myconf+=( --without-junit ) |
255 |
- fi |
256 |
- |
257 |
- case ${CHOST} in |
258 |
- *-aix*) |
259 |
- # avoid recording immediate path to sharedlibs into executables |
260 |
- append-ldflags -Wl,-bnoipath |
261 |
- ;; |
262 |
- *-cygwin*) |
263 |
- # no LD_PRELOAD support, no undefined symbols |
264 |
- myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined ) |
265 |
- ;; |
266 |
- *-interix*) |
267 |
- # loader crashes on the LD_PRELOADs... |
268 |
- myconf+=( --disable-local-library-preloading ) |
269 |
- ;; |
270 |
- *-solaris*) |
271 |
- # need -lintl to link |
272 |
- use nls && append-libs intl |
273 |
- # this breaks installation, on x64 echo replacement is 32-bits |
274 |
- myconf+=( --disable-local-library-preloading ) |
275 |
- ;; |
276 |
- *-mint*) |
277 |
- myconf+=( --enable-all-static --disable-local-library-preloading ) |
278 |
- ;; |
279 |
- *) |
280 |
- # inject LD_PRELOAD entries for easy in-tree development |
281 |
- myconf+=( --enable-local-library-preloading ) |
282 |
- ;; |
283 |
- esac |
284 |
- |
285 |
- #version 1.7.7 again tries to link against the older installed version and fails, when trying to |
286 |
- #compile for x86 on amd64, so workaround this issue again |
287 |
- #check newer versions, if this is still/again needed |
288 |
- #myconf+=( --disable-disallowing-of-undefined-references ) |
289 |
- |
290 |
- # for build-time scripts |
291 |
- if use ctypes-python || use python || use test; then |
292 |
- python_setup |
293 |
- fi |
294 |
- |
295 |
- if use python && [[ ${CHOST} == *-darwin* ]] ; then |
296 |
- export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)' |
297 |
- export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)' |
298 |
- export ac_cv_python_compile="$(tc-getCC)" |
299 |
- fi |
300 |
- |
301 |
- # Remove when >=dev-libs/libutf8proc-2.5.0 is stable |
302 |
- # https://bugs.gentoo.org/721300 |
303 |
- append-cppflags -I"${EPREFIX}"/usr/include/libutf8proc |
304 |
- |
305 |
- # allow overriding Python include directory |
306 |
- ac_cv_path_RUBY=$(usex ruby "${EPREFIX}/usr/bin/ruby${RB_VER}" "none") \ |
307 |
- ac_cv_path_RDOC=$(usex ruby "${EPREFIX}/usr/bin/rdoc${RB_VER}" "none") \ |
308 |
- ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \ |
309 |
- econf "${myconf[@]}" |
310 |
-} |
311 |
- |
312 |
-src_compile() { |
313 |
- emake local-all |
314 |
- |
315 |
- if use ctypes-python ; then |
316 |
- # pre-generate .py files |
317 |
- use ctypes-python && emake ctypes-python |
318 |
- |
319 |
- pushd subversion/bindings/ctypes-python >/dev/null || die |
320 |
- distutils-r1_src_compile |
321 |
- popd >/dev/null || die |
322 |
- fi |
323 |
- |
324 |
- if use python ; then |
325 |
- swig_py_compile() { |
326 |
- local p=subversion/bindings/swig/python |
327 |
- rm -f ${p} || die |
328 |
- ln -s "${BUILD_DIR}" ${p} || die |
329 |
- |
330 |
- python_export PYTHON_INCLUDEDIR |
331 |
- emake swig-py \ |
332 |
- swig_pydir="$(python_get_sitedir)/libsvn" \ |
333 |
- swig_pydir_extra="$(python_get_sitedir)/svn" |
334 |
- } |
335 |
- |
336 |
- # this will give us proper BUILD_DIR for symlinking |
337 |
- BUILD_DIR=python \ |
338 |
- python_foreach_impl swig_py_compile |
339 |
- fi |
340 |
- |
341 |
- if use perl ; then |
342 |
- emake swig-pl |
343 |
- fi |
344 |
- |
345 |
- if use ruby ; then |
346 |
- emake swig-rb |
347 |
- fi |
348 |
- |
349 |
- if use java ; then |
350 |
- emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl |
351 |
- fi |
352 |
- |
353 |
- if use extras ; then |
354 |
- emake tools |
355 |
- fi |
356 |
- |
357 |
- if use doc ; then |
358 |
- doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed" |
359 |
- |
360 |
- if use java; then |
361 |
- emake doc-javahl |
362 |
- fi |
363 |
- fi |
364 |
-} |
365 |
- |
366 |
-src_test() { |
367 |
- if has_version ~${CATEGORY}/${P} ; then |
368 |
- default |
369 |
- |
370 |
- if use ctypes-python ; then |
371 |
- python_test() { |
372 |
- "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \ |
373 |
- || die "ctypes-python tests fail with ${EPYTHON}" |
374 |
- } |
375 |
- |
376 |
- distutils-r1_src_test |
377 |
- fi |
378 |
- |
379 |
- if use python ; then |
380 |
- swig_py_test() { |
381 |
- pushd "${BUILD_DIR}" >/dev/null || die |
382 |
- "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}" |
383 |
- popd >/dev/null || die |
384 |
- } |
385 |
- |
386 |
- BUILD_DIR=subversion/bindings/swig/python \ |
387 |
- python_foreach_impl swig_py_test |
388 |
- fi |
389 |
- else |
390 |
- ewarn "The test suite shows errors when there is an older version of" |
391 |
- ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*" |
392 |
- ewarn "before running the test suite." |
393 |
- ewarn "Test suite skipped." |
394 |
- fi |
395 |
-} |
396 |
- |
397 |
-src_install() { |
398 |
- emake -j1 DESTDIR="${D}" local-install |
399 |
- |
400 |
- if use ctypes-python ; then |
401 |
- pushd subversion/bindings/ctypes-python >/dev/null || die |
402 |
- distutils-r1_src_install |
403 |
- popd >/dev/null || die |
404 |
- fi |
405 |
- |
406 |
- if use python ; then |
407 |
- swig_py_install() { |
408 |
- local p=subversion/bindings/swig/python |
409 |
- rm -f ${p} || die |
410 |
- ln -s "${BUILD_DIR}" ${p} || die |
411 |
- |
412 |
- emake \ |
413 |
- DESTDIR="${D}" \ |
414 |
- swig_pydir="$(python_get_sitedir)/libsvn" \ |
415 |
- swig_pydir_extra="$(python_get_sitedir)/svn" \ |
416 |
- install-swig-py |
417 |
- } |
418 |
- |
419 |
- BUILD_DIR=python \ |
420 |
- python_foreach_impl swig_py_install |
421 |
- fi |
422 |
- |
423 |
- if use perl ; then |
424 |
- emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl |
425 |
- perl_delete_localpod |
426 |
- find "${ED}" \( -name .packlist -o -name "*.bs" \) -delete || die |
427 |
- fi |
428 |
- |
429 |
- if use ruby ; then |
430 |
- emake DESTDIR="${D}" install-swig-rb |
431 |
- fi |
432 |
- |
433 |
- if use java ; then |
434 |
- emake DESTDIR="${D}" install-javahl |
435 |
- java-pkg_regso "${ED%/}"/usr/$(get_libdir)/libsvnjavahl*$(get_libname) |
436 |
- java-pkg_dojar "${ED%/}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar |
437 |
- rm -fr "${ED%/}"/usr/$(get_libdir)/svn-javahl/*.jar |
438 |
- fi |
439 |
- |
440 |
- # Install Apache module configuration. |
441 |
- if use apache2 ; then |
442 |
- keepdir "${APACHE_MODULES_CONFDIR}" |
443 |
- insinto "${APACHE_MODULES_CONFDIR}" |
444 |
- doins "${FILESDIR}/47_mod_dav_svn.conf" |
445 |
- fi |
446 |
- |
447 |
- # Install Bash Completion, bug 43179. |
448 |
- newbashcomp tools/client-side/bash_completion svn |
449 |
- bashcomp_alias svn svn{admin,dumpfilter,look,sync,version} |
450 |
- rm -f tools/client-side/bash_completion |
451 |
- |
452 |
- # Install hot backup script, bug 54304. |
453 |
- newbin tools/backup/hot-backup.py svn-hot-backup |
454 |
- rm -fr tools/backup |
455 |
- |
456 |
- # Install svnserve init-script and xinet.d snippet, bug 43245. |
457 |
- newinitd "${FILESDIR}"/svnserve.initd3 svnserve |
458 |
- newconfd "${FILESDIR}"/svnserve.confd svnserve |
459 |
- insinto /etc/xinetd.d |
460 |
- newins "${FILESDIR}"/svnserve.xinetd svnserve |
461 |
- |
462 |
- #adjust default user and group with disabled apache2 USE flag, bug 381385 |
463 |
- if ! use apache2 ; then |
464 |
- sed -e "s\USER:-apache\USER:-svn\g" \ |
465 |
- -e "s\GROUP:-apache\GROUP:-svnusers\g" \ |
466 |
- -i "${ED%/}"/etc/init.d/svnserve || die |
467 |
- sed -e "0,/apache/s//svn/" \ |
468 |
- -e "s:apache:svnusers:" \ |
469 |
- -i "${ED%/}"/etc/xinetd.d/svnserve || die |
470 |
- fi |
471 |
- |
472 |
- # Install documentation. |
473 |
- dodoc CHANGES COMMITTERS README |
474 |
- dodoc tools/xslt/svnindex.{css,xsl} |
475 |
- rm -fr tools/xslt |
476 |
- |
477 |
- # Install extra files. |
478 |
- if use extras ; then |
479 |
- cat <<- EOF > 80subversion-extras |
480 |
- PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin" |
481 |
- ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin" |
482 |
- EOF |
483 |
- doenvd 80subversion-extras |
484 |
- |
485 |
- emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools |
486 |
- |
487 |
- find tools \( -name "*.bat" -o -name "*.in" -o -name ".libs" \) -print0 | xargs -0 rm -fr |
488 |
- rm -fr tools/client-side/svnmucc |
489 |
- rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}* |
490 |
- rm -fr tools/{buildbot,dev,diff,po} |
491 |
- |
492 |
- insinto /usr/share/${PN} |
493 |
- find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die |
494 |
- doins -r tools |
495 |
- fi |
496 |
- |
497 |
- if use doc ; then |
498 |
- docinto html |
499 |
- dodoc -r doc/doxygen/html/* |
500 |
- |
501 |
- if use java ; then |
502 |
- java-pkg_dojavadoc doc/javadoc |
503 |
- fi |
504 |
- fi |
505 |
- |
506 |
- find "${D}" -name '*.la' -type f -delete || die |
507 |
- |
508 |
- cd "${ED%/}"/usr/share/locale |
509 |
- for i in * ; do |
510 |
- if [[ ${i} != *${LINGUAS}* ]] ; then |
511 |
- rm -r ${i} || die |
512 |
- fi |
513 |
- done |
514 |
-} |
515 |
- |
516 |
-pkg_preinst() { |
517 |
- # Compare versions of Berkeley DB, bug 122877. |
518 |
- if use berkdb && [[ -f "${EROOT}/usr/bin/svn" ]] ; then |
519 |
- 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/")" |
520 |
- 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/")" |
521 |
- if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then |
522 |
- CHANGED_BDB_VERSION="1" |
523 |
- fi |
524 |
- fi |
525 |
-} |
526 |
- |
527 |
-pkg_postinst() { |
528 |
- if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then |
529 |
- ewarn "You upgraded from an older version of Berkeley DB and may experience" |
530 |
- ewarn "problems with your repository. Run the following commands as root to fix it:" |
531 |
- ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos" |
532 |
- ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos" |
533 |
- fi |
534 |
- |
535 |
- ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches." |
536 |
-} |
537 |
- |
538 |
-pkg_postrm() { |
539 |
- : |
540 |
-} |
541 |
- |
542 |
-pkg_config() { |
543 |
- # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC} |
544 |
- # already has EPREFIX in it |
545 |
- einfo "Initializing the database in ${SVN_REPOS_LOC}..." |
546 |
- if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then |
547 |
- echo "A Subversion repository already exists and I will not overwrite it." |
548 |
- echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version." |
549 |
- else |
550 |
- mkdir -p "${SVN_REPOS_LOC}/conf" |
551 |
- |
552 |
- einfo "Populating repository directory..." |
553 |
- # Create initial repository. |
554 |
- "${EROOT}/usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos" |
555 |
- |
556 |
- einfo "Setting repository permissions..." |
557 |
- SVNSERVE_USER="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")" |
558 |
- SVNSERVE_GROUP="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")" |
559 |
- if use apache2 ; then |
560 |
- [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache" |
561 |
- [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache" |
562 |
- else |
563 |
- [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn" |
564 |
- [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers" |
565 |
- fi |
566 |
- chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf" |
567 |
- chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos" |
568 |
- chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} "${SVN_REPOS_LOC}/repos" |
569 |
- fi |
570 |
-} |