PortSystem		1.0

name			noweb
version			2.11b
revision		1
categories		devel
maintainers		laposte.net:michael.grunewald
description		A Simple, Extensible Tool for Literate Programming
long_description	Literate programming is the art of preparing programs \
			for human readers.\
			noweb is designed to meet the needs of literate \
			programmers while remaining as simple as possible. \
			Its primary advantages are simplicity, extensibility, \
			and language-independence---especially noticeable \
			when compared with other literate-programming tools.
homepage		http://www.eecs.harvard.edu/nr/noweb/
platforms		darwin
master_sites		${homepage}dist/
extract.suffix		.tgz
checksums		md5 1df580723497b2f2efde07646abf764c \
			sha1 3b391c42f46dcb8a002b863fb2e483560a7da51d \
			rmd160 01e4fbb636dfd0f6d117caa045cf105e49d25fca
worksrcdir		${name}-${version}/src
patchfiles		patch-Makefile.diff patch-getline.diff

depends_build		port:icon
depends_run		port:icon

universal_variant	no

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
}

configure {
    system "cd ${worksrcpath} && ./awkname awk"
}

livecheck.type		regex
livecheck.url		${homepage}dist/?C=M&O=D
livecheck.regex		${name}-(\[0-9a-z.\]+)${extract.suffix}
