# $Id: Portfile 30250 2007-10-23 02:16:17Z jmpp@macports.org $
PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		{zip rubyzip} 0.5.7 basic_install.rb \
				{README ChangeLog TODO NEWS samples} \
				sourceforge
maintainers		nomaintainer
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

