Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/bibus: metadata.xml ChangeLog bibus-1.5.1.ebuild bibus-1.5.2.ebuild
Date: Sat, 28 Apr 2012 09:14:47
Message-Id: 20120428091435.91BDC2004B@flycatcher.gentoo.org
1 jlec 12/04/28 09:14:35
2
3 Modified: metadata.xml ChangeLog bibus-1.5.1.ebuild
4 Added: bibus-1.5.2.ebuild
5 Log:
6 app-text/bibus: Version Bump including detection of libreoffice, #394537 thanks Bjoern Olausson; multi py ABI installation
7
8 (Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 app-text/bibus/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/bibus/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 17 Oct 2006 20:52:06 -0000 1.2
24 +++ metadata.xml 28 Apr 2012 09:14:35 -0000 1.3
25 @@ -1,5 +1,5 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 -<herd>sci</herd>
30 + <herd>sci</herd>
31 </pkgmetadata>
32
33
34
35 1.33 app-text/bibus/ChangeLog
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/ChangeLog?rev=1.33&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/ChangeLog?rev=1.33&content-type=text/plain
39 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/ChangeLog?r1=1.32&r2=1.33
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/app-text/bibus/ChangeLog,v
44 retrieving revision 1.32
45 retrieving revision 1.33
46 diff -u -r1.32 -r1.33
47 --- ChangeLog 7 Jul 2011 07:30:09 -0000 1.32
48 +++ ChangeLog 28 Apr 2012 09:14:35 -0000 1.33
49 @@ -1,6 +1,13 @@
50 # ChangeLog for app-text/bibus
51 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/ChangeLog,v 1.32 2011/07/07 07:30:09 hwoarang Exp $
53 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
54 +# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/ChangeLog,v 1.33 2012/04/28 09:14:35 jlec Exp $
55 +
56 +*bibus-1.5.2 (28 Apr 2012)
57 +
58 + 28 Apr 2012; Justin Lecher <jlec@g.o> bibus-1.5.1.ebuild,
59 + +bibus-1.5.2.ebuild, +files/bibus-1.5.2-install.patch, metadata.xml:
60 + Version Bump including detection of libreoffice, #394537 thanks Bjoern
61 + Olausson; multi py ABI installation
62
63 07 Jul 2011; Markos Chandras <hwoarang@g.o>
64 -files/bibus-1.4.3.1-install.patch:
65
66
67
68 1.9 app-text/bibus/bibus-1.5.1.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/bibus-1.5.1.ebuild?rev=1.9&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/bibus-1.5.1.ebuild?rev=1.9&content-type=text/plain
72 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/bibus-1.5.1.ebuild?r1=1.8&r2=1.9
73
74 Index: bibus-1.5.1.ebuild
75 ===================================================================
76 RCS file: /var/cvsroot/gentoo-x86/app-text/bibus/bibus-1.5.1.ebuild,v
77 retrieving revision 1.8
78 retrieving revision 1.9
79 diff -u -r1.8 -r1.9
80 --- bibus-1.5.1.ebuild 28 Jun 2011 20:02:03 -0000 1.8
81 +++ bibus-1.5.1.ebuild 28 Apr 2012 09:14:35 -0000 1.9
82 @@ -1,6 +1,6 @@
83 -# Copyright 1999-2011 Gentoo Foundation
84 +# Copyright 1999-2012 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 -# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/bibus-1.5.1.ebuild,v 1.8 2011/06/28 20:02:03 ranger Exp $
87 +# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/bibus-1.5.1.ebuild,v 1.9 2012/04/28 09:14:35 jlec Exp $
88
89 EAPI="3"
90 PYTHON_DEPEND="2"
91 @@ -18,16 +18,18 @@
92
93 # Most of this mess is designed to give the choice of sqlite or mysql
94 # but prefer sqlite. We also need to default to sqlite if neither is requested.
95 +# Cannot depend on virtual/ooo
96 # bibus fails to start with app-office/openoffice-bin (bug #288232).
97 -RDEPEND="|| ( app-office/libreoffice app-office/openoffice )
98 +RDEPEND="
99 + || ( app-office/libreoffice app-office/openoffice )
100 =dev-python/wxpython-2.8*
101 dev-python/pysqlite
102 dev-db/sqliteodbc
103 + dev-db/unixODBC
104 mysql? (
105 dev-python/mysql-python
106 dev-db/myodbc
107 - )
108 - dev-db/unixODBC"
109 + )"
110 DEPEND="${RDEPEND}"
111
112 pkg_setup() {
113 @@ -36,9 +38,11 @@
114 }
115
116 src_prepare() {
117 - epatch "${FILESDIR}"/${PN}-1.5.0-install.patch
118 - epatch "${FILESDIR}"/${PN}-1.5.0-pysqlite.patch
119 - sed -e "s:gentoo-python:python$(python_get_version):g" \
120 + epatch \
121 + "${FILESDIR}"/${PN}-1.5.0-install.patch \
122 + "${FILESDIR}"/${PN}-1.5.0-pysqlite.patch
123 + sed \
124 + -e "s:gentoo-python:python$(python_get_version):g" \
125 -i Makefile Setup/Makefile Setup/bibus.cfg Setup/bibus.sh \
126 || die "Failed to adjust python paths"
127
128
129
130
131 1.1 app-text/bibus/bibus-1.5.2.ebuild
132
133 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/bibus-1.5.2.ebuild?rev=1.1&view=markup
134 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/bibus/bibus-1.5.2.ebuild?rev=1.1&content-type=text/plain
135
136 Index: bibus-1.5.2.ebuild
137 ===================================================================
138 # Copyright 1999-2012 Gentoo Foundation
139 # Distributed under the terms of the GNU General Public License v2
140 # $Header: /var/cvsroot/gentoo-x86/app-text/bibus/bibus-1.5.2.ebuild,v 1.1 2012/04/28 09:14:35 jlec Exp $
141
142 EAPI=4
143
144 PYTHON_DEPEND="2"
145 SUPPORT_PYTHON_ABIS="1"
146 RESTRICT_PYTHON_ABIS="3.* *-pypy-*"
147
148 inherit eutils fdo-mime multilib python versionator
149
150 DESCRIPTION="Bibliographic and reference management software, integrates with L/OO.o and MS Word"
151 HOMEPAGE="http://bibus-biblio.sourceforge.net/"
152 SRC_URI="mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz"
153
154 LICENSE="GPL-2"
155 SLOT="0"
156 KEYWORDS="~amd64 ~ppc ~x86"
157 IUSE="mysql"
158
159 # Most of this mess is designed to give the choice of sqlite or mysql
160 # but prefer sqlite. We also need to default to sqlite if neither is requested.
161 # Cannot depend on virtual/ooo
162 # bibus fails to start with app-office/openoffice-bin (bug #288232).
163 RDEPEND="
164 || ( app-office/libreoffice app-office/openoffice )
165 =dev-python/wxpython-2.8*
166 dev-python/pysqlite
167 dev-db/sqliteodbc
168 dev-db/unixODBC
169 mysql? (
170 dev-python/mysql-python
171 dev-db/myodbc
172 )"
173 DEPEND="${RDEPEND}"
174
175 pkg_setup() {
176 python_pkg_setup
177 if [[ -d "/usr/$(get_libdir)/openoffice" ]] ; then
178 OFFICESUITE="/usr/$(get_libdir)/openoffice"
179 else
180 OFFICESUITE="/usr/$(get_libdir)/libreoffice"
181 fi
182 }
183
184 src_prepare() {
185 epatch \
186 "${FILESDIR}"/${P}-install.patch \
187 "${FILESDIR}"/${PN}-1.5.0-pysqlite.patch
188 }
189
190 src_compile() { :; }
191
192 src_install() {
193 einfo "Installing for ${OFFICESUITE}"
194 installation() {
195 emake \
196 DESTDIR="${D}" \
197 prefix="${EPREFIX}/usr" \
198 oopath="${OFFICESUITE}/program" \
199 ooure="${OFFICESUITE}/ure-link/lib" \
200 oobasis="${OFFICESUITE}/program" \
201 sysconfdir="${EPREFIX}/etc" \
202 pythondir="$(python_get_sitedir)" \
203 python=$(PYTHON -a) \
204 install install-doc-en
205 }
206 python_execute_function installation
207 }
208
209 pkg_postinst() {
210 python_mod_optimize bibus
211 fdo-mime_desktop_database_update
212 fdo-mime_mime_database_update
213 }
214
215 pkg_postrm() {
216 python_mod_cleanup bibus
217 fdo-mime_desktop_database_update
218 fdo-mime_mime_database_update
219 }