[46685] trunk/dports/print/ghostscript
takanori at macports.org
takanori at macports.org
Tue Feb 10 01:19:21 PST 2009
Revision: 46685
http://trac.macports.org/changeset/46685
Author: takanori at macports.org
Date: 2009-02-10 01:19:16 -0800 (Tue, 10 Feb 2009)
Log Message:
-----------
ghostscript:
- Removed unneeded font files.
- Ghostscript.framework:
-- Fixed incorrect font/config file search path.
Modified Paths:
--------------
trunk/dports/print/ghostscript/Portfile
trunk/dports/print/ghostscript/files/patch-base_macosx.mak.diff
Modified: trunk/dports/print/ghostscript/Portfile
===================================================================
--- trunk/dports/print/ghostscript/Portfile 2009-02-10 09:18:43 UTC (rev 46684)
+++ trunk/dports/print/ghostscript/Portfile 2009-02-10 09:19:16 UTC (rev 46685)
@@ -4,6 +4,7 @@
name ghostscript
version 8.64
+revision 1
categories print
maintainers takanori openmaintainer
description GPL Ghostscript, An interpreter for PostScript and PDF
@@ -16,12 +17,10 @@
master_sites sourceforge:${name}:source \
sourceforge:gs-fonts:fonts
distfiles ${distname}.tar.gz:source \
- ghostscript-fonts-std-8.11.tar.gz:fonts \
ghostscript-fonts-other-6.0.tar.gz:fonts
patchfiles patch-base_macos-fw.mak.diff \
patch-base_macosx.mak.diff
checksums ${distname}.tar.gz rmd160 c0d5ab9a35cbc7311708ab91f0a4c47e332db121 \
- ghostscript-fonts-std-8.11.tar.gz rmd160 10a19a10d0388bc084a7c1d3da845068d7169054 \
ghostscript-fonts-other-6.0.tar.gz rmd160 ab60dbf71e7d91283a106c3df381cadfe173082f
depends_lib port:xorg-libXext \
@@ -38,12 +37,11 @@
post-patch {
foreach f {base/macosx.mak base/macos-fw.mak} {
- reinplace "s|@@DESTROOT@@|${destroot}|" ${worksrcpath}/${f}
reinplace "s|@@FRAMEWORKS_DIR@@|${frameworks_dir}|" ${worksrcpath}/${f}
}
# Ensure that MacPorts perl is used
- foreach f {lib/fixmswrd.pl toolbin/pscet_status.pl} {
+ foreach f {lib/fixmswrd.pl toolbin/bugsByEngineer.pl toolbin/pscet_status.pl} {
reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" ${worksrcpath}/${f}
}
}
@@ -64,12 +62,11 @@
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/fonts
- foreach f {*.afm *.gsf *.pfa *.pfb *.pfm fonts.dir fonts.scale} {
+ foreach f {*.afm *.gsf *.pfa *.pfm} {
eval xinstall -m 644 [glob ${workpath}/fonts/${f}] ${destroot}${prefix}/share/${name}/fonts
}
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}-fonts
- xinstall -m 644 -W ${workpath}/fonts COPYING ChangeLog README README.tweaks TODO ${destroot}${prefix}/share/doc/${name}-fonts
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc
ln -s ../${name}/${version}/doc ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/${version}/examples/cjk
@@ -94,7 +91,6 @@
destroot.violate_mtree yes
}
-# Added variant that build the Ghostscript framework. (Thanks, Sal!)
variant framework description {Build and install Ghostscript.framework} {
post-build {
move ${worksrcpath}/Makefile ${worksrcpath}/Makefile.CONFIGURE
@@ -102,14 +98,14 @@
system "cd ${worksrcpath} && make framework"
delete ${worksrcpath}/Makefile
move ${worksrcpath}/Makefile.CONFIGURE ${worksrcpath}/Makefile
+
+ # COMPILE_INITS=0
+ #copy ${worksrcpath}/Resource ${worksrcpath}/sobin/Ghostscript.framework/Versions/${version}/Resources
+ #copy ${workpath}/fonts ${worksrcpath}/sobin/Ghostscript.framework/Resources
}
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/Library/Frameworks
- move ${worksrcpath}/Makefile ${worksrcpath}/Makefile.CONFIGURE
- ln -s ${worksrcpath}/base/macosx.mak ${worksrcpath}/Makefile
- system "cd ${worksrcpath} && make framework_install"
- delete ${worksrcpath}/Makefile
- move ${worksrcpath}/Makefile.CONFIGURE ${worksrcpath}/Makefile
+ copy ${worksrcpath}/sobin/Ghostscript.framework ${destroot}${prefix}/Library/Frameworks
}
}
Modified: trunk/dports/print/ghostscript/files/patch-base_macosx.mak.diff
===================================================================
--- trunk/dports/print/ghostscript/files/patch-base_macosx.mak.diff 2009-02-10 09:18:43 UTC (rev 46684)
+++ trunk/dports/print/ghostscript/files/patch-base_macosx.mak.diff 2009-02-10 09:19:16 UTC (rev 46685)
@@ -1,11 +1,11 @@
--- base/macosx.mak.orig 2008-10-03 04:33:22.000000000 +0900
-+++ base/macosx.mak 2009-02-06 21:28:10.000000000 +0900
++++ base/macosx.mak 2009-02-10 08:39:57.000000000 +0900
@@ -54,7 +54,7 @@
FRAMEWORK_NAME=Ghostscript
FRAMEWORK_EXT=.framework
-prefix = /Library/Frameworks/$(FRAMEWORK_NAME)$(FRAMEWORK_EXT)
-+prefix = @@DESTROOT@@@@FRAMEWORKS_DIR@@/$(FRAMEWORK_NAME)$(FRAMEWORK_EXT)
++prefix = @@FRAMEWORKS_DIR@@/$(FRAMEWORK_NAME)$(FRAMEWORK_EXT)
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
scriptdir = $(bindir)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090210/515fc002/attachment.html>
More information about the macports-changes
mailing list