From owner-svn-ports-head@FreeBSD.ORG Tue Jul 22 15:02:20 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90784A9; Tue, 22 Jul 2014 15:02:20 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 646592FCD; Tue, 22 Jul 2014 15:02:20 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6MF2KL0034548; Tue, 22 Jul 2014 15:02:20 GMT (envelope-from ume@svn.freebsd.org) Received: (from ume@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6MF2KL6034547; Tue, 22 Jul 2014 15:02:20 GMT (envelope-from ume@svn.freebsd.org) Message-Id: <201407221502.s6MF2KL6034547@svn.freebsd.org> From: Hajimu UMEMOTO Date: Tue, 22 Jul 2014 15:02:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362546 - head/databases/ruby-bdb X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 15:02:20 -0000 Author: ume Date: Tue Jul 22 15:02:19 2014 New Revision: 362546 URL: http://svnweb.freebsd.org/changeset/ports/362546 QAT: https://qat.redports.org/buildarchive/r362546/ Log: Make it buildable with Ruby 2.1. PR: 187652 Submitted by: Yasuhiro KIMURA Approved by: knu (maintainer timeout) Modified: head/databases/ruby-bdb/Makefile Modified: head/databases/ruby-bdb/Makefile ============================================================================== --- head/databases/ruby-bdb/Makefile Tue Jul 22 14:45:40 2014 (r362545) +++ head/databases/ruby-bdb/Makefile Tue Jul 22 15:02:19 2014 (r362546) @@ -15,6 +15,8 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org COMMENT= Ruby interface to Oracle Berkeley DB revision 2 or later +LICENSE= RUBY + USE_BDB= yes OPTIONS_DEFINE= DOCS EXAMPLES @@ -54,33 +56,29 @@ SHEBANG_FILES= examples/record.rb \ examples/basic.rb \ examples/lock.rb - NEED_ROOT= yes .include post-patch: -.if ${RUBY_VER} == 2.0 +.if ${RUBY_VER} >= 2.0 @${REINPLACE_CMD} -e '/remove_const/d' ${WRKSRC}/src/features.rb .endif +.if ${RUBY_VER} >= 2.1 + @${REINPLACE_CMD} -e 's|RBASIC(obj)->klass = \(.*\);|RBASIC_SET_CLASS_RAW(obj, \1);|' -e 's|RCLASS(\([[:alnum:]_]*\))->m_tbl|RCLASS_M_TBL(\1)|g' ${WRKSRC}/bdbxml2/bdbxml.h ${WRKSRC}/src/common.c +.endif post-build: -.if ${PORT_OPTIONS:MDOCS} (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc) -.endif post-install: ${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/bdb.so -.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR}/doc (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/doc) -.endif -.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -empty") -.endif regression-test: build @${MKDIR} ${BUILD_WRKSRC}/tmp