Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,27 +1,29 @@
# $NetBSD: Makefile,v 1.10 2013/06/04 22:16:03 tron Exp $
# $NetBSD: Makefile,v 1.14 2014/02/12 23:17:53 tron Exp $
DISTNAME= ghostscript-cidfonts-ryumin-${GS_VERSION}
DISTFILES= # empty
PKGREVISION= 6
PKGREVISION= 7
CATEGORIES= fonts
MAINTAINER= pkgsrc-users@NetBSD.org
MAINTAINER= makoto@ki.nu
COMMENT= Enable Ryumin-Light and GothicBBB for ghostscript
LICENSE= generic-nonlicense
LICENSE= 2-clause-bsd
.include "../../print/ghostscript-gpl/Makefile.common"
GS_RESOURCEDIR= share/ghostscript/${PKGVERSION}/Resource
# in PLIST, just use PKGVERSION_NOREV for the same value
GS_RESOURCEDIR= share/ghostscript/${GS_VERSION}/Resource
WRKSRC= ${WRKDIR}/gcr
INSTALLATION_DIRS+= ${GS_RESOURCEDIR}/Font
INSTALLATION_DIRS+= ${GS_RESOURCEDIR}/Init
DEPENDS+= ghostscript-gpl>=9.05:../../print/ghostscript-gpl
DEPENDS+= ghostscript>=9.05:../../print/ghostscript
DEPENDS+= ghostscript-cidfonts>=20000901nb3:../../fonts/ghostscript-cidfonts
BUILD_DEFS+= GS_CIDFMAP
# used in options.mk to switch adobe or ttf
SUBST_VARS= GCR_INSTALL_TYPE
# Set following two variables and buildlink appropriate fonts
# GS_CIDFMAP
# GCR_INSTALL_TYPE
.include "options.mk"
.if !empty(GS_CIDFMAP)
@@ -43,7 +45,7 @@ do-install:
.if !empty(GS_CIDFMAP)
${INSTALL_DATA} ${WRKSRC}/${GS_CIDFMAP} ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Init/cidfmap
.endif
# mainly Ryumin and GothicBBB
# mainly Ryumin and GothicBBB
${INSTALL_DATA} files/${GCR_INSTALL_TYPE}/[GR]* ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Font
# no need to edit cidfmap
@@ -54,11 +56,28 @@ NO_BUILD= yes
NO_CHECKSUM= yes
NO_CONFIGURE= yes
.include "../../print/ghostscript-gpl/buildlink3.mk"
# Set options for ghostscript in case the package are not built yet:
# But for pbulk, it will override default binary package with this option (?)
# No. Probably fails because build already done, and stops with FAIL_REASON being checked below.
## PKGSRC_MAKE_ENV+= PKG_OPTIONS.ghostscript+=disable-compile-inits
## PKG_OPTIONS.ghostscript+= disable-compile-inits
# Either above gives no effect, you need set manually on /etc/mk.conf or so.
# You may check if this option is enabled or not, by looking the string
# 'Initialization file are compiled into the executable.' when 'gs --help |grep Init'
# (String above shown means option is NOT selected).
.include "../../print/ghostscript/buildlink3.mk"
.if empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mdisable-compile-inits)
PKG_FAIL_REASON+= 'You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time.'
# Following logic is flaky, for looking at PKG_OPTIONS.gs_type now NOT at build time
.if !empty(PKG_BUILD_OPTIONS.ghostscript:Mghostscript-agpl)
. include "../../print/ghostscript-agpl/Makefile.common"
. if empty(PKG_BUILD_OPTIONS.ghostscript-agpl:Mdisable-compile-inits)
PKG_FAIL_REASON+= '(agpl) You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time.'
. endif
.else
. include "../../print/ghostscript-gpl/Makefile.common"
. if empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mdisable-compile-inits)
PKG_FAIL_REASON+= '(gpl) You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time.'
. endif
.endif
#.include "../../fonts/adobe-cidfonts/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2012/10/07 14:22:52 mef Exp $
@comment $NetBSD: PLIST,v 1.3 2014/01/11 12:32:25 obache Exp $
share/ghostscript/${PKGVERSION}/Resource/Font/GothicBBB-Medium-H
share/ghostscript/${PKGVERSION}/Resource/Font/GothicBBB-Medium-EUC-H
share/ghostscript/${PKGVERSION}/Resource/Font/Ryumin-Light-EUC-H

View File

@@ -1,5 +1,5 @@
%!
% $Id: cidfmap-adobe,v 1.1 2012/10/07 14:22:52 mef Exp $
% $Id: cidfmap-adobe,v 1.2 2014/01/09 08:08:56 mef Exp $
% This is a sample map file for CIDFont category.
%
@@ -26,6 +26,7 @@
% /ShinGo-Bold /HeiseiKakuGo-W5 ;
% /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
%
/Ryumin-Light /WadaMin-Regular
/Ryumin-Light-H /WadaMin-Regular
/Ryumin-Light-EUC-H /WadaMin-Regular
/GothicBBB-Medium /WadaMin-Bold