1 |
arfrever 11/02/23 17:01:45 |
2 |
|
3 |
Modified: ChangeLog esearch-0.7.1-r8.ebuild |
4 |
Log: |
5 |
Use python_mod_optimize() and python_mod_cleanup() (bug #311773). |
6 |
|
7 |
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.62 app-portage/esearch/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/ChangeLog?rev=1.62&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/ChangeLog?rev=1.62&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/ChangeLog?r1=1.61&r2=1.62 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-portage/esearch/ChangeLog,v |
19 |
retrieving revision 1.61 |
20 |
retrieving revision 1.62 |
21 |
diff -u -r1.61 -r1.62 |
22 |
--- ChangeLog 23 Feb 2011 16:42:34 -0000 1.61 |
23 |
+++ ChangeLog 23 Feb 2011 17:01:42 -0000 1.62 |
24 |
@@ -1,6 +1,10 @@ |
25 |
# ChangeLog for app-portage/esearch |
26 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/ChangeLog,v 1.61 2011/02/23 16:42:34 zmedico Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/ChangeLog,v 1.62 2011/02/23 17:01:42 arfrever Exp $ |
29 |
+ |
30 |
+ 23 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
31 |
+ esearch-0.7.1-r8.ebuild: |
32 |
+ Use python_mod_optimize() and python_mod_cleanup() (bug #311773). |
33 |
|
34 |
*esearch-0.7.1-r8 (23 Feb 2011) |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
1.2 app-portage/esearch/esearch-0.7.1-r8.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/esearch-0.7.1-r8.ebuild?rev=1.2&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/esearch-0.7.1-r8.ebuild?rev=1.2&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/esearch-0.7.1-r8.ebuild?r1=1.1&r2=1.2 |
44 |
|
45 |
Index: esearch-0.7.1-r8.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-0.7.1-r8.ebuild,v |
48 |
retrieving revision 1.1 |
49 |
retrieving revision 1.2 |
50 |
diff -u -r1.1 -r1.2 |
51 |
--- esearch-0.7.1-r8.ebuild 23 Feb 2011 16:42:34 -0000 1.1 |
52 |
+++ esearch-0.7.1-r8.ebuild 23 Feb 2011 17:01:42 -0000 1.2 |
53 |
@@ -1,12 +1,12 @@ |
54 |
# Copyright 1999-2011 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-0.7.1-r8.ebuild,v 1.1 2011/02/23 16:42:34 zmedico Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-0.7.1-r8.ebuild,v 1.2 2011/02/23 17:01:42 arfrever Exp $ |
58 |
|
59 |
EAPI=3 |
60 |
PYTHON_DEPEND=2:2.4 |
61 |
PYTHON_USE_WITH=readline |
62 |
|
63 |
-inherit base eutils python |
64 |
+inherit base eutils multilib python |
65 |
|
66 |
DESCRIPTION="Replacement for 'emerge --search' with search-index" |
67 |
HOMEPAGE="http://david-peter.de/esearch.html" |
68 |
@@ -29,17 +29,22 @@ |
69 |
"${FILESDIR}"/186994-esync-quiet.patch |
70 |
"${FILESDIR}"/146555-esearch-manifest2.patch ) |
71 |
|
72 |
+pkg_setup() { |
73 |
+ python_set_active_version 2 |
74 |
+ python_pkg_setup |
75 |
+} |
76 |
+ |
77 |
src_compile() { :; } |
78 |
|
79 |
src_install() { |
80 |
dodir /usr/bin/ /usr/sbin/ || die "dodir failed" |
81 |
|
82 |
- exeinto /usr/lib/esearch |
83 |
+ exeinto /usr/$(get_libdir)/esearch |
84 |
doexe eupdatedb.py esearch.py esync.py common.py || die "doexe failed" |
85 |
|
86 |
- dosym /usr/lib/esearch/esearch.py /usr/bin/esearch || die "dosym failed" |
87 |
- dosym /usr/lib/esearch/eupdatedb.py /usr/sbin/eupdatedb || die "dosym failed" |
88 |
- dosym /usr/lib/esearch/esync.py /usr/sbin/esync || die "dosym failed" |
89 |
+ dosym /usr/$(get_libdir)/esearch/esearch.py /usr/bin/esearch || die "dosym failed" |
90 |
+ dosym /usr/$(get_libdir)/esearch/eupdatedb.py /usr/sbin/eupdatedb || die "dosym failed" |
91 |
+ dosym /usr/$(get_libdir)/esearch/esync.py /usr/sbin/esync || die "dosym failed" |
92 |
|
93 |
doman en/{esearch,eupdatedb,esync}.1 || die "doman failed" |
94 |
dodoc ChangeLog "${FILESDIR}/eupdatedb.cron" || die "dodoc failed" |
95 |
@@ -51,3 +56,11 @@ |
96 |
|
97 |
python_convert_shebangs -r 2 "${D}" |
98 |
} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ python_mod_optimize /usr/$(get_libdir)/esearch |
102 |
+} |
103 |
+ |
104 |
+pkg_postrm() { |
105 |
+ python_mod_cleanup /usr/$(get_libdir)/esearch |
106 |
+} |