Magellan Linux

Contents of /branches/magellan-next/core/subversion/subversion-1.6.5-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7248 - (show annotations) (download)
Tue Oct 12 07:44:54 2010 UTC (13 years, 7 months ago) by niro
File size: 4034 byte(s)
imported from trunk
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.6.5"
5 PBUILD="r3"
6
7 PCATEGORIE="dev-util"
8 STATE="unstable"
9
10 DESCRIPTION="subversion - a version control system meant to replace cvs."
11 HOMEPAGE="http://subversion.tigris.org/"
12
13 # common deps
14 SDEPEND=">= virtual/glibc
15 >= dev-libs/expat-2
16 >= dev-libs/libxml2-2.7
17 >= dev-libs/openssl-0.9.8
18 >= dev-libs/cyrus-sasl-2.1
19 >= net-misc/neon-0.29
20 >= sys-libs/zlib-1.2.3
21 >= dev-libs/apr-util-1
22 >= dev-db/db-4.8
23 >= dev-db/sqlite-3.6"
24
25 # split/src deps only
26 SDEPEND="${SDEPEND}
27 >= dev-lang/swig-1
28 >= dev-lang/python-2.6
29 >= dev-lang/perl-5.10
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 )
46
47 UP2DATE="updatecmd ${HOMEPAGE} | grep 'latest release' | sed 's/.* \(.*.\)\..*/\1/'"
48
49 split_info_subversion()
50 {
51 DESCRIPTION="subversion - a version control system meant to replace cvs."
52 DEPEND=">= virtual/glibc
53 >= dev-libs/expat-2
54 >= dev-libs/libxml2-2.7
55 >= dev-libs/openssl-0.9.8
56 >= dev-libs/cyrus-sasl-2.1
57 >= net-misc/neon-0.29
58 >= sys-libs/zlib-1.2.3
59 >= dev-libs/apr-util-1
60 >= dev-db/db-4.8
61 >= dev-db/sqlite-3.6"
62 }
63
64 split_info_subversion-perl()
65 {
66 DESCRIPTION="subversion bindings for perl."
67 DEPEND="== dev-util/subversion-${PVER}
68 >= dev-lang/perl-5.10"
69 }
70
71 split_info_subversion-python()
72 {
73 DESCRIPTION="subversion bindings for python."
74 DEPEND="== dev-util/subversion-${PVER}
75 >= dev-lang/python-2.6"
76 }
77
78 split_info_subversion-ruby()
79 {
80 DESCRIPTION="subversion bindings for ruby."
81 DEPEND="== dev-util/subversion-${PVER}
82 >= dev-lang/ruby-1.9"
83 }
84
85 src_prepare()
86 {
87 munpack ${SRCFILE} || die
88 cd ${SRCDIR}
89
90 # install perl modules to vendor dir
91 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
92
93 # fixes compilation with newer apr
94 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
95
96 # autoreconf --verbose --install --force || die
97 # run autogen instead of autoreconf to copy newer libtool macros
98 sh autogen.sh || die
99
100 # fix libtool issues
101 libtoolize --verbose --copy --install --force || die
102 }
103
104 src_compile()
105 {
106 cd ${SRCDIR}
107
108 mconfigure \
109 --with-apr=/usr/bin/apr-1-config \
110 --with-apr-util=/usr/bin/apu-1-config \
111 --with-berkeley-db \
112 --enable-nls \
113 --disable-experimental-libtool \
114 --with-swig \
115 --with-neon \
116 --without-apxs \
117 --disable-mod-activation \
118 --disable-static \
119 --disable-neon-version-check \
120 || die
121
122 ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
123
124 # perl bindings
125 mmake swig-pl || die
126 # python bindings
127 mmake swig-py || die
128 # ruby bindings
129 mmake swig-rb || die
130 }
131
132 src_install_subversion()
133 {
134 cd ${SRCDIR}
135 mmake -j1 DESTDIR=${BINDIR} install || die
136
137 # debian installs these as well
138 minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
139 minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
140 }
141
142 src_instal_subversion-perl()
143 {
144 cd ${SRCDIR}
145
146 # install perl bindings
147 mmake DESTDIR=${BINDIR} install-swig-pl || die
148 # install pods to /usr/share
149 fixlocalpod || die
150 }
151
152 src_install_subversion-python()
153 {
154 cd ${SRCDIR}
155
156 # get the right python dir
157 PYTHON_DIR=/usr/$(mlibdir)/python$(get_python_version)
158 # install python bindings
159 mmake DESTDIR=${BINDIR} install-swig-py || die
160 # move python-bindings to a proper place
161 minstalldir ${PYTHON_DIR}/site-packages || die
162 mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/${PYTHON_DIR}/site-packages || die
163 mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/${PYTHON_DIR}/site-packages || die
164 rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
165 }
166
167 src_install_subversion-ruby()
168 {
169 cd ${SRCDIR}
170
171 # install ruby bindings
172 mmake DESTDIR=${BINDIR} install-swig-rb || die
173 }

Properties

Name Value
svn:keywords Id