summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2005-12-27 11:45:12 +0000
committertaca <taca@pkgsrc.org>2005-12-27 11:45:12 +0000
commit7a8b802f074cf88061ea1ff9e707319543609679 (patch)
tree71e9dd312f137ace1bd915bbea845352c8d3e1f4 /lang
parent0ba311e8c320f5449d934b0149ac1edcc7e95e33 (diff)
downloadpkgsrc-7a8b802f074cf88061ea1ff9e707319543609679.tar.gz
Better handling for using ndbm(3) or compatible version by Berkeley DB.
For possibility of changing dependency, bump PKGREVISION.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby18-base/Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile
index 5e16dbcd5c1..223fe5b704e 100644
--- a/lang/ruby18-base/Makefile
+++ b/lang/ruby18-base/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.14 2005/12/08 09:52:15 rillig Exp $
+# $NetBSD: Makefile,v 1.15 2005/12/27 11:45:12 taca Exp $
#
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
@@ -46,7 +46,14 @@ CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX:Q}
FILES_SUBST+= DATE=${DATE:Q}
#
-# IRIX work around should be fixed.
+# Use Berkley DB unless a system has real ndbm(3).
+#
+.if !exists(/usr/include/ndbm.h)
+.include "../../mk/bdb.buildlink3.mk"
+.endif
+
+#
+# IRIX work around which should be fixed.
#
.if ${OPSYS} == "IRIX"
PLIST_SUBST+= HAS_IO="@comment "
@@ -130,15 +137,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${RUBY_EXAMPLESDIR}/pty
.endfor
-#
-# 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/Makefile.common"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"