Magellan Linux

Contents of /branches/R11-unstable/extras/subversion/subversion-1.8.13-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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