File:  [cvs.NetBSD.org] / pkgsrc / databases / ruby-postgresql / Attic / Makefile
Revision 1.31: download - view: text, annotated - select for diffs
Thu Feb 22 19:26:19 2007 UTC (17 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, HEAD
Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.

# $NetBSD: Makefile,v 1.31 2007/02/22 19:26:19 wiz Exp $

DISTNAME=		ruby-postgres-${VERSION}
PKGNAME=		${RUBY_PKGPREFIX}-postgresql-${VERSION}
PKGREVISION=		8
CATEGORIES=		databases ruby
MASTER_SITES=		http://raa.ruby-lang.org/cache/postgres/ \
			http://ruby.scripting.ca/postgres/archive/ \
			http://www.postgresql.jp/interfaces/ruby/archive/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://ruby.scripting.ca/postgres/
COMMENT=		Ruby extension for postgresql

RUBY_HAS_ARCHLIB=	yes
USE_RUBY_EXTCONF=	yes
VERSION=		0.7.1
INSTALL_TARGET=		site-install
CONFIGURE_ARGS+= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \
		 --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib

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 "../../lang/ruby/modules.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>