2001-03-07 20:10:52 +01:00
|
|
|
# New ports collection makefile for: Ruby-BDB
|
|
|
|
# Date created: 8 March 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bdb
|
2011-04-22 13:38:16 +02:00
|
|
|
PORTVERSION= 0.6.6
|
2001-03-07 20:10:52 +01:00
|
|
|
CATEGORIES= databases ruby
|
2011-04-22 13:38:16 +02:00
|
|
|
MASTER_SITES= ftp://ftp.idaemons.org/pub/distfiles/ruby/ \
|
|
|
|
http://idaemons.org/distfiles/ruby/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= knu
|
2001-03-07 20:10:52 +01:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2004-05-12 19:55:00 +02:00
|
|
|
PKGNAMESUFFIX= ${WITH_BDB_VER}
|
2001-03-07 20:10:52 +01:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-11-14 13:21:57 +01:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 05:37:40 +01:00
|
|
|
COMMENT= Ruby interface to Sleepycat's Berkeley DB revision 2 or later
|
2001-03-07 20:10:52 +01:00
|
|
|
|
2011-04-22 13:38:16 +02:00
|
|
|
USE_BDB= yes
|
|
|
|
USE_BZIP2= yes
|
2004-05-12 19:55:00 +02:00
|
|
|
|
2004-05-12 20:05:39 +02:00
|
|
|
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}[2-4]*
|
|
|
|
|
2008-06-25 19:38:51 +02:00
|
|
|
USE_RUBY= yes
|
2001-03-07 20:10:52 +01:00
|
|
|
USE_RUBY_EXTCONF= yes
|
2003-01-01 17:21:55 +01:00
|
|
|
USE_RUBY_RDOC= yes
|
2001-03-07 20:10:52 +01:00
|
|
|
|
2006-06-07 07:57:47 +02:00
|
|
|
CONFIGURE_ARGS= --with-db-include=${BDB_INCLUDE_DIR} \
|
2011-04-22 13:38:16 +02:00
|
|
|
--with-db-lib=${BDB_LIB_DIR}
|
2001-03-07 20:10:52 +01:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2008-06-25 19:38:51 +02:00
|
|
|
DOCS= Changes \
|
|
|
|
README.en \
|
|
|
|
bdb.rd \
|
|
|
|
docs/*.rd
|
2001-03-07 20:10:52 +01:00
|
|
|
|
2004-08-12 11:50:28 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-06-25 19:38:51 +02:00
|
|
|
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2006-06-07 07:57:47 +02:00
|
|
|
DOCSDIR= ${RUBY_MODDOCDIR}
|
|
|
|
PORTDOCS= *
|
2008-06-25 19:38:51 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
( cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
|
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc )
|
|
|
|
.endif
|
2006-06-07 07:57:47 +02:00
|
|
|
|
2001-03-07 20:10:52 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2008-06-25 19:38:51 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/doc
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${DOCSDIR})
|
|
|
|
(cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}/doc)
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/
|
|
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} "! -empty")
|
2001-03-07 20:10:52 +01:00
|
|
|
.endif
|
|
|
|
|
2008-06-25 19:38:51 +02:00
|
|
|
regression-test:
|
2012-02-08 19:54:33 +01:00
|
|
|
@${MKDIR} ${BUILD_WRKSRC}/tmp
|
2008-06-25 19:38:51 +02:00
|
|
|
( cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
|
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test )
|
|
|
|
|
2004-08-12 11:50:28 +02:00
|
|
|
.include <bsd.port.post.mk>
|