aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-postgres
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>1999-09-06 22:02:24 +0800
committertaoka <taoka@FreeBSD.org>1999-09-06 22:02:24 +0800
commitc5a7ee57e4f2f3e11ec17a0738eba8a0dc92ead5 (patch)
tree275fb102cb30ae4dc4ed2eac110bb360082539da /databases/ruby-postgres
parentdeec593bb1a0702c9487157c991631691c18c07a (diff)
downloadfreebsd-ports-gnome-c5a7ee57e4f2f3e11ec17a0738eba8a0dc92ead5.tar.gz
freebsd-ports-gnome-c5a7ee57e4f2f3e11ec17a0738eba8a0dc92ead5.tar.zst
freebsd-ports-gnome-c5a7ee57e4f2f3e11ec17a0738eba8a0dc92ead5.zip
A Ruby interface to PostgreSQL library.
PR: ports/12123 Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>
Diffstat (limited to 'databases/ruby-postgres')
-rw-r--r--databases/ruby-postgres/Makefile47
-rw-r--r--databases/ruby-postgres/distinfo1
-rw-r--r--databases/ruby-postgres/pkg-comment1
-rw-r--r--databases/ruby-postgres/pkg-descr4
-rw-r--r--databases/ruby-postgres/pkg-plist10
5 files changed, 63 insertions, 0 deletions
diff --git a/databases/ruby-postgres/Makefile b/databases/ruby-postgres/Makefile
new file mode 100644
index 000000000000..bed85b0259ec
--- /dev/null
+++ b/databases/ruby-postgres/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: ruby-postgres
+# Version required: 0.5.3
+# Date created: 19 April 1999
+# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
+#
+# $Id$
+#
+
+DISTNAME= postgres-0.5.3
+PKGNAME= ruby-postgres-0.5.3
+CATEGORIES= databases
+MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ \
+ ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/contrib/ \
+ ftp://ftp.iij.ad.jp/pub/lang/ruby/contrib/ \
+ ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/contrib/ \
+ ftp://ftp.krnet.ne.jp/pub/ruby/contrib/ \
+ ftp://mirror.nucba.ac.jp/mirror/ruby/contrib/
+
+MAINTAINER= yasuf@big.or.jp
+
+BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql
+
+WRKSRC= ${WRKDIR}/postgres
+CONFIGURE_ARGS+= --with-pgsql-include-dir="${PGDIR}/include" \
+ --with-pgsql-lib-dir="${PGDIR}/lib"
+PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+
+RUBY= ${PREFIX}/bin/ruby
+RUBY_VER= 1.4
+RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+
+PGDIR?= ${PREFIX}/pgsql
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/examples/ruby/postgres
+ ${INSTALL_DATA} ${WRKSRC}/psql*.rb ${PREFIX}/share/examples/ruby/postgres
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/ruby/postgres
+ ${INSTALL_DATA} ${WRKSRC}/README* ${WRKSRC}/*.html ${PREFIX}/share/doc/ruby/postgres
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/ruby-postgres/distinfo b/databases/ruby-postgres/distinfo
new file mode 100644
index 000000000000..1f1ef60baac3
--- /dev/null
+++ b/databases/ruby-postgres/distinfo
@@ -0,0 +1 @@
+MD5 (postgres-0.5.3.tar.gz) = f34965e627807b9e9ac78e322e3d21f2
diff --git a/databases/ruby-postgres/pkg-comment b/databases/ruby-postgres/pkg-comment
new file mode 100644
index 000000000000..29572ed729f6
--- /dev/null
+++ b/databases/ruby-postgres/pkg-comment
@@ -0,0 +1 @@
+a Ruby interface to PostgreSQL library.
diff --git a/databases/ruby-postgres/pkg-descr b/databases/ruby-postgres/pkg-descr
new file mode 100644
index 000000000000..8fac5ce62d1d
--- /dev/null
+++ b/databases/ruby-postgres/pkg-descr
@@ -0,0 +1,4 @@
+This is an extention module to access PostgreSQL database from Ruby.
+
+- Yasuhiro Fukuma
+yasuf@big.or.jp
diff --git a/databases/ruby-postgres/pkg-plist b/databases/ruby-postgres/pkg-plist
new file mode 100644
index 000000000000..a585c96db95a
--- /dev/null
+++ b/databases/ruby-postgres/pkg-plist
@@ -0,0 +1,10 @@
+lib/ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/postgres.so
+share/examples/ruby/postgres/psql.rb
+share/examples/ruby/postgres/psqlHelp.rb
+@dirrm share/examples/ruby/postgres
+share/doc/ruby/postgres/README
+share/doc/ruby/postgres/README.jp
+share/doc/ruby/postgres/postgres.html
+share/doc/ruby/postgres/postgres.jp.html
+@dirrm share/doc/ruby/postgres
+@unexec /bin/rmdir %D/share/doc/ruby >/dev/null 2>&1 || true