[31213] trunk/dports/print/ghostscript-fonts-hiragino/Portfile
takanori at macports.org
takanori at macports.org
Sun Nov 18 08:18:11 PST 2007
Revision: 31213
http://trac.macosforge.org/projects/macports/changeset/31213
Author: takanori at macports.org
Date: 2007-11-18 08:18:09 -0800 (Sun, 18 Nov 2007)
Log Message:
-----------
Add experimental support for JIS X 0213:2004 (Hiragino ProN/StdN fonts).
Remove unneeded VF entries.
Modified Paths:
--------------
trunk/dports/print/ghostscript-fonts-hiragino/Portfile
Modified: trunk/dports/print/ghostscript-fonts-hiragino/Portfile
===================================================================
--- trunk/dports/print/ghostscript-fonts-hiragino/Portfile 2007-11-18 13:46:26 UTC (rev 31212)
+++ trunk/dports/print/ghostscript-fonts-hiragino/Portfile 2007-11-18 16:18:09 UTC (rev 31213)
@@ -1,11 +1,12 @@
# $Id$
PortSystem 1.0
+
name ghostscript-fonts-hiragino
version 8.60
-revision 1
+revision 2
categories print japanese
-maintainers takanori at macports.org
+maintainers takanori
description Japanese Hiragino fonts for ghostscript ${version}
long_description \
${description}
@@ -13,24 +14,37 @@
homepage
master_sites
distfiles
+
depends_lib port:ghostscript
configure {}
+
build {}
+
destroot {
- if {[variant_isset darwin_9]} {
- set SystemLibraryFontsDir /Library/Fonts
+ if {[variant_isset darwin_8] || [variant_isset darwin_7]} {
+ set FontList {"/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 {GothicBBB-Medium}
+ "/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 {FutoGoB101-Bold}
+ "/System/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 {}
+ "/System/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 {Jun101-Light}
+ "/System/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 {Ryumin-Light}
+ "/System/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 {FutoMinA101-Bold}}
} else {
- set SystemLibraryFontsDir /System/Library/Fonts
+ set FontList {"/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 {GothicBBB-Medium}
+ "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 {FutoGoB101-Bold}
+ "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 {}
+ "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 {Jun101-Light}
+ "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 {Ryumin-Light}
+ "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 {FutoMinA101-Bold}
+ "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" HiraKakuProN-W3 {}
+ "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" HiraKakuProN-W6 {}
+ "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" HiraKakuStdN-W8 {}
+ "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" HiraMaruProN-W4 {}
+ "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3 {}
+ "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6 {}}
}
set GSFontDir ${destroot}${prefix}/share/ghostscript/fonts/Resource/Font
set GSCIDFontDir ${destroot}${prefix}/share/ghostscript/${version}/Resource/CIDFont
- set FontList {"ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 {GothicBBB-Medium}
- "ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 {FutoGoB101-Bold}
- "ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 {}
- "ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 {Jun101-Light}
- "ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 {Ryumin-Light}
- "ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 {FutoMinA101-Bold}}
set EncodeList {78-EUC-H
78-EUC-V
78-H
@@ -41,13 +55,10 @@
78ms-RKSJ-V
83pv-RKSJ-H
90ms-RKSJ-H
- 90ms-RKSJ-UCS2
90ms-RKSJ-V
90msp-RKSJ-H
90msp-RKSJ-V
90pv-RKSJ-H
- 90pv-RKSJ-UCS2
- 90pv-RKSJ-UCS2C
90pv-RKSJ-V
Add-H
Add-RKSJ-H
@@ -60,14 +71,6 @@
Adobe-Japan1-4
Adobe-Japan1-5
Adobe-Japan1-6
- Adobe-Japan1-90ms-RKSJ
- Adobe-Japan1-90pv-RKSJ
- Adobe-Japan1-H-CID
- Adobe-Japan1-H-Host
- Adobe-Japan1-H-Mac
- Adobe-Japan1-PS-H
- Adobe-Japan1-PS-V
- Adobe-Japan1-UCS2
EUC-H
EUC-V
Ext-H
@@ -95,29 +98,37 @@
UniJIS-UTF32-V
UniJIS-UTF8-H
UniJIS-UTF8-V
+ UniJIS2004-UTF16-H
+ UniJIS2004-UTF16-V
+ UniJIS2004-UTF32-H
+ UniJIS2004-UTF32-V
+ UniJIS2004-UTF8-H
+ UniJIS2004-UTF8-V
UniJISPro-UCS2-HW-V
UniJISPro-UCS2-V
UniJISPro-UTF8-V
UniJISX0213-UTF32-H
UniJISX0213-UTF32-V
+ UniJISX02132004-UTF32-H
+ UniJISX02132004-UTF32-V
V
WP-Symbol}
xinstall -m 755 -d ${GSFontDir}
xinstall -m 755 -d ${GSCIDFontDir}
- foreach {file font aliases} ${FontList} {
- if {![file exists ${SystemLibraryFontsDir}/${file}]} {
- return -code error "Please place \"${file}\" in ${SystemLibraryFontsDir} and restart the build."
+ foreach {fontfile fontname aliases} ${FontList} {
+ if {![file exists ${fontfile}]} {
+ return -code error "Font file \"${fontfile}\" is not found."
}
- ln -s ${SystemLibraryFontsDir}/${file} ${GSCIDFontDir}/${font}
+ ln -s ${fontfile} ${GSCIDFontDir}/${fontname}
foreach encode ${EncodeList} {
- set fd [open [file join ${GSFontDir} ${font}-${encode}] w 0644]
- puts ${fd} "(${font}-${encode})"
+ set fd [open [file join ${GSFontDir} ${fontname}-${encode}] w 0644]
+ puts ${fd} "(${fontname}-${encode})"
puts ${fd} "(${encode}) /CMap findresource"
- puts ${fd} "\[(${font}) /CIDFont findresource\]"
+ puts ${fd} "\[(${fontname}) /CIDFont findresource\]"
puts ${fd} "composefont"
puts ${fd} "pop"
close ${fd}
@@ -129,7 +140,7 @@
set fd [open [file join ${GSFontDir} ${alias}-${encode}] w 0644]
puts ${fd} "(${alias}-${encode})"
puts ${fd} "(${encode}) /CMap findresource"
- puts ${fd} "\[(${font}) /CIDFont findresource\]"
+ puts ${fd} "\[(${fontname}) /CIDFont findresource\]"
puts ${fd} "composefont"
puts ${fd} "pop"
close ${fd}
@@ -139,6 +150,9 @@
}
}
-platform darwin 9 {}
+platform darwin 7 {}
+platform darwin 8 {}
-variant no_alias description "Don't use Hiragino as an alternative to Morisawa's standard 5 fonts" {}
+variant no_alias description "Do not use Hiragino as an alternative to Morisawa's standard 5 fonts" {}
+
+livecheck.check none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071118/17e20a73/attachment-0001.html
More information about the macports-changes
mailing list