Magellan Linux

Annotation of /branches/magellan-next/core/subversion/subversion-1.6.17-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8688 - (hide annotations) (download)
Wed Jul 27 19:09:49 2011 UTC (12 years, 10 months ago) by niro
File size: 4039 byte(s)
-fixed UP2DATE
1 niro 8687 # $Id$
2    
3     PNAME="subversion"
4     PVER="1.6.17"
5     PBUILD="r1"
6    
7     PCATEGORIE="dev-util"
8    
9     DESCRIPTION="subversion - a version control system meant to replace cvs."
10     HOMEPAGE="http://subversion.apache.org/"
11    
12     # common deps
13     SDEPEND=">= virtual/glibc
14     >= dev-libs/expat-2
15     >= dev-libs/libxml2-2.7
16     >= dev-libs/openssl-1.0.0
17     >= dev-libs/cyrus-sasl-2.1
18     >= net-misc/neon-0.29.6
19     >= sys-libs/zlib-1.2.5
20     >= dev-libs/apr-util-1.3
21     >= dev-db/db-5.1
22     >= dev-db/sqlite-3.7"
23    
24     # split/src deps only
25     SDEPEND="${SDEPEND}
26     >= dev-lang/swig-2
27     >= dev-lang/python-2.7
28     >= dev-lang/perl-5.12
29     >= dev-lang/ruby-1.9"
30    
31     SRCFILE="${PNAME}-${PVER}.tar.bz2"
32     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
33    
34     SPLIT_PACKAGES="subversion subversion-perl subversion-python subversion-ruby"
35    
36     # include perl as last to have the right postinstall etc
37     sminclude mtools python perl
38    
39     SRC_URI=(
40     http://subversion.tigris.org/downloads/${SRCFILE}
41     mirror://${PNAME}/${SRCFILE}
42     mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch
43     mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch
44     mirror://${PNAME}/${PNAME}-1.6.13-db50.patch
45     )
46    
47 niro 8688 UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep 'best.*version' | sed 's:.*\: \[.*\]\(.*.\):\1:'"
48 niro 8687
49     split_info_subversion()
50     {
51     DESCRIPTION="subversion - a version control system meant to replace cvs."
52     DEPEND=">= virtual/glibc
53     >= dev-libs/expat-2
54     >= dev-libs/libxml2-2.7
55     >= dev-libs/openssl-1.0.0
56     >= dev-libs/cyrus-sasl-2.1
57     >= net-misc/neon-0.29.4
58     >= sys-libs/zlib-1.2.5
59     >= dev-libs/apr-util-1
60     >= dev-db/db-5.1
61     >= dev-db/sqlite-3.7"
62     }
63    
64     split_info_subversion-perl()
65     {
66     DESCRIPTION="subversion bindings for perl."
67     DEPEND="== dev-util/subversion-${PVER}
68     >= dev-lang/perl-5.12"
69     }
70    
71     split_info_subversion-python()
72     {
73     DESCRIPTION="subversion bindings for python."
74     DEPEND="== dev-util/subversion-${PVER}
75     >= dev-lang/python-2.7"
76     }
77    
78     split_info_subversion-ruby()
79     {
80     DESCRIPTION="subversion bindings for ruby."
81     DEPEND="== dev-util/subversion-${PVER}
82     >= dev-lang/ruby-1.9"
83     }
84    
85     src_prepare()
86     {
87     munpack ${SRCFILE} || die
88     cd ${SRCDIR}
89    
90     # install perl modules to vendor dir
91     mpatch ${PNAME}-1.4.3-perl-vendor.patch || die
92    
93     # fixes compilation with newer apr
94     mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die
95    
96     # support db-5.1
97     mpatch ${PNAME}-1.6.13-db50.patch || die
98    
99     # autoreconf --verbose --install --force || die
100     # run autogen instead of autoreconf to copy newer libtool macros
101     sh autogen.sh || die
102    
103     # fix libtool issues
104     libtoolize --verbose --copy --install --force || die
105     }
106    
107     src_compile()
108     {
109     cd ${SRCDIR}
110    
111     mconfigure \
112     --with-apr=/usr/bin/apr-1-config \
113     --with-apr-util=/usr/bin/apu-1-config \
114     --with-berkeley-db \
115     --enable-nls \
116     --disable-experimental-libtool \
117     --with-swig \
118     --with-neon \
119     --without-apxs \
120     --disable-mod-activation \
121     --disable-static \
122     --disable-neon-version-check \
123     || die
124    
125     ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die
126    
127     # perl bindings
128     mmake swig-pl || die
129     # python bindings
130     mmake swig-py || die
131     # ruby bindings
132     mmake swig-rb || die
133     }
134    
135     src_install_subversion()
136     {
137     cd ${SRCDIR}
138     mmake -j1 DESTDIR=${BINDIR} install || die
139    
140     # debian installs these as well
141     minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die
142     minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die
143     }
144    
145     src_instal_subversion-perl()
146     {
147     cd ${SRCDIR}
148    
149     # install perl bindings
150     mmake DESTDIR=${BINDIR} install-swig-pl || die
151     # install pods to /usr/share
152     fixlocalpod || die
153     }
154    
155     src_install_subversion-python()
156     {
157     cd ${SRCDIR}
158    
159     # install python bindings
160     mmake DESTDIR=${BINDIR} install-swig-py || die
161     # move python-bindings to a proper place
162     minstalldir $(get_python_libdir) || die
163     mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(get_python_libdir) || die
164     mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(get_python_libdir) || die
165     rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die
166     }
167    
168     src_install_subversion-ruby()
169     {
170     cd ${SRCDIR}
171    
172     # install ruby bindings
173     mmake DESTDIR=${BINDIR} install-swig-rb || die
174     }