From f40ee72f72aedc30a876ba38c9adf2d20826d378 Mon Sep 17 00:00:00 2001 From: Kai Knoblich Date: Sat, 6 Apr 2019 13:36:10 +0000 Subject: [PATCH] New port: korean/spoqahansans-ttf Spoqa Han Sans: A custom font based on Noto Sans and Lato This is Spoqa Han Sans, which supports both Korean and Japanese but prioritizes Korean Hanja above the other. "Spoqa Han Sans is a custom font based on Noto Sans and Lato to fit multilingual UI of Spoqa's products. We now unveil the new version which has evolved in many ways." --- Spoqa WWW: https://github.com/spoqa/spoqa-han-sans PR: 232197 Submitted by: Hyun Hwang Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D19809 --- korean/Makefile | 1 + korean/spoqahansans-ttf/Makefile | 41 ++++++++++++++++++++ korean/spoqahansans-ttf/distinfo | 3 ++ korean/spoqahansans-ttf/files/pkg-message.in | 7 ++++ korean/spoqahansans-ttf/pkg-descr | 11 ++++++ korean/spoqahansans-ttf/pkg-plist | 4 ++ 6 files changed, 67 insertions(+) create mode 100644 korean/spoqahansans-ttf/Makefile create mode 100644 korean/spoqahansans-ttf/distinfo create mode 100644 korean/spoqahansans-ttf/files/pkg-message.in create mode 100644 korean/spoqahansans-ttf/pkg-descr create mode 100644 korean/spoqahansans-ttf/pkg-plist diff --git a/korean/Makefile b/korean/Makefile index 9c76bb0d1ece..e2cbb8c077d2 100644 --- a/korean/Makefile +++ b/korean/Makefile @@ -39,6 +39,7 @@ SUBDIR += scim-tables SUBDIR += sourcehansans-otf SUBDIR += sourcehanserif-otf + SUBDIR += spoqahansans-ttf SUBDIR += unfonts-core SUBDIR += unfonts-extra SUBDIR += uniksc diff --git a/korean/spoqahansans-ttf/Makefile b/korean/spoqahansans-ttf/Makefile new file mode 100644 index 000000000000..fc4df5b78684 --- /dev/null +++ b/korean/spoqahansans-ttf/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= spoqahansans +DISTVERSIONPREFIX= v +DISTVERSION= 2.1.2 +CATEGORIES= korean x11-fonts +MASTER_SITES= https://github.com/spoqa/spoqa-han-sans/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/ +# Note: the following PKGNAMEPREFIX is here only for self-documenting purpose; +# actual prefixing is done by the `korean' category itself. +#PKGNAMEPREFIX= ko- +PKGNAMESUFFIX= -ttf +DISTNAME= SpoqaHanSans_all + +MAINTAINER= hyun@caffeinated.codes +COMMENT= Korean custom font based on Noto Sans and Lato + +LICENSE= OFL11 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= fonts zip + +FONTNAME= SpoqaHanSans +NO_ARCH= yes +NO_BUILD= yes +SUB_FILES= pkg-message + +OPTIONS_SINGLE= TYPE +OPTIONS_SINGLE_TYPE= ORIGINAL SUBSET +OPTIONS_DEFAULT= ORIGINAL + +ORIGINAL_DESC= Install original font (supports Korean and Japanese) +SUBSET_DESC= Install subset font (supports 2,574 Korean glyphs) + +ORIGINAL_VARS= SRCFONTSDIR=SpoqaHanSans_original +SUBSET_VARS= SRCFONTSDIR=SpoqaHanSans_subset + +do-install: + @${MKDIR} ${STAGEDIR}${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/${SRCFONTSDIR}/*.ttf ${STAGEDIR}${FONTSDIR} + +.include diff --git a/korean/spoqahansans-ttf/distinfo b/korean/spoqahansans-ttf/distinfo new file mode 100644 index 000000000000..c36c3b72260a --- /dev/null +++ b/korean/spoqahansans-ttf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1539309131 +SHA256 (SpoqaHanSans_all.zip) = d63ec238655abcb8f39c19cfbf00c217ddcd8064f0a28670bc9e8c7ec3ef77b4 +SIZE (SpoqaHanSans_all.zip) = 144660696 diff --git a/korean/spoqahansans-ttf/files/pkg-message.in b/korean/spoqahansans-ttf/files/pkg-message.in new file mode 100644 index 000000000000..2e8f2addd159 --- /dev/null +++ b/korean/spoqahansans-ttf/files/pkg-message.in @@ -0,0 +1,7 @@ + +You can start using the font by following this instruction: + +Add the following line to the "Files" section of your X.org configuration file: + + FontPath "%%FONTSDIR%%/" + diff --git a/korean/spoqahansans-ttf/pkg-descr b/korean/spoqahansans-ttf/pkg-descr new file mode 100644 index 000000000000..c2b376eb99d4 --- /dev/null +++ b/korean/spoqahansans-ttf/pkg-descr @@ -0,0 +1,11 @@ +Spoqa Han Sans: A custom font based on Noto Sans and Lato + +This is Spoqa Han Sans, which supports both Korean and Japanese but prioritizes +Korean Hanja above the other. + +"Spoqa Han Sans is a custom font based on Noto Sans and Lato to fit +multilingual UI of Spoqa's products. We now unveil the new version which has +evolved in many ways." +--- Spoqa + +WWW: https://github.com/spoqa/spoqa-han-sans diff --git a/korean/spoqahansans-ttf/pkg-plist b/korean/spoqahansans-ttf/pkg-plist new file mode 100644 index 000000000000..edb8828f0232 --- /dev/null +++ b/korean/spoqahansans-ttf/pkg-plist @@ -0,0 +1,4 @@ +%%FONTSDIR%%/SpoqaHanSansBold.ttf +%%FONTSDIR%%/SpoqaHanSansLight.ttf +%%FONTSDIR%%/SpoqaHanSansRegular.ttf +%%FONTSDIR%%/SpoqaHanSansThin.ttf