PortSystem 1.0

name		ht
version		2.1.0
revision	1
categories	devel editors
license		GPL-2
maintainers	nomaintainer
conflicts	httpie-go texlive-plain-generic

description	HT is a file editor/viewer/analyzer for executables.
homepage	http://hte.sourceforge.net/

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	rmd160  665e20a70a4735acf2102521b49074f94a28fba6 \
		sha256  31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70 \
		size    884139

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

patchfiles	configure.patch
patchfiles-append \
		httag.h.patch \
		htapp.cc.patch

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

# The next version will require C++14
# See https://github.com/sebastianbiallas/ht/commit/e52dfb86aa2c370d7d1ac2e046a4b9babc93bac9
# and https://github.com/sebastianbiallas/ht/commit/1b08f8670c3468e1b9c312650d74b037b47fc079
compiler.cxx_standard 1998
configure.cxxflags-append -std=c++98

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