Magellan Linux

Contents of /trunk/core/subversion/subversion-1.5.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 860 - (show annotations) (download)
Fri Dec 26 12:58:47 2008 UTC (15 years, 4 months ago) by niro
File size: 3014 byte(s)
-ver bump to 1.5.5-r1
1 # $Header: /magellan-cvs/smage/subversion/subversion-1.4.6-r2.smage2,v 1.1 2008/04/03 18:33:52 niro Exp $
2
3 PNAME="subversion"
4 PVER="1.5.5"
5 PBUILD="r1"
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 DEPEND=">= virtual/glibc
14 >= dev-libs/expat-2
15 >= dev-libs/libxml2-2.7
16 >= dev-libs/openssl-0.9.8
17 >= net-misc/neon-0.28
18 >= sys-libs/zlib-1.2.3
19 >= dev-libs/apr-util-1
20 >= dev-db/db-4.7"
21
22 SDEPEND=">= dev-lang/swig-1
23 >= dev-lang/python-2.6
24 >= dev-lang/perl-5.10
25 >= dev-lang/ruby-1.8.7"
26
27 SRCFILE="${PNAME}-${PVER}.tar.bz2"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 # include perl as last to have the right postinstall etc
31 sminclude mtools python perl
32
33 SRC_URI=(
34 http://subversion.tigris.org/downloads/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
37 mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
38 mirror://${PNAME}/${PNAME}-1.4.5-neon-configure.patch
39 )
40
41 UP2DATE="updatecmd ${HOMEPAGE} | grep 'latest release' | sed 's/.* \(.*.\)\..*/\1/'"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 cd ${SRCDIR}
47
48 # install perl modules to vendor dir
49 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
50
51 # fixes neon configure check
52 mpatch ${PNAME}-1.4.5-neon-configure.patch || die
53
54 # fixes compilation with newer apr
55 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
56
57 autoreconf --install --force || die
58 }
59
60 src_compile()
61 {
62 export CPPFLAGS="-DSVN_NEON_0_26 -DSVN_NEON_0_25"
63
64 mconfigure \
65 --with-apr=/usr/bin/apr-1-config \
66 --with-apr-util=/usr/bin/apu-1-config \
67 --with-berkeley-db \
68 --with-python \
69 --enable-nls \
70 --disable-experimental-libtool \
71 --with-swig \
72 --with-neon=/usr \
73 --without-apxs \
74 --disable-mod-activation \
75 --disable-static \
76 --disable-neon-version-check \
77 || die
78
79 ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
80
81 # perl bindings
82 mmake swig-pl || die
83 # python bindings
84 mmake swig-py || die
85 # ruby bindings
86 mmake swig-rb || die
87 }
88
89 src_install()
90 {
91 cd ${SRCDIR}
92
93 mmake DESTDIR=${BINDIR} install || die
94
95 # install perl bindings
96 mmake DESTDIR=${BINDIR} install-swig-pl || die
97 # install pods to /usr/share
98 fixlocalpod || die
99
100 # get the right python dir
101 PYTHON_DIR=/usr/$(mlibdir)/python$(get_python_version)
102 # install python bindings
103 mmake DESTDIR=${BINDIR} install-swig-py || die
104 # move python-bindings to a proper place
105 minstalldir ${PYTHON_DIR}/site-packages || die
106 mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/${PYTHON_DIR}/site-packages || die
107 mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/${PYTHON_DIR}/site-packages || die
108 rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
109
110 # install ruby bindings
111 mmake DESTDIR=${BINDIR} install-swig-rb || die
112
113 # debian installs these as well
114 minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
115 minstallexec contrib/client-side/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
116 }

Properties

Name Value
svn:keywords Id