diff options
author | lioux <lioux@FreeBSD.org> | 2004-07-03 01:26:35 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2004-07-03 01:26:35 +0000 |
commit | c5908b4764fa1627d4bf0816098f2f245c051e8d (patch) | |
tree | 9c9bf0fa1f700a38056807710156cd91b94dd812 /x11-themes | |
parent | c1d56ade35daf112c670dabd71b7dba4c3abab56 (diff) | |
download | FreeBSD-ports-c5908b4764fa1627d4bf0816098f2f245c051e8d.zip FreeBSD-ports-c5908b4764fa1627d4bf0816098f2f245c051e8d.tar.gz |
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')
-rw-r--r-- | x11-themes/kde-icons-noia/Makefile.icons | 10 |
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 13dbde2..600c03c 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} |