summaryrefslogtreecommitdiff
path: root/misc/theme-dirs
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-12-24 10:05:53 +0000
committerjmmv <jmmv@pkgsrc.org>2004-12-24 10:05:53 +0000
commit5022e7bf740f961f4b9579ff2ab158847a561297 (patch)
tree11f13cbbdf5f8e865e7f9049529faddb4e4f3cbf /misc/theme-dirs
parenta83b4f3e5d8267e4e9425b753f69ab62e8c877e3 (diff)
downloadpkgsrc-5022e7bf740f961f4b9579ff2ab158847a561297.tar.gz
Initial import of theme-dirs, version 1.0:
theme-dirs installs a set of shared directories used by GTK2+ (gtk2-engines) and other GNOME packages (such as metacity and gnome-themes). It is useful to simplify PLIST handling in other packages.
Diffstat (limited to 'misc/theme-dirs')
-rw-r--r--misc/theme-dirs/DESCR3
-rw-r--r--misc/theme-dirs/Makefile31
-rw-r--r--misc/theme-dirs/PLIST1
-rw-r--r--misc/theme-dirs/dirs.mk47
4 files changed, 82 insertions, 0 deletions
diff --git a/misc/theme-dirs/DESCR b/misc/theme-dirs/DESCR
new file mode 100644
index 00000000000..af5fb839902
--- /dev/null
+++ b/misc/theme-dirs/DESCR
@@ -0,0 +1,3 @@
+theme-dirs installs a set of shared directories used by GTK2+ (gtk2-engines)
+and other GNOME packages (such as metacity and gnome-themes). It is useful
+to simplify PLIST handling in other packages.
diff --git a/misc/theme-dirs/Makefile b/misc/theme-dirs/Makefile
new file mode 100644
index 00000000000..2c64c2011d3
--- /dev/null
+++ b/misc/theme-dirs/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/12/24 10:05:53 jmmv Exp $
+#
+
+DISTNAME= theme-dirs-1.0
+CATEGORIES= misc gnome kde
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= jmmv@NetBSD.org
+HOMEPAGE= # empty
+COMMENT= Shared theme directories
+
+NO_BUILD= # defined
+NO_BUILDLINK= # defined
+NO_CONFIGURE= # defined
+NO_CHECKSUM= # defined
+NO_EXTRACT= # defined
+USE_DIRS= xdg-1.1
+USE_LANGUAGES= # empty
+USE_PKGINSTALL= yes
+WRKSRC= ${WRKDIR}
+
+.include "dirs.mk"
+.include "../../mk/bsd.prefs.mk"
+
+_SORTED!= ${ECHO} ${THEME_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
+MAKE_DIRS+= ${_SORTED:S/^/${PREFIX}\//}
+
+do-install: # nothing
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/theme-dirs/PLIST b/misc/theme-dirs/PLIST
new file mode 100644
index 00000000000..3da55c9aa11
--- /dev/null
+++ b/misc/theme-dirs/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/24 10:05:53 jmmv Exp $
diff --git a/misc/theme-dirs/dirs.mk b/misc/theme-dirs/dirs.mk
new file mode 100644
index 00000000000..9327c073518
--- /dev/null
+++ b/misc/theme-dirs/dirs.mk
@@ -0,0 +1,47 @@
+# $NetBSD: dirs.mk,v 1.1.1.1 2004/12/24 10:05:53 jmmv Exp $
+#
+# This file is intended to be included by mk/dirs.mk, not directly by packages.
+#
+
+.if !defined(DIRS_THEME_MK)
+DIRS_THEME_MK= # defined
+
+THEME_DIRS= share/themes/AgingGorilla
+THEME_DIRS+= share/themes/Atlanta
+THEME_DIRS+= share/themes/Bright
+THEME_DIRS+= share/themes/Crux
+THEME_DIRS+= share/themes/Esco
+THEME_DIRS+= share/themes/Glider
+THEME_DIRS+= share/themes/Grand-Canyon
+THEME_DIRS+= share/themes/HighContrast
+THEME_DIRS+= share/themes/HighContrastInverse
+THEME_DIRS+= share/themes/HighContrastLargePrint
+THEME_DIRS+= share/themes/HighContrastLargePrintInverse
+THEME_DIRS+= share/themes/Industrial
+THEME_DIRS+= share/themes/LargePrint
+THEME_DIRS+= share/themes/LighthouseBlue
+THEME_DIRS+= share/themes/LowContrast
+THEME_DIRS+= share/themes/LowContrastLargePrint
+THEME_DIRS+= share/themes/Metabox
+THEME_DIRS+= share/themes/Metal
+THEME_DIRS+= share/themes/Mist
+THEME_DIRS+= share/themes/Ocean-Dream
+THEME_DIRS+= share/themes/Redmond
+THEME_DIRS+= share/themes/Sandwish
+THEME_DIRS+= share/themes/Simple
+THEME_DIRS+= share/themes/Smokey
+THEME_DIRS+= share/themes/Smokey-Blue
+THEME_DIRS+= share/themes/ThinIce
+THEME_DIRS+= share/themes/Traditional
+
+.if defined(_USE_THEME_DIRS) && !empty(_USE_THEME_DIRS)
+DEPENDS+= theme-dirs>=${_USE_THEME_DIRS}:../../misc/theme-dirs
+
+. for dir in ${THEME_DIRS}
+PRINT_PLIST_AWK+= /^@dirrm ${dir:S|/|\\/|g}$$/ \
+ { print "@comment in theme-dirs: " $$0; next; }
+. endfor
+. undef dir
+.endif
+
+.endif # !defined(DIRS_THEME_MK)