Magellan Linux

Annotation of /smage/trunk/core/subversion/subversion-1.14.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14290 - (hide annotations) (download)
Tue Jul 7 19:42:12 2020 UTC (3 years, 10 months ago) by niro
File size: 2235 byte(s)
auto added: ver bump to 1.14.0-r1
1 niro 14290 # $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     || die
82    
83     # no external all target in >= 1.8
84     #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
85     make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all || die
86     }
87    
88     src_install()
89     {
90     cd ${SRCDIR}
91     mmake -j1 DESTDIR=${BINDIR} install || die
92    
93     # only keep the subversion client
94     # no server, dev-so-libs, headers and docs
95     zapmost ${BINDIR} \
96     usr/bin/svn \
97     usr/$(mlibdir)/libsvn_*.so.* \
98     usr/share/man/man1/svn.1* \
99     || die
100     }