[137290] trunk/dports/print/ghostscript/Portfile
ionic at macports.org
ionic at macports.org
Mon Jun 8 09:03:26 PDT 2015
Revision: 137290
https://trac.macports.org/changeset/137290
Author: ionic at macports.org
Date: 2015-06-08 09:03:26 -0700 (Mon, 08 Jun 2015)
Log Message:
-----------
ghostscript: add "std" fonts.
- New distfile ghostscript-fonts-std-8.11.tar.gz.
- Install "std" fonts in a shared fc-location:
{prefix}/share/fonts/Type1/gsfonts/.
- Run fc-cache in post-activate.
- Copy shared "documentation" data for "std" fonts to
${prefix}/share/doc/${name}/fonts/.
- Revbump.
Modified Paths:
--------------
trunk/dports/print/ghostscript/Portfile
Modified: trunk/dports/print/ghostscript/Portfile
===================================================================
--- trunk/dports/print/ghostscript/Portfile 2015-06-08 15:08:44 UTC (rev 137289)
+++ trunk/dports/print/ghostscript/Portfile 2015-06-08 16:03:26 UTC (rev 137290)
@@ -6,6 +6,7 @@
name ghostscript
version 9.16
+revision 1
categories print
license AGPL-3
maintainers takanori openmaintainer
@@ -25,6 +26,7 @@
distfiles ${distname}.tar.gz:source \
ghostscript-fonts-other-6.0.tar.gz:fonts \
+ ghostscript-fonts-std-8.11.tar.gz:fonts \
${mappingresources_commit}.zip:misc
# Fix for github's "stealth update". I have no idea how or why that even happened.
@@ -40,6 +42,9 @@
ghostscript-fonts-other-6.0.tar.gz \
rmd160 ab60dbf71e7d91283a106c3df381cadfe173082f \
sha256 4fa051e341167008d37fe34c19d241060cd17b13909932cd7ca7fe759243c2de \
+ ghostscript-fonts-std-8.11.tar.gz \
+ rmd160 10a19a10d0388bc084a7c1d3da845068d7169054 \
+ sha256 0eb6f356119f2e49b2563210852e17f57f9dcc5755f350a69a46a0d641a0c401 \
${mappingresources_commit}.zip \
rmd160 b00725e3f5615ac6aaa20a7b4d0dd6e769dca6ee \
sha256 27f87e56092a8293d17f683b008327afbb79fad9f1328227a9916f9be69c9db2
@@ -63,7 +68,8 @@
depends_run port:perl5
extract.only ${distname}.tar.gz \
- ghostscript-fonts-other-6.0.tar.gz
+ ghostscript-fonts-other-6.0.tar.gz \
+ ghostscript-fonts-std-8.11.tar.gz
post-extract {
system -W ${workpath} "unzip '${distpath}/${mappingresources_commit}.zip'"
@@ -116,6 +122,17 @@
post-destroot {
ln -s gsc ${destroot}${prefix}/bin/gs
+ # std fonts - install into FontCache-compatible directory.
+ # Check: could break on case-sensitive file systems...
+ xinstall -m 0755 -d ${destroot}${prefix}/share/fonts/Type1/gsfonts
+ foreach f {{[a-z][0-9][0-9][0-9][0-9][0-9][0-9][a-z].*} fonts.scale fonts.dir} {
+ xinstall -m 0644 {*}[glob [join [concat "${workpath}/fonts/" ${f}] ""]] ${destroot}${prefix}/share/fonts/Type1/gsfonts
+ }
+
+ # Delete the already copied fonts to not copy them again when installing the "other" fonts.
+ delete {*}[glob [join [concat "${workpath}/fonts/" {[a-z][0-9][0-9][0-9][0-9][0-9][0-9][a-z].*}] ""]]
+
+ # other fonts - install into private ghostscript directory.
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/fonts
foreach f {*.afm *.gsf *.pfa *.pfm} {
xinstall -m 644 {*}[glob ${workpath}/fonts/${f}] ${destroot}${prefix}/share/${name}/fonts
@@ -123,8 +140,18 @@
xinstall -m 755 -d ${destroot}${prefix}/share/doc
ln -s ../${name}/${version}/doc ${destroot}${prefix}/share/doc/${name}
+
+ # std fonts - "documentation"
+ xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/fonts
+ foreach docfile {COPYING ChangeLog README README.tweaks TODO} {
+ xinstall -m 0644 ${workpath}/fonts/${docfile} ${destroot}${prefix}/share/doc/${name}/fonts
+ }
}
+post-activate {
+ system "${prefix}/bin/fc-cache -fv ${prefix}/share/fonts/Type1/gsfonts"
+}
+
configure.universal_args-delete --disable-dependency-tracking
variant x11 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150608/9546c647/attachment.html>
More information about the macports-changes
mailing list