summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormarkd <markd>2007-01-26 02:30:13 +0000
committermarkd <markd>2007-01-26 02:30:13 +0000
commit9a720dfa3e8dddbbd7cb01abdbe20359ff97a1d5 (patch)
treeb85eff732249386c8f47c25c2ebb3534b258bbbd /misc
parenta14eed2d0c809c75fdb126d3c1d4c4d6acf8e808 (diff)
downloadpkgsrc-9a720dfa3e8dddbbd7cb01abdbe20359ff97a1d5.tar.gz
Split directory handling out from kdelibs to its own package.
Diffstat (limited to 'misc')
-rw-r--r--misc/kde3-dirs/DESCR2
-rw-r--r--misc/kde3-dirs/Makefile29
-rw-r--r--misc/kde3-dirs/PLIST1
-rw-r--r--misc/kde3-dirs/dirs.mk153
4 files changed, 185 insertions, 0 deletions
diff --git a/misc/kde3-dirs/DESCR b/misc/kde3-dirs/DESCR
new file mode 100644
index 00000000000..4902d0fe24e
--- /dev/null
+++ b/misc/kde3-dirs/DESCR
@@ -0,0 +1,2 @@
+kde3-dirs installs a set of shared directories used by many KDE3
+applications. It is useful to simplify PLIST handling in other packages.
diff --git a/misc/kde3-dirs/Makefile b/misc/kde3-dirs/Makefile
new file mode 100644
index 00000000000..3c70e03362d
--- /dev/null
+++ b/misc/kde3-dirs/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/01/26 02:30:13 markd Exp $
+#
+
+DISTNAME= kde3-dirs-1.0
+CATEGORIES= misc kde
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= markd@NetBSD.org
+HOMEPAGE= # empty
+COMMENT= Shared KDE (v3) directories
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}
+USE_LANGUAGES= # empty
+NO_EXTRACT= yes
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+.include "dirs.mk"
+.include "../../mk/bsd.prefs.mk"
+
+REQD_DIRS+= ${KDE3_DIRS:O:S/^/${PREFIX}\//}
+
+do-install: # nothing
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/kde3-dirs/PLIST b/misc/kde3-dirs/PLIST
new file mode 100644
index 00000000000..f5a12d0f366
--- /dev/null
+++ b/misc/kde3-dirs/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/01/26 02:30:13 markd Exp $
diff --git a/misc/kde3-dirs/dirs.mk b/misc/kde3-dirs/dirs.mk
new file mode 100644
index 00000000000..f73cf3321d8
--- /dev/null
+++ b/misc/kde3-dirs/dirs.mk
@@ -0,0 +1,153 @@
+# $NetBSD: dirs.mk,v 1.1.1.1 2007/01/26 02:30:13 markd Exp $
+#
+
+.if !defined(DIRS_KDE3_MK)
+DIRS_KDE3_MK= #defined
+
+_USE_XDG_DIRS= 1.2
+.include "../../misc/xdg-dirs/dirs.mk"
+
+KDE3_DIRS= include/dom
+KDE3_DIRS+= include/kabc
+KDE3_DIRS+= include/kate
+KDE3_DIRS+= include/kparts
+KDE3_DIRS+= lib/kconf_update_bin
+KDE3_DIRS+= lib/kde3
+KDE3_DIRS+= lib/kde3/plugins
+KDE3_DIRS+= lib/kde3/plugins/designer
+KDE3_DIRS+= lib/kde3/plugins/styles
+KDE3_DIRS+= share/applications/kde
+KDE3_DIRS+= share/doc/kde
+KDE3_DIRS+= share/doc/kde/HTML
+
+.for lang in af ar az bg bn br bs ca cs cy da de el en en_GB eo es et eu \
+ fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms \
+ nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv \
+ ta tg tr uk uz vi zh_CN zh_TW
+KDE3_DIRS+= share/doc/kde/HTML/${lang}
+KDE3_DIRS+= share/doc/kde/HTML/${lang}/common
+.endfor
+
+KDE3_DIRS+= share/doc/kde/HTML/en/kcontrol
+KDE3_DIRS+= share/doc/kde/HTML/en/kinfocenter
+
+_ICONCOLORS= crystalsvg locolor
+_ICONSIZES= 16x16 22x22 32x32 48x48 64x64 128x128 scalable
+_ICONDIRS= actions apps devices filesystems mimetypes
+
+.for color in ${_ICONCOLORS}
+KDE3_DIRS+= share/icons/${color}
+. for size in ${_ICONSIZES}
+KDE3_DIRS+= share/icons/${color}/${size}
+. for dir in ${_ICONDIRS}
+KDE3_DIRS+= share/icons/${color}/${size}/${dir}
+. endfor
+. endfor
+.endfor
+
+KDE3_DIRS+= share/kde
+KDE3_DIRS+= share/kde/applnk
+KDE3_DIRS+= share/kde/applnk/.hidden
+KDE3_DIRS+= share/kde/applnk/Applications
+KDE3_DIRS+= share/kde/applnk/Development
+KDE3_DIRS+= share/kde/applnk/Editors
+KDE3_DIRS+= share/kde/applnk/Graphics
+KDE3_DIRS+= share/kde/applnk/Internet
+KDE3_DIRS+= share/kde/applnk/Office
+KDE3_DIRS+= share/kde/applnk/Settings
+KDE3_DIRS+= share/kde/applnk/Settingsmenu
+KDE3_DIRS+= share/kde/applnk/System
+KDE3_DIRS+= share/kde/applnk/System/ScreenSavers
+KDE3_DIRS+= share/kde/applnk/Toys
+KDE3_DIRS+= share/kde/applnk/Utilities
+KDE3_DIRS+= share/kde/apps
+KDE3_DIRS+= share/kde/apps/kabc
+KDE3_DIRS+= share/kde/apps/kabc/formats
+KDE3_DIRS+= share/kde/apps/kaddressbook
+KDE3_DIRS+= share/kde/apps/kanagram
+KDE3_DIRS+= share/kde/apps/kanagram/data
+KDE3_DIRS+= share/kde/apps/kate
+KDE3_DIRS+= share/kde/apps/kate/plugins
+KDE3_DIRS+= share/kde/apps/kate/scripts
+KDE3_DIRS+= share/kde/apps/katepart
+KDE3_DIRS+= share/kde/apps/katepart/syntax
+KDE3_DIRS+= share/kde/apps/kcm_componentchooser
+KDE3_DIRS+= share/kde/apps/kconf_update
+KDE3_DIRS+= share/kde/apps/kcontrol
+KDE3_DIRS+= share/kde/apps/kcontrol/pics
+KDE3_DIRS+= share/kde/apps/kdeprint
+KDE3_DIRS+= share/kde/apps/kdesktop
+KDE3_DIRS+= share/kde/apps/kdesktop/programs
+KDE3_DIRS+= share/kde/apps/khangman
+KDE3_DIRS+= share/kde/apps/khangman/data
+KDE3_DIRS+= share/kde/apps/khtml
+KDE3_DIRS+= share/kde/apps/khtml/kpartplugins
+KDE3_DIRS+= share/kde/apps/kicker
+KDE3_DIRS+= share/kde/apps/kicker/applets
+KDE3_DIRS+= share/kde/apps/kicker/extensions
+KDE3_DIRS+= share/kde/apps/klettres
+KDE3_DIRS+= share/kde/apps/konqsidebartng
+KDE3_DIRS+= share/kde/apps/konqsidebartng/virtual_folders
+KDE3_DIRS+= share/kde/apps/konqsidebartng/virtual_folders/services
+KDE3_DIRS+= share/kde/apps/konqueror
+KDE3_DIRS+= share/kde/apps/konqueror/dirtree
+KDE3_DIRS+= share/kde/apps/konqueror/dirtree/remote
+KDE3_DIRS+= share/kde/apps/konqueror/kpartplugins
+KDE3_DIRS+= share/kde/apps/konqueror/servicemenus
+KDE3_DIRS+= share/kde/apps/koffice
+KDE3_DIRS+= share/kde/apps/koffice/autocorrect
+KDE3_DIRS+= share/kde/apps/kstyle
+KDE3_DIRS+= share/kde/apps/kstyle/themes
+KDE3_DIRS+= share/kde/apps/ktuberling
+KDE3_DIRS+= share/kde/apps/ktuberling/sounds
+KDE3_DIRS+= share/kde/apps/kturtle
+KDE3_DIRS+= share/kde/apps/kturtle/examples
+KDE3_DIRS+= share/kde/apps/kturtle/data
+KDE3_DIRS+= share/kde/apps/kwin
+KDE3_DIRS+= share/kde/apps/profiles
+KDE3_DIRS+= share/kde/apps/remoteview
+KDE3_DIRS+= share/kde/apps/zeroconf
+KDE3_DIRS+= share/kde/autostart
+KDE3_DIRS+= share/kde/config
+KDE3_DIRS+= share/kde/config/magic
+KDE3_DIRS+= share/kde/config.kcfg
+KDE3_DIRS+= share/kde/emoticons
+KDE3_DIRS+= share/kde/mimelnk
+KDE3_DIRS+= share/kde/mimelnk/all
+KDE3_DIRS+= share/kde/mimelnk/application
+KDE3_DIRS+= share/kde/mimelnk/audio
+KDE3_DIRS+= share/kde/mimelnk/fonts
+KDE3_DIRS+= share/kde/mimelnk/image
+KDE3_DIRS+= share/kde/mimelnk/inode
+KDE3_DIRS+= share/kde/mimelnk/interface
+KDE3_DIRS+= share/kde/mimelnk/media
+KDE3_DIRS+= share/kde/mimelnk/message
+KDE3_DIRS+= share/kde/mimelnk/model
+KDE3_DIRS+= share/kde/mimelnk/multipart
+KDE3_DIRS+= share/kde/mimelnk/print
+KDE3_DIRS+= share/kde/mimelnk/text
+KDE3_DIRS+= share/kde/mimelnk/uri
+KDE3_DIRS+= share/kde/mimelnk/video
+KDE3_DIRS+= share/kde/services
+KDE3_DIRS+= share/kde/services/kaddressbook
+KDE3_DIRS+= share/kde/services/kconfiguredialog
+KDE3_DIRS+= share/kde/services/kded
+KDE3_DIRS+= share/kde/services/kresources
+KDE3_DIRS+= share/kde/services/kresources/kabc
+KDE3_DIRS+= share/kde/servicetypes
+KDE3_DIRS+= share/kde/sounds
+KDE3_DIRS+= share/kde/templates
+KDE3_DIRS+= share/kde/templates/.source
+KDE3_DIRS+= share/kde/wallpapers
+
+.if defined(_USE_KDE3_DIRS) && !empty(_USE_KDE3_DIRS)
+DEPENDS+= kde3-dirs>=${_USE_KDE3_DIRS}:../../misc/kde3-dirs
+
+. for dir in ${KDE3_DIRS}
+PRINT_PLIST_AWK+= /^@exec \$${MKDIR} %D\/${dir:S|/|\\/|g}$$/ { next; }
+PRINT_PLIST_AWK+= /^@dirrm ${dir:S|/|\\/|g}$$/ \
+ { print "@comment in kde: " $$0; next; }
+. endfor
+.endif
+
+.endif # !defined(DIRS_KDE3_MK)