tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Update to fonts/sourcehansans-fonts



Hi,


Now that the freeze is over, can I commit an update to fonts/sourcehansans-fonts? (Patch attached)

The updated font contains a lot more glyphs. Most notably it has the famous complicated kanji 𰻞 as used in 𰻞𰻞麺 (ビャンビャン麺). However, the upstream changed the way how they distribute their font. Previously it was just a collection of regular OTF files for each font weight (regular, medium, bold, ...) Now it's a collection of OTCs. Each OTC contains language-specific fonts for simplified Chinese, traditional Chinese (one for Taiwan and one for Hong Kong), Japanese, and Korean. This might cause issues on applications that aren't aware of such fonts, which is why I'm asking you if it's okay to commit.

As far as I can tell, Firefox, GIMP, and Inkscape seem to be capable of handling it. I don't know about other applications.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/sourcehansans-fonts/Makefile,v
retrieving revision 1.4
diff -u -u -r1.4 Makefile
--- Makefile	24 Apr 2022 15:32:05 -0000	1.4
+++ Makefile	26 Jun 2023 11:41:22 -0000
@@ -1,9 +1,12 @@
 # $NetBSD: Makefile,v 1.4 2022/04/24 15:32:05 tnn Exp $
 
-DISTNAME=	SourceHanSansOTF-1.000
-PKGNAME=	${DISTNAME:S/SourceHanSansOTF/sourcehansans-fonts/}
+DISTNAME=	SourceHanSansOTC
+PKGNAME=	sourcehansans-fonts-2.004
 CATEGORIES=	fonts
-MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=source-han-sans.adobe/}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=adobe-fonts/}
+GITHUB_PROJECT=	source-han-sans
+GITHUB_RELEASE=	${PKGVERSION_NOREV}R
+DIST_SUBDIR=	${PKGNAME_NOREV}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	ryoon%NetBSD.org@localhost
@@ -11,25 +14,8 @@
 COMMENT=	Set of Pan-CJK fonts from Adobe
 LICENSE=	apache-2.0
 
-USE_LANGUAGES=	# none
+WRKSRC=		${WRKDIR}
 NO_BUILD=	yes
 
-FONTDIR=	${PREFIX}/share/fonts/X11/TTF
-FONTS_DIRS.ttf=	${FONTDIR}
-
-INSTALLATION_DIRS=	share/fonts/X11/TTF
-
-INSTALL_FONTS=	SourceHanSans-Bold.otf \
-		SourceHanSans-ExtraLight.otf \
-		SourceHanSans-Heavy.otf \
-		SourceHanSans-Light.otf \
-		SourceHanSans-Medium.otf \
-		SourceHanSans-Normal.otf \
-		SourceHanSans-Regular.otf
-
-do-install:
-.for i in ${INSTALL_FONTS}
-	${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${FONTDIR}
-.endfor
-
+.include "../../mk/fonts.mk"
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/sourcehansans-fonts/PLIST,v
retrieving revision 1.1
diff -u -u -r1.1 PLIST
--- PLIST	17 Jul 2014 14:52:08 -0000	1.1
+++ PLIST	26 Jun 2023 11:41:22 -0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2014/07/17 14:52:08 ryoon Exp $
-share/fonts/X11/TTF/SourceHanSans-Bold.otf
-share/fonts/X11/TTF/SourceHanSans-ExtraLight.otf
-share/fonts/X11/TTF/SourceHanSans-Heavy.otf
-share/fonts/X11/TTF/SourceHanSans-Light.otf
-share/fonts/X11/TTF/SourceHanSans-Medium.otf
-share/fonts/X11/TTF/SourceHanSans-Normal.otf
-share/fonts/X11/TTF/SourceHanSans-Regular.otf
+@comment $NetBSD$
+share/fonts/X11/TTF/SourceHanSans-Bold.ttc
+share/fonts/X11/TTF/SourceHanSans-ExtraLight.ttc
+share/fonts/X11/TTF/SourceHanSans-Heavy.ttc
+share/fonts/X11/TTF/SourceHanSans-Light.ttc
+share/fonts/X11/TTF/SourceHanSans-Medium.ttc
+share/fonts/X11/TTF/SourceHanSans-Normal.ttc
+share/fonts/X11/TTF/SourceHanSans-Regular.ttc
+@pkgdir share/fonts/X11/OTF
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/sourcehansans-fonts/distinfo,v
retrieving revision 1.4
diff -u -u -r1.4 distinfo
--- distinfo	26 Oct 2021 10:27:23 -0000	1.4
+++ distinfo	26 Jun 2023 11:41:22 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.4 2021/10/26 10:27:23 nia Exp $
 
-BLAKE2s (SourceHanSansOTF-1.000.zip) = e732005fce11acb7b4f987d80f42b024ea2ee47f5d10c15102df086cc50aad70
-SHA512 (SourceHanSansOTF-1.000.zip) = 545b94afd6192eaccc6612cb7ad61925160f04c3fe99ae72d0ea8d70fda798b4ca46e5f07ab20e7a9cfa5fa827f7ee1ba7b19757db9ae004522ef317b3b8ae61
-Size (SourceHanSansOTF-1.000.zip) = 95664535 bytes
+BLAKE2s (sourcehansans-fonts-2.004/SourceHanSansOTC.zip) = 6689c014f4e547976f519e4b30f50c055a0ba58c914d333ef0496c098e012147
+SHA512 (sourcehansans-fonts-2.004/SourceHanSansOTC.zip) = e5448965ad61bfe6e2dab9bf42316cc32628616c45e63df8a09e5cbbe5e1ee02f8cacc1b76e55ae9996b2051c503877daf8294c0abf9854b2be67ce80a6a13db
+Size (sourcehansans-fonts-2.004/SourceHanSansOTC.zip) = 104683291 bytes


Home | Main Index | Thread Index | Old Index