Magellan Linux

Annotation of /branches/magellan-next/core/subversion/subversion-1.6.16-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7786 - (hide annotations) (download)
Wed Jun 1 17:01:11 2011 UTC (12 years, 11 months ago) by niro
File size: 4168 byte(s)
auto added: ver bump to 1.6.16-r1
1 niro 7786 # $Id$
2    
3     PNAME="subversion"
4     PVER="1.6.16"
5     PBUILD="r1"
6    
7     PCATEGORIE="dev-util"
8     STATE="unstable"
9    
10     DESCRIPTION="subversion - a version control system meant to replace cvs."
11     HOMEPAGE="http://subversion.apache.org/"
12    
13     # common deps
14     SDEPEND=">= virtual/glibc
15     >= dev-libs/expat-2
16     >= dev-libs/libxml2-2.7
17     >= dev-libs/openssl-1.0.0
18     >= dev-libs/cyrus-sasl-2.1
19     >= net-misc/neon-0.29.6
20     >= sys-libs/zlib-1.2.5
21     >= dev-libs/apr-util-1.3
22     >= dev-db/db-5.1
23     >= dev-db/sqlite-3.7"
24    
25     # split/src deps only
26     SDEPEND="${SDEPEND}
27     >= dev-lang/swig-2
28     >= dev-lang/python-2.7
29     >= dev-lang/perl-5.12
30     >= dev-lang/ruby-1.9"
31    
32     SRCFILE="${PNAME}-${PVER}.tar.bz2"
33     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
34    
35     SPLIT_PACKAGES="subversion subversion-perl subversion-python subversion-ruby"
36    
37     # include perl as last to have the right postinstall etc
38     sminclude mtools python perl
39    
40     SRC_URI=(
41     http://subversion.tigris.org/downloads/${SRCFILE}
42     mirror://${PNAME}/${SRCFILE}
43     mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
44     mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
45     mirror://${PNAME}/${PNAME}-1.6.13-db51.patch
46     )
47    
48     UP2DATE="updatecmd ${HOMEPAGE}/source-code.html | grep 'best.*version' | sed 's:.*\: \[.*\]\(.*.\):\1:'"
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-db51.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     # get the right python dir
161     PYTHON_DIR=/usr/$(mlibdir)/python$(get_python_version)
162     # install python bindings
163     mmake DESTDIR=${BINDIR} install-swig-py || die
164     # move python-bindings to a proper place
165     minstalldir ${PYTHON_DIR}/site-packages || die
166     mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/${PYTHON_DIR}/site-packages || die
167     mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/${PYTHON_DIR}/site-packages || die
168     rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
169     }
170    
171     src_install_subversion-ruby()
172     {
173     cd ${SRCDIR}
174    
175     # install ruby bindings
176     mmake DESTDIR=${BINDIR} install-swig-rb || die
177     }