mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
b0f16becef
With Hat: ruby@
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# 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= RF
|
|
MASTER_SITE_SUBDIR= ruby-${PORTNAME}
|
|
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 <bsd.port.mk>
|