# $Id: Portfile,v 1.1 2005/01/04 22:56:31 mww Exp $

PortSystem 1.0

name			uni2html
version			1.1
categories		textproc
platforms		darwin
maintainers		mww@opendarwin.org
description		converts UTF-8 to corresponding HTML hexadecimal entities
long_description	uni2html is a program that reads UTF-8 Unicode from \
				standard input and displays the result of a conversion in \
				which every Unicode character above the 7-bit ASCII range is \
				converted into the corresponding HTML hexadecimal numeric \
				character entity.

homepage		http://www.cis.upenn.edu/~wjposer/uni2html.html
master_sites	http://www.cis.upenn.edu/~wjposer/.downloads/
distfiles		uni2html.py
checksums		md5 7c299fdc9a814185fc9f527e3cad6e59

depends_run		bin:python:python24

extract	{
	file mkdir ${worksrcpath}
	file copy ${distpath}/uni2html.py ${worksrcpath}
}

use_configure	no

build			{}

destroot	{
	xinstall -m 755 ${worksrcpath}/uni2html.py ${destroot}${prefix}/bin
	system "cd ${destroot}${prefix}/bin && ln -s uni2html.py uni2html"
}
