Magellan Linux

Contents of /branches/R11-stable/extras/subversion/subversion-1.7.10-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18025 - (show annotations) (download)
Thu Jun 27 06:46:40 2013 UTC (10 years, 11 months ago) by niro
File size: 3942 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.7.10"
5 PBUILD="r2"
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.1e
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.18"
24 SUBVERSION_PYTHON_DEPEND=">= dev-lang/python-2.7"
25 SUBVERSION_RUBY_DEPEND=">= dev-lang/ruby-2.0"
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.10-ruby20.patch
48 )
49
50 UP2DATE="updatecmd 'http://apache.org/dist/subversion/?C=M;O=A' | lasttarball"
51
52 split_info_subversion()
53 {
54 DESCRIPTION="subversion - a version control system meant to replace cvs."
55 DEPEND="${SUBVERSION_DEPEND}"
56 }
57
58 split_info_subversion-perl()
59 {
60 DESCRIPTION="subversion bindings for perl."
61 DEPEND="== dev-util/subversion-${PVER}
62 ${SUBVERSION_PERL_DEPEND}"
63 }
64
65 split_info_subversion-python()
66 {
67 DESCRIPTION="subversion bindings for python."
68 DEPEND="== dev-util/subversion-${PVER}
69 ${SUBVERSION_PYTHON_DEPEND}"
70 }
71
72 split_info_subversion-ruby()
73 {
74 DESCRIPTION="subversion bindings for ruby."
75 DEPEND="== dev-util/subversion-${PVER}
76 ${SUBVERSION_RUBY_DEPEND}"
77 }
78
79 src_prepare()
80 {
81 munpack ${SRCFILE} || die
82 cd ${SRCDIR}
83
84 # install perl modules to vendor dir
85 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
86
87 # fixes compilation with newer apr
88 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
89
90 # fix build against ruby-2.0
91 mpatch ${PNAME}-1.7.10-ruby20.patch || die
92
93 # run autogen instead of mautoreconf to copy newer libtool macros
94 sh autogen.sh || die
95
96 # fix libtool issues
97 mlibtoolize || die
98 }
99
100 src_compile()
101 {
102 cd ${SRCDIR}
103
104 mconfigure \
105 --with-apr=/usr/bin/apr-1-config \
106 --with-apr-util=/usr/bin/apu-1-config \
107 --with-berkeley-db \
108 --enable-nls \
109 --with-swig \
110 --with-neon \
111 --without-apxs \
112 --disable-mod-activation \
113 --disable-static \
114 --disable-neon-version-check \
115 --without-gnome-keyring \
116 --without-kwallet \
117 || die
118
119 ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
120
121 # perl bindings
122 mmake swig-pl || die
123 # python bindings
124 mmake swig-py || die
125 # ruby bindings
126 mmake swig-rb || die
127 }
128
129 src_install_subversion()
130 {
131 cd ${SRCDIR}
132 mmake -j1 DESTDIR=${BINDIR} install || die
133
134 # debian installs these as well
135 minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
136 #minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
137 }
138
139 src_install_subversion-perl()
140 {
141 cd ${SRCDIR}
142
143 # install perl bindings
144 mmake DESTDIR=${BINDIR} install-swig-pl || die
145 # install pods to /usr/share
146 fixlocalpod || die
147 }
148
149 src_install_subversion-python()
150 {
151 cd ${SRCDIR}
152
153 # install python bindings
154 mmake DESTDIR=${BINDIR} install-swig-py || die
155 # move python-bindings to a proper place
156 minstalldir $(get_python_libdir) || die
157 mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die
158 mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die
159 rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
160 }
161
162 src_install_subversion-ruby()
163 {
164 cd ${SRCDIR}
165
166 # install ruby bindings
167 mmake DESTDIR=${BINDIR} install-swig-rb || die
168 }