2013-09-20 18:13:47 +02:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2001-05-23 21:22:33 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= odbc
|
2010-05-21 07:35:44 +02:00
|
|
|
PORTVERSION= 0.99991
|
2012-02-06 13:25:50 +01:00
|
|
|
PORTREVISION= 1
|
2001-05-23 21:22:33 +02:00
|
|
|
CATEGORIES= databases ruby
|
|
|
|
MASTER_SITES= http://www.ch-werner.de/rubyodbc/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2006-06-07 08:12:12 +02:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 05:37:40 +01:00
|
|
|
COMMENT= Ruby extension library to use ODBC data sources
|
2001-05-23 21:22:33 +02:00
|
|
|
|
2012-02-06 13:25:50 +01:00
|
|
|
LIB_DEPENDS= odbc.2:${PORTSDIR}/databases/unixODBC
|
2001-05-23 21:22:33 +02:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2010-05-21 07:35:44 +02:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/ext
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/ext
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/ext
|
2001-05-23 21:22:33 +02:00
|
|
|
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2010-05-21 07:35:44 +02:00
|
|
|
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/odbc.so \
|
|
|
|
%%RUBY_SITELIBDIR%%/cqgen.rb
|
|
|
|
|
2013-09-20 18:13:47 +02:00
|
|
|
NO_STAGE= yes
|
2010-05-21 07:35:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
|
|
|
|
PORTEXAMPLES= test
|
|
|
|
|
|
|
|
DOCSDIR= ${RUBY_MODDOCDIR}
|
|
|
|
PORTDOCS= COPYING ChangeLog README doc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC} && ${MV} lib ext/
|
2001-05-23 21:22:33 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2010-05-21 07:35:44 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for f in ${PORTEXAMPLES}
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${EXAMPLESDIR}/
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${DOCSDIR}/
|
2001-05-23 21:22:33 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2010-05-21 07:35:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|