Magellan Linux

Contents of /branches/R11-stable/extras/subversion/subversion-1.8.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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