# New ports collection makefile for: ruby-postgres # Date created: 17 Nov 2009 # Whom: dirk.meyer@dinoex.sub.org # # $FreeBSD$ # PORTNAME= pg PORTVERSION= 0.8.0 CATEGORIES= databases ruby MASTER_SITES= ${MASTER_SITE_RUBYFORGE} MASTER_SITE_SUBDIR= ruby-pg PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ruby-pg-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= dinoex@FreeBSD.org COMMENT= Ruby interface to PostgreSQL library USE_PGSQL= yes USE_RUBY= yes USE_RUBY_EXTCONF= yes WRKSRC= ${WRKDIR}/${DISTNAME}/ext CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/include" INSTALL_TARGET= site-install DOCS_EN= ChangeLog README doc/postgres.html DOCS_JA= README.ja doc/postgres.jp.html post-install: .if !defined(NOPORTEXAMPLES) ${MKDIR} ${RUBY_MODEXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/../sample/*.rb ${RUBY_MODEXAMPLESDIR}/ .endif .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR}/ja .for f in ${DOCS_EN} ${INSTALL_DATA} ${WRKSRC}/../${f} ${RUBY_MODDOCDIR}/ .endfor .for f in ${DOCS_JA} ${INSTALL_DATA} ${WRKSRC}/../${f} ${RUBY_MODDOCDIR}/ja/ .endfor .endif .include