1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Add another monster from Helixcode - Metatheme, an utility for managing "theme

sets" that accomodate gtk, window manager, etc.
This commit is contained in:
Maxim Sobolev 2000-11-27 16:44:31 +00:00
parent a2014e7a8b
commit 1e33437fcc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35468
27 changed files with 387 additions and 0 deletions

View File

@ -91,6 +91,7 @@
SUBDIR += magicpoint
SUBDIR += man.el
SUBDIR += mc
SUBDIR += metatheme
SUBDIR += mgp-mode.el
SUBDIR += mmv
SUBDIR += most

40
misc/metatheme/Makefile Normal file
View File

@ -0,0 +1,40 @@
# New ports collection makefile for: metatheme
# Date created: 25 November 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= metatheme
PORTVERSION= 0.5.0
CATEGORIES= misc gnome
MASTER_SITES= ftp://ftp.helixcode.com/pub/metatheme/
MAINTAINER= sobomax@FreeBSD.org
LIB_DEPENDS= gtkhtml.5:${PORTSDIR}/www/gtkhtml \
gal.1:${PORTSDIR}/x11-toolkits/gal \
gnet.0:${PORTSDIR}/net/gnet
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
post-configure:
.for file in gtk/gtk-plugin.c background/background-plugin.c sawfish/sawfish-plugin.c
@${PERL} -pi -e 's|%%GTK_CONFIG%%|${GTK_CONFIG}|g ; \
s|%%X11BASE%%|${X11BASE}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/plugins/${file}
.endfor
.include <bsd.port.mk>

1
misc/metatheme/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (metatheme-0.5.0.tar.gz) = e3e5f9a57d58e132092b9c16b877c8ae

View File

@ -0,0 +1,11 @@
--- mtm-ui/Makefile.in 2000/11/25 22:18:16 1.1
+++ mtm-ui/Makefile.in 2000/11/25 22:22:42
@@ -149,7 +149,7 @@
test_selector_SOURCES = test-selector.c
-test_selector_LDFLAGS = `gnome-config --libs xml gnome` `gtk-config --libs`
+test_selector_LDFLAGS = @GNOME_LIBS@ @GTK_LIBS@ @EXTRA_LIBS@
test_selector_LDADD = ../mtm/libmtm.la libmtm-ui.la

View File

@ -0,0 +1,11 @@
--- plugins/gtk/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/gtk/Makefile.in 2000/11/26 21:12:58
@@ -148,7 +148,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libgtk_la_LDFLAGS =
+libgtk_la_LDFLAGS = -module -avoid-version
libgtk_la_LIBADD =
libgtk_la_OBJECTS = gtk-plugin.lo
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,11 @@
--- plugins/background/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/background/Makefile.in 2000/11/26 21:13:03
@@ -150,7 +150,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libbackground_la_LDFLAGS =
+libbackground_la_LDFLAGS = -module -avoid-version
libbackground_la_DEPENDENCIES =
libbackground_la_OBJECTS = background-plugin.lo config-io.lo \
bg-ext-handler.lo

View File

@ -0,0 +1,11 @@
--- plugins/sawfish/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/sawfish/Makefile.in 2000/11/26 21:13:06
@@ -148,7 +148,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libsawfish_la_LDFLAGS =
+libsawfish_la_LDFLAGS = -module -avoid-version
libsawfish_la_LIBADD =
libsawfish_la_OBJECTS = sawfish-plugin.lo
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,11 @@
--- plugins/preview/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/preview/Makefile.in 2000/11/26 21:13:09
@@ -148,7 +148,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libpreview_la_LDFLAGS =
+libpreview_la_LDFLAGS = -module -avoid-version
libpreview_la_LIBADD =
libpreview_la_OBJECTS = preview-plugin.lo
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,21 @@
--- plugins/gtk/gtk-plugin.c 2000/11/26 21:25:12 1.1
+++ plugins/gtk/gtk-plugin.c 2000/11/26 21:27:39
@@ -375,15 +375,15 @@
/* This should be more robust.
* Perhaps we could make this user-configurable somehow. */
- pipe = popen ("gtk-config --prefix", "r");
+ pipe = popen ("%%GTK_CONFIG%% --prefix", "r");
if (pipe == NULL)
- return g_strdup ("/usr");
+ return g_strdup ("%%X11BASE%%");
fgets (prefix, 1000, pipe);
pclose (pipe);
if (prefix == NULL)
- return g_strdup ("/usr");
+ return g_strdup ("%%X11BASE%%");
return g_strchomp (g_strdup (prefix));
}

View File

@ -0,0 +1,15 @@
--- plugins/background/background-plugin.c 2000/11/26 21:31:41 1.1
+++ plugins/background/background-plugin.c 2000/11/26 21:33:54
@@ -227,9 +227,9 @@
bg_plugin_find_theme (MtmExtHandler *handler, gchar *name,
gboolean is_root)
{
- gchar *root_prefixes[] = {"/usr/share/pixmaps/backgrounds",
- "/usr/share/pixmaps/backgrounds/tiles",
- "/usr/share/wallpapers",
+ gchar *root_prefixes[] = {"%%X11BASE%%/share/gnome/pixmaps/backgrounds",
+ "%%X11BASE%%/share/gnome/pixmaps/backgrounds/tiles",
+ "%%X11BASE%%/share/gnome/wallpapers",
NULL};
gchar *user_prefixes[] = {".metatheme-backgrounds",
".backgrounds",

View File

@ -0,0 +1,11 @@
--- plugins/sawfish/sawfish-plugin.c 2000/11/26 21:31:47 1.1
+++ plugins/sawfish/sawfish-plugin.c 2000/11/26 21:35:26
@@ -227,7 +227,7 @@
gchar *name, gboolean is_root)
{
gchar *root_prefixes[] = {"share/sawfish/themes", NULL};
- gchar *pre_prefixes[] = {"/usr/", "/usr/local/", NULL};
+ gchar *pre_prefixes[] = {"%%X11BASE%%", "%%LOCALBASE%%", NULL};
gchar *user_prefixes[] = {".sawfish/themes", NULL};
gchar **arr;
gchar *ret;

View File

@ -0,0 +1 @@
An utility for managing "theme sets" that accomodate gtk, window manager, etc

2
misc/metatheme/pkg-descr Normal file
View File

@ -0,0 +1,2 @@
This is metatheme, an application for managing "theme sets" that accomodate
gtk+, your window manager, etc etc.

47
misc/metatheme/pkg-plist Normal file
View File

@ -0,0 +1,47 @@
bin/metatheme-edit
bin/metatheme-install
bin/metatheme_selector_capplet
include/mtm-ui/mtm-ext-selector.h
include/mtm/mtm-env.h
include/mtm/mtm-ext-handler.h
include/mtm/mtm-ext.h
include/mtm/mtm-handler.h
include/mtm/mtm-init.h
include/mtm/mtm-plugin.h
include/mtm/mtm-stateful.h
include/mtm/mtm-theme-ball.h
include/mtm/mtm-theme.h
include/mtm/mtm-util.h
include/mtm/mtm.h
lib/libmtm-ui.a
lib/libmtm-ui.so
lib/libmtm-ui.so.0
lib/libmtm.a
lib/libmtm.so
lib/libmtm.so.0
lib/metatheme/plugins/libbackground.so
lib/metatheme/plugins/libgtk.so
lib/metatheme/plugins/libpreview.so
lib/metatheme/plugins/libsawfish.so
share/gnome/apps/Applications/metatheme-edit.desktop
share/gnome/apps/Settings/Desktop/metatheme_selector.desktop
share/gnome/control-center/Desktop/metatheme_selector.desktop
share/gnome/mime-info/metatheme-edit.keys
share/gnome/mime-info/metatheme-install.keys
share/gnome/mime-info/metatheme.keys
share/gnome/mime-info/metatheme.mime
share/gnome/pixmaps/gnome-application-x-metatheme.png
share/locale/da/LC_MESSAGES/metatheme.mo
share/locale/fr/LC_MESSAGES/metatheme.mo
share/locale/pt_BR/LC_MESSAGES/metatheme.mo
share/locale/tr/LC_MESSAGES/metatheme.mo
share/metatheme-glade/metatheme-edit.glade
share/metatheme-glade/metatheme-install.glade
share/metatheme-glade/mtm-sel.glade
share/metathemes/default.mtm
@dirrm share/metathemes
@dirrm share/metatheme-glade
@dirrm lib/metatheme/plugins
@dirrm lib/metatheme
@dirrm include/mtm-ui
@dirrm include/mtm

40
misc/metatheme2/Makefile Normal file
View File

@ -0,0 +1,40 @@
# New ports collection makefile for: metatheme
# Date created: 25 November 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= metatheme
PORTVERSION= 0.5.0
CATEGORIES= misc gnome
MASTER_SITES= ftp://ftp.helixcode.com/pub/metatheme/
MAINTAINER= sobomax@FreeBSD.org
LIB_DEPENDS= gtkhtml.5:${PORTSDIR}/www/gtkhtml \
gal.1:${PORTSDIR}/x11-toolkits/gal \
gnet.0:${PORTSDIR}/net/gnet
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
post-configure:
.for file in gtk/gtk-plugin.c background/background-plugin.c sawfish/sawfish-plugin.c
@${PERL} -pi -e 's|%%GTK_CONFIG%%|${GTK_CONFIG}|g ; \
s|%%X11BASE%%|${X11BASE}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/plugins/${file}
.endfor
.include <bsd.port.mk>

1
misc/metatheme2/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (metatheme-0.5.0.tar.gz) = e3e5f9a57d58e132092b9c16b877c8ae

View File

@ -0,0 +1,11 @@
--- mtm-ui/Makefile.in 2000/11/25 22:18:16 1.1
+++ mtm-ui/Makefile.in 2000/11/25 22:22:42
@@ -149,7 +149,7 @@
test_selector_SOURCES = test-selector.c
-test_selector_LDFLAGS = `gnome-config --libs xml gnome` `gtk-config --libs`
+test_selector_LDFLAGS = @GNOME_LIBS@ @GTK_LIBS@ @EXTRA_LIBS@
test_selector_LDADD = ../mtm/libmtm.la libmtm-ui.la

View File

@ -0,0 +1,11 @@
--- plugins/gtk/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/gtk/Makefile.in 2000/11/26 21:12:58
@@ -148,7 +148,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libgtk_la_LDFLAGS =
+libgtk_la_LDFLAGS = -module -avoid-version
libgtk_la_LIBADD =
libgtk_la_OBJECTS = gtk-plugin.lo
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,11 @@
--- plugins/background/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/background/Makefile.in 2000/11/26 21:13:03
@@ -150,7 +150,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libbackground_la_LDFLAGS =
+libbackground_la_LDFLAGS = -module -avoid-version
libbackground_la_DEPENDENCIES =
libbackground_la_OBJECTS = background-plugin.lo config-io.lo \
bg-ext-handler.lo

View File

@ -0,0 +1,11 @@
--- plugins/sawfish/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/sawfish/Makefile.in 2000/11/26 21:13:06
@@ -148,7 +148,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libsawfish_la_LDFLAGS =
+libsawfish_la_LDFLAGS = -module -avoid-version
libsawfish_la_LIBADD =
libsawfish_la_OBJECTS = sawfish-plugin.lo
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,11 @@
--- plugins/preview/Makefile.in 2000/11/26 21:12:29 1.1
+++ plugins/preview/Makefile.in 2000/11/26 21:13:09
@@ -148,7 +148,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libpreview_la_LDFLAGS =
+libpreview_la_LDFLAGS = -module -avoid-version
libpreview_la_LIBADD =
libpreview_la_OBJECTS = preview-plugin.lo
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,21 @@
--- plugins/gtk/gtk-plugin.c 2000/11/26 21:25:12 1.1
+++ plugins/gtk/gtk-plugin.c 2000/11/26 21:27:39
@@ -375,15 +375,15 @@
/* This should be more robust.
* Perhaps we could make this user-configurable somehow. */
- pipe = popen ("gtk-config --prefix", "r");
+ pipe = popen ("%%GTK_CONFIG%% --prefix", "r");
if (pipe == NULL)
- return g_strdup ("/usr");
+ return g_strdup ("%%X11BASE%%");
fgets (prefix, 1000, pipe);
pclose (pipe);
if (prefix == NULL)
- return g_strdup ("/usr");
+ return g_strdup ("%%X11BASE%%");
return g_strchomp (g_strdup (prefix));
}

View File

@ -0,0 +1,15 @@
--- plugins/background/background-plugin.c 2000/11/26 21:31:41 1.1
+++ plugins/background/background-plugin.c 2000/11/26 21:33:54
@@ -227,9 +227,9 @@
bg_plugin_find_theme (MtmExtHandler *handler, gchar *name,
gboolean is_root)
{
- gchar *root_prefixes[] = {"/usr/share/pixmaps/backgrounds",
- "/usr/share/pixmaps/backgrounds/tiles",
- "/usr/share/wallpapers",
+ gchar *root_prefixes[] = {"%%X11BASE%%/share/gnome/pixmaps/backgrounds",
+ "%%X11BASE%%/share/gnome/pixmaps/backgrounds/tiles",
+ "%%X11BASE%%/share/gnome/wallpapers",
NULL};
gchar *user_prefixes[] = {".metatheme-backgrounds",
".backgrounds",

View File

@ -0,0 +1,11 @@
--- plugins/sawfish/sawfish-plugin.c 2000/11/26 21:31:47 1.1
+++ plugins/sawfish/sawfish-plugin.c 2000/11/26 21:35:26
@@ -227,7 +227,7 @@
gchar *name, gboolean is_root)
{
gchar *root_prefixes[] = {"share/sawfish/themes", NULL};
- gchar *pre_prefixes[] = {"/usr/", "/usr/local/", NULL};
+ gchar *pre_prefixes[] = {"%%X11BASE%%", "%%LOCALBASE%%", NULL};
gchar *user_prefixes[] = {".sawfish/themes", NULL};
gchar **arr;
gchar *ret;

View File

@ -0,0 +1 @@
An utility for managing "theme sets" that accomodate gtk, window manager, etc

View File

@ -0,0 +1,2 @@
This is metatheme, an application for managing "theme sets" that accomodate
gtk+, your window manager, etc etc.

47
misc/metatheme2/pkg-plist Normal file
View File

@ -0,0 +1,47 @@
bin/metatheme-edit
bin/metatheme-install
bin/metatheme_selector_capplet
include/mtm-ui/mtm-ext-selector.h
include/mtm/mtm-env.h
include/mtm/mtm-ext-handler.h
include/mtm/mtm-ext.h
include/mtm/mtm-handler.h
include/mtm/mtm-init.h
include/mtm/mtm-plugin.h
include/mtm/mtm-stateful.h
include/mtm/mtm-theme-ball.h
include/mtm/mtm-theme.h
include/mtm/mtm-util.h
include/mtm/mtm.h
lib/libmtm-ui.a
lib/libmtm-ui.so
lib/libmtm-ui.so.0
lib/libmtm.a
lib/libmtm.so
lib/libmtm.so.0
lib/metatheme/plugins/libbackground.so
lib/metatheme/plugins/libgtk.so
lib/metatheme/plugins/libpreview.so
lib/metatheme/plugins/libsawfish.so
share/gnome/apps/Applications/metatheme-edit.desktop
share/gnome/apps/Settings/Desktop/metatheme_selector.desktop
share/gnome/control-center/Desktop/metatheme_selector.desktop
share/gnome/mime-info/metatheme-edit.keys
share/gnome/mime-info/metatheme-install.keys
share/gnome/mime-info/metatheme.keys
share/gnome/mime-info/metatheme.mime
share/gnome/pixmaps/gnome-application-x-metatheme.png
share/locale/da/LC_MESSAGES/metatheme.mo
share/locale/fr/LC_MESSAGES/metatheme.mo
share/locale/pt_BR/LC_MESSAGES/metatheme.mo
share/locale/tr/LC_MESSAGES/metatheme.mo
share/metatheme-glade/metatheme-edit.glade
share/metatheme-glade/metatheme-install.glade
share/metatheme-glade/mtm-sel.glade
share/metathemes/default.mtm
@dirrm share/metathemes
@dirrm share/metatheme-glade
@dirrm lib/metatheme/plugins
@dirrm lib/metatheme
@dirrm include/mtm-ui
@dirrm include/mtm