pkgsrc/databases/ruby-postgresql/Makefile
2004-04-27 04:59:42 +00:00

48 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2004/04/27 05:44:22 snj Exp $
DISTNAME= ruby-postgres-${VERSION}
PKGNAME= ${RUBY_PKGNAMEPREFIX}postgresql-${VERSION}
PKGREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= http://www.postgresql.jp/interfaces/ruby/archive/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.postgresql.jp/interfaces/ruby/
COMMENT= Ruby extension for postgresql
USE_BUILDLINK3= yes
VERSION= 0.7.1
DIST_SUBDIR= ruby
USE_RUBY_EXTCONF= yes
CONFIGURE_ARGS+= --with-pgsql-include-dir=${PREFIX}/include/postgresql \
--with-pgsql-lib-dir=${PREFIX}/lib
INSTALL_TARGET= site-install
DOC= README README.ja doc/postgres.html doc/postgres.ja.html
EXAMPLE_LIBS= losample.rb psqlHelp.rb
EXAMPLE_SCRIPTS= psql.rb test1.rb test2.rb test4.rb
REPLACE_RUBY= sample/psql.rb sample/test1.rb sample/test2.rb \
sample/test4.rb
pre-install:
@cd ${WRKSRC}; \
${CP} -p doc/postgres.jp.html doc/postgres.ja.html
post-install:
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/postgresql
.for f in ${DOC}
${INSTALL_DATA} ${WRKSRC}/$f ${RUBY_DOCDIR}/postgresql
.endfor
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/postgresql
.for f in ${EXAMPLE_LIBS}
${INSTALL_DATA} ${WRKSRC}/sample/$f ${RUBY_EXAMPLESDIR}/postgresql
.endfor
.for f in ${EXAMPLE_SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/sample/$f ${RUBY_EXAMPLESDIR}/postgresql
.endfor
.include "../../databases/postgresql-lib/buildlink3.mk"
.include "../../lang/ruby-base/Makefile.common"
.include "../../lang/ruby-base/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"