summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2011-10-03 19:51:05 +0000
committerminskim <minskim@pkgsrc.org>2011-10-03 19:51:05 +0000
commitd10179468cf36c93c311d54f6ca0fb62a45daea9 (patch)
tree17f816096996834a82446faac4aff91da7b0a269 /archivers
parent3a51d2a07695cf107abe7cfd54c6c0a55f4e6df3 (diff)
downloadpkgsrc-d10179468cf36c93c311d54f6ca0fb62a45daea9.tar.gz
Import ruby19-xz-0.0.1 as archivers/ruby-xz.
ruby-xz is a basic binding for liblzma that allows you to create and extract XZ-compressed archives. It can cope with big files as well as small ones, but doesn't offer much of the possibilities liblzma itself has.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/ruby-xz/DESCR4
-rw-r--r--archivers/ruby-xz/Makefile36
-rw-r--r--archivers/ruby-xz/PLIST5
-rw-r--r--archivers/ruby-xz/distinfo6
-rw-r--r--archivers/ruby-xz/patches/patch-lib_xz.rb15
5 files changed, 66 insertions, 0 deletions
diff --git a/archivers/ruby-xz/DESCR b/archivers/ruby-xz/DESCR
new file mode 100644
index 00000000000..4cc8d82dee8
--- /dev/null
+++ b/archivers/ruby-xz/DESCR
@@ -0,0 +1,4 @@
+ruby-xz is a basic binding for liblzma that allows you to create and
+extract XZ-compressed archives. It can cope with big files as well as
+small ones, but doesn't offer much of the possibilities liblzma itself
+has.
diff --git a/archivers/ruby-xz/Makefile b/archivers/ruby-xz/Makefile
new file mode 100644
index 00000000000..48055d6a185
--- /dev/null
+++ b/archivers/ruby-xz/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/03 19:51:05 minskim Exp $
+
+DISTNAME= ruby-xz-0.0.1
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
+CATEGORIES= archivers
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= https://github.com/Quintus/ruby-xz
+COMMENT= Ruby bindings for liblzma
+
+DEPENDS+= xz-[0-9]*:../../archivers/xz
+DEPENDS+= ${RUBY_PKGPREFIX}-ffi-[0-9]*:../../devel/ruby-ffi
+LICENSE= mit
+
+RUBYGEMS_REQD= 1.8.10
+
+PRIVILEGED_STAGES+= clean
+
+EVAL_PREFIX+= XZ_PREFIX=xz
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= pre-configure
+SUBST_FILES.path= lib/xz.rb
+SUBST_SED.path= -e "s,@LOCALBASE@,${XZ_PREFIX},g"
+SUBST_SED.path+= -e "s,@SHLIB_EXT@,${SHLIB_EXT},g"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${_OPSYS_SHLIB_TYPE} == "dylib"
+SHLIB_EXT= dylib
+.else
+SHLIB_EXT= so
+.endif
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/ruby-xz/PLIST b/archivers/ruby-xz/PLIST
new file mode 100644
index 00000000000..4d1ce5a85d8
--- /dev/null
+++ b/archivers/ruby-xz/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/03 19:51:05 minskim Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/README.rdoc
+${GEM_LIBDIR}/lib/xz.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/archivers/ruby-xz/distinfo b/archivers/ruby-xz/distinfo
new file mode 100644
index 00000000000..e9f2257587f
--- /dev/null
+++ b/archivers/ruby-xz/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/10/03 19:51:05 minskim Exp $
+
+SHA1 (ruby-xz-0.0.1.gem) = 4f076cd0b9741c13e8b9e562eeeac3a9fc7fd447
+RMD160 (ruby-xz-0.0.1.gem) = ee0c9a6301f1b5ac1e2980eb48d784d5417d0194
+Size (ruby-xz-0.0.1.gem) = 9728 bytes
+SHA1 (patch-lib_xz.rb) = f5fbb0ec5fa17d2fc8fe7e26e74a7eeb5e74ae2f
diff --git a/archivers/ruby-xz/patches/patch-lib_xz.rb b/archivers/ruby-xz/patches/patch-lib_xz.rb
new file mode 100644
index 00000000000..f46f7adb5b6
--- /dev/null
+++ b/archivers/ruby-xz/patches/patch-lib_xz.rb
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_xz.rb,v 1.1.1.1 2011/10/03 19:51:05 minskim Exp $
+
+Use an absolute path for a library to load.
+
+--- lib/xz.rb.orig 2011-10-02 00:41:00.000000000 +0000
++++ lib/xz.rb
+@@ -77,7 +77,7 @@ module XZ
+ :lzma_buf_error,
+ :lzma_prog_error
+
+- ffi_lib "liblzma"
++ ffi_lib "@LOCALBASE@/lib/liblzma.@SHLIB_EXT@"
+
+ attach_function :lzma_easy_encoder, [:pointer, :uint32, :int], :int
+ attach_function :lzma_code, [:pointer, :int], :int