summaryrefslogtreecommitdiff
path: root/sysutils/gentoo
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2008-08-17 05:55:15 +0000
committerdholland <dholland@pkgsrc.org>2008-08-17 05:55:15 +0000
commit26d3528506e45accfb79f334fc8704939bfb9c73 (patch)
tree28b1b4cd90b20066f8fde04c43ff1d067cf18282 /sysutils/gentoo
parent18da6d3247801d499a11138b340bb58b9905eb04 (diff)
downloadpkgsrc-26d3528506e45accfb79f334fc8704939bfb9c73.tar.gz
Fix this to not use the compile-time $HOME to look for the gtkrc file.
(Since that is set to work/.home, it was compiling in the pkgsrc work directory and failing for PKG_DEVELOPERs.) Use getenv("HOME") instead. PKGREVISION++.
Diffstat (limited to 'sysutils/gentoo')
-rw-r--r--sysutils/gentoo/Makefile3
-rw-r--r--sysutils/gentoo/distinfo3
-rw-r--r--sysutils/gentoo/patches/patch-ad23
3 files changed, 27 insertions, 2 deletions
diff --git a/sysutils/gentoo/Makefile b/sysutils/gentoo/Makefile
index 1237647a113..d4425eabaa4 100644
--- a/sysutils/gentoo/Makefile
+++ b/sysutils/gentoo/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.28 2006/10/14 09:24:10 obache Exp $
+# $NetBSD: Makefile,v 1.29 2008/08/17 05:55:15 dholland Exp $
DISTNAME= gentoo-0.11.56
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gentoo/}
diff --git a/sysutils/gentoo/distinfo b/sysutils/gentoo/distinfo
index 75e2a27fd73..d4fcfcb03eb 100644
--- a/sysutils/gentoo/distinfo
+++ b/sysutils/gentoo/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2006/10/14 09:24:10 obache Exp $
+$NetBSD: distinfo,v 1.22 2008/08/17 05:55:15 dholland Exp $
SHA1 (gentoo-0.11.56.tar.gz) = f18dd760331b4e10c71852ea0833cf7dc929ae43
RMD160 (gentoo-0.11.56.tar.gz) = 8ab88f4a052d4ea41f561b2869e8ce20a2e4ece2
@@ -6,6 +6,7 @@ Size (gentoo-0.11.56.tar.gz) = 1375769 bytes
SHA1 (patch-aa) = bd3736cffbda663fd571b6b7a2171e64b4d52927
SHA1 (patch-ab) = 1aaa154789866b436303b0a8f6f20707301d8b7f
SHA1 (patch-ac) = 4e5d52849887b816eb4388fb2c75aefb3443f5c8
+SHA1 (patch-ad) = 9438f7148d9510d27b5df3149ea8684ff7872e14
SHA1 (patch-ae) = daa7cbed8d66af155f2624a0066b2f578e9a93c6
SHA1 (patch-af) = c86f68937cbf2c086cf1282ec12df5db156f66d5
SHA1 (patch-ag) = 3045a4eb72f8c50d147fe09256ec791359053418
diff --git a/sysutils/gentoo/patches/patch-ad b/sysutils/gentoo/patches/patch-ad
new file mode 100644
index 00000000000..8397b23d478
--- /dev/null
+++ b/sysutils/gentoo/patches/patch-ad
@@ -0,0 +1,23 @@
+$NetBSD: patch-ad,v 1.7 2008/08/17 05:55:16 dholland Exp $
+
+--- src/gentoo.c~ 2006-08-23 14:58:12.000000000 -0400
++++ src/gentoo.c 2008-08-17 01:44:41.000000000 -0400
+@@ -334,7 +334,18 @@ static GtkWidget * build_gui(MainInfo *m
+ static void init_paths(CfgInfo *cfg)
+ {
+ cfg->path.path[PTID_ICON] = g_string_new(PATH_ICN);
++#if 0
++ /* PATH_GRC is the compile-time $HOME, which seems wrong. */
+ cfg->path.path[PTID_GTKRC] = g_string_new(PATH_GRC);
++#else
++ {
++ const char *home = getenv("HOME");
++ if (home == NULL) {
++ home = "/";
++ }
++ cfg->path.path[PTID_GTKRC] = g_string_new(home);
++ }
++#endif
+ cfg->path.path[PTID_FSTAB] = g_string_new("/etc/fstab");
+ cfg->path.path[PTID_MTAB] = g_string_new("/proc/mounts");
+