source: trunk/dports/graphics/xpdf-korean/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.4 KB
Line 
1# $Id: Portfile 112361 2013-10-21 03:42:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    xpdf-korean
6version                 2005-jul-07
7description             Xpdf character mapping for Korean
8long_description \
9        Xpdf character mapping for Korean
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 3c1e00f3b9d5fa713df8a3d763d12f3a
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-Korea1.cidToUnicode    \
51        ${worksrcpath}/ISO-2022-KR.unicodeMap       \
52                ${worksrcpath}/README                       \
53        ${worksrcpath}/add-to-xpdfrc                \
54                ${destroot}${prefix}/share/xpdf/${name}/
55}
56
57variant autoactivate description automatically activate the character mappings {
58        ## used in post-activate (below)
59}
60
61
62post-activate {
63        if {[variant_isset autoactivate]} {
64                system "cat ${prefix}/share/xpdf/${name}/add-to-xpdfrc >> ${prefix}/etc/xpdfrc"
65                ui_msg "\"Added ${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to \"${prefix}/etc/xpdfrc\". \
66                        NOTE: uninstall does not attempt to remove these lines"
67        } else {
68        ui_msg " \
69                Activate these character mappings by adding \"${prefix}/share/xpdf/${name}/add-to-xpdfrc\" to ${prefix}/etc/xpdfrc or ~/.xpdfrc \
70                The \"autoactivate\" variant does this automatically"
71        }
72       
73}
Note: See TracBrowser for help on using the repository browser.