2001-03-08 13:42:10 +01:00
|
|
|
# New ports collection makefile for: Ruby-cdb
|
|
|
|
# Date created: 8 March 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cdb
|
|
|
|
PORTVERSION= 0.4
|
2001-09-17 19:54:27 +02:00
|
|
|
PORTREVISION= 1
|
2001-03-08 13:42:10 +01:00
|
|
|
CATEGORIES= databases ruby
|
|
|
|
MASTER_SITES= http://www.fan.gr.jp/~kaz/ruby/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${CDB_PORTDIR}:build
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
|
|
|
CDB_PORTDIR= ${PORTSDIR}/databases/cdb
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/ruby-${PORTNAME}
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${RM} -f ${WRKSRC}/cdb
|
2002-03-30 13:12:53 +01:00
|
|
|
${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb
|
2001-03-08 13:42:10 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:08:30 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
|
2001-03-08 13:42:10 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|