Magellan Linux

Contents of /branches/magellan-next/core/subversion/subversion-1.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9157 - (show annotations) (download)
Tue Nov 8 09:06:53 2011 UTC (12 years, 7 months ago) by niro
File size: 3848 byte(s)
-improved depend handling
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 SUBVERSION_DEPEND=">= virtual/glibc
13 >= dev-libs/expat-2
14 >= dev-libs/libxml2-2.7
15 >= dev-libs/openssl-1.0.0
16 >= dev-libs/cyrus-sasl-2.1
17 >= net-misc/neon-0.29.6
18 >= sys-libs/zlib-1.2.5
19 >= dev-libs/apr-util-1.3
20 >= dev-db/db-5.1
21 >= dev-db/sqlite-3.7"
22
23 SUBVERSION_PERL_DEPEND=">= dev-lang/perl-5.14"
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://archive.apache.org/dist/${PNAME}/${SRCFILE}
43 mirror://${PNAME}/${SRCFILE}
44 mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
45 mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
46 )
47
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="${SUBVERSION_DEPEND}"
54 }
55
56 split_info_subversion-perl()
57 {
58 DESCRIPTION="subversion bindings for perl."
59 DEPEND="== dev-util/subversion-${PVER}
60 ${SUBVERSION_PERL_DEPEND}"
61 }
62
63 split_info_subversion-python()
64 {
65 DESCRIPTION="subversion bindings for python."
66 DEPEND="== dev-util/subversion-${PVER}
67 ${SUBVERSION_PYTHON_DEPEND}"
68 }
69
70 split_info_subversion-ruby()
71 {
72 DESCRIPTION="subversion bindings for ruby."
73 DEPEND="== dev-util/subversion-${PVER}
74 ${SUBVERSION_RUBY_DEPEND}"
75 }
76
77 src_prepare()
78 {
79 munpack ${SRCFILE} || die
80 cd ${SRCDIR}
81
82 # install perl modules to vendor dir
83 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
84
85 # fixes compilation with newer apr
86 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
87
88 # autoreconf --verbose --install --force || die
89 # run autogen instead of autoreconf to copy newer libtool macros
90 sh autogen.sh || die
91
92 # fix libtool issues
93 libtoolize --verbose --copy --install --force || die
94 }
95
96 src_compile()
97 {
98 cd ${SRCDIR}
99
100 mconfigure \
101 --with-apr=/usr/bin/apr-1-config \
102 --with-apr-util=/usr/bin/apu-1-config \
103 --with-berkeley-db \
104 --enable-nls \
105 --disable-experimental-libtool \
106 --with-swig \
107 --with-neon \
108 --without-apxs \
109 --disable-mod-activation \
110 --disable-static \
111 --disable-neon-version-check \
112 || die
113
114 ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
115
116 # perl bindings
117 mmake swig-pl || die
118 # python bindings
119 mmake swig-py || die
120 # ruby bindings
121 mmake swig-rb || die
122 }
123
124 src_install_subversion()
125 {
126 cd ${SRCDIR}
127 mmake -j1 DESTDIR=${BINDIR} install || die
128
129 # debian installs these as well
130 minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
131 minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
132 }
133
134 src_instal_subversion-perl()
135 {
136 cd ${SRCDIR}
137
138 # install perl bindings
139 mmake DESTDIR=${BINDIR} install-swig-pl || die
140 # install pods to /usr/share
141 fixlocalpod || die
142 }
143
144 src_install_subversion-python()
145 {
146 cd ${SRCDIR}
147
148 # install python bindings
149 mmake DESTDIR=${BINDIR} install-swig-py || die
150 # move python-bindings to a proper place
151 minstalldir $(get_python_libdir) || die
152 mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die
153 mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die
154 rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
155 }
156
157 src_install_subversion-ruby()
158 {
159 cd ${SRCDIR}
160
161 # install ruby bindings
162 mmake DESTDIR=${BINDIR} install-swig-rb || die
163 }