kde4-dirs installs a set of shared directories used by many KDE4

applications.  It is useful to simplify PLIST handling in other packages.
This commit is contained in:
Mark Davies 2007-12-12 03:09:28 +00:00 committed by Thomas Klausner
parent 4733a81d0e
commit 34971ef6a6
4 changed files with 127 additions and 0 deletions

2
kde4-dirs/DESCR Normal file
View file

@ -0,0 +1,2 @@
kde4-dirs installs a set of shared directories used by many KDE4
applications. It is useful to simplify PLIST handling in other packages.

30
kde4-dirs/Makefile Normal file
View file

@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.1.1.1 2007/12/12 03:09:28 mwdavies Exp $
#
DISTNAME= kde4-dirs-1.0
CATEGORIES= misc kde
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= markd@NetBSD.org
HOMEPAGE= # empty
COMMENT= Shared KDE (v4) directories
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # empty
NO_EXTRACT= yes
NO_CHECKSUM= yes
NO_CONFIGURE= yes
NO_BUILD= yes
PLIST_SRC= # empty
.include "dirs.mk"
.include "../../mk/bsd.prefs.mk"
REQD_DIRS+= ${KDE4_DIRS:O:S/^/${PREFIX}\//}
do-install: # nothing
.include "../../mk/bsd.pkg.mk"

2
kde4-dirs/TODO Normal file
View file

@ -0,0 +1,2 @@
determine the full set of dirs. Then split into a bit that is shared with
kde3-dirs and a bit for kde4 (like gnome{,1,2}-dirs).

93
kde4-dirs/dirs.mk Normal file
View file

@ -0,0 +1,93 @@
# $NetBSD: dirs.mk,v 1.1.1.1 2007/12/12 03:09:28 mwdavies Exp $
#
.if !defined(DIRS_KDE4_MK)
DIRS_KDE4_MK= #defined
_USE_XDG_DIRS= 1.2
.include "../../misc/xdg-dirs/dirs.mk"
KDE4_DIRS= include/KDE
KDE4_DIRS+= include/dom
KDE4_DIRS+= include/kparts
# KDE4_DIRS+= lib/kconf_update_bin
KDE4_DIRS+= lib/kde4
KDE4_DIRS+= lib/kde4/libexec
KDE4_DIRS+= lib/kde4/plugins
KDE4_DIRS+= lib/kde4/plugins/designer
KDE4_DIRS+= lib/kde4/plugins/styles
KDE4_DIRS+= share/applications/kde4
KDE4_DIRS+= share/doc/kde
KDE4_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
KDE4_DIRS+= share/doc/kde/HTML/${lang}
KDE4_DIRS+= share/doc/kde/HTML/${lang}/common
.endfor
KDE4_DIRS+= share/doc/kde/HTML/en/kcontrol
#KDE4_DIRS+= share/doc/kde/HTML/en/kinfocenter
_ICONCOLORS= crystalsvg locolor oxygen
_ICONSIZES= 16x16 22x22 32x32 48x48 64x64 128x128 scalable
_ICONDIRS= animations actions apps categories devices emblems
_ICONDIRS+= emotes filesystems intl mimetypes places status
.for color in ${_ICONCOLORS}
KDE4_DIRS+= share/icons/${color}
. for size in ${_ICONSIZES}
KDE4_DIRS+= share/icons/${color}/${size}
. for dir in ${_ICONDIRS}
KDE4_DIRS+= share/icons/${color}/${size}/${dir}
. endfor
. endfor
.endfor
KDE4_DIRS+= share/dbus-1/interfaces
KDE4_DIRS+= share/kde
KDE4_DIRS+= share/kde/apps
KDE4_DIRS+= share/kde/apps/cmake
KDE4_DIRS+= share/kde/apps/cmake/modules
KDE4_DIRS+= share/kde/apps/katepart
KDE4_DIRS+= share/kde/apps/katepart/syntax
KDE4_DIRS+= share/kde/apps/kcm_componentchooser
KDE4_DIRS+= share/kde/apps/kconf_update
KDE4_DIRS+= share/kde/apps/kcontrol
KDE4_DIRS+= share/kde/apps/kcontrol/pics
KDE4_DIRS+= share/kde/apps/kdesktop
KDE4_DIRS+= share/kde/apps/kdesktop/programs
KDE4_DIRS+= share/kde/apps/khtml
KDE4_DIRS+= share/kde/apps/khtml/kpartplugins
KDE4_DIRS+= share/kde/apps/kicker
KDE4_DIRS+= share/kde/apps/kicker/applets
KDE4_DIRS+= share/kde/apps/konqsidebartng
KDE4_DIRS+= share/kde/apps/konqsidebartng/virtual_folders
KDE4_DIRS+= share/kde/apps/konqsidebartng/virtual_folders/services
KDE4_DIRS+= share/kde/autostart
KDE4_DIRS+= share/kde/config
#KDE4_DIRS+= share/kde/config/magic
KDE4_DIRS+= share/kde/config.kcfg
KDE4_DIRS+= share/kde/templates
KDE4_DIRS+= share/kde/templates/.source
KDE4_DIRS+= share/kde/wallpapers
KDE4_DIRS+= share/kde4
KDE4_DIRS+= share/kde4/services
KDE4_DIRS+= share/kde4/services/kded
KDE4_DIRS+= share/kde4/services/kresources
KDE4_DIRS+= share/kde4/servicetypes
.if defined(_USE_KDE4_DIRS) && !empty(_USE_KDE4_DIRS)
DEPENDS+= kde4-dirs>=${_USE_KDE4_DIRS}:../../wip/kde4-dirs
. for dir in ${KDE4_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_KDE4_MK)