# $Id: Portfile,v 1.6 2005/08/11 21:33:38 rshaw Exp $
PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		{zip rubyzip} 0.5.7 basic_install.rb \
				{README ChangeLog TODO NEWS samples} \
				sourceforge
maintainers		darwinports@opendarwin.org
description		rubyzip is a ruby module for reading and writing zip files
long_description	rubyzip is a ruby library for reading and writing \
					zip (pkzip format) files, with the restriction that \
					only uncompressed and deflated zip entries are \
					supported. All this library does is handling of the \
					zip file format. the actual \
					compression/decompression is handled by zlib.
categories-append	archivers
extract.suffix	.tgz
checksums		md5 59566b93ae84a4674247a46159424d47
platforms		darwin

post-patch {
	reinplace {s|File.dirname($0)|&, "lib"|} ${worksrcpath}/install.rb
}

test.run		yes
test.dir		${worksrcpath}/test
test.cmd		${ruby.bin} alltests.rb

