1 |
arfrever 10/04/29 17:16:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xapian-bindings-1.0.20.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: HEAD/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.15 dev-libs/xapian-bindings/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.15&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.15&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?r1=1.14&r2=1.15 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v |
19 |
retrieving revision 1.14 |
20 |
retrieving revision 1.15 |
21 |
diff -u -r1.14 -r1.15 |
22 |
--- ChangeLog 23 Apr 2010 19:13:52 -0000 1.14 |
23 |
+++ ChangeLog 29 Apr 2010 17:16:03 -0000 1.15 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-libs/xapian-bindings |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.14 2010/04/23 19:13:52 arfrever Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.15 2010/04/29 17:16:03 arfrever Exp $ |
29 |
+ |
30 |
+*xapian-bindings-1.0.20 (29 Apr 2010) |
31 |
+ |
32 |
+ 29 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
33 |
+ +xapian-bindings-1.0.20.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*xapian-bindings-1.0.19 (23 Apr 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-libs/xapian-bindings/xapian-bindings-1.0.20.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.0.20.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.0.20.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: xapian-bindings-1.0.20.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.0.20.ebuild,v 1.1 2010/04/29 17:16:03 arfrever Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
PYTHON_DEPEND="python? 2" |
54 |
PYTHON_USE_WITH="threads" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
|
57 |
inherit java-pkg-opt-2 mono python |
58 |
|
59 |
DESCRIPTION="SWIG and JNI bindings for Xapian" |
60 |
HOMEPAGE="http://www.xapian.org/" |
61 |
SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.gz" |
62 |
|
63 |
SLOT="0" |
64 |
LICENSE="GPL-2" |
65 |
KEYWORDS="~amd64 ~ppc ~x86" |
66 |
IUSE="java mono php python ruby tcl" |
67 |
|
68 |
COMMONDEPEND="=dev-libs/xapian-${PV} |
69 |
mono? ( >=dev-lang/mono-1.0.8 ) |
70 |
php? ( >=dev-lang/php-4 ) |
71 |
ruby? ( dev-lang/ruby ) |
72 |
tcl? ( >=dev-lang/tcl-8.1 )" |
73 |
DEPEND="${COMMONDEPEND} |
74 |
python? ( >=dev-lang/swig-1.3.29-r1 ) |
75 |
java? ( >=virtual/jdk-1.3 )" |
76 |
RDEPEND="${COMMONDEPEND} |
77 |
java? ( >=virtual/jre-1.3 )" |
78 |
RESTRICT_PYTHON_ABIS="3.*" |
79 |
|
80 |
pkg_setup() { |
81 |
if use python; then |
82 |
python_pkg_setup |
83 |
fi |
84 |
} |
85 |
|
86 |
src_prepare() { |
87 |
sed \ |
88 |
-e 's:\(^pylib_DATA = xapian.py\).*:\1:' \ |
89 |
-e 's|\(^xapian.py: modern/xapian.py\)|\1 _xapian$(PYTHON_SO)|' \ |
90 |
-i python/Makefile.{am,in} || die "sed failed" |
91 |
} |
92 |
|
93 |
src_configure() { |
94 |
if use java; then |
95 |
CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
96 |
fi |
97 |
econf \ |
98 |
$(use_with java) \ |
99 |
$(use_with mono csharp) \ |
100 |
$(use_with php) \ |
101 |
$(use_with python) \ |
102 |
$(use_with ruby) \ |
103 |
$(use_with tcl) |
104 |
|
105 |
# Python bindings are built/tested/installed manually. |
106 |
sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile" |
107 |
} |
108 |
|
109 |
src_compile() { |
110 |
default |
111 |
|
112 |
if use python; then |
113 |
python_copy_sources python |
114 |
building() { |
115 |
emake \ |
116 |
PYTHON="$(PYTHON)" \ |
117 |
PYTHON_INC="$(python_get_includedir)" \ |
118 |
PYTHON_LIB="$(python_get_libdir)" \ |
119 |
pylibdir="$(python_get_sitedir)" |
120 |
} |
121 |
python_execute_function -s --source-dir python building |
122 |
fi |
123 |
} |
124 |
|
125 |
src_test() { |
126 |
default |
127 |
|
128 |
if use python; then |
129 |
testing() { |
130 |
emake \ |
131 |
PYTHON="$(PYTHON)" \ |
132 |
PYTHON_INC="$(python_get_includedir)" \ |
133 |
PYTHON_LIB="$(python_get_libdir)" \ |
134 |
pylibdir="$(python_get_sitedir)" \ |
135 |
check |
136 |
} |
137 |
python_execute_function -s --source-dir python testing |
138 |
fi |
139 |
} |
140 |
|
141 |
src_install () { |
142 |
emake DESTDIR="${D}" install || die "emake install failed" |
143 |
|
144 |
if use java; then |
145 |
java-pkg_dojar java/built/xapian_jni.jar |
146 |
# TODO: make the build system not install this... |
147 |
java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so" |
148 |
rm "${D}/${S}/java/built/libxapian_jni.so" |
149 |
rmdir -p "${D}/${S}/java/built" |
150 |
rmdir -p "${D}/${S}/java/native" |
151 |
fi |
152 |
|
153 |
if use python; then |
154 |
installation() { |
155 |
emake \ |
156 |
DESTDIR="${D}" \ |
157 |
PYTHON="$(PYTHON)" \ |
158 |
PYTHON_INC="$(python_get_includedir)" \ |
159 |
PYTHON_LIB="$(python_get_libdir)" \ |
160 |
pylibdir="$(python_get_sitedir)" \ |
161 |
install |
162 |
} |
163 |
python_execute_function -s --source-dir python installation |
164 |
fi |
165 |
|
166 |
# For some USE combos this directory is not created |
167 |
if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
168 |
mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" |
169 |
fi |
170 |
|
171 |
dodoc AUTHORS HACKING NEWS TODO README || die "dodoc failed" |
172 |
} |
173 |
|
174 |
pkg_postinst() { |
175 |
if use python; then |
176 |
python_mod_optimize xapian.py |
177 |
fi |
178 |
} |
179 |
|
180 |
pkg_postrm() { |
181 |
if use python; then |
182 |
python_mod_cleanup xapian.py |
183 |
fi |
184 |
} |