[26956] trunk/dports/graphics
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 13 15:08:06 PDT 2007
Revision: 26956
http://trac.macosforge.org/projects/macports/changeset/26956
Author: ricci at macports.org
Date: 2007-07-13 15:08:05 -0700 (Fri, 13 Jul 2007)
Log Message:
-----------
new ports, add character map support for simplified and traditional chinese to xpdf
Added Paths:
-----------
trunk/dports/graphics/xpdf-chinese-simplified/
trunk/dports/graphics/xpdf-chinese-simplified/Portfile
trunk/dports/graphics/xpdf-chinese-traditional/
trunk/dports/graphics/xpdf-chinese-traditional/Portfile
Added: trunk/dports/graphics/xpdf-chinese-simplified/Portfile
===================================================================
--- trunk/dports/graphics/xpdf-chinese-simplified/Portfile (rev 0)
+++ trunk/dports/graphics/xpdf-chinese-simplified/Portfile 2007-07-13 22:08:05 UTC (rev 26956)
@@ -0,0 +1,74 @@
+# $Id: Portfile 22853 2007-03-16 20:20:39Z yves at macports.org $
+PortSystem 1.0
+name xpdf-chinese-simplified
+version 2004-jul-27
+description Xpdf character mapping for simplified Chinese
+long_description \
+ Xpdf character mapping for simplified Chinese
+
+maintainers ricci openmaintainer at macports.org
+categories graphics print
+platforms darwin
+homepage http://www.foolabs.com/xpdf/
+
+master_sites \
+ ftp://ftp.foolabs.com/pub/xpdf/ \
+ ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ \
+ ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ \
+ ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ \
+ ftp://ftp.kddlabs.co.jp/CTAN/support/xpdf/ \
+ ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/support/xpdf/ \
+ ftp://ctan.tug.org/tex-archive/support/xpdf/ \
+ ftp://ftp.dante.de/tex-archive/support/xpdf/ \
+ ftp://gd.tuwien.ac.at/publishing/tex/CTAN/support/xpdf/ \
+ ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ \
+ ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ \
+ http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ \
+ ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/
+
+## xpdf-chinese-simplified-2004-jul-27.tar.gz
+distfiles ${name}-${version}.tar.gz
+
+worksrcdir ${name}
+
+checksums md5 6c3b04008000948e62530b8582e7f37c
+
+depends_lib port:xpdf
+
+configure {}
+
+build {
+ cd ${worksrcpath}
+ reinplace "s|/usr/local/share/xpdf/|${prefix}/share/xpdf/xpdf-|g" add-to-xpdfrc
+}
+
+destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/xpdf/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/xpdf/${name}/CMap
+ eval xinstall -m 644 [glob ${worksrcpath}/CMap/*] ${destroot}${prefix}/share/xpdf/${name}/CMap
+ eval xinstall -m 644 [glob ${worksrcpath}/CMap/*] ${destroot}${prefix}/share/xpdf/${name}/CMap
+ eval xinstall -m 644 \
+ Adobe-GB1.cidToUnicode EUC-CN.unicodeMap GBK.unicodeMap ISO-2022-CN.unicodeMap \
+ README add-to-xpdfrc \
+ ${destroot}${prefix}/share/xpdf/${name}/
+
+}
+
+variant autoactivate description automatically activate the character mappings {
+## activate-append { cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc }
+}
+
+
+post-activate {
+ if {[variant_isset autoactivate]} {
+ system "cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc"
+ ui_msg "\"Added ${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to \"${prefix}/etc/xpdfrc\". \
+ NOTE: uninstall does not attempt to remove these lines"
+ } else {
+ ui_msg " \
+ Activate these character mappings by adding \"${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to ${prefix}/etc/xpdfrc or ~/.xpdfrc \
+ The \"autoactivate\" variant does this automatically"
+ }
+
+}
+
Added: trunk/dports/graphics/xpdf-chinese-traditional/Portfile
===================================================================
--- trunk/dports/graphics/xpdf-chinese-traditional/Portfile (rev 0)
+++ trunk/dports/graphics/xpdf-chinese-traditional/Portfile 2007-07-13 22:08:05 UTC (rev 26956)
@@ -0,0 +1,72 @@
+# $Id: Portfile 22853 2007-03-16 20:20:39Z yves at macports.org $
+PortSystem 1.0
+name xpdf-chinese-traditional
+version 2004-jul-27
+description Xpdf character mapping for traditional Chinese
+long_description \
+ Xpdf character mapping for traditional Chinese
+
+maintainers ricci openmaintainer at macports.org
+categories graphics print
+platforms darwin
+homepage http://www.foolabs.com/xpdf/
+
+master_sites \
+ ftp://ftp.foolabs.com/pub/xpdf/ \
+ ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ \
+ ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ \
+ ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ \
+ ftp://ftp.kddlabs.co.jp/CTAN/support/xpdf/ \
+ ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/support/xpdf/ \
+ ftp://ctan.tug.org/tex-archive/support/xpdf/ \
+ ftp://ftp.dante.de/tex-archive/support/xpdf/ \
+ ftp://gd.tuwien.ac.at/publishing/tex/CTAN/support/xpdf/ \
+ ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ \
+ ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ \
+ http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ \
+ ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/
+
+## xpdf-chinese-traditional-2004-jul-27.tar.gz
+distfiles ${name}-${version}.tar.gz
+
+worksrcdir ${name}
+
+checksums md5 b7fa7f1850f7cfa28498701507079abb
+
+depends_lib port:xpdf
+
+configure {}
+
+build {
+ cd ${worksrcpath}
+ reinplace "s|/usr/local/share/xpdf/|${prefix}/share/xpdf/xpdf-|g" add-to-xpdfrc
+}
+
+destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/xpdf/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/xpdf/${name}/CMap
+ eval xinstall -m 644 [glob ${worksrcpath}/CMap/*] ${destroot}${prefix}/share/xpdf/${name}/CMap
+ eval xinstall -m 644 [glob ${worksrcpath}/CMap/*] ${destroot}${prefix}/share/xpdf/${name}/CMap
+ eval xinstall -m 644 \
+ Adobe-CNS1.cidToUnicode Big5.unicodeMap Big5ascii.unicodeMap README add-to-xpdfrc \
+ ${destroot}${prefix}/share/xpdf/${name}/
+}
+
+variant autoactivate description automatically activate the character mappings {
+## activate-append { cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc }
+}
+
+
+post-activate {
+ if {[variant_isset autoactivate]} {
+ system "cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc"
+ ui_msg "\"Added ${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to \"${prefix}/etc/xpdfrc\". \
+ NOTE: uninstall does not attempt to remove these lines"
+ } else {
+ ui_msg " \
+ Activate these character mappings by adding \"${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to ${prefix}/etc/xpdfrc or ~/.xpdfrc \
+ The \"autoactivate\" variant does this automatically"
+ }
+
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070713/bf010f30/attachment.html
More information about the macports-changes
mailing list