aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/kde-icons-noia
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2004-07-03 09:26:35 +0800
committerlioux <lioux@FreeBSD.org>2004-07-03 09:26:35 +0800
commitc5908b4764fa1627d4bf0816098f2f245c051e8d (patch)
tree9c9bf0fa1f700a38056807710156cd91b94dd812 /x11-themes/kde-icons-noia
parentc1d56ade35daf112c670dabd71b7dba4c3abab56 (diff)
downloadfreebsd-ports-graphics-c5908b4764fa1627d4bf0816098f2f245c051e8d.tar.gz
freebsd-ports-graphics-c5908b4764fa1627d4bf0816098f2f245c051e8d.tar.zst
freebsd-ports-graphics-c5908b4764fa1627d4bf0816098f2f245c051e8d.zip
KDE icon themes can have either index.desktop or index.theme index
files depending on the KDE version they were meant for. Tend for these 2 situations
Diffstat (limited to 'x11-themes/kde-icons-noia')
-rw-r--r--x11-themes/kde-icons-noia/Makefile.icons10
1 files changed, 8 insertions, 2 deletions
diff --git a/x11-themes/kde-icons-noia/Makefile.icons b/x11-themes/kde-icons-noia/Makefile.icons
index 13dbde28003..600c03cf04c 100644
--- a/x11-themes/kde-icons-noia/Makefile.icons
+++ b/x11-themes/kde-icons-noia/Makefile.icons
@@ -27,12 +27,18 @@ RESTRICTED?= It may contain iconic, visual, graphical or other\
NO_PACKAGE?= ${RESTRICTED}
.endif
+INDEX_FILES= index.desktop index.theme
+
post-patch:
# correctly inherits crystal per default
- @${REINPLACE_CMD} -E \
+.for file in ${INDEX_FILES}
+ @if [ -f "${WRKSRC}/${file}" ]; then \
+ ${REINPLACE_CMD} -E \
-e 's| ||' \
-e 's|^Inherits.*$$|Inherits=crystalsvg|' \
- ${WRKSRC}/index.desktop
+ "${WRKSRC}/${file}" ; \
+ fi
+.endfor
do-install:
@${MKDIR} ${PREFIX}/share/icons/${PORT_SHAREDIR}