# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ PortSystem 1.0 name nkf set nkf_ver 2.0.9 set nkf_date 20090426 version ${nkf_ver}-${nkf_date} categories textproc japanese maintainers takanori openmaintainer description Network Kanji code conversion Filter long_description \ Nkf is a yet another kanji code converter among networks, hosts and \ terminals. It converts input kanji code to designated kanji code such \ as 7-bit JIS, MS-kanji (shifted-JIS), utf-8 or EUC. platforms darwin homepage http://sourceforge.jp/projects/nkf/ master_sites sourceforge_jp:${name}/37177/:nkf \ macports::patch distname nkf-${nkf_ver} distfiles [suffix ${distname}]:nkf patchfiles nkf-${version}.patch:patch checksums nkf-${version}.patch rmd160 43ac422070f1b2ce476f6af562464156ea2786c2 \ [suffix ${distname}] rmd160 c27b176f675428c0cbfb7779700979e60de3a42f patch.pre_args -p1 use_configure no build.target build.args CFLAGS="${configure.cflags}" test.run yes use_parallel_build yes destroot { xinstall -m 755 ${worksrcpath}/nkf ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/nkf.1 ${destroot}${prefix}/share/man/man1 } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 ${worksrcpath}/nkf.doc ${destroot}${prefix}/share/doc/${name} } variant universal { build.args CFLAGS="${configure.cflags} ${configure.universal_cflags}" } livecheck.type regex livecheck.url ${homepage}files/ livecheck.regex ${name}-(\[0-9.a-z\]+)\\.tar