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
|
2006-06-07 07:57:47 +02:00
|
|
|
PORTVERSION= 0.5.9
|
2006-07-15 21:03:05 +02:00
|
|
|
PORTREVISION= 1
|
2001-03-07 20:10:52 +01:00
|
|
|
CATEGORIES= databases ruby
|
|
|
|
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
|
|
|
|
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
|
|
|
|
2006-06-07 07:57:47 +02:00
|
|
|
USE_BDB= YES
|
2004-05-12 19:55:00 +02:00
|
|
|
|
2004-05-12 20:05:39 +02:00
|
|
|
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}[2-4]*
|
|
|
|
|
2001-03-07 20:10:52 +01:00
|
|
|
USE_RUBY= yes
|
|
|
|
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} \
|
2006-07-15 21:03:05 +02:00
|
|
|
--with-db-lib=${BDB_LIB_DIR} \
|
|
|
|
--with-db-lib=${BDB_LIB_NAME:S/^db//}
|
2001-03-07 20:10:52 +01:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2003-01-01 17:21:55 +01:00
|
|
|
DOCS= Changes \
|
|
|
|
README.en \
|
|
|
|
bdb.html \
|
|
|
|
bdb.rd \
|
|
|
|
docs/*.html \
|
|
|
|
docs/*.rd \
|
|
|
|
docs/doc
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
|
|
|
|
.endif
|
2001-03-07 20:10:52 +01:00
|
|
|
|
2004-08-12 11:50:28 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-07 07:57:47 +02:00
|
|
|
DOCSDIR= ${RUBY_MODDOCDIR}
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2001-03-07 20:10:52 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:08:30 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2001-03-07 20:10:52 +01:00
|
|
|
.for f in ${DOCS}
|
2003-01-01 17:21:55 +01:00
|
|
|
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-03-07 20:10:52 +01:00
|
|
|
.endfor
|
2004-08-12 11:50:28 +02:00
|
|
|
.if ${RUBY_VER} >= 1.8
|
|
|
|
cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ri-site
|
|
|
|
.endif
|
2001-03-07 20:10:52 +01:00
|
|
|
.endif
|
|
|
|
|
2004-08-12 11:50:28 +02:00
|
|
|
.include <bsd.port.post.mk>
|