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