source: trunk/dports/graphics/xpdf-chinese-simplified/Portfile

Last change on this file was 112361, checked in by ricci@…, 4 years ago

drop maintainership due to lack of availability

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 112361 2013-10-21 03:42:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    xpdf-chinese-simplified
6version                 2004-jul-27
7description             Xpdf character mapping for simplified Chinese
8long_description \
9        Xpdf character mapping for simplified Chinese
10
11maintainers             nomaintainer
12categories              graphics print
13license                 Restrictive/Distributable GPL-2
14platforms               darwin
15supported_archs noarch
16homepage                http://www.foolabs.com/xpdf/
17
18master_sites \
19    ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ \
20    ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ \
21    ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ \
22    ftp://ftp.kddlabs.co.jp/CTAN/support/xpdf/ \
23    ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/support/xpdf/ \
24    ftp://ctan.tug.org/tex-archive/support/xpdf/ \
25    ftp://ftp.dante.de/tex-archive/support/xpdf/ \
26    ftp://gd.tuwien.ac.at/publishing/tex/CTAN/support/xpdf/ \
27    ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ \
28    ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ \
29    http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ \
30    ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/ \
31    ftp://ftp.foolabs.com/pub/xpdf/
32
33worksrcdir      ${name}
34
35checksums    md5 6c3b04008000948e62530b8582e7f37c
36
37depends_lib      port:xpdf
38
39use_configure   no
40
41build {
42    reinplace "s|/usr/local/share/xpdf/|${prefix}/share/xpdf/xpdf-|g" ${worksrcpath}/add-to-xpdfrc
43}
44
45destroot {
46        xinstall -m 755 -d ${destroot}${prefix}/share/xpdf/${name}
47        xinstall -m 755 -d ${destroot}${prefix}/share/xpdf/${name}/CMap
48        eval xinstall -m 644 [glob ${worksrcpath}/CMap/*] ${destroot}${prefix}/share/xpdf/${name}/CMap
49        eval xinstall -m 644                            \
50                ${worksrcpath}/Adobe-GB1.cidToUnicode       \
51        ${worksrcpath}/EUC-CN.unicodeMap            \
52        ${worksrcpath}/GBK.unicodeMap               \
53        ${worksrcpath}/ISO-2022-CN.unicodeMap       \
54                ${worksrcpath}/README                       \
55        ${worksrcpath}/add-to-xpdfrc                \
56                ${destroot}${prefix}/share/xpdf/${name}/
57
58}
59
60variant autoactivate description automatically activate the character mappings {
61        ## used in post-activate (below)
62}
63
64
65post-activate {
66        if {[variant_isset autoactivate]} {
67                system "cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc"
68                ui_msg "\"Added ${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to \"${prefix}/etc/xpdfrc\". \
69                        NOTE: uninstall does not attempt to remove these lines"
70        } else {
71        ui_msg " \
72                Activate these character mappings by adding \"${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to ${prefix}/etc/xpdfrc or ~/.xpdfrc \
73                The \"autoactivate\" variant does this automatically"
74        }
75}
Note: See TracBrowser for help on using the repository browser.