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