mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
# New ports collection makefile for: Ruby/ODBC
|
|
# Date created: 17 May 2001
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= odbc
|
|
PORTVERSION= 0.99991
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases ruby
|
|
MASTER_SITES= http://www.ch-werner.de/rubyodbc/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= Ruby extension library to use ODBC data sources
|
|
|
|
LIB_DEPENDS= odbc.2:${PORTSDIR}/databases/unixODBC
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/ext
|
|
BUILD_WRKSRC= ${WRKSRC}/ext
|
|
INSTALL_WRKSRC= ${WRKSRC}/ext
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/odbc.so \
|
|
%%RUBY_SITELIBDIR%%/cqgen.rb
|
|
|
|
.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)
|
|
${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
|
|
|
|
.include <bsd.port.post.mk>
|