Annotation of /branches/R11-stable/extras/subversion/subversion-1.8.11-r2.smage2
Parent Directory | Revision Log
Revision 24427 -
(hide annotations)
(download)
Fri Feb 20 10:22:58 2015 UTC (9 years, 3 months ago) by niro
File size: 3949 byte(s)
Fri Feb 20 10:22:58 2015 UTC (9 years, 3 months ago) by niro
File size: 3949 byte(s)
-release branches/R11-stable
1 | niro | 23536 | # $Id$ |
2 | |||
3 | PNAME="subversion" | ||
4 | PVER="1.8.11" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="dev-util" | ||
8 | |||
9 | DESCRIPTION="subversion - a version control system meant to replace cvs." | ||
10 | HOMEPAGE="http://subversion.apache.org/" | ||
11 | |||
12 | SUBVERSION_DEPEND=">= virtual/glibc | ||
13 | >= dev-libs/expat-2 | ||
14 | >= dev-libs/libxml2-2.9 | ||
15 | >= dev-libs/openssl-1.0.1k | ||
16 | >= dev-libs/cyrus-sasl-2.1.26 | ||
17 | >= net-misc/neon-0.30 | ||
18 | >= sys-libs/zlib-1.2.8 | ||
19 | >= dev-libs/apr-util-1.5 | ||
20 | >= dev-db/db-6.0 | ||
21 | >= dev-db/sqlite-3.8" | ||
22 | |||
23 | SUBVERSION_PERL_DEPEND=">= dev-lang/perl-5.20.1" | ||
24 | SUBVERSION_PYTHON_DEPEND=">= dev-lang/python-2.7" | ||
25 | SUBVERSION_RUBY_DEPEND=">= dev-lang/ruby-2.0" | ||
26 | |||
27 | SDEPEND="${SUBVERSION_DEPEND} | ||
28 | ${SUBVERSION_PERL_DEPEND} | ||
29 | ${SUBVERSION_PYTHON_DEPEND} | ||
30 | ${SUBVERSION_RUBY_DEPEND} | ||
31 | >= dev-lang/swig-2" | ||
32 | |||
33 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
34 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
35 | |||
36 | SPLIT_PACKAGES="subversion subversion-perl subversion-python subversion-ruby" | ||
37 | |||
38 | # include perl as last to have the right postinstall etc | ||
39 | sminclude mtools rpath python perl | ||
40 | |||
41 | SRC_URI=( | ||
42 | http://apache.org/dist/${PNAME}/${SRCFILE} | ||
43 | http://archive.apache.org/dist/${PNAME}/${SRCFILE} | ||
44 | mirror://${PNAME}/${SRCFILE} | ||
45 | mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch | ||
46 | mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch | ||
47 | ) | ||
48 | |||
49 | UP2DATE="updatecmd 'http://apache.org/dist/subversion/?C=N;O=A' | highesttarball" | ||
50 | |||
51 | split_info_subversion() | ||
52 | { | ||
53 | DESCRIPTION="subversion - a version control system meant to replace cvs." | ||
54 | DEPEND="${SUBVERSION_DEPEND}" | ||
55 | } | ||
56 | |||
57 | split_info_subversion-perl() | ||
58 | { | ||
59 | DESCRIPTION="subversion bindings for perl." | ||
60 | DEPEND="== dev-util/subversion-${PVER} | ||
61 | ${SUBVERSION_PERL_DEPEND}" | ||
62 | } | ||
63 | |||
64 | split_info_subversion-python() | ||
65 | { | ||
66 | DESCRIPTION="subversion bindings for python." | ||
67 | DEPEND="== dev-util/subversion-${PVER} | ||
68 | ${SUBVERSION_PYTHON_DEPEND}" | ||
69 | } | ||
70 | |||
71 | split_info_subversion-ruby() | ||
72 | { | ||
73 | DESCRIPTION="subversion bindings for ruby." | ||
74 | DEPEND="== dev-util/subversion-${PVER} | ||
75 | ${SUBVERSION_RUBY_DEPEND}" | ||
76 | } | ||
77 | |||
78 | src_prepare() | ||
79 | { | ||
80 | munpack ${SRCFILE} || die | ||
81 | cd ${SRCDIR} | ||
82 | |||
83 | # install perl modules to vendor dir | ||
84 | mpatch ${PNAME}-1.4.3-perl-vendor.patch || die | ||
85 | |||
86 | # fixes compilation with newer apr | ||
87 | mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die | ||
88 | |||
89 | # fix libtool issues | ||
90 | mlibtoolize || die | ||
91 | |||
92 | # run autogen instead of mautoreconf to copy newer libtool macros | ||
93 | sh autogen.sh || die | ||
94 | } | ||
95 | |||
96 | src_compile() | ||
97 | { | ||
98 | cd ${SRCDIR} | ||
99 | |||
100 | mconfigure \ | ||
101 | --with-apr=/usr/bin/apr-1-config \ | ||
102 | --with-apr-util=/usr/bin/apu-1-config \ | ||
103 | --with-berkeley-db \ | ||
104 | --enable-bdb6 \ | ||
105 | --enable-nls \ | ||
106 | --with-swig \ | ||
107 | --without-apxs \ | ||
108 | --disable-mod-activation \ | ||
109 | --disable-static \ | ||
110 | --without-gnome-keyring \ | ||
111 | --without-kwallet \ | ||
112 | || die | ||
113 | |||
114 | # no external all target in >= 1.8 | ||
115 | #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die | ||
116 | make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all || die | ||
117 | |||
118 | # perl bindings | ||
119 | mmake swig-pl || die | ||
120 | # python bindings | ||
121 | mmake swig-py || die | ||
122 | # ruby bindings | ||
123 | mmake swig-rb || die | ||
124 | } | ||
125 | |||
126 | src_install_subversion() | ||
127 | { | ||
128 | cd ${SRCDIR} | ||
129 | mmake -j1 DESTDIR=${BINDIR} install || die | ||
130 | |||
131 | # debian installs these as well | ||
132 | minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die | ||
133 | #minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die | ||
134 | } | ||
135 | |||
136 | src_install_subversion-perl() | ||
137 | { | ||
138 | cd ${SRCDIR} | ||
139 | |||
140 | # install perl bindings | ||
141 | mmake DESTDIR=${BINDIR} install-swig-pl || die | ||
142 | # install pods to /usr/share | ||
143 | fixlocalpod || die | ||
144 | # remove insecure rpath | ||
145 | mdeleterpath || die | ||
146 | } | ||
147 | |||
148 | src_install_subversion-python() | ||
149 | { | ||
150 | cd ${SRCDIR} | ||
151 | |||
152 | # install python bindings | ||
153 | mmake DESTDIR=${BINDIR} install-swig-py || die | ||
154 | # move python-bindings to a proper place | ||
155 | minstalldir $(mget-python-libdir) || die | ||
156 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(mget-python-libdir) || die | ||
157 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(mget-python-libdir) || die | ||
158 | rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die | ||
159 | } | ||
160 | |||
161 | src_install_subversion-ruby() | ||
162 | { | ||
163 | cd ${SRCDIR} | ||
164 | |||
165 | # install ruby bindings | ||
166 | mmake DESTDIR=${BINDIR} install-swig-rb || die | ||
167 | } |