2000-08-12 20:09:41 +00:00
|
|
|
# New ports collection makefile for: ruby-postgres
|
|
|
|
# Date created: 19 April 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
1999-09-06 14:02:24 +00:00
|
|
|
#
|
1999-09-06 14:12:27 +00:00
|
|
|
# $FreeBSD$
|
1999-09-06 14:02:24 +00:00
|
|
|
#
|
|
|
|
|
2000-08-09 19:43:48 +00:00
|
|
|
PORTNAME= postgres
|
|
|
|
PORTVERSION= 0.6.1
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= databases ruby
|
2000-08-09 19:43:48 +00:00
|
|
|
MASTER_SITES= http://webclub.kcom.ne.jp/mb/noborus/archive/
|
2000-09-07 07:29:07 +00:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-08-08 16:08:31 +00:00
|
|
|
DIST_SUBDIR= ruby
|
1999-09-06 14:02:24 +00:00
|
|
|
|
2000-08-09 19:43:48 +00:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
1999-09-06 14:02:24 +00:00
|
|
|
|
2000-08-09 19:43:48 +00:00
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
1999-09-06 14:02:24 +00:00
|
|
|
|
2000-09-07 07:29:07 +00:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
2000-08-09 19:43:48 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
1999-09-06 14:02:24 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql-include-dir="${PGDIR}/include" \
|
|
|
|
--with-pgsql-lib-dir="${PGDIR}/lib"
|
2000-09-07 07:29:07 +00:00
|
|
|
INSTALL_TARGET= site-install
|
1999-09-06 14:02:24 +00:00
|
|
|
|
|
|
|
PGDIR?= ${PREFIX}/pgsql
|
|
|
|
|
2000-08-09 19:43:48 +00:00
|
|
|
DOCS_EN= ChangeLog README doc/postgres.html
|
|
|
|
DOCS_JA= README.jp doc/postgres.jp.html
|
|
|
|
|
1999-09-06 14:02:24 +00:00
|
|
|
post-install:
|
2000-08-12 20:09:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-07 07:29:07 +00:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/postgres
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/postgres/
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/postgres/ja
|
2000-08-09 19:43:48 +00:00
|
|
|
.for f in ${DOCS_EN}
|
2000-09-07 07:29:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/postgres/
|
2000-08-09 19:43:48 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2000-09-07 07:29:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/postgres/ja/
|
2000-08-09 19:43:48 +00:00
|
|
|
.endfor
|
1999-09-06 14:02:24 +00:00
|
|
|
.endif
|
|
|
|
|
2000-09-26 08:02:17 +00:00
|
|
|
.include <bsd.port.mk>
|