# $Id: Portfile 66678 2010-04-20 02:32:39Z boeyms@macports.org $

PortSystem 1.0

name		cook
version		2.32
categories	devel
maintainers	waqar boeyms
description	Cook is a replacement for the traditional make(1) tool.
long_description	\
	Cook is a tool for constructing files. It is given a \
	set of files to create, and recipes of how to create \
	them. In any non-trivial program there will be \
	prerequisites to performing the actions necessary to \
	creating any file, such as include files. Cook provides \
	a mechanism to define these.
homepage	http://miller.emu.id.au/pmiller/software/cook/
platforms	darwin
master_sites	${homepage}
checksums	md5 4c24ed62a7cc9bc677678b25da23950b \
		sha1 f2512d6bb1b3c224939e2ee3d7863f490820a0ca \
		rmd160 6bce5cf33f290147dae07780fc8c1f3039d4fefa
depends_lib	port:libiconv port:gettext
patchfiles	patch-common__help.c.diff
pre-configure {
	reinplace "s|__PREFIX__|${prefix}|g" \
		"${worksrcpath}/common/help.c"
}
use_parallel_build	no
build.env-append	RPM_BUILD_ROOT=${destroot}
destroot.env-append	RPM_BUILD_ROOT=${destroot}
configure.args  --infodir=${prefix}/share/info --mandir=${prefix}/share/man \
                --datadir=${prefix}/share
