Gentoo Archives: gentoo-commits

From: "Joe Sapp (nixphoeni)" <nixphoeni@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/gdesklets-core: ChangeLog gdesklets-core-0.36-r1.ebuild
Date: Fri, 30 May 2008 23:25:14
Message-Id: E1K2Dy8-0002S7-DE@stork.gentoo.org
1 nixphoeni 08/05/30 23:25:08
2
3 Modified: ChangeLog gdesklets-core-0.36-r1.ebuild
4 Log:
5 Generate .py[co] files at pkg_postinst (bug #215538)
6 (Portage version: 2.1.5.2)
7
8 Revision Changes Path
9 1.88 gnome-extra/gdesklets-core/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gdesklets-core/ChangeLog?rev=1.88&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gdesklets-core/ChangeLog?rev=1.88&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gdesklets-core/ChangeLog?r1=1.87&r2=1.88
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/ChangeLog,v
18 retrieving revision 1.87
19 retrieving revision 1.88
20 diff -u -r1.87 -r1.88
21 --- ChangeLog 22 Apr 2008 02:32:54 -0000 1.87
22 +++ ChangeLog 30 May 2008 23:25:07 -0000 1.88
23 @@ -1,6 +1,11 @@
24 # ChangeLog for gnome-extra/gdesklets-core
25 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/ChangeLog,v 1.87 2008/04/22 02:32:54 nixphoeni Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/ChangeLog,v 1.88 2008/05/30 23:25:07 nixphoeni Exp $
28 +
29 + 30 May 2008; Joe Sapp <nixphoeni@g.o>
30 + gdesklets-core-0.36-r1.ebuild:
31 + Generate .py[co] files at pkg_postinst so they're compiled for the target
32 + machine. See bug #215538 (thanks eva).
33
34 22 Apr 2008; Joe Sapp <nixphoeni@g.o>
35 +files/gdesklets-core-0.36_beta-linguas.patch:
36
37
38
39 1.2 gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild?r1=1.1&r2=1.2
44
45 Index: gdesklets-core-0.36-r1.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- gdesklets-core-0.36-r1.ebuild 20 Apr 2008 05:08:54 -0000 1.1
52 +++ gdesklets-core-0.36-r1.ebuild 30 May 2008 23:25:07 -0000 1.2
53 @@ -1,9 +1,9 @@
54 # Copyright 1999-2008 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild,v 1.1 2008/04/20 05:08:54 nixphoeni Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36-r1.ebuild,v 1.2 2008/05/30 23:25:07 nixphoeni Exp $
58
59 # We want the latest autoconf and automake (the default)
60 -inherit gnome2 eutils autotools multilib
61 +inherit gnome2 python eutils autotools multilib
62
63 MY_PN="gdesklets"
64 MY_P="${MY_PN}-${PV/_/}"
65 @@ -46,6 +46,10 @@
66
67 gnome2_src_unpack
68
69 + # Postpone pyc compiling until pkg_postinst
70 + mv py-compile py-compile.orig
71 + ln -s $(type -P true) py-compile
72 +
73 # Use po/LINGUAS - see gnome bug #506828
74 epatch "${FILESDIR}/${PN}-0.36_beta-linguas.patch"
75
76 @@ -73,16 +77,22 @@
77
78 gnome2_pkg_postinst
79
80 + # Compile pyc files on target system
81 + python_mod_optimize "${ROOT}"/usr/$(get_libdir)/gdesklets
82 +
83 echo
84 elog "gDesklets Displays are required before the library"
85 - elog "will be usable. The displays are found in -"
86 + elog "will be usable. Core displays (Calendar, Clock, Quote-of-the-Day,"
87 + elog "and the 15pieces game) are already installed in"
88 + elog " ${ROOT}usr/$(get_libdir)/gdesklets/Displays"
89 + elog "Additional displays can be found in -"
90 elog " x11-plugins/desklet-* ,"
91 elog "at http://www.gdesklets.de, or at http://gdesklets.zencomputer.ca"
92 elog
93 elog "Next you'll need to start gdesklets using"
94 elog " ${ROOT}usr/bin/gdesklets start"
95 - elog "If you're using GNOME this can be done conveniently"
96 - elog "through Applications->Accessories->gDesklets"
97 + elog "If you're using GNOME this can be done conveniently through"
98 + elog "Applications->Accessories->gDesklets"
99 elog
100 elog "If you're updating from a version less than 0.35_rc1,"
101 elog "you can migrate your desklet configurations by"
102 @@ -96,3 +106,12 @@
103 epause 9
104
105 }
106 +
107 +pkg_postrm() {
108 +
109 + gnome2_pkg_postrm
110 + # Cleanup after our cavalier python compilation
111 + # The function takes care of ${ROOT} for us
112 + python_mod_cleanup /usr/$(get_libdir)/gdesklets
113 +
114 +}
115
116
117
118 --
119 gentoo-commits@l.g.o mailing list