pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby18-base Better handling for using ndbm(3) or ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d1d39edbf78b
branches: trunk
changeset: 504860:d1d39edbf78b
user: taca <taca%pkgsrc.org@localhost>
date: Tue Dec 27 11:45:12 2005 +0000
description:
Better handling for using ndbm(3) or compatible version by Berkeley DB.
For possibility of changing dependency, bump PKGREVISION.
diffstat:
lang/ruby18-base/Makefile | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diffs (47 lines):
diff -r 900c56569a92 -r d1d39edbf78b lang/ruby18-base/Makefile
--- a/lang/ruby18-base/Makefile Tue Dec 27 10:20:27 2005 +0000
+++ b/lang/ruby18-base/Makefile Tue Dec 27 11:45:12 2005 +0000
@@ -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 @@
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 @@
${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"
Home |
Main Index |
Thread Index |
Old Index