korean/nanumfonts: Fix package name collisions

Reported by:	antoine
This commit is contained in:
Jung-uk Kim 2022-02-11 12:31:03 -05:00
parent 92e6b412e2
commit 834be35d6c
11 changed files with 26 additions and 25 deletions

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -barun-gothic
FONTDESC= NanumBarunGothic
NANUM_FONTDESC= NanumBarunGothic
NANUM_FONTNAME= barun-gothic
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -barun-pen
FONTDESC= NanumBarunpen
NANUM_FONTDESC= NanumBarunpen
NANUM_FONTNAME= barun-pen
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -brush
FONTDESC= NanumBrush
NANUM_FONTDESC= NanumBrush
NANUM_FONTNAME= brush
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -gothic-eco
FONTDESC= NanumGothicEco
NANUM_FONTDESC= NanumGothicEco
NANUM_FONTNAME= gothic-eco
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -gothic
FONTDESC= NanumGothic
NANUM_FONTDESC= NanumGothic
NANUM_FONTNAME= gothic
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -myeongjo-eco
FONTDESC= NanumMyeongjoEco
NANUM_FONTDESC= NanumMyeongjoEco
NANUM_FONTNAME= myeongjo-eco
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -myeongjo
FONTDESC= NanumMyeongjo
NANUM_FONTDESC= NanumMyeongjo
NANUM_FONTNAME= myeongjo
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -pen
FONTDESC= NanumPen
NANUM_FONTDESC= NanumPen
NANUM_FONTNAME= pen
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -square-round
FONTDESC= NanumSquareRound
NANUM_FONTDESC= NanumSquareRound
NANUM_FONTNAME= square-round
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -1,4 +1,4 @@
PKGNAMESUFFIX= -square
FONTDESC= NanumSquare
NANUM_FONTDESC= NanumSquare
NANUM_FONTNAME= square
.include "${.CURDIR}/../../korean/nanumfonts/Makefile.common"

View file

@ -3,18 +3,19 @@ DISTVERSION?= 20220210
CATEGORIES= korean x11-fonts
MASTER_SITES= https://hangeul.naver.com/hangeul_static/webfont/zips/ \
LOCAL/jkim
PKGNAMESUFFIX= -${NANUM_FONTNAME}
DISTNAME?= ${PORTNAME}${PKGNAMESUFFIX}
DIST_SUBDIR= ${PORTNAME}/${DISTVERSION}
COMMENT= ${FONTDESC} Hangul fonts (${WEBFONT:tu})
MAINTAINER= jkim@FreeBSD.org
COMMENT= ${NANUM_FONTDESC} Hangul fonts (${FLAVOR:tu})
LICENSE= OFL11
LICENSE_FILE= ${FILESDIR}/LICENSE
#FLAVORS= otf ttf
#FLAVOR?= ${FLAVORS:[2]}
WEBFONT= ttf
FLAVORS= otf ttf
FLAVOR?= ${FLAVORS:[2]}
otf_PKGNAMESUFFIX= -${NANUM_FONTNAME}-${FLAVOR}
DESCR= ${.CURDIR}/../../korean/nanumfonts/pkg-descr
FILESDIR= ${.CURDIR}/../../korean/nanumfonts/files
@ -24,7 +25,7 @@ USES= fonts zip
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/*.${WEBFONT} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/*.${FLAVOR} ${STAGEDIR}${FONTSDIR}
@${FIND} ${STAGEDIR}${FONTSDIR} -not -type d | ${SORT} | \
${SED} -e 's|^${STAGEDIR}${PREFIX}/||' >> ${TMPPLIST}