summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-04 15:30:00 +0000
committerjlam <jlam@pkgsrc.org>2008-04-04 15:30:00 +0000
commit49044b1ec2caacbe0cd6751700981b592cdb06b1 (patch)
treec080e0fce7907456de3fe1768865d098adfb51fd /archivers
parentd5b336e4ba6b8a28d7b0778f55c1cbb057689834 (diff)
downloadpkgsrc-49044b1ec2caacbe0cd6751700981b592cdb06b1.tar.gz
Install as a gem using the pkgsrc rubygem.mk framework instead of
directly into site_ruby.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/ruby-zip/Makefile19
-rw-r--r--archivers/ruby-zip/PLIST62
-rw-r--r--archivers/ruby-zip/distinfo8
3 files changed, 53 insertions, 36 deletions
diff --git a/archivers/ruby-zip/Makefile b/archivers/ruby-zip/Makefile
index 386ee6e809f..7494d241e93 100644
--- a/archivers/ruby-zip/Makefile
+++ b/archivers/ruby-zip/Makefile
@@ -1,24 +1,17 @@
-# $NetBSD: Makefile,v 1.3 2007/03/08 19:26:41 rillig Exp $
+# $NetBSD: Makefile,v 1.4 2008/04/04 15:30:00 jlam Exp $
DISTNAME= rubyzip-0.9.1
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby//}
+PKGREVISION= 1
CATEGORIES= archivers
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rubyzip/}
-EXTRACT_SUFX= .tgz
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://rubyzip.sourceforge.net/
COMMENT= Ruby module for reading and writing zip files
-NO_BUILD= yes
-USE_RUBY_INSTALL= yes
-REPLACE_RUBY_DIRS= ${WRKSRC}/samples
+post-extract:
+ rm -f ${WRKSRC}/lib/download_quizzes.rb
+ rm -fr ${WRKSRC}/lib/quiz1
-post-install:
- ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/rubyzip
- ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/rubyzip
- cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog NEWS README ${RUBY_DOCDIR}/rubyzip
- cd ${WRKSRC}/samples && ${INSTALL_DATA} *.rb ${RUBY_EXAMPLESDIR}/rubyzip
-
-.include "../../lang/ruby/modules.mk"
+.include "../../misc/rubygems/rubygem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/ruby-zip/PLIST b/archivers/ruby-zip/PLIST
index 7e06e538b20..1b18df03ca6 100644
--- a/archivers/ruby-zip/PLIST
+++ b/archivers/ruby-zip/PLIST
@@ -1,19 +1,43 @@
-@comment $NetBSD: PLIST,v 1.2 2007/01/28 15:18:48 taca Exp $
-${RUBY_SITELIBDIR}/zip/ioextras.rb
-${RUBY_SITELIBDIR}/zip/stdrubyext.rb
-${RUBY_SITELIBDIR}/zip/tempfile_bugfixed.rb
-${RUBY_SITELIBDIR}/zip/zip.rb
-${RUBY_SITELIBDIR}/zip/zipfilesystem.rb
-${RUBY_SITELIBDIR}/zip/ziprequire.rb
-${RUBY_DOCDIR}/rubyzip/ChangeLog
-${RUBY_DOCDIR}/rubyzip/NEWS
-${RUBY_DOCDIR}/rubyzip/README
-${RUBY_EXAMPLESDIR}/rubyzip/example.rb
-${RUBY_EXAMPLESDIR}/rubyzip/example_filesystem.rb
-${RUBY_EXAMPLESDIR}/rubyzip/gtkRubyzip.rb
-${RUBY_EXAMPLESDIR}/rubyzip/qtzip.rb
-${RUBY_EXAMPLESDIR}/rubyzip/write_simple.rb
-${RUBY_EXAMPLESDIR}/rubyzip/zipfind.rb
-@dirrm ${RUBY_EXAMPLESDIR}/rubyzip
-@dirrm ${RUBY_DOCDIR}/rubyzip
-@dirrm ${RUBY_SITELIBDIR}/zip
+@comment $NetBSD: PLIST,v 1.3 2008/04/04 15:30:00 jlam Exp $
+${GEM_HOME}/cache/rubyzip-${PKGVERSION}.gem
+${GEM_LIBDIR}/ChangeLog
+${GEM_LIBDIR}/NEWS
+${GEM_LIBDIR}/README
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/TODO
+${GEM_LIBDIR}/install.rb
+${GEM_LIBDIR}/lib/zip/ioextras.rb
+${GEM_LIBDIR}/lib/zip/stdrubyext.rb
+${GEM_LIBDIR}/lib/zip/tempfile_bugfixed.rb
+${GEM_LIBDIR}/lib/zip/zip.rb
+${GEM_LIBDIR}/lib/zip/zipfilesystem.rb
+${GEM_LIBDIR}/lib/zip/ziprequire.rb
+${GEM_LIBDIR}/samples/example.rb
+${GEM_LIBDIR}/samples/example_filesystem.rb
+${GEM_LIBDIR}/samples/gtkRubyzip.rb
+${GEM_LIBDIR}/samples/qtzip.rb
+${GEM_LIBDIR}/samples/write_simple.rb
+${GEM_LIBDIR}/samples/zipfind.rb
+${GEM_LIBDIR}/test/alltests.rb
+${GEM_LIBDIR}/test/data/file1.txt
+${GEM_LIBDIR}/test/data/file1.txt.deflatedData
+${GEM_LIBDIR}/test/data/file2.txt
+${GEM_LIBDIR}/test/data/notzippedruby.rb
+${GEM_LIBDIR}/test/data/rubycode.zip
+${GEM_LIBDIR}/test/data/rubycode2.zip
+${GEM_LIBDIR}/test/data/testDirectory.bin
+${GEM_LIBDIR}/test/data/zipWithDirs.zip
+${GEM_LIBDIR}/test/gentestfiles.rb
+${GEM_LIBDIR}/test/ioextrastest.rb
+${GEM_LIBDIR}/test/stdrubyexttest.rb
+${GEM_LIBDIR}/test/zipfilesystemtest.rb
+${GEM_LIBDIR}/test/ziprequiretest.rb
+${GEM_LIBDIR}/test/ziptest.rb
+${GEM_HOME}/specifications/rubyzip-${PKGVERSION}.gemspec
+@dirrm ${GEM_LIBDIR}/test/data
+@dirrm ${GEM_LIBDIR}/test
+@dirrm ${GEM_LIBDIR}/samples
+@dirrm ${GEM_LIBDIR}/lib/zip
+@dirrm ${GEM_LIBDIR}/lib
+@dirrm ${GEM_LIBDIR}
+@exec ${MKDIR} %D/${GEM_DOCDIR}
diff --git a/archivers/ruby-zip/distinfo b/archivers/ruby-zip/distinfo
index 89a3996f4f2..523605dab5b 100644
--- a/archivers/ruby-zip/distinfo
+++ b/archivers/ruby-zip/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2007/01/28 15:18:48 taca Exp $
+$NetBSD: distinfo,v 1.3 2008/04/04 15:30:00 jlam Exp $
-SHA1 (rubyzip-0.9.1.tgz) = 68923db78186c4ae8a58b4048025694e3190beda
-RMD160 (rubyzip-0.9.1.tgz) = 9db3feba4d231e416ff5cec0a5a17e121fdac1b6
-Size (rubyzip-0.9.1.tgz) = 62254 bytes
+SHA1 (rubyzip-0.9.1.gem) = 66086ec206030088b706895b4634c261a0d9fd01
+RMD160 (rubyzip-0.9.1.gem) = 4826c23eff6b8b6759fffc5cf6583fd0ec3f3b03
+Size (rubyzip-0.9.1.gem) = 85504 bytes