# New ports collection makefile for: Ruby/ODBC # Date created: 17 May 2001 # Whom: Akinori MUSHA aka knu # # $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 .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