Import gtk-theme-switch 1.0.1.

Submitted by Nick Nauwelaerts <nick@nauwelaerts.net>.

GTK Theme Switch is a small and fast command line utility to switch GTK themes
on the fly.
This commit is contained in:
naddy 2003-01-14 01:01:19 +00:00
parent 968529b183
commit 0df3e38814
5 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/01/14 01:01:19 naddy Exp $
COMMENT= "switch GTK+ themes quickly"
DISTNAME= gtk-theme-switch-1.0.1
CATEGORIES= x11 graphics
HOMEPAGE= http://www.muhri.net/nav.php3?node=gts
MAINTAINER= Nick Nauwelaerts <nick@nauwelaerts.net>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.muhri.net/
LIB_DEPENDS= gtk.1.2,gdk.1.2::x11/gtk+
MAKE_FLAGS= CC="${CC}" \
CFLAGS="${CFLAGS} `gtk-config --cflags`" \
LIBS="${LIBS} `gtk-config --libs`"
USE_X11= Yes
NO_REGRESS= Yes
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/switch ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/switch.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (gtk-theme-switch-1.0.1.tar.gz) = e4227b986b1def0e28d1def3d0e9b0ff
RMD160 (gtk-theme-switch-1.0.1.tar.gz) = 1b0a0ddbf35115bf253cf6651e431ccda08a15ff
SHA1 (gtk-theme-switch-1.0.1.tar.gz) = 458888f2ea721cace18f627e034403dd1afd3bdd

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-switch_c,v 1.1.1.1 2003/01/14 01:01:19 naddy Exp $
--- switch.c.orig Tue May 28 12:32:34 2002
+++ switch.c Tue May 28 12:32:51 2002
@@ -679,11 +679,11 @@ static short install_tarball (gchar *pat
if (path[0] != '/')
{
gchar *cwd = g_get_current_dir();
- command = g_strdup_printf ("tar --directory %s -xzf %s/%s 2>/dev/null", themedir, cwd, path);
+ command = g_strdup_printf ("tar -C %s -xzf %s/%s 2>/dev/null", themedir, cwd, path);
g_free (cwd);
}
else
- command = g_strdup_printf ("tar --directory %s -xzf %s 2>/dev/null", themedir, path);
+ command = g_strdup_printf ("tar -C %s -xzf %s 2>/dev/null", themedir, path);
/* Ensure that ~/.themes exists */
mkdir (themedir, 755);

View File

@ -0,0 +1,9 @@
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.
/usr/ports/x11/gtk-engines/ has some sample themes.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/01/14 01:01:19 naddy Exp $
bin/switch
man/man1/switch.1