Contents of /trunk/extras/subversion/subversion-1.7.6-r1.smage2
Parent Directory | Revision Log
Revision 13451 -
(show annotations)
(download)
Tue Oct 9 09:23:59 2012 UTC (11 years, 7 months ago) by niro
File size: 4130 byte(s)
Tue Oct 9 09:23:59 2012 UTC (11 years, 7 months ago) by niro
File size: 4130 byte(s)
-added patch to fix the build without apache2
1 | # $Id$ |
2 | |
3 | PNAME="subversion" |
4 | PVER="1.7.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.7 |
15 | >= dev-libs/openssl-1.0.1c |
16 | >= dev-libs/cyrus-sasl-2.1 |
17 | >= net-misc/neon-0.29.6 |
18 | >= sys-libs/zlib-1.2.7 |
19 | >= dev-libs/apr-util-1.5 |
20 | >= dev-db/db-5.3 |
21 | >= dev-db/sqlite-3.7" |
22 | |
23 | SUBVERSION_PERL_DEPEND=">= dev-lang/perl-5.16" |
24 | SUBVERSION_PYTHON_DEPEND=">= dev-lang/python-2.7" |
25 | SUBVERSION_RUBY_DEPEND=">= dev-lang/ruby-1.9" |
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 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.7.2-ruby19.patch |
48 | mirror://${PNAME}/${PNAME}-${PVER}-revert-mod_dontdothat-move.patch |
49 | ) |
50 | |
51 | UP2DATE="updatecmd http://apache.org/dist/subversion/ | lasttarball" |
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 | # install perl modules to vendor dir |
86 | mpatch ${PNAME}-1.4.3-perl-vendor.patch || die |
87 | |
88 | # fixes compilation with newer apr |
89 | mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die |
90 | |
91 | # fix build against ruby-1.9 |
92 | mpatch ${PNAME}-1.7.2-ruby19.patch || die |
93 | |
94 | # fix build without apache2 |
95 | mpatch ${PNAME}-${PVER}-revert-mod_dontdothat-move.patch || die |
96 | |
97 | # autoreconf --verbose --install --force || die |
98 | # run autogen instead of autoreconf to copy newer libtool macros |
99 | sh autogen.sh || die |
100 | |
101 | # fix libtool issues |
102 | mlibtoolize || die |
103 | } |
104 | |
105 | src_compile() |
106 | { |
107 | cd ${SRCDIR} |
108 | |
109 | mconfigure \ |
110 | --with-apr=/usr/bin/apr-1-config \ |
111 | --with-apr-util=/usr/bin/apu-1-config \ |
112 | --with-berkeley-db \ |
113 | --enable-nls \ |
114 | --disable-experimental-libtool \ |
115 | --with-swig \ |
116 | --with-neon \ |
117 | --without-apxs \ |
118 | --disable-mod-activation \ |
119 | --disable-static \ |
120 | --disable-neon-version-check \ |
121 | || die |
122 | |
123 | ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die |
124 | |
125 | # perl bindings |
126 | mmake swig-pl || die |
127 | # python bindings |
128 | mmake swig-py || die |
129 | # ruby bindings |
130 | mmake swig-rb || die |
131 | } |
132 | |
133 | src_install_subversion() |
134 | { |
135 | cd ${SRCDIR} |
136 | mmake -j1 DESTDIR=${BINDIR} install || die |
137 | |
138 | # debian installs these as well |
139 | minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die |
140 | #minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die |
141 | } |
142 | |
143 | src_instal_subversion-perl() |
144 | { |
145 | cd ${SRCDIR} |
146 | |
147 | # install perl bindings |
148 | mmake DESTDIR=${BINDIR} install-swig-pl || die |
149 | # install pods to /usr/share |
150 | fixlocalpod || die |
151 | } |
152 | |
153 | src_install_subversion-python() |
154 | { |
155 | cd ${SRCDIR} |
156 | |
157 | # install python bindings |
158 | mmake DESTDIR=${BINDIR} install-swig-py || die |
159 | # move python-bindings to a proper place |
160 | minstalldir $(get_python_libdir) || die |
161 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die |
162 | mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die |
163 | rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die |
164 | } |
165 | |
166 | src_install_subversion-ruby() |
167 | { |
168 | cd ${SRCDIR} |
169 | |
170 | # install ruby bindings |
171 | mmake DESTDIR=${BINDIR} install-swig-rb || die |
172 | } |