diff options
author | knu <knu@FreeBSD.org> | 2001-05-24 03:22:33 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-05-24 03:22:33 +0800 |
commit | 843ddf44888b4304fedf2be69b0b436ad6574413 (patch) | |
tree | a4d7e19a8d071ca3d5239aad76aa9d84e9cc1bec /databases | |
parent | 15d2899541505a89c6a56b4b9556fbea43857308 (diff) | |
download | freebsd-ports-gnome-843ddf44888b4304fedf2be69b0b436ad6574413.tar.gz freebsd-ports-gnome-843ddf44888b4304fedf2be69b0b436ad6574413.tar.zst freebsd-ports-gnome-843ddf44888b4304fedf2be69b0b436ad6574413.zip |
Add ruby-odbc, a Ruby extension library to use ODBC data sources
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-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 |
6 files changed, 65 insertions, 0 deletions
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 <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 |