summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2005-03-06 16:52:38 +0000
committertaca <taca@pkgsrc.org>2005-03-06 16:52:38 +0000
commitd0cab82177cd6f281845eb8ee82a5668d852315f (patch)
treea4a03e2b56f1828e6102929a8a0e3a80693c20f9 /databases
parent6905ca0c036405a3071d57ba03f00689b7b72cf3 (diff)
downloadpkgsrc-d0cab82177cd6f281845eb8ee82a5668d852315f.tar.gz
Revive separated ruby packages, ruby-dbm, ruby-zlib, ruby-digest and
ruby-openssl with bump PKGREVISION. Added ruby-dbm/Makefile to handle IRIX case, use native base system's ndbm(3) instead of Berkley DB's ndbm compatible interface, too.
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-dbm/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/databases/ruby-dbm/Makefile b/databases/ruby-dbm/Makefile
new file mode 100644
index 00000000000..e95d77c5c45
--- /dev/null
+++ b/databases/ruby-dbm/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.5 2005/03/06 16:52:39 taca Exp $
+#
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-dbm-${RUBY_VERSION}
+PKGREVISION= 1
+CATEGORIES= databases ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby extension to DBM library
+
+RUBY_HAS_ARCHLIB= yes
+USE_BUILDLINK3= yes
+USE_RUBY_EXTCONF= yes
+DISTINFO_FILE= ${RUBY_DISTINFO_FILE}
+WRKSRC= ${RUBY_WRKSRC}/ext/dbm
+EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/dbm \
+ ${RUBY_DISTNAME}/sample/dbmtest.rb
+
+post-install:
+ ${INSTALL_DATA} ${RUBY_WRKSRC}/sample/dbmtest.rb ${RUBY_EXAMPLESDIR}
+
+.include "../../mk/bsd.prefs.mk"
+#
+# XXX: Ruby extconf shuld select native ndbm(3) or Berkley DB's
+# ndbm(3) compatible support.
+#
+.if ${OPSYS} != "IRIX" && ${OPSYS} != "SunOS"
+BDB_ACCEPTED?= db1
+.include "../../mk/bdb.buildlink3.mk"
+.endif
+
+.include "../../lang/ruby/modules.mk"
+.include "../../lang/ruby/Makefile.common"
+.include "../../mk/bsd.pkg.mk"