aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2007-01-10 04:19:01 +0800
committerstas <stas@FreeBSD.org>2007-01-10 04:19:01 +0800
commit23bd764b102c8abf827a9617149266cfee0c11e1 (patch)
treeba6b66cd2686cf83eedbff3fdb3b9ff2e65e8dcb /archivers
parent0ce78390f3742c5df08781a01b079454c139af13 (diff)
downloadfreebsd-ports-gnome-23bd764b102c8abf827a9617149266cfee0c11e1.tar.gz
freebsd-ports-gnome-23bd764b102c8abf827a9617149266cfee0c11e1.tar.zst
freebsd-ports-gnome-23bd764b102c8abf827a9617149266cfee0c11e1.zip
- Add port for ruby-lha, a ruby extension to work with lha-compressed files.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/ruby-lha/Makefile34
-rw-r--r--archivers/ruby-lha/distinfo3
-rw-r--r--archivers/ruby-lha/pkg-descr4
-rw-r--r--archivers/ruby-lha/pkg-plist8
5 files changed, 50 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 0b7ccc6b4436..a9810db061a4 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -107,6 +107,7 @@
SUBDIR += rpm2cpio
SUBDIR += rpm4
SUBDIR += ruby-bz2
+ SUBDIR += ruby-lha
SUBDIR += ruby-zip
SUBDIR += rvm
SUBDIR += rzip
diff --git a/archivers/ruby-lha/Makefile b/archivers/ruby-lha/Makefile
new file mode 100644
index 000000000000..1f630aac5935
--- /dev/null
+++ b/archivers/ruby-lha/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: ruby-lha
+# Date created: 09 January 2006
+# Whom: stas
+#
+# $FreeBSD$
+#
+
+PORTNAME= lha
+PORTVERSION= 0.8.1
+CATEGORIES= archivers ruby
+MASTER_SITES= http://arton.no-ip.info/data/lhalib/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= lhalib-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= A Ruby extension to unpack lha-compressed files
+
+USE_ZIP= yes
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+RUBY_EXTCONF= ext/extconf.rb
+
+CONFIGURE_ARGS= --rubyprog=${RUBY}
+
+EXAMPLES= test/test.rb
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}/
+ @${INSTALL_SCRIPT} ${EXAMPLES:S,^,${WRKSRC}/,} ${RUBY_MODEXAMPLESDIR}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/archivers/ruby-lha/distinfo b/archivers/ruby-lha/distinfo
new file mode 100644
index 000000000000..c2109cf95839
--- /dev/null
+++ b/archivers/ruby-lha/distinfo
@@ -0,0 +1,3 @@
+MD5 (ruby/lhalib-0.8.1.zip) = 382c10766d6f88c91b56216d0f65bcd3
+SHA256 (ruby/lhalib-0.8.1.zip) = 98ef5c60e991a471f28ca8f4a7a79458a85f8e418431511d03840bd122783a38
+SIZE (ruby/lhalib-0.8.1.zip) = 77035
diff --git a/archivers/ruby-lha/pkg-descr b/archivers/ruby-lha/pkg-descr
new file mode 100644
index 000000000000..9cc796abc41e
--- /dev/null
+++ b/archivers/ruby-lha/pkg-descr
@@ -0,0 +1,4 @@
+ruby-lha is a ruby extension library that unpack files, compressed with lha.
+
+Author: arton <artonx@gmail.com>
+WWW: http://arton.no-ip.info/collabo/backyard/?LhaLibEn
diff --git a/archivers/ruby-lha/pkg-plist b/archivers/ruby-lha/pkg-plist
new file mode 100644
index 000000000000..94d5952b491d
--- /dev/null
+++ b/archivers/ruby-lha/pkg-plist
@@ -0,0 +1,8 @@
+%%RUBY_SITELIBDIR%%/%%RUBY_ARCH%%/lhalib.so
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.rb
+%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
+@dirrmtry %%RUBY_SITELIBDIR%%/%%RUBY_ARCH%%
+@dirrmtry %%RUBY_SITELIBDIR%%
+@dirrmtry lib/ruby/site_ruby
+@dirrmtry lib/ruby