删除老的liblunar和gnome-panel包,添加新的libluner/libluner-gtk/gnome-panel这3个包

This commit is contained in:
bones7456 committed 2009-09-27 09:10:30 +00:00
1 parent 38d7de4ae4
commit 018da352d8
20 files changed
+494 -425

No files matched your search

Whitespace-only changes.
+4
View File
@@ -0,0 +1,4 @@
DIST liblunar-2.2.1.tar.gz 392257 RMD160 51840e546d5434fb5be6b344150f5645ed6effa3 SHA1 addeedda47058a669217adb3d38231b31861b2f3 SHA256 96fa844d881ec637ad4175d93884e47b7052f1d0d88aab5d9701ee707988ae2e
EBUILD liblunar-2.2.1.ebuild 764 RMD160 4b06aa2bd66ff6e7060d52051ce9b5dc35bc9cb6 SHA1 2fd5cfdfeed9e4c39fa1693be42ff96a298df83a SHA256 b050e059e66a1911029f914ee9caa8a95ccd9875cbbfacae5b475c244941f7f5
MISC ChangeLog 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
MISC metadata.xml 356 RMD160 e6e6d3bc14481eb3cdcdc7caae07cd1b987fc539 SHA1 0148046ddfa637a1308b0672b7cf7d602029e23b SHA256 175b115fa0c1f1f3fd15cc3e4894e39d584f535794b832fafb46da7dfa401528
@@ -1,10 +1,10 @@
# Copyright 1999-2008 Gentoo Foundation
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit gnome2
inherit autotools
DESCRIPTION="Chinese Lunar Translate library"
DESCRIPTION="Chinese Lunar Library"
HOMEPAGE="http://liblunar.googlecode.com"
SRC_URI="http://liblunar.googlecode.com/files/${P}.tar.gz"
@@ -15,10 +15,7 @@ IUSE="doc python"
RDEPEND="${RDEPEND}
doc? ( >=dev-util/gtk-doc-1 )
python? (
>=dev-python/pygobject-2.11.5
>=dev-python/pygtk-2.9.7
)"
python? ( >=dev-python/pygobject-2.11.5 )"
DEPEND="${RDEPEND}
sys-devel/gettext
@@ -28,6 +25,10 @@ DEPEND="${RDEPEND}
DOCS="AUTHORS ChangeLog NEWS README"
pkg_setup() {
G2CONF="$(use_enable python) $(use_enable doc)"
src_compile() {
econf $(use_enable python) $(use_enable doc) || die "compile failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
}
@@ -6,5 +6,6 @@
<email>yetist@gmail.com</email>
<description>maintaining in gentoo china overlay</description>
</maintainer>
<longdescription>a Chinese lunar library.</longdescription>
<longdescription>Chinese Lunar Library</longdescription>
</pkgmetadata>
+134 -2
View File
@@ -1,6 +1,138 @@
# ChangeLog for gnome-base/gnome-panel
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-panel/ChangeLog,v 1.257 2008/08/12 13:54:00 armin76 Exp $
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-panel/ChangeLog,v 1.283 2009/07/09 21:14:07 eva Exp $
*gnome-panel-2.26.3 (09 Jul 2009)
09 Jul 2009; Gilles Dartiguelongue <eva@gentoo.org>
-gnome-panel-2.26.1.ebuild, +gnome-panel-2.26.3.ebuild:
Version bump. Raise dependency of gnome-desktop to 2.26, bug #272225.
Small fixes, notably critical warning (bug #272012), translation updates.
03 Jun 2009; Gilles Dartiguelongue <eva@gentoo.org>
gnome-panel-2.26.2.ebuild:
libtool-2 screws us if we eautomake and micro version of installed
automake is different leading to an unwanted eautoreconf, bug #271652.
28 May 2009; Gilles Dartiguelongue <eva@gentoo.org>
+gnome-panel-2.26.2.ebuild:
Bump to 2.26.2. Small bug fixes and translation updates.
*gnome-panel-2.26.2 (28 May 2009)
28 May 2009; Gilles Dartiguelongue <eva@gentoo.org>
+gnome-panel-2.26.2.ebuild:
Bump to 2.26.2. Small bug fixes and translation updates.
13 May 2009; Daniel Gryniewicz <dang@gentoo.org>
gnome-panel-2.26.1.ebuild:
undo Fix0r bug 269683; turns out it was a misunderstanding
13 May 2009; Nirbheek Chauhan <nirbheek@gentoo.org>
gnome-panel-2.26.1.ebuild:
Fix0r bug 269683 -- x11-libs/cairo[X]
*gnome-panel-2.26.1 (11 May 2009)
11 May 2009; Gilles Dartiguelongue <eva@gentoo.org>
gnome-panel-2.20.3.ebuild, -gnome-panel-2.22.2.ebuild,
-gnome-panel-2.24.3.ebuild, +gnome-panel-2.26.1.ebuild:
New version for GNOME 2.26. Drop libgnome/libgnomeui dependencies. Real
transparency in notification area. Clean up old revisions.
27 Apr 2009; Jeroen Roovers <jer@gentoo.org> gnome-panel-2.24.3-r1:
Stable for HPPA (bug #260063).
27 Apr 2009; Raúl Porcel <armin76@gentoo.org>
gnome-panel-2.24.3-r1.ebuild:
arm stable
12 Apr 2009; Friedrich Oslage <bluebird@gentoo.org>
gnome-panel-2.24.3-r1.ebuild:
Stable on sparc, bug #260063
18 Mar 2009; Raúl Porcel <armin76@gentoo.org>
gnome-panel-2.24.3-r1.ebuild:
alpha/ia64 stable wrt #260063
15 Mar 2009; Markus Meier <maekke@gentoo.org>
gnome-panel-2.24.3-r1.ebuild:
x86 stable, bug #260063
11 Mar 2009; Daniel Gryniewicz <dang@gentoo.org>
gnome-panel-2.24.3-r1.ebuild:
Marked stable on amd64
06 Mar 2009; Brent Baude <ranger@gentoo.org> gnome-panel-2.24.3-r1.ebuild:
Marking gnome-panel-2.24.3-r1 ppc stable for bug 260063
05 Mar 2009; Brent Baude <ranger@gentoo.org> gnome-panel-2.24.3-r1.ebuild:
Marking gnome-panel-2.24.3-r1 ppc64 stable for bug 260063
*gnome-panel-2.24.3-r1 (26 Feb 2009)
26 Feb 2009; Gilles Dartiguelongue <eva@gentoo.org>
-files/gnome-panel-2.24.1-logout.patch.gz,
+files/gnome-panel-2.24.3-shutdown.patch, -gnome-panel-2.24.2-r1.ebuild,
+gnome-panel-2.24.3-r1.ebuild:
Bump to 2.24.3-r1. Add patch to allow shutdown without gdm, #259138.
Clean up old revisions.
05 Feb 2009; Alexis Ballier <aballier@gentoo.org>
+files/gnome-panel-2.24.3-daylight.patch, gnome-panel-2.24.3.ebuild:
Add a patch to build on FreeBSD and rekeyword it; bug #256859
01 Feb 2009; Gilles Dartiguelongue <eva@gentoo.org>
gnome-panel-2.20.3.ebuild, -gnome-panel-2.24.1.ebuild,
-gnome-panel-2.24.1-r1.ebuild, -gnome-panel-2.24.2.ebuild,
gnome-panel-2.24.2-r1.ebuild, gnome-panel-2.24.3.ebuild:
Clean up old revisions. Update libbonobo dependency per bug #254872.
*gnome-panel-2.24.3 (26 Jan 2009)
26 Jan 2009; Gilles Dartiguelongue <eva@gentoo.org>
+gnome-panel-2.24.3.ebuild:
Bump to 2.24.3. Bug fixes and translation updates.
24 Jan 2009; Raúl Porcel <armin76@gentoo.org>
gnome-panel-2.24.2-r1.ebuild:
Add ~arm/~sh
*gnome-panel-2.24.2-r1 (23 Dec 2008)
23 Dec 2008; Gilles Dartiguelongue <eva@gentoo.org>
+gnome-panel-2.24.2-r1.ebuild:
Bump to 2.24.2-r1, fix locale patch, bug #252159.
*gnome-panel-2.24.2 (21 Dec 2008)
21 Dec 2008; Gilles Dartiguelongue <eva@gentoo.org>
+gnome-panel-2.24.2.ebuild:
Bump to 2.24.2. Restored translation of logout dialog and fix bug #249514
and #249847.
24 Nov 2008; Mart Raudsepp <leio@gentoo.org> gnome-panel-2.24.1-r1.ebuild:
Fix tests
*gnome-panel-2.24.1-r1 (16 Nov 2008)
16 Nov 2008; Gilles Dartiguelongue <eva@gentoo.org>
+files/gnome-panel-2.24.1-logout.patch.gz, +gnome-panel-2.24.1-r1.ebuild:
Bump to 2.24.1-r1, add patch to support setup with <gnome-session-2.24,
bug #246170.
13 Nov 2008; Brent Baude <ranger@gentoo.org> gnome-panel-2.22.2.ebuild:
Marking gnome-panel-2.22.2 ppc64 stable for bug 236971
*gnome-panel-2.24.1 (06 Nov 2008)
06 Nov 2008; Gilles Dartiguelongue <eva@gentoo.org>
+gnome-panel-2.24.1.ebuild:
New version for GNOME 2.24. Bug fixes and uses gnome-session D-Bus API for
logout/shutdown (might require gnome-session 2.24).
25 Sep 2008; Jeroen Roovers <jer@gentoo.org> gnome-panel-2.22.2.ebuild:
Stable for HPPA (bug #236971).
12 Aug 2008; Raúl Porcel <armin76@gentoo.org> gnome-panel-2.22.2.ebuild:
alpha/ia64/sparc stable wrt #229709
+9 -5
View File
@@ -1,5 +1,9 @@
AUX lunar.patch 7752 RMD160 c9a1d3c477919c749bdbf7e1651dd25ed21917db SHA1 130c640e6af885955abf72038488e6cd7db2c023 SHA256 acb1402aec8ceab31839147b0b0391dbac199d15ed384bdf6f486656215dca4f
DIST gnome-panel-2.22.2.tar.bz2 3255261 RMD160 64a37f44b9f34f74d30f30aca349749a24c80859 SHA1 73752c3ce6224886c2381b0b13111253008bc6f7 SHA256 e1ecc0ddc5a09481deb2daa1f30fa14472bfed541db46bb4f49f3d0d728b0a45
EBUILD gnome-panel-2.22.2.ebuild 2372 RMD160 f8469fe06a52026b7134ced9d80f3a7464192573 SHA1 53542912218f074b99249f48fd3b3a4d557b89ad SHA256 daea2723053b61550a650e9c8aa7a9b369e9b347c0ab92de0da1156934a4a507
MISC ChangeLog 34203 RMD160 25bd6ec4fcc57c413fdcd180b8e6719f415f96f7 SHA1 afe27044e2ec25b7161d1f50c9006751d12806bb SHA256 3c678ac94fcf7f38ac5b6086dbdc5825fe27402d2347503efe3731079d5a200b
MISC metadata.xml 331 RMD160 38ae8c86ed8d85c16dba983e2151d9ffda48f6aa SHA1 5351ad8d2cab0fd6dd4c458cad75cf3977afd3f6 SHA256 a9ca6ced0f38586432385a65fe691d556a4c4282e835f0f476b56bf262baf5bc
AUX gnome-panel-2.24.3-daylight.patch 1009 RMD160 6b84a6e00dbc350fd0bf4e1850940e7c925fb86b SHA1 87ccfb70d97038d2916d1074efb954f316be53ee SHA256 ea8c1598b5c6fddc751ee18a7aab34781aa82e936fc76b9304409304e5601a1f
AUX gnome-panel-2.24.3-shutdown.patch 2548 RMD160 9fa99e6a7c310114af4f5d41160a3703fb3dac03 SHA1 fa2eb42aa677d8c4459903b50a1aa42def28ffb8 SHA256 ae5d2a04ae292966b6661e9cc73623cfd8204a8b3012b40c4274e449933e495e
AUX gnome-panel-2.26.3-with-lunar-clock.patch 2986 RMD160 ad6a707ba926deb86ec6b089092fe0bd01df06fb SHA1 23cce222c8514241241bcdbfab67350dc88414ba SHA256 ffba98e8b5be54dfda43c39e41ad9b922b0fc4155c3f0b4a1211e5674f1a5903
DIST gnome-panel-2.24.2-logout+po.tar.bz2 75365 RMD160 dadb220e3505fdd37bbddd332a760f6d3fa9498a SHA1 1eb32102d62ee6e5ef4420a41e0647a0d3768a72 SHA256 2e67af4d204ff65092d6b37abbfe41d7baea0fc27b1ed46aa7eb3494c2d53ee6
DIST gnome-panel-2.26.1-po.patch.bz2 74923 RMD160 8d5ef69ba9789a83eb5d00c2c7f4309c565ec37b SHA1 56b2bf2220ca25c638b4d009aa3ab57bb76f1dde SHA256 720539ee1b0e85fa6f668bce30c45120b6b821e980fedf8049b99c145d0b509c
DIST gnome-panel-2.26.3.tar.bz2 2988811 RMD160 07b961a2224c6de0253495c6aeefdb2fb4804c8e SHA1 8fdb1e47bef9f3de9c01f830a84ecf30fda3d48f SHA256 b50fa78df3e94327e6478fbf8d0addfc0dde1f2022ffc39066bb46040ad3778e
EBUILD gnome-panel-2.26.3.ebuild 3544 RMD160 0421bfb6ce24f229293a3fe48cf75547404e8f2b SHA1 9c2602e51202b7462cf9d683eb1c374077128508 SHA256 d6c81e722821070517eaee52cf20a8c69bb68955dc1f1f97ace5328dbea834ab
MISC ChangeLog 38903 RMD160 203c20188e41e54a3830d357beefe4b403c4ab38 SHA1 bb68524e72a8a62395245f91d4f502ea96e617f8 SHA256 8c5a2a7321a9c6b36d1b9e82f67946e566c8752c1aade47327cbd4ff1658bfb9
MISC metadata.xml 247 RMD160 a85890d6f6c961db6afcc8ee99e47d1af479dbe8 SHA1 592e5ea613597b5b522bf23b79d826aa5c38ae30 SHA256 05b93edf7f60368668adb4328c61c9a5e46f582cccdca02b10f6bc47622fd2d3
@@ -0,0 +1,25 @@
http://bugzilla.gnome.org/show_bug.cgi?id=569737
https://bugs.gentoo.org/show_bug.cgi?id=256859
--- gnome-panel-2.24.3/applets/clock/clock.c.old 2009-01-29 21:59:18 +0000
+++ gnome-panel-2.24.3/applets/clock/clock.c 2009-01-29 21:59:29 +0000
@@ -653,7 +653,7 @@
time (&now_t);
localtime_r (&now_t, &now);
- if (daylight && now.tm_isdst) {
+ if (now.tm_isdst>0) {
zone = tzname[1];
} else {
zone = tzname[0];
--- gnome-panel-2.24.3/applets/clock/clock-location.c.old 2009-01-29 22:00:15 +0000
+++ gnome-panel-2.24.3/applets/clock/clock-location.c 2009-01-29 22:00:29 +0000
@@ -337,7 +337,7 @@
now_t = time (NULL);
localtime_r (&now_t, &now);
- if (daylight && now.tm_isdst) {
+ if (now.tm_isdst>0) {
clock_location_set_tzname (this, tzname[1]);
} else {
clock_location_set_tzname (this, tzname[0]);
@@ -0,0 +1,78 @@
# Fix shutdown without gdm
# https://bugs.gentoo.org/show_bug.cgi?id=259138
--- a/gnome-panel/panel-gdm.c 2009-02-15 20:33:57.000000000 +0000
+++ b/gnome-panel/panel-gdm.c 2009-02-15 20:38:47.000000000 +0000
@@ -233,6 +233,15 @@
char *response;
g_assert (data->fd <= 0);
+
+ if (g_file_test (GDM_PROTOCOL_SOCKET_PATH, G_FILE_TEST_EXISTS))
+ strcpy (addr.sun_path, GDM_PROTOCOL_SOCKET_PATH);
+ else if (g_file_test ("/tmp/.gdm_socket", G_FILE_TEST_EXISTS))
+ strcpy (addr.sun_path, "/tmp/.gdm_socket");
+ else {
+ gdm_shutdown_protocol_connection (data);
+ return FALSE;
+ }
data->fd = socket (AF_UNIX, SOCK_STREAM, 0);
if (data->fd < 0) {
@@ -242,11 +251,6 @@
return FALSE;
}
- if (g_file_test (GDM_PROTOCOL_SOCKET_PATH, G_FILE_TEST_EXISTS))
- strcpy (addr.sun_path, GDM_PROTOCOL_SOCKET_PATH);
- else
- strcpy (addr.sun_path, "/tmp/.gdm_socket");
-
addr.sun_family = AF_UNIX;
if (connect (data->fd, (struct sockaddr *) &addr, sizeof (addr)) < 0) {
@@ -398,6 +402,16 @@
gdm_shutdown_protocol_connection (&gdm_protocol_data);
}
+gboolean
+gdm_available (void)
+{
+ if (!gdm_init_protocol_connection (&gdm_protocol_data))
+ return FALSE;
+
+ gdm_shutdown_protocol_connection (&gdm_protocol_data);
+ return TRUE;
+}
+
void
gdm_new_login (void)
{
--- a/gnome-panel/panel-gdm.h 2009-02-15 20:33:57.000000000 +0000
+++ b/gnome-panel/panel-gdm.h 2009-02-15 20:38:58.000000000 +0000
@@ -46,6 +46,7 @@
void gdm_set_logout_action (GdmLogoutAction action);
GdmLogoutAction gdm_get_logout_action (void);
void gdm_new_login (void);
+gboolean gdm_available (void);
G_END_DECLS
--- a/gnome-panel/panel-logout.c 2009-02-15 20:33:57.000000000 +0000
+++ b/gnome-panel/panel-logout.c 2009-02-15 20:40:48.000000000 +0000
@@ -341,10 +341,12 @@
// FIXME need to verify that this response can be used
logout_dialog->priv->default_response = PANEL_LOGOUT_DIALOG_LOGOUT;
- //FIXME is gdm running?
- gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
- _("_Switch User"),
- PANEL_LOGOUT_RESPONSE_SWITCH_USER);
+ //FIXME need to have a more flexible test for availability
+ if (gdm_available())
+ gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
+ _("_Switch User"),
+ PANEL_LOGOUT_RESPONSE_SWITCH_USER);
+
gtk_dialog_add_button (GTK_DIALOG (logout_dialog),
GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL);
@@ -0,0 +1,86 @@
Index: gnome-panel-2.26.3/applets/clock/calendar-window.c
===================================================================
--- gnome-panel-2.26.3.orig/applets/clock/calendar-window.c
+++ gnome-panel-2.26.3/applets/clock/calendar-window.c
@@ -50,6 +50,9 @@
#ifdef HAVE_LIBECAL
#include "calendar-client.h"
#endif
+#ifdef HAVE_LIBLUNAR_GTK
+#include <lunar-gtk/lunar.h>
+#endif
#define CALENDAR_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CALENDAR_TYPE_WINDOW, CalendarWindowPrivate))
@@ -1455,13 +1458,19 @@
GtkWidget *calendar;
GtkCalendarDisplayOptions options;
struct tm *tm;
-
+#ifdef HAVE_LIBLUNAR_GTK
+ calendar = lunar_calendar_new ();
+#else
calendar = gtk_calendar_new ();
+#endif
options = gtk_calendar_get_display_options (GTK_CALENDAR (calendar));
if (calwin->priv->show_weeks)
options |= GTK_CALENDAR_SHOW_WEEK_NUMBERS;
else
options &= ~(GTK_CALENDAR_SHOW_WEEK_NUMBERS);
+#ifdef HAVE_LIBLUNAR_GTK
+ options |= GTK_CALENDAR_SHOW_DETAILS;
+#endif
gtk_calendar_set_display_options (GTK_CALENDAR (calendar), options);
if (calwin->priv->utc_time)
Index: gnome-panel-2.26.3/configure.in
===================================================================
--- gnome-panel-2.26.3.orig/configure.in
+++ gnome-panel-2.26.3/configure.in
@@ -124,6 +124,30 @@ PKG_CHECK_MODULES(CLOCK, pango >= $PANGO
AC_SUBST(CLOCK_CFLAGS)
AC_SUBST(CLOCK_LIBS)
+dnl *************
+dnl liblunar-gtk
+dnl *************
+AC_ARG_ENABLE(liblunar,
+ AS_HELP_STRING([--enable-liblunar],[Enable chinese lunar calendar for clock applet.]),
+ enable_lunar=$enableval, enable_lunar=auto)
+
+if test "x$enable_lunar" = "xauto"; then
+ PKG_CHECK_EXISTS([liblunar-gtk],enable_lunar=yes,enable_lunar=no)
+fi
+
+if test "x$enable_lunar" = "xyes";then
+ LIBLUNAR_GTK_REQUIRED=2.2.1
+ PKG_CHECK_MODULES(LUNAR_GTK, [liblunar-gtk >= $LIBLUNAR_GTK_REQUIRED])
+ AC_SUBST(LUNAR_GTK_CFLAGS)
+ AC_SUBST(LUNAR_GTK_LIBS)
+ AC_DEFINE([HAVE_LIBLUNAR_GTK], 1, [Defined when liblunar-gtk are detected])
+ have_liblunar_gtk=yes
+else
+ have_liblunar_gtk=no
+fi
+AM_CONDITIONAL(CLOCK_LUNAR, test "x$have_liblunar_gtk" = "xyes")
+
+
dnl Hmm, we already checked for these above. Is there a way to avoid checking twice?
PKG_CHECK_MODULES(CLOCK_MECHANISM, [ gthread-2.0 gio-2.0 dbus-glib-1 ])
AC_SUBST(CLOCK_MECHANISM_CFLAGS)
Index: gnome-panel-2.26.3/applets/clock/Makefile.am
===================================================================
--- gnome-panel-2.26.3.orig/applets/clock/Makefile.am
+++ gnome-panel-2.26.3/applets/clock/Makefile.am
@@ -77,6 +77,11 @@ BUILT_SOURCES = \
clock-typebuiltins.c \
clock-typebuiltins.h
+if CLOCK_LUNAR
+INCLUDES += $(LUNAR_GTK_CFLAGS)
+CLOCK_LDADD += $(LUNAR_GTK_LIBS)
+endif
+
clock-marshallers.c: clock-marshallers.list
$(QUIET_GEN)glib-genmarshal --prefix _clock_marshal --header --body --internal $< > $@
-260
View File
@@ -1,260 +0,0 @@
diff -ur gnome-panel-2.20.3.orig/applets/clock/calendar-window.c gnome-panel-2.20.3/applets/clock/calendar-window.c
--- gnome-panel-2.20.3.orig/applets/clock/calendar-window.c 2008-04-30 11:51:24.000000000 +0800
+++ gnome-panel-2.20.3/applets/clock/calendar-window.c 2008-04-30 11:52:05.000000000 +0800
@@ -50,6 +50,9 @@
#ifdef HAVE_LIBECAL
#include "calendar-client.h"
#endif
+#ifdef HAVE_LIBLUNAR
+ #include <lunar/lunar.h>
+#endif
#define CALENDAR_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CALENDAR_TYPE_WINDOW, CalendarWindowPrivate))
@@ -824,7 +827,11 @@
guint day,
CalendarWindow *calwin)
{
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_mark_day (LUNAR_CALENDAR (calwin->priv->calendar), day);
+#else
gtk_calendar_mark_day (GTK_CALENDAR (calwin->priv->calendar), day);
+#endif
}
static void
@@ -834,7 +841,11 @@
guint year, month, day;
if (calwin->priv->calendar) {
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_clear_marks (LUNAR_CALENDAR (calwin->priv->calendar));
+#else
gtk_calendar_clear_marks (GTK_CALENDAR (calwin->priv->calendar));
+#endif
calendar_client_foreach_appointment_day (calwin->priv->client,
(CalendarDayIter) mark_day_on_calendar,
@@ -1092,7 +1103,11 @@
}
static void
+#ifdef HAVE_LIBLUNAR
+calendar_day_activated (LunarCalendar *calendar,
+#else
calendar_day_activated (GtkCalendar *calendar,
+#endif
CalendarWindow *calwin)
{
unsigned int day;
@@ -1100,7 +1115,11 @@
unsigned int year;
char *argument;
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_get_date (calendar, &year, &month, &day);
+#else
gtk_calendar_get_date (calendar, &year, &month, &day);
+#endif
argument = g_strdup_printf ("calendar:///?startdate=%.4d%.2d%.2d",
year, month + 1, day);
@@ -1111,12 +1130,20 @@
}
static void
+#ifdef HAVE_LIBLUNAR
+calendar_day_selected (LunarCalendar *calendar,
+#else
calendar_day_selected (GtkCalendar *calendar,
+#endif
CalendarWindow *calwin)
{
guint day;
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_get_date (calendar, NULL, NULL, &day);
+#else
gtk_calendar_get_date (calendar, NULL, NULL, &day);
+#endif
calendar_client_select_day (calwin->priv->client, day);
@@ -1125,12 +1152,20 @@
}
static void
+#ifdef HAVE_LIBLUNAR
+calendar_month_selected (LunarCalendar *calendar,
+#else
calendar_month_selected (GtkCalendar *calendar,
+#endif
CalendarWindow *calwin)
{
guint year, month;
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_get_date (calendar, &year, &month, NULL);
+#else
gtk_calendar_get_date (calendar, &year, &month, NULL);
+#endif
calendar_client_select_month (calwin->priv->client, month, year);
@@ -1355,7 +1390,11 @@
calwin);
}
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_get_date (LUNAR_CALENDAR (calwin->priv->calendar),
+#else
gtk_calendar_get_date (GTK_CALENDAR (calwin->priv->calendar),
+#endif
&year, &month, &day);
calendar_client_select_day (calwin->priv->client, day);
@@ -1383,26 +1422,51 @@
calendar_window_create_calendar (CalendarWindow *calwin)
{
GtkWidget *calendar;
- GtkCalendarDisplayOptions options;
struct tm *tm;
+#ifdef HAVE_LIBLUNAR
+ LunarCalendarDisplayOptions options;
+ calendar = lunar_calendar_new ();
+ options = lunar_calendar_get_display_options (LUNAR_CALENDAR (calendar));
+#else
+ GtkCalendarDisplayOptions options;
calendar = gtk_calendar_new ();
options = gtk_calendar_get_display_options (GTK_CALENDAR (calendar));
+#endif
if (calwin->priv->show_weeks)
+#ifdef HAVE_LIBLUNAR
+ options |= LUNAR_CALENDAR_SHOW_WEEK_NUMBERS;
+#else
options |= GTK_CALENDAR_SHOW_WEEK_NUMBERS;
+#endif
else
+#ifdef HAVE_LIBLUNAR
+ options &= ~(LUNAR_CALENDAR_SHOW_WEEK_NUMBERS);
+#else
options &= ~(GTK_CALENDAR_SHOW_WEEK_NUMBERS);
+#endif
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_set_display_options (LUNAR_CALENDAR (calendar), options);
+#else
gtk_calendar_set_display_options (GTK_CALENDAR (calendar), options);
+#endif
if (calwin->priv->utc_time)
tm = gmtime (calwin->priv->current_time);
else
tm = localtime (calwin->priv->current_time);
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_select_month (LUNAR_CALENDAR (calendar),
+ tm->tm_mon,
+ tm->tm_year + 1900);
+ lunar_calendar_select_day (LUNAR_CALENDAR (calendar), tm->tm_mday);
+#else
gtk_calendar_select_month (GTK_CALENDAR (calendar),
tm->tm_mon,
tm->tm_year + 1900);
gtk_calendar_select_day (GTK_CALENDAR (calendar), tm->tm_mday);
+#endif
return calendar;
}
@@ -1792,7 +1856,11 @@
calendar_window_set_show_weeks (CalendarWindow *calwin,
gboolean show_weeks)
{
+#ifdef HAVE_LIBLUNAR
+ LunarCalendarDisplayOptions options;
+#else
GtkCalendarDisplayOptions options;
+#endif
g_return_if_fail (CALENDAR_IS_WINDOW (calwin));
@@ -1802,14 +1870,30 @@
calwin->priv->show_weeks = show_weeks;
if (calwin->priv->calendar) {
+#ifdef HAVE_LIBLUNAR
+ options = lunar_calendar_get_display_options (LUNAR_CALENDAR (calwin->priv->calendar));
+#else
options = gtk_calendar_get_display_options (GTK_CALENDAR (calwin->priv->calendar));
+#endif
if (show_weeks)
+#ifdef HAVE_LIBLUNAR
+ options |= LUNAR_CALENDAR_SHOW_WEEK_NUMBERS;
+#else
options |= GTK_CALENDAR_SHOW_WEEK_NUMBERS;
+#endif
else
+#ifdef HAVE_LIBLUNAR
+ options &= ~(LUNAR_CALENDAR_SHOW_WEEK_NUMBERS);
+#else
options &= ~(GTK_CALENDAR_SHOW_WEEK_NUMBERS);
+#endif
+#ifdef HAVE_LIBLUNAR
+ lunar_calendar_set_display_options (LUNAR_CALENDAR (calwin->priv->calendar),
+#else
gtk_calendar_set_display_options (GTK_CALENDAR (calwin->priv->calendar),
+#endif
options);
}
diff -ur gnome-panel-2.20.3.orig/applets/clock/Makefile.am gnome-panel-2.20.3/applets/clock/Makefile.am
--- gnome-panel-2.20.3.orig/applets/clock/Makefile.am 2008-04-30 11:51:24.000000000 +0800
+++ gnome-panel-2.20.3/applets/clock/Makefile.am 2008-04-30 11:51:35.000000000 +0800
@@ -55,6 +55,11 @@
clock-typebuiltins.c \
clock-typebuiltins.h
+if CLOCK_LUNAR
+INCLUDES += $(LUNAR_CFLAGS)
+CLOCK_LDADD += $(LUNAR_LIBS)
+endif
+
clock_enum_headers = \
$(top_srcdir)/applets/clock/clock-utils.h
diff -ur gnome-panel-2.20.3.orig/configure.in gnome-panel-2.20.3/configure.in
--- gnome-panel-2.20.3.orig/configure.in 2008-04-30 11:51:17.000000000 +0800
+++ gnome-panel-2.20.3/configure.in 2008-04-30 11:51:35.000000000 +0800
@@ -113,6 +113,30 @@
AC_SUBST(CLOCK_CFLAGS)
AC_SUBST(CLOCK_LIBS)
+
+dnl *****
+dnl lunar
+dnl *****
+AC_ARG_ENABLE(lunar,
+ AS_HELP_STRING([--enable-lunar],[Enable chinese lunar calendar for clock applet.]),
+ enable_lunar=$enableval, enable_lunar=auto)
+
+if test "x$enable_lunar" = "xauto"; then
+ PKG_CHECK_EXISTS([liblunar-1],enable_lunar=yes,enable_lunar=no)
+fi
+
+if test "x$enable_lunar" = "xyes";then
+ LIBLUNAR_REQUIRED=0.2.6
+ PKG_CHECK_MODULES(LUNAR, [liblunar-1 >= $LIBLUNAR_REQUIRED])
+ AC_SUBST(LUNAR_CFLAGS)
+ AC_SUBST(LUNAR_LIBS)
+ AC_DEFINE([HAVE_LIBLUNAR], 1, [Defined when liblunar-1 are detected])
+ have_lunar=true
+else
+ have_lunar=false
+fi
+AM_CONDITIONAL(CLOCK_LUNAR, $have_lunar)
+
PKG_CHECK_MODULES(FISH, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED cairo >= $CAIRO_REQUIRED)
AC_SUBST(FISH_CFLAGS)
AC_SUBST(FISH_LIBS)
@@ -1,86 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-panel/gnome-panel-2.22.2.ebuild,v 1.7 2008/08/12 13:54:00 armin76 Exp $
inherit autotools eutils gnome2
DESCRIPTION="The GNOME panel"
HOMEPAGE="http://www.gnome.org/"
LICENSE="GPL-2 FDL-1.1 LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ~ppc64 ~sh sparc ~x86 ~x86-fbsd"
IUSE="doc eds networkmanager lunar"
RDEPEND=">=gnome-base/gnome-desktop-2.12
>=x11-libs/pango-1.15.4
>=dev-libs/glib-2.15.6
>=x11-libs/gtk+-2.11.3
>=dev-libs/libgweather-2.22.1
dev-libs/libxml2
>=gnome-base/libglade-2.5
>=gnome-base/libgnome-2.13
>=gnome-base/libgnomeui-2.5.4
>=gnome-base/libbonoboui-2.1.1
>=gnome-base/orbit-2.4
>=x11-libs/libwnck-2.19.5
>=gnome-base/gconf-2.6.1
>=gnome-base/gnome-menus-2.11.1
>=gnome-base/libbonobo-2
gnome-base/librsvg
>=dev-libs/dbus-glib-0.71
>=sys-apps/dbus-1.1.2
x11-libs/libXau
>=x11-libs/cairo-1.0.0
lunar? ( >=x11-libs/liblunar-1.0.0 )
eds? ( >=gnome-extra/evolution-data-server-1.6 )
networkmanager? ( >=net-misc/networkmanager-0.6 )"
DEPEND="${RDEPEND}
app-text/scrollkeeper
>=app-text/gnome-doc-utils-0.3.2
>=dev-util/pkgconfig-0.9
>=dev-util/intltool-0.35
~app-text/docbook-xml-dtd-4.1.2
doc? ( >=dev-util/gtk-doc-1 )"
DOCS="AUTHORS ChangeLog HACKING NEWS README"
pkg_setup() {
G2CONF="${G2CONF}
--disable-scrollkeeper
--disable-polkit
--with-in-process-applets=clock,notification-area,wncklet
$(use_enable networkmanager network-manager)
$(use_enable eds)
$(use_enable lunar)"
}
src_unpack() {
gnome2_src_unpack
# FIXME : uh yeah, this is nice
# We should patch in a switch here and send it upstream
sed -i 's:--load:-v:' "${S}/gnome-panel/Makefile.in" || die "sed failed"
if use lunar; then
epatch ${FILESDIR}/lunar.patch
gnome-autogen.sh
fi
}
pkg_postinst() {
local entries="/etc/gconf/schemas/panel-default-setup.entries"
local gconftool="${ROOT}usr/bin/gconftool-2"
if [ -e "$entries" ]; then
einfo "setting panel gconf defaults..."
GCONF_CONFIG_SOURCE=$("${gconftool}" --get-default-source)
"${gconftool}" --direct --config-source \
"${GCONF_CONFIG_SOURCE}" --load="${entries}"
fi
# Calling this late so it doesn't process the GConf schemas file we already
# took care of.
gnome2_pkg_postinst
}
@@ -0,0 +1,124 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-panel/gnome-panel-2.26.3.ebuild,v 1.1 2009/07/09 21:14:07 eva Exp $
EAPI="2"
GCONF_DEBUG="no"
inherit autotools eutils gnome2
MY_P="${PN}-2.24.2"
MY_P_PO="${PN}-2.26.1"
DESCRIPTION="The GNOME panel"
HOMEPAGE="http://www.gnome.org/"
SRC_URI="${SRC_URI}
mirror://gentoo/${MY_P}-logout+po.tar.bz2
mirror://gentoo/${MY_P_PO}-po.patch.bz2"
LICENSE="GPL-2 FDL-1.1 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="doc eds networkmanager policykit lunar"
RDEPEND=">=gnome-base/gnome-desktop-2.26.0
>=x11-libs/pango-1.15.4
>=dev-libs/glib-2.18.0
>=x11-libs/gtk+-2.15.1
>=dev-libs/libgweather-2.24.1
dev-libs/libxml2
>=gnome-base/libglade-2.5
>=gnome-base/libgnome-2.13
>=gnome-base/libgnomeui-2.5.4
>=gnome-base/libbonoboui-2.1.1
>=gnome-base/orbit-2.4
>=x11-libs/libwnck-2.19.5
>=gnome-base/gconf-2.6.1
>=gnome-base/gnome-menus-2.11.1
>=gnome-base/libbonobo-2.20.4
gnome-base/librsvg
>=dev-libs/dbus-glib-0.71
>=sys-apps/dbus-1.1.2
x11-libs/libXau
>=x11-libs/cairo-1.0.0
lunar? ( >=x11-libs/liblunar-gtk-2.2.1 )
eds? ( >=gnome-extra/evolution-data-server-1.6 )
networkmanager? ( >=net-misc/networkmanager-0.6 )
policykit? (
>=sys-auth/policykit-0.7
>=gnome-extra/policykit-gnome-0.7 )"
DEPEND="${RDEPEND}
>=dev-lang/perl-5
gnome-base/gnome-common
>=app-text/gnome-doc-utils-0.3.2
>=dev-util/pkgconfig-0.9
>=dev-util/intltool-0.40
~app-text/docbook-xml-dtd-4.1.2
>=dev-util/gtk-doc-am-1
doc? ( >=dev-util/gtk-doc-1 )"
DOCS="AUTHORS ChangeLog HACKING NEWS README"
pkg_setup() {
G2CONF="${G2CONF}
--disable-static
--disable-scrollkeeper
--disable-schemas-install
--with-in-process-applets=clock,notification-area,wncklet
$(use_enable policykit polkit)
$(use_enable networkmanager network-manager)
$(use_enable eds)"
}
src_prepare() {
gnome2_src_prepare
# Allow logout/shutdown without gnome-session 2.24, bug #246170
epatch "${WORKDIR}/${MY_P}-logout.patch"
epatch "${WORKDIR}/${MY_P_PO}-po.patch"
echo "gnome-panel/panel-logout.c" >> po/POTFILES.in
# Fixes build on BSD, bug #256859
epatch "${FILESDIR}/${PN}-2.24.3-daylight.patch"
# Fixes shutdown without gdm, bug #259138
epatch "${FILESDIR}/${PN}-2.24.3-shutdown.patch"
if use lunar; then
# Use liblunar to display lunar clock for chinese
epatch "${FILESDIR}/${PN}-2.26.3-with-lunar-clock.patch"
fi
intltoolize --force --copy --automake || die "intltoolize failed"
# FIXME: tarball generated with broken gtk-doc, revisit me.
if use doc; then
sed "/^TARGET_DIR/i \GTKDOC_REBASE=/usr/bin/gtkdoc-rebase" \
-i gtk-doc.make || die "sed 1 failed"
else
sed "/^TARGET_DIR/i \GTKDOC_REBASE=$(type -P true)" \
-i gtk-doc.make || die "sed 2 failed"
fi
# Make it libtool-1 compatible, bug #271652
rm -v m4/lt* m4/libtool.m4 || die "removing libtool macros failed"
AT_M4DIR="m4" eautoreconf
}
pkg_postinst() {
local entries="${ROOT}etc/gconf/schemas/panel-default-setup.entries"
local gconftool="${ROOT}usr/bin/gconftool-2"
if [ -e "$entries" ]; then
einfo "setting panel gconf defaults..."
GCONF_CONFIG_SOURCE="$("${gconftool}" --get-default-source | sed "s;:/;:${ROOT};")"
"${gconftool}" --direct --config-source \
"${GCONF_CONFIG_SOURCE}" --load="${entries}"
fi
# Calling this late so it doesn't process the GConf schemas file we already
# took care of.
gnome2_pkg_postinst
}
+4 -6
View File
@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>yetist@gmail.com</email>
<name>Xiaotian Wu</name>
</maintainer>
<longdescription>gnome panel with lunar date support</longdescription>
<herd>gnome</herd>
<use>
<flag name='lunar'>Use liblunar to display lunar clock for chinese</flag>
</use>
</pkgmetadata>
View File
Whitespace-only changes.
+4
View File
@@ -0,0 +1,4 @@
DIST liblunar-gtk-2.2.1.tar.gz 408866 RMD160 72a92d50f7a021bf85ebb047b5befe1e6d80c6f4 SHA1 6c1a2b6f62fc3c76f74832fc4ce2dde5a97475b0 SHA256 0ac65db0be95468cbd8b9033f2ab0d0be1501f43595ea67b64395fa7be7af232
EBUILD liblunar-gtk-2.2.1.ebuild 695 RMD160 4a22fa0e7c62cbb9b49be77da1cdac6a84e2476e SHA1 d0b88956093e278c8d775e1d74b9eb99d13d6dbf SHA256 852248f04c570eb629d93074d9070d82bf1200ef24f7df085f0fba0a3c1dbbac
MISC ChangeLog 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
MISC metadata.xml 356 RMD160 e6e6d3bc14481eb3cdcdc7caae07cd1b987fc539 SHA1 0148046ddfa637a1308b0672b7cf7d602029e23b SHA256 175b115fa0c1f1f3fd15cc3e4894e39d584f535794b832fafb46da7dfa401528
@@ -4,7 +4,7 @@
inherit gnome2
DESCRIPTION="Chinese Lunar Translate library"
DESCRIPTION="Chinese Lunar Library Gtk+ widget"
HOMEPAGE="http://liblunar.googlecode.com"
SRC_URI="http://liblunar.googlecode.com/files/${P}.tar.gz"
@@ -14,6 +14,7 @@ KEYWORDS="~x86"
IUSE="doc python"
RDEPEND="${RDEPEND}
>=dev-libs/liblunar-2.2.1
doc? ( >=dev-util/gtk-doc-1 )
python? (
>=dev-python/pygobject-2.11.5
@@ -23,8 +24,7 @@ RDEPEND="${RDEPEND}
DEPEND="${RDEPEND}
sys-devel/gettext
>=dev-util/pkgconfig-0.9
>=dev-util/intltool-0.35
>=app-text/gnome-doc-utils-0.3.2"
>=dev-util/intltool-0.35"
DOCS="AUTHORS ChangeLog NEWS README"
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>yetist@gmail.com</email>
<description>maintaining in gentoo china overlay</description>
</maintainer>
<longdescription>Chinese Lunar Library</longdescription>
</pkgmetadata>
-12
View File
@@ -1,12 +0,0 @@
# ChangeLog for x11‐libs/liblunar
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*liblunar-1.0.0 (17 Apr 2008)
21 Apr 2008; yetist <yetist@gmail.com> +ChangeLog:
added ChangeLog.
21 Apr 2008; yetist <yetist@gmail.com> liblunar-0.2.5.ebuild,
liblunar-0.2.6.ebuild, liblunar-1.0.0.ebuild, +metadata.xml:
fixed Leading Space Syntax Error. added metadata.xml.
-8
View File
@@ -1,8 +0,0 @@
DIST liblunar-0.2.5.tar.gz 452035 RMD160 5dd040ca1013e509554e40add67e28b84074705c SHA1 db2aa560e5a1114f9c9de92b7e9d56bb1c15f5eb SHA256 b2846f081fc4fcaacbad603477283f04b6fb44d088c372fff8b35a6e027a0642
DIST liblunar-0.2.6.tar.gz 455874 RMD160 18b0f7d8752904fccceeb38e29071d24747756cf SHA1 60084aa7e72f03ad41dfe8e33c30cf7cbd32fc54 SHA256 9dd15538585ef2ffd6c663868be5b126b96e03cd39cad73ccf2af6354ff11451
DIST liblunar-1.0.0.tar.gz 455915 RMD160 a0af7926f968ae0d11d60e3ba069ac39fb1def02 SHA1 dd4dab9886e3f6d79652126412e8eaab12288667 SHA256 dbeb71e20c6410d8d1476a923249a73e4d789a0020df9cda9a45545e9f7e5307
EBUILD liblunar-0.2.5.ebuild 700 RMD160 b2dac0887712104262ec90c72c749cd358cb5d7b SHA1 e47d0afc4de53720a49b029baef5b5f26f12d319 SHA256 0cef90870bf3256df027b993a0915461556650ca9d1b293a6b744fc78e4033f9
EBUILD liblunar-0.2.6.ebuild 700 RMD160 b2dac0887712104262ec90c72c749cd358cb5d7b SHA1 e47d0afc4de53720a49b029baef5b5f26f12d319 SHA256 0cef90870bf3256df027b993a0915461556650ca9d1b293a6b744fc78e4033f9
EBUILD liblunar-1.0.0.ebuild 700 RMD160 b2dac0887712104262ec90c72c749cd358cb5d7b SHA1 e47d0afc4de53720a49b029baef5b5f26f12d319 SHA256 0cef90870bf3256df027b993a0915461556650ca9d1b293a6b744fc78e4033f9
MISC ChangeLog 409 RMD160 0e44b99469030f80e991015a064145d7b5f01296 SHA1 979c9fdfeeb0bfdf2de4dbce0049ff978cae5d03 SHA256 337d088fbbee64f843ab21cc329722613fcc781b7da67f5563c439a5dffef4f3
MISC metadata.xml 358 RMD160 0d771414389d4c2e28e9ec4d10c400ebeb00f696 SHA1 9556b6133daacecad19117f8da5374d4668efece SHA256 94ad1789d9903caaa4f7ca54bf2c54d5b4b911632b4e3432c85d67998d82073a
-33
View File
@@ -1,33 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit gnome2
DESCRIPTION="Chinese Lunar Translate library"
HOMEPAGE="http://liblunar.googlecode.com"
SRC_URI="http://liblunar.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc python"
RDEPEND="${RDEPEND}
doc? ( >=dev-util/gtk-doc-1 )
python? (
>=dev-python/pygobject-2.11.5
>=dev-python/pygtk-2.9.7
)"
DEPEND="${RDEPEND}
sys-devel/gettext
>=dev-util/pkgconfig-0.9
>=dev-util/intltool-0.35
>=app-text/gnome-doc-utils-0.3.2"
DOCS="AUTHORS ChangeLog NEWS README"
pkg_setup() {
G2CONF="$(use_enable python) $(use_enable doc)"
}