diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-05-23 19:22:33 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-05-23 19:22:33 +0000 |
commit | e19f04068a9a51fe22a3d85f2ee3746fba1dcb32 (patch) | |
tree | e28fe28de9bed185bc369ba9fd42978287bdcf49 /databases/ruby-odbc | |
parent | add missing m4 files (diff) |
Add ruby-odbc, a Ruby extension library to use ODBC data sources
Notes
Notes:
svn path=/head/; revision=42982
Diffstat (limited to 'databases/ruby-odbc')
-rw-r--r-- | databases/ruby-odbc/Makefile | 43 | ||||
-rw-r--r-- | databases/ruby-odbc/distinfo | 1 | ||||
-rw-r--r-- | databases/ruby-odbc/pkg-comment | 1 | ||||
-rw-r--r-- | databases/ruby-odbc/pkg-descr | 4 | ||||
-rw-r--r-- | databases/ruby-odbc/pkg-plist | 15 |
5 files changed, 64 insertions, 0 deletions
diff --git a/databases/ruby-odbc/Makefile b/databases/ruby-odbc/Makefile new file mode 100644 index 000000000000..bed50c51d48d --- /dev/null +++ b/databases/ruby-odbc/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: Ruby/ODBC +# Date created: 17 May 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= odbc +PORTVERSION= 0.2 +CATEGORIES= databases ruby +MASTER_SITES= http://www.ch-werner.de/rubyodbc/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= ruby-${PORTNAME}-${PORTVERSION} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC + +USE_RUBY= yes +USE_RUBY_EXTCONF= yes + +CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" +CONFIGURE_ARGS= --with-cflags="${PTHREAD_CFLAGS}" +INSTALL_TARGET= site-install + +DOCS_EN= ChangeLog README doc/odbc.html + +post-patch: + ${RUBY} -i -pe '/require \x27mkmf\x27/ and $$_ += "$$libs.sub!(/-lc\\b/, ENV[\x27PTHREAD_LIBS\x27])\n"' \ + ${WRKSRC}/${RUBY_EXTCONF} + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME} + ${CP} -R ${WRKSRC}/test* ${RUBY_EXAMPLESDIR}/${PORTNAME}/ + ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME} +.for f in ${DOCS_EN} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ +.endfor +.endif + +.include <bsd.port.mk> diff --git a/databases/ruby-odbc/distinfo b/databases/ruby-odbc/distinfo new file mode 100644 index 000000000000..6da78553759d --- /dev/null +++ b/databases/ruby-odbc/distinfo @@ -0,0 +1 @@ +MD5 (ruby/ruby-odbc-0.2.tar.gz) = 025b19a39f49a4d25147236e70fcdf1c diff --git a/databases/ruby-odbc/pkg-comment b/databases/ruby-odbc/pkg-comment new file mode 100644 index 000000000000..0760b6aeec0e --- /dev/null +++ b/databases/ruby-odbc/pkg-comment @@ -0,0 +1 @@ +Ruby extension library to use ODBC data sources diff --git a/databases/ruby-odbc/pkg-descr b/databases/ruby-odbc/pkg-descr new file mode 100644 index 000000000000..fe881c028960 --- /dev/null +++ b/databases/ruby-odbc/pkg-descr @@ -0,0 +1,4 @@ +This is an extension library to use ODBC data sources from Ruby. + +Author: Christian Werner <chw@ch-werner.de> +WWW: http://www.ch-werner.de/rubyodbc/ diff --git a/databases/ruby-odbc/pkg-plist b/databases/ruby-odbc/pkg-plist new file mode 100644 index 000000000000..c110f9177280 --- /dev/null +++ b/databases/ruby-odbc/pkg-plist @@ -0,0 +1,15 @@ +%%RUBY_SITEARCHLIBDIR%%/odbc.so +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/00connect.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/10create_table.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/20insert.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/30select.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/40update.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/50drop_table.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/odbc/test/70close.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/odbc/test +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/odbc +%%PORTDOCS%%%%RUBY_DOCDIR%%/odbc/ChangeLog +%%PORTDOCS%%%%RUBY_DOCDIR%%/odbc/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/odbc/odbc.html +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/odbc |