diff options
author | knu <knu@FreeBSD.org> | 2013-04-23 18:04:39 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2013-04-23 18:04:39 +0800 |
commit | 31612a9dff51da1c38fc84396235f187e3047f3c (patch) | |
tree | 8c16b1b1b24e96933c772d37a773354c5ed4d992 /databases | |
parent | e26e2299aa5bcfd2da0ebabb43e4f02f3bb85ce0 (diff) | |
download | freebsd-ports-gnome-31612a9dff51da1c38fc84396235f187e3047f3c.tar.gz freebsd-ports-gnome-31612a9dff51da1c38fc84396235f187e3047f3c.tar.zst freebsd-ports-gnome-31612a9dff51da1c38fc84396235f187e3047f3c.zip |
Fix build with Ruby 2.0 and follow the ports framework updates.
- Update COMMENT
- Update pkg-descr
- Convert to new options framework
- Minor Makefile cleanup
- Pet portlint
PR: ports/177342
Submitted by: tentative
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-bdb/Makefile | 57 | ||||
-rw-r--r-- | databases/ruby-bdb/pkg-descr | 3 |
2 files changed, 26 insertions, 34 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile index 43aaa57e76aa..c209c956809e 100644 --- a/databases/ruby-bdb/Makefile +++ b/databases/ruby-bdb/Makefile @@ -1,29 +1,26 @@ -# New ports collection makefile for: Ruby-BDB -# Date created: 8 March 2001 -# Whom: Akinori MUSHA aka knu <knu@idaemons.org> -# +# Created by: Akinori MUSHA aka knu <knu@idaemons.org> # $FreeBSD$ -# PORTNAME= bdb PORTVERSION= 0.6.6 CATEGORIES= databases ruby MASTER_SITES= ftp://ftp.idaemons.org/pub/distfiles/ruby/ \ http://idaemons.org/distfiles/ruby/ \ - ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= knu + LOCAL/knu PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} PKGNAMESUFFIX= ${WITH_BDB_VER} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -COMMENT= Ruby interface to Sleepycat's Berkeley DB revision 2 or later +COMMENT= Ruby interface to Oracle Berkeley DB revision 2 or later USE_BDB= yes USE_BZIP2= yes CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}[2-4]* +OPTIONS_DEFINE= DOCS EXAMPLES + USE_RUBY= yes USE_RUBY_EXTCONF= yes USE_RUBY_RDOC= yes @@ -32,44 +29,40 @@ CONFIGURE_ARGS= --with-db-include=${BDB_INCLUDE_DIR} \ --with-db-lib=${BDB_LIB_DIR} INSTALL_TARGET= site-install -DOCS= Changes \ - README.en \ - bdb.rd \ - docs/*.rd - -.include <bsd.port.pre.mk> - -PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so - -.if !defined(NOPORTDOCS) +DOCS= Changes README.en bdb.rd docs/*.rd DOCSDIR= ${RUBY_MODDOCDIR} -PORTDOCS= * -.endif -.if !defined(NOPORTEXAMPLES) EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR} +PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so +PORTDOCS= * PORTEXAMPLES= * + +.include <bsd.port.pre.mk> + +post-patch: +.if ${RUBY_VER} == 2.0 + @${REINPLACE_CMD} -e '/remove_const/d' ${WRKSRC}/src/features.rb .endif post-build: -.if !defined(NOPORTDOCS) - ( cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \ - ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc ) +.if ${PORT_OPTIONS:MDOCS} + (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc) .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/doc - (cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${DOCSDIR}) - (cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}/doc) + (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}) + (cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${DOCSDIR}/doc) .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR}/ - (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} "! -empty") + (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -empty") .endif -regression-test: +regression-test: build @${MKDIR} ${BUILD_WRKSRC}/tmp - ( cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ - ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test ) + (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) .include <bsd.port.post.mk> diff --git a/databases/ruby-bdb/pkg-descr b/databases/ruby-bdb/pkg-descr index e47423155e7f..855aa0aaffbf 100644 --- a/databases/ruby-bdb/pkg-descr +++ b/databases/ruby-bdb/pkg-descr @@ -2,5 +2,4 @@ Ruby-bdb is an interface to Sleepycat's Berkeley DB revision 2 or later. DB >= 2 is required. (some functionalities like join are not available with DB < 2.6) -Author: Guy Decoux <ts@moulon.inra.fr> -WWW: http://moulon.inra.fr/ruby/bdb.html +WWW: https://github.com/knu/ruby-bdb |