1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

Avoid use of @ and Unicode in options

PR:		ports/148826
Reported by:	Anatoly Borodin <anatoly.borodin at gmail.com>
This commit is contained in:
Max Brazhnikov 2010-07-22 21:02:08 +00:00
parent 9c1e194bed
commit a3c68ae7c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=258070

View File

@ -42,22 +42,21 @@ zh_CN_PORT= chinese/kde4-l10n-zh_CN
zh_TW_PORT= chinese/kde4-l10n-zh_TW
.include <${.CURDIR}/files/kde4-lang-names>
nb_NAME= Norwegian Bokmal
OPTIONS= ALL "All localizations" on
.for lang in ${KDE4_LANG_ALL}
OPTIONS+= ${lang} "${${lang}_NAME} localization" off
.endfor
.include <bsd.port.pre.mk>
.for lang in ${KDE4_LANG_ALL}
${lang}_DETECT?= ${KDE4_PREFIX}/share/locale/${lang}/entry.desktop
${lang}_PORT?= misc/kde4-l10n-${lang}
${lang}_NAME?= ${lang}
${lang}_OPTION= ${lang:S/@/_/}
OPTIONS+= ${${lang}_OPTION} "${${lang}_NAME} localization" off
.endfor
.include <bsd.port.options.mk>
.for lang in ${KDE4_LANG_ALL}
.if defined(WITH_ALL) || defined(WITH_${lang})
.if defined(WITH_ALL) || defined(WITH_${${lang}_OPTION})
RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
.endif
.endfor
@ -65,4 +64,4 @@ RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
do-install:
${DO_NADA}
.include <bsd.port.post.mk>
.include <bsd.port.mk>