2011-09-16 04:48:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2011/09/16 08:48:04 espie Exp $
|
2006-10-21 13:31:18 -04:00
|
|
|
|
2007-09-15 16:34:00 -04:00
|
|
|
COMMENT= ruby interface to Berkeley DB
|
2011-04-08 04:42:44 -04:00
|
|
|
DISTNAME= bdb-0.6.5
|
2011-09-16 04:48:01 -04:00
|
|
|
REVISION= 3
|
2008-06-14 19:43:05 -04:00
|
|
|
CATEGORIES= databases
|
2006-10-21 13:31:18 -04:00
|
|
|
|
2011-04-08 04:42:44 -04:00
|
|
|
HOMEPAGE= http://rubyforge.org/projects/bdb/
|
2006-10-21 13:31:18 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2011-04-08 04:42:44 -04:00
|
|
|
MASTER_SITES= http://rubyforge.org/frs/download.php/56887/
|
2006-10-21 13:31:18 -04:00
|
|
|
|
|
|
|
MODULES= lang/ruby
|
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
WANTLIB= lib/db4/db>=4
|
2010-11-26 09:50:09 -05:00
|
|
|
LIB_DEPENDS= databases/db/v4
|
2006-10-21 13:31:18 -04:00
|
|
|
|
2006-11-27 04:43:14 -05:00
|
|
|
CONFIGURE_STYLE= ruby extconf
|
2006-10-21 13:31:18 -04:00
|
|
|
CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db4" \
|
|
|
|
--with-db-version=""
|
|
|
|
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
|
|
|
DOCS= Changes README.en bdb.html bdb.rd
|
|
|
|
EXAMPLES= basic.rb cats.rb clean.rb cursor.rb \
|
|
|
|
func.rb join.rb lock.rb log.rb \
|
|
|
|
queue.rb recno.rb record.rb txn.rb \
|
|
|
|
zeroc.rb wordlist wordtest
|
|
|
|
|
2010-11-08 18:28:53 -05:00
|
|
|
DOC_DIR= ${MODRUBY_DOCDIR}/bdb
|
|
|
|
EXAMPLE_DIR= ${MODRUBY_EXAMPLEDIR}/bdb
|
2006-10-21 13:31:18 -04:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@perl -i -pe 's,/usr,${LOCALBASE},' ${WRKSRC}/examples/*.rb
|
|
|
|
|
2011-04-08 04:42:44 -04:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC} && make test
|
|
|
|
|
2006-10-21 13:31:18 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOC_DIR}
|
|
|
|
.for d in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$d ${DOC_DIR}/$d
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
|
|
|
|
.for e in ${EXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/$e ${EXAMPLE_DIR}/$e
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|