# $Id: Portfile 84853 2011-10-03 17:30:16Z jmr@macports.org $

PortSystem 1.0

name		ht
version		2.0.18
categories	devel editors
license		GPL-2
maintainers	landonf
description	HT is a file editor/viewer/analyzer for executables.
homepage	http://hte.sourceforge.net/
platforms	darwin

long_description HT is a file editor/viewer/analyzer for executables. The \
		goal is to combine the low-level functionality of a debugger \
		and the usability of IDEs.

master_sites	sourceforge:project/hte/ht-source

use_bzip2	yes
checksums	md5     9cd5c52bb3fbae5c631875cd0de3318c \
		sha1    f4e51dae47f8f2a2fe34883714890e9d1c48d3de \
		rmd160  c486e436d2f5c24830e4e0ba7da83b5fe46a5d5b

depends_lib	port:ncurses port:lzo2 port:xorg-libX11

patchfiles	configure.patch
post-patch {
	file attributes ${worksrcpath}/install-sh -permissions +x
}

post-destroot {
	file rename ${destroot}${prefix}/bin/ht ${destroot}${prefix}/bin/hte
	xinstall -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} COPYING README doc/ht.html \
	    ${destroot}${prefix}/share/doc/${name}
}
