Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5458 - (show annotations) (download)
Fri Jun 25 08:31:30 2010 UTC (13 years, 11 months ago) by niro
File size: 2960 byte(s)
-fixed dependencies
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.6.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 >= dev-libs/cyrus-sasl-2.1
18 >= net-misc/neon-0.29
19 >= sys-libs/zlib-1.2.3
20 >= dev-libs/apr-util-1
21 >= dev-db/db-4.8
22 >= dev-db/sqlite-3.6"
23
24 SDEPEND=">= dev-lang/swig-1
25 >= dev-lang/python-2.6
26 >= dev-lang/perl-5.10
27 >= dev-lang/ruby-1.9"
28
29 SRCFILE="${PNAME}-${PVER}.tar.bz2"
30 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
31
32 # include perl as last to have the right postinstall etc
33 sminclude mtools python perl
34
35 SRC_URI=(
36 http://subversion.tigris.org/downloads/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
39 mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
40 )
41
42 UP2DATE="updatecmd ${HOMEPAGE} | grep 'latest release' | sed 's/.* \(.*.\)\..*/\1/'"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 cd ${SRCDIR}
48
49 # install perl modules to vendor dir
50 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
51
52 # fixes compilation with newer apr
53 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
54
55 # autoreconf --verbose --install --force || die
56 # run autogen instead of autoreconf to copy newer libtool macros
57 sh autogen.sh || die
58
59 # fix libtool issues
60 libtoolize --verbose --copy --install --force || die
61 }
62
63 src_compile()
64 {
65 cd ${SRCDIR}
66
67 mconfigure \
68 --with-apr=/usr/bin/apr-1-config \
69 --with-apr-util=/usr/bin/apu-1-config \
70 --with-berkeley-db \
71 --enable-nls \
72 --disable-experimental-libtool \
73 --with-swig \
74 --with-neon \
75 --without-apxs \
76 --disable-mod-activation \
77 --disable-static \
78 --disable-neon-version-check \
79 || die
80
81 ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
82
83 # perl bindings
84 mmake swig-pl || die
85 # python bindings
86 mmake swig-py || die
87 # ruby bindings
88 mmake swig-rb || die
89 }
90
91 src_install()
92 {
93 cd ${SRCDIR}
94
95 mmake -j1 DESTDIR=${BINDIR} install || die
96
97 # install perl bindings
98 mmake DESTDIR=${BINDIR} install-swig-pl || die
99 # install pods to /usr/share
100 fixlocalpod || die
101
102 # get the right python dir
103 PYTHON_DIR=/usr/$(mlibdir)/python$(get_python_version)
104 # install python bindings
105 mmake DESTDIR=${BINDIR} install-swig-py || die
106 # move python-bindings to a proper place
107 minstalldir ${PYTHON_DIR}/site-packages || die
108 mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/${PYTHON_DIR}/site-packages || die
109 mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/${PYTHON_DIR}/site-packages || die
110 rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
111
112 # install ruby bindings
113 mmake DESTDIR=${BINDIR} install-swig-rb || die
114
115 # debian installs these as well
116 minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
117 minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
118 }

Properties

Name Value
svn:keywords Id