From a5f927a88e5b77d5aae966db212a88d783fa09b2 Mon Sep 17 00:00:00 2001 From: alek Date: Mon, 31 Oct 2005 20:14:11 +0000 Subject: [PATCH] Import gtk-theme-switch 2.0.0rc2 GTK Theme Switch is a small and fast command line utility to switch GTK themes on the fly. It also has an optional GUI to preview the requested theme and change the font used with it, an optional GUI dock, and it can install themes downloaded from http://gtk.themes.org, preview them, or switch to them immediately. --- x11/gtk2-theme-switch/Makefile | 27 ++++++++++++++++ x11/gtk2-theme-switch/distinfo | 4 +++ x11/gtk2-theme-switch/patches/patch-Makefile | 34 ++++++++++++++++++++ x11/gtk2-theme-switch/patches/patch-switch_1 | 25 ++++++++++++++ x11/gtk2-theme-switch/pkg/DESCR | 5 +++ x11/gtk2-theme-switch/pkg/PLIST | 3 ++ 6 files changed, 98 insertions(+) create mode 100644 x11/gtk2-theme-switch/Makefile create mode 100644 x11/gtk2-theme-switch/distinfo create mode 100644 x11/gtk2-theme-switch/patches/patch-Makefile create mode 100644 x11/gtk2-theme-switch/patches/patch-switch_1 create mode 100644 x11/gtk2-theme-switch/pkg/DESCR create mode 100644 x11/gtk2-theme-switch/pkg/PLIST diff --git a/x11/gtk2-theme-switch/Makefile b/x11/gtk2-theme-switch/Makefile new file mode 100644 index 00000000000..3536adb0501 --- /dev/null +++ b/x11/gtk2-theme-switch/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/10/31 20:14:11 alek Exp $ + +COMMENT= "switch GTK+2 themes quickly" + +DISTNAME= gtk-theme-switch-2.0.0rc2 +PKGNAME= ${DISTNAME:S/gtk/gtk2/} +CATEGORIES= x11 graphics + +HOMEPAGE= http://www.muhri.net/nav.php3?node=gts + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= Xrender c X11 fontconfig m freetype Xft glib-2.0.0.0 \ + gmodule-2.0.0.0 pangox-1.0.0.0 gobject-2.0.0.0 \ + pangoxft-1.0.0.0 pango-1.0.0.0 atk-1.0.0.0 + +MASTER_SITES= http://www.muhri.net/ + +MODULES= devel/gettext +LIB_DEPENDS= gtk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gdk-x11-2.0.0.0::x11/gtk+2 + +NO_REGRESS= Yes + +.include diff --git a/x11/gtk2-theme-switch/distinfo b/x11/gtk2-theme-switch/distinfo new file mode 100644 index 00000000000..ab2bdb1c597 --- /dev/null +++ b/x11/gtk2-theme-switch/distinfo @@ -0,0 +1,4 @@ +MD5 (gtk-theme-switch-2.0.0rc2.tar.gz) = f51b254fb347a86feef12db4bd76be6f +RMD160 (gtk-theme-switch-2.0.0rc2.tar.gz) = dca1de3cbc01b6e2c2bcdb08c59e886eed748370 +SHA1 (gtk-theme-switch-2.0.0rc2.tar.gz) = 929b94b6e6becbf6ebac9abe839fca95059cce75 +SIZE (gtk-theme-switch-2.0.0rc2.tar.gz) = 14046 diff --git a/x11/gtk2-theme-switch/patches/patch-Makefile b/x11/gtk2-theme-switch/patches/patch-Makefile new file mode 100644 index 00000000000..8c929217bcd --- /dev/null +++ b/x11/gtk2-theme-switch/patches/patch-Makefile @@ -0,0 +1,34 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2005/10/31 20:14:11 alek Exp $ +--- Makefile.orig Wed Jun 11 07:16:36 2003 ++++ Makefile Mon Oct 31 16:15:19 2005 +@@ -1,24 +1,22 @@ + GCC = cc +-PREFIX=/usr/local +-CFLAGS = -O2 -Wall $(shell pkg-config --cflags gtk+-2.0) +-LIBS = $(shell pkg-config --libs gtk+-2.0) +-CFLAGS += -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED ++CFLAGS += -O2 -Wall `pkg-config --cflags gtk+-2.0` ++LIBS = `pkg-config --libs gtk+-2.0` ++CFLAGS += -DGTK_DISABLE_BROKEN + + VERSION = 2.0.0rc2 + all: switch + + switch: switch.c switch.h +- ${GCC} -o switch2 switch.c ${CFLAGS} ${LIBS} ++ ${CC} -o switch2 switch.c ${CFLAGS} ${LIBS} + + clean: + -rm -f switch2 *~ + + install: all +- strip switch2 + mkdir -p ${PREFIX}/bin + mkdir -p ${PREFIX}/man +- install -c switch2 ${PREFIX}/bin +- install -c switch.1 ${PREFIX}/man ++ ${BSD_INSTALL_PROGRAM} switch2 ${PREFIX}/bin/gtk-theme-switch2 ++ ${BSD_INSTALL_MAN} switch.1 ${PREFIX}/man/man1/gtk-theme-switch2.1 + + dist: clean + rm -rf /tmp/gtk-theme-switch-$(VERSION) diff --git a/x11/gtk2-theme-switch/patches/patch-switch_1 b/x11/gtk2-theme-switch/patches/patch-switch_1 new file mode 100644 index 00000000000..4b4657eada6 --- /dev/null +++ b/x11/gtk2-theme-switch/patches/patch-switch_1 @@ -0,0 +1,25 @@ +$OpenBSD: patch-switch_1,v 1.1.1.1 2005/10/31 20:14:11 alek Exp $ +--- switch.1.orig Mon Oct 31 21:08:06 2005 ++++ switch.1 Mon Oct 31 21:08:42 2005 +@@ -3,7 +3,7 @@ + .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection + .\" other parms are allowed: see man(7), man(1) + .SH NAME +-gtk-theme-switch \- fast and easy tool for switching and installing GTK themes ++gtk2-theme-switch \- fast and easy tool for switching and installing GTK themes + .SH COMMAND LINE ARGUMENTS + .nf + .BR "\-h[elp] " (display\ command-line\ argument\ reference) +@@ -18,10 +18,10 @@ Multiple command line arguments can be p + invocation. + .PP + Passing no arguments will start +-.B gtk-theme-switch ++.B gtk2-theme-switch + in dock-mode. + .SH DESCRIPTION +-.B gtk-theme-switch ++.B gtk2-theme-switch + is a Gtk+ theme switching utility that can be run from the console, and has an + optional GUI dock and theme preview. It also can install themes downloaded + from gtk.themes.org. diff --git a/x11/gtk2-theme-switch/pkg/DESCR b/x11/gtk2-theme-switch/pkg/DESCR new file mode 100644 index 00000000000..fd3b6074fb2 --- /dev/null +++ b/x11/gtk2-theme-switch/pkg/DESCR @@ -0,0 +1,5 @@ +GTK Theme Switch is a small and fast command line utility to switch GTK themes +on the fly. It also has an optional GUI to preview the requested theme and +change the font used with it, an optional GUI dock, and it can install themes +downloaded from http://gtk.themes.org, preview them, or switch to them +immediately. diff --git a/x11/gtk2-theme-switch/pkg/PLIST b/x11/gtk2-theme-switch/pkg/PLIST new file mode 100644 index 00000000000..1b8e55561ad --- /dev/null +++ b/x11/gtk2-theme-switch/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/10/31 20:14:11 alek Exp $ +bin/gtk-theme-switch2 +@man man/man1/gtk-theme-switch2.1