Gentoo Archives: gentoo-commits

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