initial import of wmtheme-1.2.8:

--
wmtheme is a utility which, generally speaking, allows you to perform
certain operations on themes by name. For example, to rename do wmtheme
-r oldname newname; to activate do wmtheme name, to get from themes.org
do wmtheme -g name.

Furthermore, it takes great care to make installation painless, in spite
of evolving formats, packaging carelessness, and incompatibility between
old themes and current window managers. wmtheme -i theme-package.tar.gz
will almost always result in a correct installation. It will also take
steps to clean up settings that don't belong in themes, and disable
suspicious-looking shell commands (these sorts of things might occur in
Window Maker or Blackbox themes). This behavior can be turned off,
however.

Supports themes for the following:
   - AfterStep (astheme)
   - Blackbox (bbtheme)
   - Enlightenment (etheme)
   - Golem (gotheme)
   - gtk+ (gtktheme)
   - IceWM (itheme)
   - Oroborus (ortheme)
   - Sawfish (sftheme)
   - Window Maker (wmtheme)
   - xmms (xmtheme)

WWW: http://wmtheme.sourceforge.net/
This commit is contained in:
lebel 2001-09-07 03:12:57 +00:00
parent d20d8b69d1
commit 18d4a1bcf3
5 changed files with 133 additions and 0 deletions

33
x11/wmtheme/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/09/07 03:12:57 lebel Exp $
COMMENT= "window manager theme utility"
DISTNAME= wmtheme-1.2.8
CATEGORIES= x11
NEED_VERSION= 1.402
HOMEPAGE= http://wmtheme.sourceforge.net/
MAINTAINER= David Lebel <lebel@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= wmtheme
LIB_DEPENDS= gtk.1.2::x11/gtk+
USE_GMAKE= Yes
EXTRA_THEMES= gotheme ortheme
FAKE_FLAGS+= prefix=${PREFIX} DESTDIR=${WRKINST}
post-install:
.for i in ${EXTRA_THEMES}
cd ${PREFIX}/bin; ln -sf wmtheme $i;
cd ${PREFIX}/man/man1; ln -sf wmtheme.1.gz $i.1.gz
.endfor
.include <bsd.port.mk>

3
x11/wmtheme/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (wmtheme-1.2.8.tar.gz) = a395c69b07c57a044d990b6a62ae200b
RMD160 (wmtheme-1.2.8.tar.gz) = bf48a4ba7abc02e742a5a8142ffc3899e3101a0b
SHA1 (wmtheme-1.2.8.tar.gz) = 30ad4cf2a4a908c244d1e869343181b79ecef7e7

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-wmtheme,v 1.1.1.1 2001/09/07 03:12:57 lebel Exp $
--- wmtheme.orig Fri Aug 10 17:06:50 2001
+++ wmtheme Thu Sep 6 13:20:03 2001
@@ -1368,7 +1368,7 @@ sub getuserchoice {
}
sub screensize {
- my ($rows, $cols) = (24, 50);
+ my ($rows, $cols) = (24, 80);
my $sttyout = `stty -a`;
if ($sttyout =~ /\brows (\d+)/) {
@@ -1376,7 +1376,7 @@ sub screensize {
}
if ($sttyout =~ /\bcolumns (\d+)/) {
- $cols = $1 < 50 ? 50 : $1;
+ $cols = $1 < 80 ? 80 : $1;
}
($rows, $cols);
@@ -1570,7 +1570,7 @@ sub getfiletypes {
$cleanups{getfiletypes} = $file_input;
stowfile($file_input, join("\n", @files) . "\n");
- my @types = split(/\n/, forktick("file -b -f \Q$file_input\E"));
+ my @types = split(/\n/, forktick("file -f \Q$file_input\E | sed -e \Qs;^[^:]*: *;;g\E"));
unlink $file_input or choke("can't remove temporary file $file_input: $!");
delete $cleanups{getfiletypes};

27
x11/wmtheme/pkg/DESCR Normal file
View File

@ -0,0 +1,27 @@
wmtheme is a utility which, generally speaking, allows you to perform
certain operations on themes by name. For example, to rename do wmtheme
-r oldname newname; to activate do wmtheme name, to get from themes.org
do wmtheme -g name.
Furthermore, it takes great care to make installation painless, in spite
of evolving formats, packaging carelessness, and incompatibility between
old themes and current window managers. wmtheme -i theme-package.tar.gz
will almost always result in a correct installation. It will also take
steps to clean up settings that don't belong in themes, and disable
suspicious-looking shell commands (these sorts of things might occur in
Window Maker or Blackbox themes). This behavior can be turned off,
however.
Supports themes for the following:
- AfterStep (astheme)
- Blackbox (bbtheme)
- Enlightenment (etheme)
- Golem (gotheme)
- gtk+ (gtktheme)
- IceWM (itheme)
- Oroborus (ortheme)
- Sawfish (sftheme)
- Window Maker (wmtheme)
- xmms (xmtheme)
WWW: ${HOMEPAGE}

40
x11/wmtheme/pkg/PLIST Normal file
View File

@ -0,0 +1,40 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/09/07 03:12:57 lebel Exp $
bin/apply-gtk-theme
bin/astheme
bin/bbtheme
bin/etheme
bin/gotheme
bin/gtktheme
bin/itheme
bin/ortheme
bin/sftheme
bin/wminstallfonts
bin/wmtheme
bin/xmtheme
lib/wmtheme/afterstep.pl
lib/wmtheme/blackbox.pl
lib/wmtheme/conf.default
lib/wmtheme/enlightenment.pl
lib/wmtheme/golem.pl
lib/wmtheme/gtk.pl
lib/wmtheme/icewm.pl
lib/wmtheme/oroborus.pl
lib/wmtheme/sawfish.pl
lib/wmtheme/wm_config.pl
lib/wmtheme/wm_data.pl
lib/wmtheme/wm_download.pl
lib/wmtheme/wm_fonts.pl
lib/wmtheme/wm_update.pl
lib/wmtheme/wmaker.pl
lib/wmtheme/xmms.pl
man/man1/astheme.1.gz
man/man1/bbtheme.1.gz
man/man1/etheme.1.gz
man/man1/gotheme.1.gz
man/man1/gtktheme.1.gz
man/man1/itheme.1.gz
man/man1/ortheme.1.gz
man/man1/sftheme.1.gz
man/man1/wmtheme.1.gz
man/man1/xmtheme.1.gz
@dirrm lib/wmtheme