source: trunk/dports/graphics/xpdf-chinese-traditional/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-traditional
6version                 2004-jul-27
7description             Xpdf character mapping for traditional Chinese
8long_description \
9        Xpdf character mapping for traditional 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 b7fa7f1850f7cfa28498701507079abb
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-CNS1.cidToUnicode      \
51        ${worksrcpath}/Big5.unicodeMap              \
52        ${worksrcpath}/Big5ascii.unicodeMap         \
53        ${worksrcpath}/README                       \
54        ${worksrcpath}/add-to-xpdfrc                \
55                ${destroot}${prefix}/share/xpdf/${name}/
56}
57
58variant autoactivate description automatically activate the character mappings {
59        ## used in post-activate (below)
60}
61
62
63post-activate {
64        if {[variant_isset autoactivate]} {
65                system "cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc"
66                ui_msg "\"Added ${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to \"${prefix}/etc/xpdfrc\". \
67                        NOTE: uninstall does not attempt to remove these lines"
68        } else {
69        ui_msg " \
70                Activate these character mappings by adding \"${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to ${prefix}/etc/xpdfrc or ~/.xpdfrc \
71                The \"autoactivate\" variant does this automatically"
72        }
73}
Note: See TracBrowser for help on using the repository browser.