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
|
1999-09-06 14:02:24 +00:00
|
|
|
CATEGORIES= databases
|
2000-08-09 19:43:48 +00:00
|
|
|
MASTER_SITES= http://webclub.kcom.ne.jp/mb/noborus/archive/
|
|
|
|
PKGNAMEPREFIX= ruby-
|
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
|
|
|
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
2000-08-09 19:43:48 +00:00
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
1999-09-06 14:02:24 +00:00
|
|
|
|
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"
|
|
|
|
PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
|
2000-08-12 20:09:41 +00:00
|
|
|
RUBY?= ${PREFIX}/bin/ruby
|
|
|
|
RUBY_VER?= 1.4
|
|
|
|
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
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
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
post-install:
|
2000-08-12 20:09:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-09-06 14:02:24 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/postgres
|
2000-08-09 19:43:48 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${PREFIX}/share/examples/ruby/postgres/
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/postgres/ja
|
|
|
|
.for f in ${DOCS_EN}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/postgres/
|
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/postgres/ja/
|
|
|
|
.endfor
|
1999-09-06 14:02:24 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|