Contents of /branches/magellan-next/core/subversion/subversion-1.7.1-r1.smage2
Parent Directory | Revision Log
Revision 9154 -
(show annotations)
(download)
Mon Nov 7 22:52:36 2011 UTC (12 years, 7 months ago) by niro
File size: 4117 byte(s)
Mon Nov 7 22:52:36 2011 UTC (12 years, 7 months ago) by niro
File size: 4117 byte(s)
-fixed SRC_URI and UP2DATE
1 | # $Id$ |
2 | |
3 | PNAME="subversion" |
4 | PVER="1.7.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-util" |
8 | |
9 | DESCRIPTION="subversion - a version control system meant to replace cvs." |
10 | HOMEPAGE="http://subversion.apache.org/" |
11 | |
12 | # common deps |
13 | SDEPEND=">= virtual/glibc |
14 | >= dev-libs/expat-2 |
15 | >= dev-libs/libxml2-2.7 |
16 | >= dev-libs/openssl-1.0.0 |
17 | >= dev-libs/cyrus-sasl-2.1 |
18 | >= net-misc/neon-0.29.6 |
19 | >= sys-libs/zlib-1.2.5 |
20 | >= dev-libs/apr-util-1.3 |
21 | >= dev-db/db-5.1 |
22 | >= dev-db/sqlite-3.7" |
23 | |
24 | # split/src deps only |
25 | SDEPEND="${SDEPEND} |
26 | >= dev-lang/swig-2 |
27 | >= dev-lang/python-2.7 |
28 | >= dev-lang/perl-5.14 |
29 | >= dev-lang/ruby-1.9" |
30 | |
31 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
32 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
33 | |
34 | SPLIT_PACKAGES="subversion subversion-perl subversion-python subversion-ruby" |
35 | |
36 | # include perl as last to have the right postinstall etc |
37 | sminclude mtools python perl |
38 | |
39 | SRC_URI=( |
40 | http://archive.apache.org/dist/${PNAME}/${SRCFILE} |
41 | mirror://${PNAME}/${SRCFILE} |
42 | mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch |
43 | mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch |
44 | mirror://${PNAME}/${PNAME}-1.6.13-db50.patch |
45 | ) |
46 | |
47 | #UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep 'best.*version' | sed 's:.*\: \[.*\]\(.*.\):\1:'" |
48 | UP2DATE="updatecmd http://archive.apache.org/dist/subversion/ | lasttarball" |
49 | |
50 | split_info_subversion() |
51 | { |
52 | DESCRIPTION="subversion - a version control system meant to replace cvs." |
53 | DEPEND=">= virtual/glibc |
54 | >= dev-libs/expat-2 |
55 | >= dev-libs/libxml2-2.7 |
56 | >= dev-libs/openssl-1.0.0 |
57 | >= dev-libs/cyrus-sasl-2.1 |
58 | >= net-misc/neon-0.29.4 |
59 | >= sys-libs/zlib-1.2.5 |
60 | >= dev-libs/apr-util-1 |
61 | >= dev-db/db-5.1 |
62 | >= dev-db/sqlite-3.7" |
63 | } |
64 | |
65 | split_info_subversion-perl() |
66 | { |
67 | DESCRIPTION="subversion bindings for perl." |
68 | DEPEND="== dev-util/subversion-${PVER} |
69 | >= dev-lang/perl-5.12" |
70 | } |
71 | |
72 | split_info_subversion-python() |
73 | { |
74 | DESCRIPTION="subversion bindings for python." |
75 | DEPEND="== dev-util/subversion-${PVER} |
76 | >= dev-lang/python-2.7" |
77 | } |
78 | |
79 | split_info_subversion-ruby() |
80 | { |
81 | DESCRIPTION="subversion bindings for ruby." |
82 | DEPEND="== dev-util/subversion-${PVER} |
83 | >= dev-lang/ruby-1.9" |
84 | } |
85 | |
86 | src_prepare() |
87 | { |
88 | munpack ${SRCFILE} || die |
89 | cd ${SRCDIR} |
90 | |
91 | # install perl modules to vendor dir |
92 | mpatch ${PNAME}-1.4.3-perl-vendor.patch || die |
93 | |
94 | # fixes compilation with newer apr |
95 | mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die |
96 | |
97 | # support db-5.1 |
98 | mpatch ${PNAME}-1.6.13-db50.patch || die |
99 | |
100 | # autoreconf --verbose --install --force || die |
101 | # run autogen instead of autoreconf to copy newer libtool macros |
102 | sh autogen.sh || die |
103 | |
104 | # fix libtool issues |
105 | libtoolize --verbose --copy --install --force || die |
106 | } |
107 | |
108 | src_compile() |
109 | { |
110 | cd ${SRCDIR} |
111 | |
112 | mconfigure \ |
113 | --with-apr=/usr/bin/apr-1-config \ |
114 | --with-apr-util=/usr/bin/apu-1-config \ |
115 | --with-berkeley-db \ |
116 | --enable-nls \ |
117 | --disable-experimental-libtool \ |
118 | --with-swig \ |
119 | --with-neon \ |
120 | --without-apxs \ |
121 | --disable-mod-activation \ |
122 | --disable-static \ |
123 | --disable-neon-version-check \ |
124 | || die |
125 | |
126 | ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die |
127 | |
128 | # perl bindings |
129 | mmake swig-pl || die |
130 | # python bindings |
131 | mmake swig-py || die |
132 | # ruby bindings |
133 | mmake swig-rb || die |
134 | } |
135 | |
136 | src_install_subversion() |
137 | { |
138 | cd ${SRCDIR} |
139 | mmake -j1 DESTDIR=${BINDIR} install || die |
140 | |
141 | # debian installs these as well |
142 | minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die |
143 | minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die |
144 | } |
145 | |
146 | src_instal_subversion-perl() |
147 | { |
148 | cd ${SRCDIR} |
149 | |
150 | # install perl bindings |
151 | mmake DESTDIR=${BINDIR} install-swig-pl || die |
152 | # install pods to /usr/share |
153 | fixlocalpod || die |
154 | } |
155 | |
156 | src_install_subversion-python() |
157 | { |
158 | cd ${SRCDIR} |
159 | |
160 | # install python bindings |
161 | mmake DESTDIR=${BINDIR} install-swig-py || die |
162 | # move python-bindings to a proper place |
163 | minstalldir $(get_python_libdir) || die |
164 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die |
165 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die |
166 | rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die |
167 | } |
168 | |
169 | src_install_subversion-ruby() |
170 | { |
171 | cd ${SRCDIR} |
172 | |
173 | # install ruby bindings |
174 | mmake DESTDIR=${BINDIR} install-swig-rb || die |
175 | } |