Contents of /trunk/extras/subversion/subversion-1.9.6-r1.smage2
Parent Directory | Revision Log
Revision 29636 -
(show annotations)
(download)
Fri Jul 7 08:29:30 2017 UTC (7 years, 2 months ago) by niro
File size: 4083 byte(s)
Fri Jul 7 08:29:30 2017 UTC (7 years, 2 months ago) by niro
File size: 4083 byte(s)
auto added: ver bump to 1.9.6-r1
1 | # $Id$ |
2 | |
3 | PNAME="subversion" |
4 | PVER="1.9.6" |
5 | PBUILD="r1" |
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.2h |
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.2 |
21 | >= dev-db/sqlite-3.12" |
22 | |
23 | SUBVERSION_PERL_DEPEND=">= dev-lang/perl-5.24.1" |
24 | SUBVERSION_PYTHON_DEPEND=">= dev-lang/python-2.7" |
25 | SUBVERSION_RUBY_DEPEND=">= dev-lang/ruby-2.3" |
26 | |
27 | SDEPEND="${SUBVERSION_DEPEND} |
28 | ${SUBVERSION_PERL_DEPEND} |
29 | ${SUBVERSION_PYTHON_DEPEND} |
30 | ${SUBVERSION_RUBY_DEPEND} |
31 | >= dev-lang/swig-3" |
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 | # mirror://${PNAME}/${PNAME}-1.8.13-swigpython.patch |
48 | ) |
49 | |
50 | UP2DATE="updatecmd 'http://apache.org/dist/subversion/?C=N;O=A' | highesttarball" |
51 | |
52 | split_info_subversion() |
53 | { |
54 | DESCRIPTION="subversion - a version control system meant to replace cvs." |
55 | DEPEND="${SUBVERSION_DEPEND}" |
56 | } |
57 | |
58 | split_info_subversion-perl() |
59 | { |
60 | DESCRIPTION="subversion bindings for perl." |
61 | DEPEND="== dev-util/subversion-${PVER} |
62 | ${SUBVERSION_PERL_DEPEND}" |
63 | } |
64 | |
65 | split_info_subversion-python() |
66 | { |
67 | DESCRIPTION="subversion bindings for python." |
68 | DEPEND="== dev-util/subversion-${PVER} |
69 | ${SUBVERSION_PYTHON_DEPEND}" |
70 | } |
71 | |
72 | split_info_subversion-ruby() |
73 | { |
74 | DESCRIPTION="subversion bindings for ruby." |
75 | DEPEND="== dev-util/subversion-${PVER} |
76 | ${SUBVERSION_RUBY_DEPEND}" |
77 | } |
78 | |
79 | src_prepare() |
80 | { |
81 | munpack ${SRCFILE} || die |
82 | cd ${SRCDIR} |
83 | |
84 | # install perl modules to vendor dir |
85 | #mpatch ${PNAME}-1.4.3-perl-vendor.patch || die |
86 | |
87 | # fixes compilation with newer apr |
88 | mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die |
89 | |
90 | # # fix broken swig generator |
91 | # mpatch ${PNAME}-1.8.13-swigpython.patch || die |
92 | |
93 | # fix libtool issues |
94 | mlibtoolize || die |
95 | |
96 | # run autogen instead of mautoreconf to copy newer libtool macros |
97 | sh autogen.sh || die |
98 | } |
99 | |
100 | src_compile() |
101 | { |
102 | cd ${SRCDIR} |
103 | |
104 | mconfigure \ |
105 | --with-apr=/usr/bin/apr-1-config \ |
106 | --with-apr-util=/usr/bin/apu-1-config \ |
107 | --with-berkeley-db \ |
108 | --enable-bdb6 \ |
109 | --enable-nls \ |
110 | --with-swig \ |
111 | --without-apxs \ |
112 | --disable-mod-activation \ |
113 | --disable-static \ |
114 | --without-gnome-keyring \ |
115 | --without-kwallet \ |
116 | || die |
117 | |
118 | # no external all target in >= 1.8 |
119 | #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die |
120 | make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all || die |
121 | |
122 | # perl bindings |
123 | mmake swig-pl || die |
124 | # python bindings |
125 | mmake swig-py || die |
126 | # ruby bindings |
127 | mmake swig-rb || die |
128 | } |
129 | |
130 | src_install_subversion() |
131 | { |
132 | cd ${SRCDIR} |
133 | mmake -j1 DESTDIR=${BINDIR} install || die |
134 | |
135 | # debian installs these as well |
136 | minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die |
137 | #minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die |
138 | } |
139 | |
140 | src_install_subversion-perl() |
141 | { |
142 | cd ${SRCDIR} |
143 | |
144 | # install perl bindings |
145 | mmake DESTDIR=${BINDIR} install-swig-pl || die |
146 | # install pods to /usr/share |
147 | fixlocalpod || die |
148 | # remove insecure rpath |
149 | mdeleterpath || die |
150 | } |
151 | |
152 | src_install_subversion-python() |
153 | { |
154 | cd ${SRCDIR} |
155 | |
156 | # install python bindings |
157 | mmake DESTDIR=${BINDIR} install-swig-py || die |
158 | # move python-bindings to a proper place |
159 | minstalldir $(mget-python-libdir) || die |
160 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(mget-python-libdir) || die |
161 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(mget-python-libdir) || die |
162 | rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die |
163 | } |
164 | |
165 | src_install_subversion-ruby() |
166 | { |
167 | cd ${SRCDIR} |
168 | |
169 | # install ruby bindings |
170 | mmake DESTDIR=${BINDIR} install-swig-rb || die |
171 | } |