Contents of /branches/magellan-next/core/subversion/subversion-1.7.1-r1.smage2
Parent Directory | Revision Log
Revision 9155 -
(show annotations)
(download)
Mon Nov 7 22:54:27 2011 UTC (12 years, 10 months ago) by niro
File size: 3911 byte(s)
Mon Nov 7 22:54:27 2011 UTC (12 years, 10 months ago) by niro
File size: 3911 byte(s)
-fixed dependencies and remove deprecated patches
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 | ) |
45 | |
46 | UP2DATE="updatecmd http://archive.apache.org/dist/subversion/ | lasttarball" |
47 | |
48 | split_info_subversion() |
49 | { |
50 | DESCRIPTION="subversion - a version control system meant to replace cvs." |
51 | DEPEND=">= virtual/glibc |
52 | >= dev-libs/expat-2 |
53 | >= dev-libs/libxml2-2.7 |
54 | >= dev-libs/openssl-1.0.0 |
55 | >= dev-libs/cyrus-sasl-2.1 |
56 | >= net-misc/neon-0.29.4 |
57 | >= sys-libs/zlib-1.2.5 |
58 | >= dev-libs/apr-util-1 |
59 | >= dev-db/db-5.1 |
60 | >= dev-db/sqlite-3.7" |
61 | } |
62 | |
63 | split_info_subversion-perl() |
64 | { |
65 | DESCRIPTION="subversion bindings for perl." |
66 | DEPEND="== dev-util/subversion-${PVER} |
67 | >= dev-lang/perl-5.14" |
68 | } |
69 | |
70 | split_info_subversion-python() |
71 | { |
72 | DESCRIPTION="subversion bindings for python." |
73 | DEPEND="== dev-util/subversion-${PVER} |
74 | >= dev-lang/python-2.7" |
75 | } |
76 | |
77 | split_info_subversion-ruby() |
78 | { |
79 | DESCRIPTION="subversion bindings for ruby." |
80 | DEPEND="== dev-util/subversion-${PVER} |
81 | >= dev-lang/ruby-1.9" |
82 | } |
83 | |
84 | src_prepare() |
85 | { |
86 | munpack ${SRCFILE} || die |
87 | cd ${SRCDIR} |
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 | # autoreconf --verbose --install --force || die |
96 | # run autogen instead of autoreconf to copy newer libtool macros |
97 | sh autogen.sh || die |
98 | |
99 | # fix libtool issues |
100 | libtoolize --verbose --copy --install --force || die |
101 | } |
102 | |
103 | src_compile() |
104 | { |
105 | cd ${SRCDIR} |
106 | |
107 | mconfigure \ |
108 | --with-apr=/usr/bin/apr-1-config \ |
109 | --with-apr-util=/usr/bin/apu-1-config \ |
110 | --with-berkeley-db \ |
111 | --enable-nls \ |
112 | --disable-experimental-libtool \ |
113 | --with-swig \ |
114 | --with-neon \ |
115 | --without-apxs \ |
116 | --disable-mod-activation \ |
117 | --disable-static \ |
118 | --disable-neon-version-check \ |
119 | || die |
120 | |
121 | ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die |
122 | |
123 | # perl bindings |
124 | mmake swig-pl || die |
125 | # python bindings |
126 | mmake swig-py || die |
127 | # ruby bindings |
128 | mmake swig-rb || die |
129 | } |
130 | |
131 | src_install_subversion() |
132 | { |
133 | cd ${SRCDIR} |
134 | mmake -j1 DESTDIR=${BINDIR} install || die |
135 | |
136 | # debian installs these as well |
137 | minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die |
138 | minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die |
139 | } |
140 | |
141 | src_instal_subversion-perl() |
142 | { |
143 | cd ${SRCDIR} |
144 | |
145 | # install perl bindings |
146 | mmake DESTDIR=${BINDIR} install-swig-pl || die |
147 | # install pods to /usr/share |
148 | fixlocalpod || die |
149 | } |
150 | |
151 | src_install_subversion-python() |
152 | { |
153 | cd ${SRCDIR} |
154 | |
155 | # install python bindings |
156 | mmake DESTDIR=${BINDIR} install-swig-py || die |
157 | # move python-bindings to a proper place |
158 | minstalldir $(get_python_libdir) || die |
159 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die |
160 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die |
161 | rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die |
162 | } |
163 | |
164 | src_install_subversion-ruby() |
165 | { |
166 | cd ${SRCDIR} |
167 | |
168 | # install ruby bindings |
169 | mmake DESTDIR=${BINDIR} install-swig-rb || die |
170 | } |