# $Id: Portfile 90445 2012-03-05 22:08:09Z cal@macports.org $

PortSystem 1.0

name			uni2ascii
version			4.18
categories		textproc
platforms		darwin
maintainers		mww
license			GPL-3
description		converts between UTF-8 Unicode and 7-bit ASCII equivalents
long_description	uni2ascii and ascii2uni convert between UTF-8 Unicode and \
			more than a dozen 7-bit ASCII equivalents including: hexadecimal \
			and decimal HTML numeric character references, \u-escapes, \
			standard hexadecimal, raw hexadecimal, and RFC2396 URI format. \
			Such ASCII equivalents are encountered in a variety of \
			circumstances, such as when Unicode text is included in program \
			source, when entering text into Web programs that can handle the \
			Unicode character set but are not 8-bit safe, and when debugging.

homepage		http://billposer.org/Software/uni2ascii.html
master_sites	http://billposer.org/Software/Downloads/

checksums           md5     a1b1df74cccd1fa997bad79c8c4ced68 \
                    sha1    9c718b35d1acd30ed4ef6d74318e846d10403b86 \
                    rmd160  4cc1ab903b182bbb7f40c58c8eb5d77cb12b5c33

use_bzip2		yes

depends_lib		port:gettext

patchfiles		patch-ascii2uni.c.diff \
			patch-configure.ac.diff

use_autoreconf	yes

configure.args	--mandir=${prefix}/share/man
configure.ldflags-append	"-lintl"

livecheck.type	freecode
