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