2001-06-02 18:55:23 +02:00
|
|
|
# New ports collection makefile for: DBI-for-Ruby
|
|
|
|
# Date created: 3 June 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-06-09 16:23:33 +02:00
|
|
|
PORTNAME= ${RUBY_DBI_PORTNAME}
|
|
|
|
PORTVERSION= ${RUBY_DBI_PORTVERSION}
|
2001-06-02 18:55:23 +02:00
|
|
|
CATEGORIES= databases ruby
|
2001-06-09 16:23:33 +02:00
|
|
|
MASTER_SITES= ${RUBY_DBI_MASTER_SITES}
|
2002-04-22 23:03:43 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${RUBY_DBI_MASTER_SITE_SUBDIR}
|
2001-06-02 18:55:23 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2001-06-09 16:23:33 +02:00
|
|
|
DISTNAME= ${RUBY_DBI_DISTNAME}
|
2006-05-09 09:29:12 +02:00
|
|
|
DIST_SUBDIR= ruby
|
2001-06-02 18:55:23 +02:00
|
|
|
|
2006-05-09 09:29:12 +02:00
|
|
|
MAINTAINER= boumenot@gmail.com
|
2003-02-18 05:37:40 +01:00
|
|
|
COMMENT= DBI-for-Ruby - a common interface for SQL-based databases
|
2001-06-02 18:55:23 +02:00
|
|
|
|
2003-04-23 08:32:10 +02:00
|
|
|
RUN_DEPENDS= ${RUBY_SITELIBDIR}/aspectr.rb:${PORTSDIR}/devel/ruby-aspectr
|
|
|
|
|
2001-06-02 18:55:23 +02:00
|
|
|
USE_RUBY= yes
|
2001-06-09 16:23:33 +02:00
|
|
|
USE_RUBY_SETUP= yes
|
2001-06-02 18:55:23 +02:00
|
|
|
|
2001-06-09 16:23:33 +02:00
|
|
|
WRKSRC= ${RUBY_DBI_WRKSRC}
|
2006-05-09 09:29:12 +02:00
|
|
|
CONFIGURE_ARGS= --with=bin/commandline,${PORTNAME}
|
2001-06-02 18:55:23 +02:00
|
|
|
|
2002-10-05 12:20:09 +02:00
|
|
|
DOCS_EN= README.1st doc/*
|
2001-06-02 18:55:23 +02:00
|
|
|
|
2001-06-09 16:23:33 +02:00
|
|
|
.include "${.CURDIR}/Makefile.common"
|
2001-06-02 18:55:23 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MV} ${WRKSRC}/README ${WRKSRC}/README.1st
|
|
|
|
|
2001-06-09 16:23:33 +02:00
|
|
|
post-install:
|
2001-06-02 20:45:04 +02:00
|
|
|
${MKDIR} ${RUBY_SITEARCHLIBDIR}/${PORTNAME}
|
2001-06-09 16:23:33 +02:00
|
|
|
${MKDIR} ${RUBY_SITELIBDIR}/DBD
|
|
|
|
${MKDIR} ${RUBY_SITEARCHLIBDIR}/DBD
|
2001-06-02 18:55:23 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:08:30 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2001-06-02 18:55:23 +02:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 23:08:30 +02:00
|
|
|
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-06-02 18:55:23 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2003-10-15 00:11:16 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-06-02 18:55:23 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|