Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19309 - (show annotations) (download)
Tue Sep 3 15:00:59 2013 UTC (10 years, 8 months ago) by niro
File size: 3869 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.8.1"
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-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 )
48
49 UP2DATE="updatecmd 'http://apache.org/dist/subversion/?C=M;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-nls \
105 --with-swig \
106 --without-apxs \
107 --disable-mod-activation \
108 --disable-static \
109 --without-gnome-keyring \
110 --without-kwallet \
111 || die
112
113 # no external all target in >= 1.8
114 #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
115 make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all || die
116
117 # perl bindings
118 mmake swig-pl || die
119 # python bindings
120 mmake swig-py || die
121 # ruby bindings
122 mmake swig-rb || die
123 }
124
125 src_install_subversion()
126 {
127 cd ${SRCDIR}
128 mmake -j1 DESTDIR=${BINDIR} install || die
129
130 # debian installs these as well
131 minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
132 #minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
133 }
134
135 src_install_subversion-perl()
136 {
137 cd ${SRCDIR}
138
139 # install perl bindings
140 mmake DESTDIR=${BINDIR} install-swig-pl || die
141 # install pods to /usr/share
142 fixlocalpod || die
143 }
144
145 src_install_subversion-python()
146 {
147 cd ${SRCDIR}
148
149 # install python bindings
150 mmake DESTDIR=${BINDIR} install-swig-py || die
151 # move python-bindings to a proper place
152 minstalldir $(get_python_libdir) || die
153 mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die
154 mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die
155 rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
156 }
157
158 src_install_subversion-ruby()
159 {
160 cd ${SRCDIR}
161
162 # install ruby bindings
163 mmake DESTDIR=${BINDIR} install-swig-rb || die
164 }