# $Id: Portfile,v 1.1 2005/10/25 15:37:29 mww Exp $

PortSystem 1.0

name			deb2targz
version			20021217
categories		archivers
platforms		darwin
maintainers		mww@opendarwin.org
description		converts .deb packages to .tar.gz archives
long_description	deb2targz is a very small perl script for converting \
			Debian Linux style .deb packages to a friendly .tar.gz. deb2targz \
			does not need any external programs like ar or tar.

homepage		http://www.miketaylor.org.uk/tech/deb/
master_sites	http://critical.ch/distfiles/ freebsd
checksums		md5 faa652c6447bd04ebb89d5d23c54f9a3

depends_run		bin:perl:perl5.8

patch {
	reinplace "s|/usr/bin/perl -w|/usr/bin/env perl|g" ${worksrcpath}/deb2targz
}

configure		{}
build			{}

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/bin
	xinstall -m 755 ${worksrcpath}/deb2targz ${destroot}${prefix}/bin
}
