mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 21:00:30 -04:00
Add ruby-odbc, a Ruby extension library to use ODBC data sources
This commit is contained in:
parent
5555800681
commit
e19f04068a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42982
6 changed files with 65 additions and 0 deletions
|
@ -74,6 +74,7 @@
|
||||||
SUBDIR += ruby-rdbc1
|
SUBDIR += ruby-rdbc1
|
||||||
SUBDIR += ruby-mysql
|
SUBDIR += ruby-mysql
|
||||||
SUBDIR += ruby-o_dbm
|
SUBDIR += ruby-o_dbm
|
||||||
|
SUBDIR += ruby-odbc
|
||||||
SUBDIR += ruby-postgres
|
SUBDIR += ruby-postgres
|
||||||
SUBDIR += sqlite
|
SUBDIR += sqlite
|
||||||
SUBDIR += sqsh
|
SUBDIR += sqsh
|
||||||
|
|
43
databases/ruby-odbc/Makefile
Normal file
43
databases/ruby-odbc/Makefile
Normal file
|
@ -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>
|
1
databases/ruby-odbc/distinfo
Normal file
1
databases/ruby-odbc/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (ruby/ruby-odbc-0.2.tar.gz) = 025b19a39f49a4d25147236e70fcdf1c
|
1
databases/ruby-odbc/pkg-comment
Normal file
1
databases/ruby-odbc/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Ruby extension library to use ODBC data sources
|
4
databases/ruby-odbc/pkg-descr
Normal file
4
databases/ruby-odbc/pkg-descr
Normal file
|
@ -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/
|
15
databases/ruby-odbc/pkg-plist
Normal file
15
databases/ruby-odbc/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue