1 |
chainsaw 11/09/02 15:46:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: subversion-1.6.17-r7.ebuild |
5 |
Log: |
6 |
Remove apache2-related explanation as it looks out of place, as per Martin von Gagern in bug #381259. dodoc -r is an EAPI 4 feature that can not be used for eclass reasons, do better. As per Ulrich "ulm" Müller in bug #381577. |
7 |
|
8 |
(Portage version: 2.1.10.11/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.58 dev-vcs/subversion/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/subversion/ChangeLog?rev=1.58&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/subversion/ChangeLog?rev=1.58&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/subversion/ChangeLog?r1=1.57&r2=1.58 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-vcs/subversion/ChangeLog,v |
20 |
retrieving revision 1.57 |
21 |
retrieving revision 1.58 |
22 |
diff -u -r1.57 -r1.58 |
23 |
--- ChangeLog 1 Sep 2011 07:42:03 -0000 1.57 |
24 |
+++ ChangeLog 2 Sep 2011 15:46:00 -0000 1.58 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-vcs/subversion |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/ChangeLog,v 1.57 2011/09/01 07:42:03 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/ChangeLog,v 1.58 2011/09/02 15:46:00 chainsaw Exp $ |
30 |
+ |
31 |
+*subversion-1.6.17-r7 (02 Sep 2011) |
32 |
+ |
33 |
+ 02 Sep 2011; Tony Vroon <chainsaw@g.o> +subversion-1.6.17-r7.ebuild: |
34 |
+ Remove apache2-related explanation as it looks out of place, as per Martin |
35 |
+ von Gagern in bug #381259. dodoc -r is an EAPI 4 feature that can not be used |
36 |
+ for eclass reasons, do better. As per Ulrich "ulm" Müller in bug #381577. |
37 |
|
38 |
01 Sep 2011; Tony Vroon <chainsaw@g.o> -subversion-1.6.15.ebuild, |
39 |
-subversion-1.6.16.ebuild, -subversion-1.6.17-r4.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-vcs/subversion/subversion-1.6.17-r7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/subversion/subversion-1.6.17-r7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/subversion/subversion-1.6.17-r7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: subversion-1.6.17-r7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.6.17-r7.ebuild,v 1.1 2011/09/02 15:46:00 chainsaw Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
57 |
WANT_AUTOMAKE="none" |
58 |
MY_P="${P/_/-}" |
59 |
|
60 |
inherit autotools base bash-completion db-use depend.apache elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module python |
61 |
|
62 |
DESCRIPTION="Advanced version control system" |
63 |
HOMEPAGE="http://subversion.apache.org/" |
64 |
SRC_URI="http://subversion.tigris.org/downloads/${MY_P}.tar.bz2" |
65 |
S="${WORKDIR}/${MY_P}" |
66 |
|
67 |
LICENSE="Subversion" |
68 |
SLOT="0" |
69 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
70 |
IUSE="apache2 berkdb ctypes-python debug doc +dso emacs extras gnome-keyring java kde nls perl python ruby sasl vim-syntax +webdav-neon webdav-serf" |
71 |
|
72 |
CDEPEND=">=dev-db/sqlite-3.4 |
73 |
>=dev-libs/apr-1.3:1 |
74 |
>=dev-libs/apr-util-1.3:1 |
75 |
dev-libs/expat |
76 |
sys-libs/zlib |
77 |
berkdb? ( >=sys-libs/db-4.0.14 ) |
78 |
ctypes-python? ( =dev-lang/python-2* ) |
79 |
emacs? ( virtual/emacs ) |
80 |
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/gnome-keyring ) |
81 |
kde? ( sys-apps/dbus x11-libs/qt-core x11-libs/qt-dbus x11-libs/qt-gui >=kde-base/kdelibs-4 ) |
82 |
perl? ( dev-lang/perl ) |
83 |
python? ( =dev-lang/python-2* ) |
84 |
ruby? ( >=dev-lang/ruby-1.8.2 ) |
85 |
sasl? ( dev-libs/cyrus-sasl ) |
86 |
webdav-neon? ( >=net-libs/neon-0.28 ) |
87 |
webdav-serf? ( >=net-libs/serf-0.3.0 )" |
88 |
RDEPEND="${CDEPEND} |
89 |
apache2? ( www-servers/apache[apache2_modules_dav] ) |
90 |
java? ( >=virtual/jre-1.5 ) |
91 |
kde? ( kde-base/kwalletd ) |
92 |
nls? ( virtual/libintl ) |
93 |
perl? ( dev-perl/URI )" |
94 |
DEPEND="${CDEPEND} |
95 |
!!<sys-apps/sandbox-1.6 |
96 |
ctypes-python? ( dev-python/ctypesgen ) |
97 |
doc? ( app-doc/doxygen ) |
98 |
gnome-keyring? ( dev-util/pkgconfig ) |
99 |
java? ( >=virtual/jdk-1.5 ) |
100 |
kde? ( dev-util/pkgconfig ) |
101 |
nls? ( sys-devel/gettext ) |
102 |
webdav-neon? ( dev-util/pkgconfig )" |
103 |
|
104 |
PATCHES=( |
105 |
"${FILESDIR}/${PN}-1.6.0-disable_linking_against_unneeded_libraries.patch" |
106 |
"${FILESDIR}/${PN}-1.6.2-local_library_preloading.patch" |
107 |
"${FILESDIR}/${PN}-1.6.3-kwallet_window.patch" |
108 |
"${FILESDIR}/${PN}-1.5.4-interix.patch" |
109 |
"${FILESDIR}/${PN}-1.5.6-aix-dso.patch" |
110 |
"${FILESDIR}/${PN}-1.6.3-hpux-dso.patch" |
111 |
) |
112 |
|
113 |
want_apache |
114 |
|
115 |
pkg_setup() { |
116 |
if use berkdb; then |
117 |
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \ |
118 |
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \ |
119 |
| sed 's:.*b::')" |
120 |
einfo |
121 |
if [[ -z "${SVN_BDB_VERSION}" ]]; then |
122 |
if [[ -n "${apu_bdb_version}" ]]; then |
123 |
SVN_BDB_VERSION="${apu_bdb_version}" |
124 |
einfo "Matching db version to apr-util" |
125 |
else |
126 |
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")" |
127 |
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB." |
128 |
fi |
129 |
fi |
130 |
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}" |
131 |
einfo |
132 |
|
133 |
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then |
134 |
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying" |
135 |
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}." |
136 |
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"." |
137 |
eerror "Aborting to avoid possible run-time crashes." |
138 |
die "Berkeley DB version mismatch" |
139 |
fi |
140 |
fi |
141 |
|
142 |
depend.apache_pkg_setup |
143 |
|
144 |
java-pkg-opt-2_pkg_setup |
145 |
|
146 |
if use ctypes-python || use python; then |
147 |
python_pkg_setup |
148 |
fi |
149 |
|
150 |
if ! use webdav-neon && ! use webdav-serf; then |
151 |
ewarn "WebDAV support is disabled. You need WebDAV to" |
152 |
ewarn "access repositories through the HTTP protocol." |
153 |
ewarn "Consider enabling one of the following USE-flags:" |
154 |
ewarn " webdav-neon webdav-serf" |
155 |
echo -ne "\a" |
156 |
fi |
157 |
|
158 |
if use debug; then |
159 |
append-cppflags -DSVN_DEBUG -DAP_DEBUG |
160 |
fi |
161 |
|
162 |
# Allow for custom repository locations. |
163 |
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}" |
164 |
} |
165 |
|
166 |
src_prepare() { |
167 |
base_src_prepare |
168 |
fperms +x build/transform_libtool_scripts.sh |
169 |
|
170 |
sed -i \ |
171 |
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \ |
172 |
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac |
173 |
|
174 |
sed -e "/SWIG_PY_INCLUDES=/s/\$ac_cv_python_includes/\\\\\$(PYTHON_INCLUDES)/" -i build/ac-macros/swig.m4 || die "sed failed" |
175 |
|
176 |
# this bites us in particular on Solaris |
177 |
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \ |
178 |
die "/bin/sh is not POSIX shell!" |
179 |
|
180 |
eautoconf |
181 |
elibtoolize |
182 |
|
183 |
sed -e "s/libsvn_swig_py-1\.la/libsvn_swig_py-\$(PYTHON_VERSION)-1.la/" -i build-outputs.mk || die "sed failed" |
184 |
} |
185 |
|
186 |
src_configure() { |
187 |
local myconf |
188 |
|
189 |
if use python || use perl || use ruby; then |
190 |
myconf+=" --with-swig" |
191 |
else |
192 |
myconf+=" --without-swig" |
193 |
fi |
194 |
|
195 |
if use java; then |
196 |
myconf+=" --without-junit" |
197 |
fi |
198 |
|
199 |
if use kde || use nls; then |
200 |
myconf+=" --enable-nls" |
201 |
else |
202 |
myconf+=" --disable-nls" |
203 |
fi |
204 |
|
205 |
case ${CHOST} in |
206 |
*-solaris*) |
207 |
# -lintl isn't added for some reason (makes Neon check fail) |
208 |
use nls && append-libs -lintl |
209 |
;; |
210 |
*-aix*) |
211 |
# avoid recording immediate path to sharedlibs into executables |
212 |
append-ldflags -Wl,-bnoipath |
213 |
;; |
214 |
*-interix*) |
215 |
# loader crashes on the LD_PRELOADs... |
216 |
myconf="${myconf} --disable-local-library-preloading" |
217 |
;; |
218 |
esac |
219 |
|
220 |
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
221 |
$(use_with apache2 apxs "${APXS}") \ |
222 |
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \ |
223 |
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \ |
224 |
$(use_enable dso runtime-module-search) \ |
225 |
$(use_with gnome-keyring) \ |
226 |
$(use_enable java javahl) \ |
227 |
$(use_with java jdk "${JAVA_HOME}") \ |
228 |
$(use_with kde kwallet) \ |
229 |
$(use_with sasl) \ |
230 |
$(use_with webdav-neon neon) \ |
231 |
$(use_with webdav-serf serf "${EPREFIX}/usr") \ |
232 |
${myconf} \ |
233 |
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \ |
234 |
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \ |
235 |
--disable-experimental-libtool \ |
236 |
--without-jikes \ |
237 |
--enable-local-library-preloading \ |
238 |
--disable-mod-activation \ |
239 |
--disable-neon-version-check \ |
240 |
--disable-static \ |
241 |
--with-sqlite="${EPREFIX}/usr" |
242 |
} |
243 |
|
244 |
src_compile() { |
245 |
emake local-all || die "Building of core of Subversion failed" |
246 |
|
247 |
if use ctypes-python; then |
248 |
python_copy_sources subversion/bindings/ctypes-python |
249 |
rm -fr subversion/bindings/ctypes-python |
250 |
ctypes_python_bindings_building() { |
251 |
rm -f subversion/bindings/ctypes-python |
252 |
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python |
253 |
emake ctypes-python |
254 |
} |
255 |
python_execute_function \ |
256 |
--action-message 'Building of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \ |
257 |
--failure-message 'Building of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \ |
258 |
ctypes_python_bindings_building |
259 |
fi |
260 |
|
261 |
if use python; then |
262 |
python_copy_sources subversion/bindings/swig/python |
263 |
rm -fr subversion/bindings/swig/python |
264 |
swig_python_bindings_building() { |
265 |
rm -f subversion/bindings/swig/python |
266 |
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python |
267 |
emake \ |
268 |
PYTHON_INCLUDES="-I${EPREFIX}$(python_get_includedir)" \ |
269 |
PYTHON_VERSION="$(python_get_version)" \ |
270 |
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \ |
271 |
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \ |
272 |
swig-py |
273 |
} |
274 |
python_execute_function \ |
275 |
--action-message 'Building of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \ |
276 |
--failure-message 'Building of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \ |
277 |
swig_python_bindings_building |
278 |
fi |
279 |
|
280 |
if use perl; then |
281 |
emake swig-pl || die "Building of Subversion SWIG Perl bindings failed" |
282 |
fi |
283 |
|
284 |
if use ruby; then |
285 |
emake swig-rb || die "Building of Subversion SWIG Ruby bindings failed" |
286 |
fi |
287 |
|
288 |
if use java; then |
289 |
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl || die "Building of Subversion JavaHL library failed" |
290 |
fi |
291 |
|
292 |
if use emacs; then |
293 |
elisp-compile contrib/client-side/emacs/{dsvn,psvn,vc-svn}.el doc/svn-doc.el doc/tools/svnbook.el || die "Compilation of Emacs modules failed" |
294 |
fi |
295 |
|
296 |
if use extras; then |
297 |
emake contrib || die "Building of contrib failed" |
298 |
emake tools || die "Building of tools failed" |
299 |
fi |
300 |
|
301 |
if use doc; then |
302 |
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed" |
303 |
|
304 |
if use java; then |
305 |
emake doc-javahl || die "Building of Subversion JavaHL library HTML documentation failed" |
306 |
fi |
307 |
fi |
308 |
} |
309 |
|
310 |
src_install() { |
311 |
emake -j1 DESTDIR="${D}" local-install || die "Installation of core of Subversion failed" |
312 |
|
313 |
if use ctypes-python; then |
314 |
ctypes_python_bindings_installation() { |
315 |
rm -f subversion/bindings/ctypes-python |
316 |
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python |
317 |
emake DESTDIR="${D}" install-ctypes-python |
318 |
} |
319 |
python_execute_function \ |
320 |
--action-message 'Installation of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \ |
321 |
--failure-message 'Installation of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \ |
322 |
ctypes_python_bindings_installation |
323 |
fi |
324 |
|
325 |
if use python; then |
326 |
swig_python_bindings_installation() { |
327 |
rm -f subversion/bindings/swig/python |
328 |
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python |
329 |
emake \ |
330 |
DESTDIR="${D}" \ |
331 |
PYTHON_VERSION="$(python_get_version)" \ |
332 |
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \ |
333 |
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \ |
334 |
install-swig-py |
335 |
} |
336 |
python_execute_function \ |
337 |
--action-message 'Installation of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \ |
338 |
--failure-message 'Installation of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \ |
339 |
swig_python_bindings_installation |
340 |
fi |
341 |
|
342 |
if use ctypes-python || use python; then |
343 |
python_clean_installation_image -q |
344 |
fi |
345 |
|
346 |
if use perl; then |
347 |
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl || die "Installation of Subversion SWIG Perl bindings failed" |
348 |
fixlocalpod |
349 |
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -print0 | xargs -0 rm -fr |
350 |
fi |
351 |
|
352 |
if use ruby; then |
353 |
emake DESTDIR="${D}" install-swig-rb || die "Installation of Subversion SWIG Ruby bindings failed" |
354 |
fi |
355 |
|
356 |
if use java; then |
357 |
emake DESTDIR="${D}" install-javahl || die "Installation of Subversion JavaHL library failed" |
358 |
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*.so |
359 |
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar |
360 |
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar |
361 |
fi |
362 |
|
363 |
# Install Apache module configuration. |
364 |
if use apache2; then |
365 |
keepdir "${APACHE_MODULES_CONFDIR}" |
366 |
insinto "${APACHE_MODULES_CONFDIR}" |
367 |
doins "${FILESDIR}/47_mod_dav_svn.conf" |
368 |
fi |
369 |
|
370 |
# Install Bash Completion, bug 43179. |
371 |
dobashcompletion tools/client-side/bash_completion subversion |
372 |
rm -f tools/client-side/bash_completion |
373 |
|
374 |
# Install hot backup script, bug 54304. |
375 |
newbin tools/backup/hot-backup.py svn-hot-backup |
376 |
rm -fr tools/backup |
377 |
|
378 |
# Install svn_load_dirs.pl. |
379 |
if use perl; then |
380 |
dobin contrib/client-side/svn_load_dirs/svn_load_dirs.pl |
381 |
fi |
382 |
rm -f contrib/client-side/svn_load_dirs/svn_load_dirs.pl |
383 |
|
384 |
# Install svnserve init-script and xinet.d snippet, bug 43245. |
385 |
newinitd "${FILESDIR}"/svnserve.initd2 svnserve |
386 |
newconfd "${FILESDIR}"/svnserve.confd svnserve |
387 |
insinto /etc/xinetd.d |
388 |
newins "${FILESDIR}"/svnserve.xinetd svnserve |
389 |
|
390 |
# Install documentation. |
391 |
dodoc CHANGES COMMITTERS README |
392 |
dodoc tools/xslt/svnindex.{css,xsl} |
393 |
rm -fr tools/xslt |
394 |
|
395 |
# Install Vim syntax files. |
396 |
if use vim-syntax; then |
397 |
insinto /usr/share/vim/vimfiles/syntax |
398 |
doins contrib/client-side/vim/svn.vim |
399 |
fi |
400 |
rm -f contrib/client-side/vim/svn.vim |
401 |
|
402 |
# Install Emacs Lisps. |
403 |
if use emacs; then |
404 |
elisp-install ${PN} contrib/client-side/emacs/{dsvn,psvn}.{el,elc} doc/svn-doc.{el,elc} doc/tools/svnbook.{el,elc} || die "Installation of Emacs modules failed" |
405 |
elisp-install ${PN}/compat contrib/client-side/emacs/vc-svn.{el,elc} || die "Installation of Emacs modules failed" |
406 |
touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
407 |
elisp-site-file-install "${FILESDIR}/70svn-gentoo.el" || die "Installation of Emacs site-init file failed" |
408 |
fi |
409 |
rm -fr contrib/client-side/emacs |
410 |
|
411 |
# Install extra files. |
412 |
if use extras; then |
413 |
cat << EOF > 80subversion-extras |
414 |
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin" |
415 |
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin" |
416 |
EOF |
417 |
doenvd 80subversion-extras |
418 |
|
419 |
emake DESTDIR="${D}" contribdir="/usr/$(get_libdir)/subversion/bin" install-contrib || die "Installation of contrib failed" |
420 |
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools || die "Installation of tools failed" |
421 |
|
422 |
find contrib tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr |
423 |
rm -fr contrib/client-side/svn-push |
424 |
rm -fr contrib/server-side/svnstsw |
425 |
rm -fr tools/client-side/svnmucc |
426 |
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}* |
427 |
rm -fr tools/{buildbot,dev,diff,po} |
428 |
|
429 |
insinto /usr/share/${PN} |
430 |
doins -r contrib tools |
431 |
fi |
432 |
|
433 |
if use doc; then |
434 |
dohtml -r doc/doxygen/html/* || die "Installation of Subversion HTML documentation failed" |
435 |
|
436 |
dodoc notes/* |
437 |
|
438 |
if use java; then |
439 |
java-pkg_dojavadoc doc/javadoc |
440 |
fi |
441 |
fi |
442 |
|
443 |
find "${D}" '(' -name '*.la' ')' -print0 | xargs -0 rm -f |
444 |
} |
445 |
|
446 |
pkg_preinst() { |
447 |
# Compare versions of Berkeley DB, bug 122877. |
448 |
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]]; then |
449 |
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")" |
450 |
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")" |
451 |
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]]; then |
452 |
CHANGED_BDB_VERSION="1" |
453 |
fi |
454 |
fi |
455 |
} |
456 |
|
457 |
pkg_postinst() { |
458 |
use emacs && elisp-site-regen |
459 |
use perl && perl-module_pkg_postinst |
460 |
|
461 |
if use ctypes-python; then |
462 |
python_mod_optimize csvn |
463 |
fi |
464 |
|
465 |
if use python; then |
466 |
python_mod_optimize libsvn svn |
467 |
fi |
468 |
|
469 |
if [[ -n "${CHANGED_BDB_VERSION}" ]]; then |
470 |
ewarn "You upgraded from an older version of Berkeley DB and may experience" |
471 |
ewarn "problems with your repository. Run the following commands as root to fix it:" |
472 |
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos" |
473 |
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos" |
474 |
fi |
475 |
|
476 |
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches." |
477 |
} |
478 |
|
479 |
pkg_postrm() { |
480 |
use emacs && elisp-site-regen |
481 |
use perl && perl-module_pkg_postrm |
482 |
|
483 |
if use ctypes-python; then |
484 |
python_mod_cleanup csvn |
485 |
fi |
486 |
|
487 |
if use python; then |
488 |
python_mod_cleanup libsvn svn |
489 |
fi |
490 |
} |
491 |
|
492 |
pkg_config() { |
493 |
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC} |
494 |
# already has EPREFIX in it |
495 |
einfo "Initializing the database in ${ROOT}${SVN_REPOS_LOC}..." |
496 |
if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]]; then |
497 |
echo "A Subversion repository already exists and I will not overwrite it." |
498 |
echo "Delete \"${ROOT}${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version." |
499 |
else |
500 |
mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf" |
501 |
|
502 |
einfo "Populating repository directory..." |
503 |
# Create initial repository. |
504 |
"${EROOT}usr/bin/svnadmin" create "${ROOT}${SVN_REPOS_LOC}/repos" |
505 |
|
506 |
einfo "Setting repository permissions..." |
507 |
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")" |
508 |
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")" |
509 |
if use apache2; then |
510 |
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache" |
511 |
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache" |
512 |
else |
513 |
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn" |
514 |
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers" |
515 |
enewgroup "${SVNSERVE_GROUP}" |
516 |
enewuser "${SVNSERVE_USER}" -1 -1 "${SVN_REPOS_LOC}" "${SVNSERVE_GROUP}" |
517 |
fi |
518 |
chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos" |
519 |
chmod -Rf go-rwx "${ROOT}${SVN_REPOS_LOC}/conf" |
520 |
chmod -Rf o-rwx "${ROOT}${SVN_REPOS_LOC}/repos" |
521 |
fi |
522 |
} |