source: trunk/dports/x11/monafont/Portfile @ 82833

Last change on this file since 82833 was 82833, checked in by jmr@…, 6 years ago

monafont: don't rely on tools in /usr/X11R6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 82833 2011-08-21 01:33:50Z jmr@macports.org $
2
3PortSystem 1.0
4
5name            monafont
6version         2.90
7revision        1
8categories      x11 fonts
9platforms       darwin
10maintainers     nifty.com:pelopor
11description     Japanese proportional font to show Japanese text arts correctly
12long_description \
13   Mona Font is a Japanese proportional font which allows you to view Japanese \
14   text arts correctly. Mona Font is based on Shinonome Font, a Japanese font \
15   developed by /efont/ Project.
16homepage        http://monafont.sourceforge.net/
17master_sites    sourceforge
18use_bzip2       yes
19checksums       md5 2b914878b19b1550757cea5d8a771612
20depends_build   port:mkfontscale port:mkfontdir
21post-patch {
22    reinplace "s|/usr/X11R6|${prefix}|" ${worksrcpath}/Makefile \
23                                        ${worksrcpath}/ttfsrc/Makefile
24}
25use_configure   no
26build.target    {}
27set myfontdir   ${prefix}/share/fonts/${name}
28destroot.destdir X11FONTDIR=${destroot}${myfontdir}
29pre-destroot {
30  xinstall -d -m 755 ${destroot}${myfontdir} \
31    ${destroot}${prefix}/share/doc/monafont
32  eval xinstall -m 644 [glob ${worksrcpath}/README*] \
33    ${destroot}${prefix}/share/doc/monafont
34}
35
36post-activate {
37   system "mkfontscale ${myfontdir}"
38   system "mkfontdir ${myfontdir}"
39}
40
41post-deactivate {
42   system "mkfontscale ${myfontdir}"
43   system "mkfontdir ${myfontdir}"
44}
Note: See TracBrowser for help on using the repository browser.