Magellan Linux

Contents of /branches/magellan-next/core/subversion/subversion-1.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9159 - (show annotations) (download)
Tue Nov 8 09:16:26 2011 UTC (12 years, 6 months ago) by niro
File size: 3927 byte(s)
-contrib tools not included anymore
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.7.1"
5 PBUILD="r1"
6
7 PCATEGORIE="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.0
16 >= dev-libs/cyrus-sasl-2.1
17 >= net-misc/neon-0.29.6
18 >= sys-libs/zlib-1.2.5
19 >= dev-libs/apr-util-1.3
20 >= dev-db/db-5.1
21 >= dev-db/sqlite-3.7"
22
23 SUBVERSION_PERL_DEPEND=">= dev-lang/perl-5.14"
24 SUBVERSION_PYTHON_DEPEND=">= dev-lang/python-2.7"
25 SUBVERSION_RUBY_DEPEND=">= dev-lang/ruby-1.9"
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 SPLIT_PACKAGES="subversion subversion-perl subversion-python"
38
39 # include perl as last to have the right postinstall etc
40 sminclude mtools python perl
41
42 SRC_URI=(
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://archive.apache.org/dist/subversion/ | 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 # autoreconf --verbose --install --force || die
90 # run autogen instead of autoreconf to copy newer libtool macros
91 sh autogen.sh || die
92
93 # fix libtool issues
94 libtoolize --verbose --copy --install --force || die
95 }
96
97 src_compile()
98 {
99 cd ${SRCDIR}
100
101 mconfigure \
102 --with-apr=/usr/bin/apr-1-config \
103 --with-apr-util=/usr/bin/apu-1-config \
104 --with-berkeley-db \
105 --enable-nls \
106 --disable-experimental-libtool \
107 --with-swig \
108 --with-neon \
109 --without-apxs \
110 --disable-mod-activation \
111 --disable-static \
112 --disable-neon-version-check \
113 || die
114
115 ( mmake external-all && 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_instal_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 #}