1 |
commit: 5f1d9cc9c9bdc2b04223d85cc5e47de3d39ad0a2 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 28 02:46:58 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jun 28 03:25:40 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=5f1d9cc9 |
7 |
|
8 |
gnome-base/gnome-desktop: install pnp.ids file |
9 |
|
10 |
A number of Gnome 3.1 packages require the pnp.ids file that on Gentoo |
11 |
is provided by gnome-desktop; ensure that it is installed correctly by |
12 |
*not* using --with-pnp-ids-path configure argument (if it's set to |
13 |
anything, pnp.ids will not be installed). |
14 |
|
15 |
Since the set of installed files changed, bump the revision. |
16 |
|
17 |
Also, update the live ebuild with changes from 3.0.x, update the |
18 |
intltool dependency, and get the pnp.ids file from Fedora's hwdata git |
19 |
(requiring an additional call to git-2_src_unpack), because the file is |
20 |
only included in the gnome-desktop tarballs, not in gnome-desktop git. |
21 |
|
22 |
--- |
23 |
...-3.0.2.ebuild => gnome-desktop-3.0.2-r1.ebuild} | 28 ++++++++++- |
24 |
gnome-base/gnome-desktop/gnome-desktop-9999.ebuild | 51 +++++++++++++++----- |
25 |
2 files changed, 64 insertions(+), 15 deletions(-) |
26 |
|
27 |
diff --git a/gnome-base/gnome-desktop/gnome-desktop-3.0.2.ebuild b/gnome-base/gnome-desktop/gnome-desktop-3.0.2-r1.ebuild |
28 |
similarity index 66% |
29 |
rename from gnome-base/gnome-desktop/gnome-desktop-3.0.2.ebuild |
30 |
rename to gnome-base/gnome-desktop/gnome-desktop-3.0.2-r1.ebuild |
31 |
index 3e0de57..22cf74e 100644 |
32 |
--- a/gnome-base/gnome-desktop/gnome-desktop-3.0.2.ebuild |
33 |
+++ b/gnome-base/gnome-desktop/gnome-desktop-3.0.2-r1.ebuild |
34 |
@@ -8,7 +8,7 @@ GNOME2_LA_PUNT="yes" |
35 |
|
36 |
inherit gnome2 |
37 |
if [[ ${PV} = 9999 ]]; then |
38 |
- inherit gnome2-live |
39 |
+ inherit git-2 gnome2-live |
40 |
fi |
41 |
|
42 |
DESCRIPTION="Libraries for the gnome desktop that are not part of the UI" |
43 |
@@ -51,11 +51,35 @@ DEPEND="${RDEPEND} |
44 |
|
45 |
pkg_setup() { |
46 |
DOCS="AUTHORS ChangeLog HACKING NEWS README" |
47 |
+ # Note: do *not* use "--with-pnp-ids-path" argument. Otherwise, the pnp.ids |
48 |
+ # file (needed by other packages such as >=gnome-settings-daemon-3.1.2) |
49 |
+ # will not get installed in ${pnpdatadir} (/usr/share/libgnome-desktop-3.0). |
50 |
G2CONF="${G2CONF} |
51 |
--disable-scrollkeeper |
52 |
--disable-static |
53 |
- --with-pnp-ids-path=internal |
54 |
--with-gnome-distributor=Gentoo |
55 |
$(use_enable doc desktop-docs) |
56 |
$(use_enable introspection)" |
57 |
} |
58 |
+ |
59 |
+src_unpack() { |
60 |
+ gnome2_src_unpack |
61 |
+ |
62 |
+ if [[ ${PV} = 9999 ]]; then |
63 |
+ # pnp.ids are only provided with the gnome-desktop tarball; |
64 |
+ # for the live version, we have to get them from hwdata git |
65 |
+ unset gnome_desktop_LIVE_BRANCH |
66 |
+ unset gnome_destkop_LIVE_COMMIT |
67 |
+ unset gnome_desktop_LIVE_REPO |
68 |
+ unset EGIT_BRANCH |
69 |
+ unset EGIT_COMMIT |
70 |
+ unset EGIT_DIR |
71 |
+ unset EGIT_MASTER |
72 |
+ EGIT_PROJECT="gnome-desktop_hwdata" |
73 |
+ EGIT_REPO_URI="git://git.fedorahosted.org/hwdata.git" |
74 |
+ EGIT_SOURCEDIR="${WORKDIR}/hwdata" |
75 |
+ git-2_src_unpack |
76 |
+ ln -sf "${WORKDIR}/hwdata/pnp.ids" "${S}/libgnome-desktop/" || |
77 |
+ die "ln -sf failed" |
78 |
+ fi |
79 |
+} |
80 |
|
81 |
diff --git a/gnome-base/gnome-desktop/gnome-desktop-9999.ebuild b/gnome-base/gnome-desktop/gnome-desktop-9999.ebuild |
82 |
index 89c74f4..07e3051 100644 |
83 |
--- a/gnome-base/gnome-desktop/gnome-desktop-9999.ebuild |
84 |
+++ b/gnome-base/gnome-desktop/gnome-desktop-9999.ebuild |
85 |
@@ -2,12 +2,13 @@ |
86 |
# Distributed under the terms of the GNU General Public License v2 |
87 |
# $Header: $ |
88 |
|
89 |
-EAPI="2" |
90 |
+EAPI="3" |
91 |
+GCONF_DEBUG="yes" |
92 |
GNOME2_LA_PUNT="yes" |
93 |
|
94 |
inherit gnome2 |
95 |
if [[ ${PV} = 9999 ]]; then |
96 |
- inherit gnome2-live |
97 |
+ inherit git-2 gnome2-live |
98 |
fi |
99 |
|
100 |
DESCRIPTION="Libraries for the gnome desktop that are not part of the UI" |
101 |
@@ -23,6 +24,7 @@ else |
102 |
fi |
103 |
|
104 |
# TODO: Add RDEPEND on pciutils (requires support for reading gzipped pnp.ids) |
105 |
+# Latest schemas needed due to commit 7f3e3d52 |
106 |
RDEPEND=" |
107 |
>=dev-libs/glib-2.19.1:2 |
108 |
>=x11-libs/gdk-pixbuf-2.21.3:2[introspection?] |
109 |
@@ -30,31 +32,54 @@ RDEPEND=" |
110 |
>=x11-libs/libXrandr-1.2 |
111 |
>=x11-libs/startup-notification-0.5 |
112 |
x11-libs/libX11 |
113 |
- >=gnome-base/gsettings-desktop-schemas-0.1.4 |
114 |
+ >=gnome-base/gsettings-desktop-schemas-2.91.92 |
115 |
doc? ( !<gnome-base/gnome-desktop-2.32.1-r50:2[doc] ) |
116 |
introspection? ( >=dev-libs/gobject-introspection-0.9.7 )" |
117 |
DEPEND="${RDEPEND} |
118 |
- sys-devel/gettext |
119 |
- >=dev-util/intltool-0.40 |
120 |
- >=dev-util/pkgconfig-0.9 |
121 |
- >=app-text/gnome-doc-utils-0.3.2 |
122 |
- doc? ( >=dev-util/gtk-doc-1.4 ) |
123 |
~app-text/docbook-xml-dtd-4.1.2 |
124 |
+ >=app-text/gnome-doc-utils-0.3.2 |
125 |
+ >=dev-util/intltool-0.40.6 |
126 |
+ >=dev-util/pkgconfig-0.9 |
127 |
+ sys-devel/gettext |
128 |
x11-proto/xproto |
129 |
- >=x11-proto/randrproto-1.2" |
130 |
+ >=x11-proto/randrproto-1.2 |
131 |
+ doc? ( >=dev-util/gtk-doc-1.4 )" |
132 |
|
133 |
# Includes X11/Xatom.h in libgnome-desktop/gnome-bg.c which comes from xproto |
134 |
# Includes X11/extensions/Xrandr.h that includes randr.h from randrproto (and |
135 |
# eventually libXrandr shouldn't RDEPEND on randrproto) |
136 |
|
137 |
-DOCS="AUTHORS ChangeLog HACKING NEWS README" |
138 |
- |
139 |
pkg_setup() { |
140 |
+ DOCS="AUTHORS ChangeLog HACKING NEWS README" |
141 |
+ # Note: do *not* use "--with-pnp-ids-path" argument. Otherwise, the pnp.ids |
142 |
+ # file (needed by other packages such as >=gnome-settings-daemon-3.1.2) |
143 |
+ # will not get installed in ${pnpdatadir} (/usr/share/libgnome-desktop-3.0). |
144 |
G2CONF="${G2CONF} |
145 |
--disable-scrollkeeper |
146 |
--disable-static |
147 |
- --disable-desktop-docs |
148 |
- --with-pnp-ids-path=/usr/share/libgnome-desktop/pnp.ids |
149 |
--with-gnome-distributor=Gentoo |
150 |
+ $(use_enable doc desktop-docs) |
151 |
$(use_enable introspection)" |
152 |
} |
153 |
+ |
154 |
+src_unpack() { |
155 |
+ gnome2_src_unpack |
156 |
+ |
157 |
+ if [[ ${PV} = 9999 ]]; then |
158 |
+ # pnp.ids are only provided with the gnome-desktop tarball; |
159 |
+ # for the live version, we have to get them from hwdata git |
160 |
+ unset gnome_desktop_LIVE_BRANCH |
161 |
+ unset gnome_destkop_LIVE_COMMIT |
162 |
+ unset gnome_desktop_LIVE_REPO |
163 |
+ unset EGIT_BRANCH |
164 |
+ unset EGIT_COMMIT |
165 |
+ unset EGIT_DIR |
166 |
+ unset EGIT_MASTER |
167 |
+ EGIT_PROJECT="gnome-desktop_hwdata" |
168 |
+ EGIT_REPO_URI="git://git.fedorahosted.org/hwdata.git" |
169 |
+ EGIT_SOURCEDIR="${WORKDIR}/hwdata" |
170 |
+ git-2_src_unpack |
171 |
+ ln -sf "${WORKDIR}/hwdata/pnp.ids" "${S}/libgnome-desktop/" || |
172 |
+ die "ln -sf failed" |
173 |
+ fi |
174 |
+} |