Magellan Linux

Contents of /smage/trunk/core/subversion/subversion-1.7.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4737 - (show annotations) (download)
Fri Apr 12 11:46:06 2013 UTC (11 years, 1 month ago) by niro
File size: 2008 byte(s)
auto added: ver bump to 1.7.9-r1
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.7.9"
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 DEPEND=">= virtual/glibc
13 >= dev-libs/expat-2
14 >= dev-libs/libxml2-2.7
15 >= sys-libs/zlib-1.2.5
16 >= dev-libs/apr-util-1.3
17 >= dev-db/db-5.3
18 >= dev-db/sqlite-3.7"
19
20 SRCFILE="${PNAME}-${PVER}.tar.bz2"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude cleanutils
24
25 SRC_URI=(
26 http://apache.org/dist/${PNAME}/${SRCFILE}
27 #http://archive.apache.org/dist/${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
30 mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
31 mirror://${PNAME}/${PNAME}-1.7.2-ruby19.patch
32 )
33
34 UP2DATE="updatecmd http://apache.org/dist/subversion/ | lasttarball"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # install perl modules to vendor dir
42 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
43
44 # fixes compilation with newer apr
45 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
46
47 # fix build against ruby-1.9
48 mpatch ${PNAME}-1.7.2-ruby19.patch || die
49
50 # autoreconf --verbose --install --force || die
51 # run autogen instead of autoreconf to copy newer libtool macros
52 sh autogen.sh || die
53
54 # fix libtool issues
55 mlibtoolize || die
56 }
57
58 src_compile()
59 {
60 cd ${SRCDIR}
61
62 mconfigure \
63 --with-apr=/usr/bin/apr-1-config \
64 --with-apr-util=/usr/bin/apu-1-config \
65 --with-berkeley-db \
66 --disable-nls \
67 --disable-experimental-libtool \
68 --without-swig \
69 --without-neon \
70 --without-apxs \
71 --disable-mod-activation \
72 --disable-static \
73 --disable-neon-version-check \
74 || die
75
76 ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
77 }
78
79 src_install()
80 {
81 cd ${SRCDIR}
82 mmake -j1 DESTDIR=${BINDIR} install || die
83
84 # only keep the subversion client
85 # no server, dev-so-libs, headers and docs
86 zapmost ${BINDIR} \
87 usr/bin/svn \
88 usr/$(mlibdir)/libsvn_*.so.* \
89 usr/share/man/man1/svn.1* \
90 || die
91 }