summaryrefslogtreecommitdiff
path: root/wm/metacity-setup
diff options
context:
space:
mode:
Diffstat (limited to 'wm/metacity-setup')
-rw-r--r--wm/metacity-setup/DESCR4
-rw-r--r--wm/metacity-setup/Makefile31
-rw-r--r--wm/metacity-setup/PLIST8
-rw-r--r--wm/metacity-setup/distinfo5
-rw-r--r--wm/metacity-setup/patches/patch-aa49
5 files changed, 97 insertions, 0 deletions
diff --git a/wm/metacity-setup/DESCR b/wm/metacity-setup/DESCR
new file mode 100644
index 00000000000..0a9c61d9e24
--- /dev/null
+++ b/wm/metacity-setup/DESCR
@@ -0,0 +1,4 @@
+metacity-setup is a graphical utility to configure the Metacity window
+manager, allowing you to change themes, focus settings, the number of
+workspaces, etc. It is much easier than having to use gconftool or
+gconf-editor.
diff --git a/wm/metacity-setup/Makefile b/wm/metacity-setup/Makefile
new file mode 100644
index 00000000000..4a35a2694d6
--- /dev/null
+++ b/wm/metacity-setup/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/01 11:38:15 jmmv Exp $
+#
+
+DISTNAME= metacity-setup-0.7.1
+CATEGORIES= wm
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=metacity-setup/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.sourceforge.net/projects/metacity-setup/
+COMMENT= Configuration editor for Metacity
+
+BUILD_USES_MSGFMT= YES
+DEPENDS= gnome2-dirs>=1.2:../../misc/gnome2-dirs
+
+GNU_CONFIGURE= yes
+USE_BUILDLINK2= yes
+USE_LIBTOOL= yes
+USE_PERL5= build
+USE_PKGLOCALEDIR= yes
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+.include "../../devel/GConf2/buildlink2.mk"
+.include "../../devel/libglade2/buildlink2.mk"
+.include "../../devel/libgnomeui/buildlink2.mk"
+.include "../../devel/pkgconfig/buildlink2.mk"
+.include "../../textproc/intltool/buildlink2.mk"
+.include "../../sysutils/gnome-vfs2/buildlink2.mk"
+.include "../../wm/metacity/buildlink2.mk"
+.include "../../x11/gtk2/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/wm/metacity-setup/PLIST b/wm/metacity-setup/PLIST
new file mode 100644
index 00000000000..89743aa8f52
--- /dev/null
+++ b/wm/metacity-setup/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/01 11:38:16 jmmv Exp $
+bin/metacity-setup
+share/control-center-2.0/capplets/metacity-setup.desktop
+share/metacity-setup/pixmaps/metacity-setup-icon.png
+share/pixmaps/metacity-setup-icon.png
+@dirrm share/metacity-setup/pixmaps
+@dirrm share/metacity-setup
+@comment in gnome2-dirs: @dirrm share/control-center-2.0/capplets
diff --git a/wm/metacity-setup/distinfo b/wm/metacity-setup/distinfo
new file mode 100644
index 00000000000..e15441ed9e3
--- /dev/null
+++ b/wm/metacity-setup/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/01 11:38:15 jmmv Exp $
+
+SHA1 (metacity-setup-0.7.1.tar.gz) = 1b196a65321869c66d8d0e30ebee53b2e36ec376
+Size (metacity-setup-0.7.1.tar.gz) = 210390 bytes
+SHA1 (patch-aa) = 59bf99a1652c73ee8f932ce300efdfd523726c13
diff --git a/wm/metacity-setup/patches/patch-aa b/wm/metacity-setup/patches/patch-aa
new file mode 100644
index 00000000000..1874d907712
--- /dev/null
+++ b/wm/metacity-setup/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/01 11:38:16 jmmv Exp $
+
+Patch obtained from gentoo: "metacity-setup doesn't really detect themes
+properly". See bug #8822 on bugs.gentoo.org.
+
+--- src/callbacks.c.orig 2002-10-05 12:36:03.000000000 -0500
++++ src/callbacks.c 2002-10-05 12:36:07.000000000 -0500
+@@ -226,20 +226,20 @@
+ GDir *themeDirectory =
+ g_dir_open (possibleThemeDirs[i], 0, NULL);
+
+- while ((filename =
+- g_dir_read_name (themeDirectory)) != NULL)
+- if (g_file_test
+- (g_build_filename
+- (possibleThemeDirs[i], filename, NULL),
+- G_FILE_TEST_IS_DIR) &&
+- (g_file_test
+- (g_build_filename
+- (possibleThemeDirs[i], filename, "metacity-theme-1.xml", NULL),
+- G_FILE_TEST_IS_REGULAR)))
+- {
+- g_ptr_array_add (themeNameHolder,
+- g_strdup (filename));
+- }
++ while ((filename = g_dir_read_name (themeDirectory)) != NULL)
++ if (g_file_test (g_build_filename (possibleThemeDirs[i], filename, NULL), G_FILE_TEST_IS_DIR) &&
++ ((g_file_test (g_build_filename (possibleThemeDirs[i], filename, "metacity-theme-1.xml", NULL), G_FILE_TEST_IS_REGULAR))
++ /* new themes have metacity-theme-1.xml stored under a directory: metacity-1 */
++ ||(g_file_test (g_build_filename (possibleThemeDirs[i], filename, "metacity-1", NULL), G_FILE_TEST_IS_DIR)
++ && g_file_test (g_build_filename (possibleThemeDirs[i], filename, "metacity-1", "metacity-theme-1.xml",NULL),
++ G_FILE_TEST_IS_REGULAR)
++ )
++ )
++ )
++ {
++ g_ptr_array_add (themeNameHolder,
++ g_strdup (filename));
++ }
+ g_dir_close (themeDirectory);
+ }
+ }
+@@ -690,4 +690,4 @@
+ else
+ metacity_version = "2.4";
+ on_treeview1_realize (treeview1_cheat, user_data);
+-}
+\ No newline at end of file
++}