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.
This commit is contained in:
alek 2005-10-31 20:14:11 +00:00
parent b8d3878a63
commit a5f927a88e
6 changed files with 98 additions and 0 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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)

View File

@ -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.

View File

@ -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.

View File

@ -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