source: trunk/dports/textproc/nkf/Portfile @ 77998

Last change on this file since 77998 was 77998, checked in by ryandesign@…, 9 years ago

nkf: ensure we're UsingTheRightCompiler, and respect build_arch (and consolidate it with the way the port handles universal_archs)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 77998 2011-04-19 08:04:27Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            nkf
6version         2.1.1
7revision        2
8categories      textproc japanese
9maintainers     takanori openmaintainer
10description     Network Kanji code conversion Filter
11long_description \
12                Nkf  is  a  yet  another kanji code converter among networks, hosts and \
13                terminals.  It converts input kanji code to designated kanji code  such \
14                as 7-bit JIS, MS-kanji (shifted-JIS), utf-8 or EUC.
15platforms       darwin
16homepage        http://sourceforge.jp/projects/nkf/
17master_sites    sourceforge_jp:${name}/48945/
18patchfiles      nkf.git-bbb280a04623e073e447add83c6c9a5309c30fd2.patch \
19                nkf.git-d2f185cc2134b370b49b7a52a5e81b9671ecc43e.patch \
20                nkf.git-fbbf52db285384e4938bbe7862cae1df80482960_2.patch
21checksums       rmd160  06e0dbda6e90502ab4bafe4d44a9d05beed248c5
22
23patch.pre_args  -p1
24
25use_configure   no
26
27variant universal {}
28if {[variant_isset universal]} {
29    set archflags ${configure.universal_cflags}
30} else {
31    set archflags ${configure.cc_archflags}
32}
33
34build.target
35build.args      CC=${configure.cc} CFLAGS="${configure.cflags} ${archflags}"
36
37test.run        yes
38
39use_parallel_build  yes
40
41destroot {
42    xinstall -m 755 ${worksrcpath}/nkf ${destroot}${prefix}/bin
43    xinstall -m 644 ${worksrcpath}/nkf.1 ${destroot}${prefix}/share/man/man1
44}
45
46post-destroot {
47    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
48    xinstall -m 644 ${worksrcpath}/nkf.doc ${destroot}${prefix}/share/doc/${name}
49}
50
51livecheck.type  regex
52livecheck.url   ${homepage}files/
53livecheck.regex ${name}-(\[0-9.a-z\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.