From e19f04068a9a51fe22a3d85f2ee3746fba1dcb32 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Wed, 23 May 2001 19:22:33 +0000 Subject: [PATCH] Add ruby-odbc, a Ruby extension library to use ODBC data sources --- databases/Makefile | 1 + databases/ruby-odbc/Makefile | 43 +++++++++++++++++++++++++++++++++ databases/ruby-odbc/distinfo | 1 + databases/ruby-odbc/pkg-comment | 1 + databases/ruby-odbc/pkg-descr | 4 +++ databases/ruby-odbc/pkg-plist | 15 ++++++++++++ 6 files changed, 65 insertions(+) create mode 100644 databases/ruby-odbc/Makefile create mode 100644 databases/ruby-odbc/distinfo create mode 100644 databases/ruby-odbc/pkg-comment create mode 100644 databases/ruby-odbc/pkg-descr create mode 100644 databases/ruby-odbc/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index c41476fc3a76..e787b438e0df 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -74,6 +74,7 @@ SUBDIR += ruby-rdbc1 SUBDIR += ruby-mysql SUBDIR += ruby-o_dbm + SUBDIR += ruby-odbc SUBDIR += ruby-postgres SUBDIR += sqlite SUBDIR += sqsh 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 +# +# $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 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 +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