Contents of /smage/trunk/core/subversion/subversion-1.8.8-r1.smage2
Parent Directory | Revision Log
Revision 5542 -
(show annotations)
(download)
Thu Mar 27 15:41:27 2014 UTC (10 years, 2 months ago) by niro
File size: 1947 byte(s)
Thu Mar 27 15:41:27 2014 UTC (10 years, 2 months ago) by niro
File size: 1947 byte(s)
auto added: ver bump to 1.8.8-r1
1 | # $Id$ |
2 | |
3 | PNAME="subversion" |
4 | PVER="1.8.8" |
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-6.0 |
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 | ) |
32 | |
33 | UP2DATE="updatecmd http://apache.org/dist/subversion/ | lasttarball" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # install perl modules to vendor dir |
41 | mpatch ${PNAME}-1.4.3-perl-vendor.patch || die |
42 | |
43 | # fixes compilation with newer apr |
44 | mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die |
45 | |
46 | # autoreconf --verbose --install --force || die |
47 | # run autogen instead of autoreconf to copy newer libtool macros |
48 | sh autogen.sh || die |
49 | |
50 | # fix libtool issues |
51 | mlibtoolize || die |
52 | } |
53 | |
54 | src_compile() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | mconfigure \ |
59 | --with-apr=/usr/bin/apr-1-config \ |
60 | --with-apr-util=/usr/bin/apu-1-config \ |
61 | --with-berkeley-db \ |
62 | --enable-bdb6 \ |
63 | --disable-nls \ |
64 | --disable-experimental-libtool \ |
65 | --without-swig \ |
66 | --without-apxs \ |
67 | --disable-mod-activation \ |
68 | --disable-static \ |
69 | || die |
70 | |
71 | # no external all target in >= 1.8 |
72 | #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die |
73 | make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all || die |
74 | } |
75 | |
76 | src_install() |
77 | { |
78 | cd ${SRCDIR} |
79 | mmake -j1 DESTDIR=${BINDIR} install || die |
80 | |
81 | # only keep the subversion client |
82 | # no server, dev-so-libs, headers and docs |
83 | zapmost ${BINDIR} \ |
84 | usr/bin/svn \ |
85 | usr/$(mlibdir)/libsvn_*.so.* \ |
86 | usr/share/man/man1/svn.1* \ |
87 | || die |
88 | } |