# $Id: Portfile 135119 2015-04-15 20:02:07Z ryandesign@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup pinard Recode 3.7-beta2 v name recode-devel conflicts recode categories textproc maintainers nomaintainer platforms darwin description charset conversion program long_description \ This recode program has the purpose of converting files between \ various character sets and usages. When exact transliterations \ are not possible, as it is often the case, the program may get \ rid of the offending characters or fall back on approximations. homepage http://recode.progiciels-bpi.ca/ distname recode-${version} dist_subdir recode checksums rmd160 9d6c8d9eaf5262d5b35e7bef3fbaba223cd4f871 \ sha256 ba3eec3e6a223b84c7f0d3e177ef62d12c65e90323e8691b45a41e350017e528 depends_lib port:libtool port:gettext port:libiconv # src/libiconv.c patch from Debian, # http://packages.debian.org/stable/text/recode # patchfiles patch-lib_Makefile.in.diff patch-src_libiconv.c.diff pre-configure { xinstall -m 644 -W ${prefix}/share/libtool/build-aux config.guess config.sub ${worksrcpath} } configure.ldflags-append \ -lintl -liconv configure.args --infodir=${prefix}/share/info \ --mandir=${prefix}/share/man \ --with-libiconv-prefix=${prefix} \ --with-libintl-prefix=${prefix} post-destroot { set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README THANKS \ TODO ${destroot}${docdir} } test.run yes test.target check