Magellan Linux

Annotation of /trunk/core/subversion/subversion-1.6.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1760 - (hide annotations) (download)
Mon May 25 18:32:25 2009 UTC (15 years, 4 months ago) by niro
File size: 2932 byte(s)
auto added: ver bump to 1.6.2-r1
1 niro 1760 # $Id$
2    
3     PNAME="subversion"
4     PVER="1.6.2"
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     >= dev-db/sqlite-3.6"
22    
23     SDEPEND=">= dev-lang/swig-1
24     >= dev-lang/python-2.6
25     >= dev-lang/perl-5.10
26     >= dev-lang/ruby-1.9"
27    
28     SRCFILE="${PNAME}-${PVER}.tar.bz2"
29     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30    
31     # include perl as last to have the right postinstall etc
32     sminclude mtools python perl
33    
34     SRC_URI=(
35     http://subversion.tigris.org/downloads/${SRCFILE}
36     mirror://${PNAME}/${SRCFILE}
37     mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
38     mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.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 compilation with newer apr
52     mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
53    
54     # autoreconf --verbose --install --force || die
55     # run autogen instead of autoreconf to copy newer libtool macros
56     sh autogen.sh || die
57    
58     # fix libtool issues
59     libtoolize --verbose --copy --install --force || die
60     }
61    
62     src_compile()
63     {
64     cd ${SRCDIR}
65    
66     mconfigure \
67     --with-apr=/usr/bin/apr-1-config \
68     --with-apr-util=/usr/bin/apu-1-config \
69     --with-berkeley-db \
70     --enable-nls \
71     --disable-experimental-libtool \
72     --with-swig \
73     --with-neon \
74     --without-apxs \
75     --disable-mod-activation \
76     --disable-static \
77     --disable-neon-version-check \
78     || die
79    
80     ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
81    
82     # perl bindings
83     mmake swig-pl || die
84     # python bindings
85     mmake swig-py || die
86     # ruby bindings
87     mmake swig-rb || die
88     }
89    
90     src_install()
91     {
92     cd ${SRCDIR}
93    
94     mmake -j1 DESTDIR=${BINDIR} install || die
95    
96     # install perl bindings
97     mmake DESTDIR=${BINDIR} install-swig-pl || die
98     # install pods to /usr/share
99     fixlocalpod || die
100    
101     # get the right python dir
102     PYTHON_DIR=/usr/$(mlibdir)/python$(get_python_version)
103     # install python bindings
104     mmake DESTDIR=${BINDIR} install-swig-py || die
105     # move python-bindings to a proper place
106     minstalldir ${PYTHON_DIR}/site-packages || die
107     mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/${PYTHON_DIR}/site-packages || die
108     mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/${PYTHON_DIR}/site-packages || die
109     rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
110    
111     # install ruby bindings
112     mmake DESTDIR=${BINDIR} install-swig-rb || die
113    
114     # debian installs these as well
115     minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
116     minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
117     }

Properties

Name Value
svn:keywords Id