freebsd-ports/databases/ruby-odbc/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= odbc
2010-05-21 07:35:44 +02:00
PORTVERSION= 0.99991
2012-02-06 13:25:50 +01:00
PORTREVISION= 1
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
2012-02-06 13:25:50 +01:00
LIB_DEPENDS= odbc.2:${PORTSDIR}/databases/unixODBC
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
INSTALL_TARGET= site-install
2010-05-21 07:35:44 +02:00
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/odbc.so \
%%RUBY_SITELIBDIR%%/cqgen.rb
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/
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}/
.endfor
.endif
2010-05-21 07:35:44 +02:00
.include <bsd.port.post.mk>