Magellan Linux

Contents of /smage/branches/alx07x-stable/core/subversion/subversion-1.14.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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