Allow building with the ruby20 FLAVOR. Reminder by nigel@.

This commit is contained in:
jeremy 2013-10-07 20:56:53 +00:00
parent 6486cfbb4d
commit f870d32aef
2 changed files with 23 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.33 2013/03/11 02:52:08 espie Exp $
# $OpenBSD: Makefile,v 1.34 2013/10/07 20:56:53 jeremy Exp $
COMMENT= ruby interface to Berkeley DB
DISTNAME= bdb-0.6.5
REVISION= 6
REVISION= 7
CATEGORIES= databases
HOMEPAGE= http://rubyforge.org/projects/bdb/

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_features_rb,v 1.1 2013/10/07 20:56:53 jeremy Exp $
--- src/features.rb.orig Fri Jun 27 04:29:30 2008
+++ src/features.rb Thu Oct 3 13:31:27 2013
@@ -813,7 +813,7 @@ end
begin
conftest = CONFTEST_C.dup
class Object
- remove_const('CONFTEST_C')
+ remove_const('CONFTEST_C') rescue nil
end
CONFTEST_C = 'conftest.cxx'
@@ -878,7 +878,7 @@ EOT
ensure
class Object
- remove_const('CONFTEST_C')
+ remove_const('CONFTEST_C') rescue nil
end
CONFTEST_C = conftest