Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6229 - (show annotations) (download)
Wed Mar 25 15:07:32 2015 UTC (9 years, 2 months ago) by niro
File size: 2078 byte(s)
auto added: ver bump to 1.8.11-r1
1 # $Id$
2
3 PNAME="subversion"
4 PVER="1.8.11"
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.9
15 >= sys-libs/zlib-1.2.8
16 >= dev-libs/apr-util-1.5
17 >= dev-db/db-6.1
18 >= dev-db/sqlite-3.8"
19
20 SDEPEND=">= dev-libs/expat-dev-2
21 >= dev-libs/libxml2-dev-2.9
22 >= sys-libs/zlib-dev-1.2.8
23 >= dev-db/db-dev-6.1"
24
25 SRCFILE="${PNAME}-${PVER}.tar.bz2"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 sminclude cleanutils
29
30 SRC_URI=(
31 http://apache.org/dist/${PNAME}/${SRCFILE}
32 http://archive.apache.org/dist/${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
35 mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
36 )
37
38 UP2DATE="updatecmd 'http://apache.org/dist/subversion/?C=N;O=A' | highesttarball"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} || die
43 cd ${SRCDIR}
44
45 # install perl modules to vendor dir
46 mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
47
48 # fixes compilation with newer apr
49 mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
50
51 # fix libtool issues
52 mlibtoolize || die
53
54 # run autogen instead of mautoreconf to copy newer libtool macros
55 sh autogen.sh || die
56
57 }
58
59 src_compile()
60 {
61 cd ${SRCDIR}
62
63 mconfigure \
64 --with-apr=/usr/bin/apr-1-config \
65 --with-apr-util=/usr/bin/apu-1-config \
66 --with-berkeley-db \
67 --enable-bdb6 \
68 --disable-nls \
69 --disable-experimental-libtool \
70 --without-swig \
71 --without-apxs \
72 --disable-mod-activation \
73 --disable-static \
74 --without-gnome-keyring \
75 --without-kwallet \
76 || die
77
78 # no external all target in >= 1.8
79 #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
80 make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all || die
81 }
82
83 src_install()
84 {
85 cd ${SRCDIR}
86 mmake -j1 DESTDIR=${BINDIR} install || die
87
88 # only keep the subversion client
89 # no server, dev-so-libs, headers and docs
90 zapmost ${BINDIR} \
91 usr/bin/svn \
92 usr/$(mlibdir)/libsvn_*.so.* \
93 usr/share/man/man1/svn.1* \
94 || die
95 }