summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ruby-dl/Makefile47
-rw-r--r--devel/ruby-dl/distinfo1
-rw-r--r--devel/ruby-dl/pkg-comment1
-rw-r--r--devel/ruby-dl/pkg-descr5
-rw-r--r--devel/ruby-dl/pkg-plist10
6 files changed, 65 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3d8935672864..339e0be51109 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -441,6 +441,7 @@
SUBDIR += ruby-byaccr
SUBDIR += ruby-date2
SUBDIR += ruby-dialogs
+ SUBDIR += ruby-dl
SUBDIR += ruby-filelock
SUBDIR += ruby-fnmatch
SUBDIR += ruby-gemfinder
diff --git a/devel/ruby-dl/Makefile b/devel/ruby-dl/Makefile
new file mode 100644
index 000000000000..c288a9a69703
--- /dev/null
+++ b/devel/ruby-dl/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: ruby-dl
+# Date created: 1 July 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dl
+PORTVERSION= 0.3
+CATEGORIES= devel ruby
+MASTER_SITES= http://kt-www.jaist.ac.jp/~ttate/ftp/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/ruby-${PORTNAME}-${PORTVERSION}
+INSTALL_TARGET= site-install
+
+DOCS_EN= Changes README
+DOCS_JA= README.ja
+
+post-extract:
+ @${ECHO} "LIB= test" > ${WRKSRC}/test/Makefile
+ @${ECHO} "SHLIB_MAJOR= 1" >> ${WRKSRC}/test/Makefile
+ @${ECHO} "SHLIB_MINOR= 0" >> ${WRKSRC}/test/Makefile
+ @${ECHO} "SRCS= test.c" >> ${WRKSRC}/test/Makefile
+ @${ECHO} ".include <bsd.lib.mk>" >> ${WRKSRC}/test/Makefile
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/test/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/ruby-dl/distinfo b/devel/ruby-dl/distinfo
new file mode 100644
index 000000000000..a4dd5c669336
--- /dev/null
+++ b/devel/ruby-dl/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-dl-0.3.tar.gz) = 8ae682cefeb61e52d90f25f25035912f
diff --git a/devel/ruby-dl/pkg-comment b/devel/ruby-dl/pkg-comment
new file mode 100644
index 000000000000..872489c801f0
--- /dev/null
+++ b/devel/ruby-dl/pkg-comment
@@ -0,0 +1 @@
+A Ruby interface to dynamic linker
diff --git a/devel/ruby-dl/pkg-descr b/devel/ruby-dl/pkg-descr
new file mode 100644
index 000000000000..525856b2d291
--- /dev/null
+++ b/devel/ruby-dl/pkg-descr
@@ -0,0 +1,5 @@
+Ruby-dl is a Ruby interface to dynamic linker. You can call an
+arbitrary function in an arbitrary shared library with it.
+
+WWW: http://kt-www.jaist.ac.jp/~ttate/ruby/ruby-ext.html
+Author: Takaaki Tateishi <ttate@jaist.ac.jp>
diff --git a/devel/ruby-dl/pkg-plist b/devel/ruby-dl/pkg-plist
new file mode 100644
index 000000000000..8d0df0e93c69
--- /dev/null
+++ b/devel/ruby-dl/pkg-plist
@@ -0,0 +1,10 @@
+%%RUBY_SITEARCHLIBDIR%%/dl.so
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dl/Makefile
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dl/test.c
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dl/test.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/dl
+%%PORTDOCS%%%%RUBY_DOCDIR%%/dl/Changes
+%%PORTDOCS%%%%RUBY_DOCDIR%%/dl/README
+%%PORTDOCS%%%%RUBY_DOCDIR%%/dl/ja/README.ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/dl/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/dl