summaryrefslogtreecommitdiff
path: root/databases/ruby-postgresql
diff options
context:
space:
mode:
authortaca <taca>2001-07-22 15:52:10 +0000
committertaca <taca>2001-07-22 15:52:10 +0000
commit927b6e41cf3cd30b409a2eef53b42b0559e5afbc (patch)
treec52ad295e7ce710b4e815661f259d30cc65f18a1 /databases/ruby-postgresql
parentaaacf86986bdfa61de086112e822ef4423ee9f92 (diff)
downloadpkgsrc-927b6e41cf3cd30b409a2eef53b42b0559e5afbc.tar.gz
- Install document and examples.
- Utilize USE_RUBY_EXTCONF.
Diffstat (limited to 'databases/ruby-postgresql')
-rw-r--r--databases/ruby-postgresql/Makefile26
-rw-r--r--databases/ruby-postgresql/pkg/PLIST15
2 files changed, 37 insertions, 4 deletions
diff --git a/databases/ruby-postgresql/Makefile b/databases/ruby-postgresql/Makefile
index c701874f99f..c12ae226f01 100644
--- a/databases/ruby-postgresql/Makefile
+++ b/databases/ruby-postgresql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2001/07/08 17:36:10 mjl Exp $
+# $NetBSD: Makefile,v 1.3 2001/07/22 15:52:10 taca Exp $
DISTNAME= ruby-postgres-0.6.4
PKGNAME= ${RUBY_PKGNAMEPREFIX}postgresql-0.6.4
@@ -14,9 +14,29 @@ DEPENDS+= postgresql-lib>=7.1:../../databases/postgresql-lib
USE_RUBY_EXTCONF= yes
CONFIGURE_ARGS+=--with-pgsql-include-dir=${PREFIX}/include/pgsql \
--with-pgsql-lib-dir=${PREFIX}/lib
+INSTALL_TARGET= site-install
-do-install:
- ${INSTALL_DATA} ${WRKSRC}/postgres.so ${RUBY_SITEARCHLIBDIR}/postgres.so
+DOC= README doc/postgres.html
+DOC_JA= README.jp doc/postgres.jp.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
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/postgresql/ja
+.for f in ${DOC}
+ ${INSTALL_DATA} ${WRKSRC}/$f ${RUBY_DOCDIR}/postgresql
+.endfor
+.for f in ${DOC_JA}
+ ${INSTALL_DATA} ${WRKSRC}/$f ${RUBY_DOCDIR}/postgresql/ja
+.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-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/ruby-postgresql/pkg/PLIST b/databases/ruby-postgresql/pkg/PLIST
index 911cf3f8f77..816ebde8124 100644
--- a/databases/ruby-postgresql/pkg/PLIST
+++ b/databases/ruby-postgresql/pkg/PLIST
@@ -1,2 +1,15 @@
-@comment $NetBSD: PLIST,v 1.2 2001/07/08 17:36:10 mjl Exp $
+@comment $NetBSD: PLIST,v 1.3 2001/07/22 15:52:10 taca Exp $
${RUBY_SITEARCHLIBDIR}/postgres.so
+${RUBY_DOCDIR}/postgresql/README
+${RUBY_DOCDIR}/postgresql/postgres.html
+${RUBY_DOCDIR}/postgresql/ja/README.jp
+${RUBY_DOCDIR}/postgresql/ja/postgres.jp.html
+${RUBY_EXAMPLESDIR}/postgresql/losample.rb
+${RUBY_EXAMPLESDIR}/postgresql/psql.rb
+${RUBY_EXAMPLESDIR}/postgresql/psqlHelp.rb
+${RUBY_EXAMPLESDIR}/postgresql/test1.rb
+${RUBY_EXAMPLESDIR}/postgresql/test2.rb
+${RUBY_EXAMPLESDIR}/postgresql/test4.rb
+@dirrm ${RUBY_DOCDIR}/postgresql/ja
+@dirrm ${RUBY_DOCDIR}/postgresql
+@dirrm ${RUBY_EXAMPLESDIR}/postgresql