diff options
author | taca <taca> | 2002-01-27 15:17:35 +0000 |
---|---|---|
committer | taca <taca> | 2002-01-27 15:17:35 +0000 |
commit | a5afb7c589c84d402088d7aab12f9f498bf1e37a (patch) | |
tree | 535afe925421055dc3a9613889c464f3364e80e9 /databases/ruby-mysql | |
parent | ef986c4d209f7056928db5f8730f8221d8d89285 (diff) | |
download | pkgsrc-a5afb7c589c84d402088d7aab12f9f498bf1e37a.tar.gz |
Importing ruby-mysql package, extension library to access a MySQL database
from Ruby.
Based on PR pkg/14302 with slightly modification and newer version, 2.4.2.
Diffstat (limited to 'databases/ruby-mysql')
-rw-r--r-- | databases/ruby-mysql/DESCR | 2 | ||||
-rw-r--r-- | databases/ruby-mysql/Makefile | 40 | ||||
-rw-r--r-- | databases/ruby-mysql/PLIST | 17 | ||||
-rw-r--r-- | databases/ruby-mysql/distinfo | 5 | ||||
-rw-r--r-- | databases/ruby-mysql/patches/patch-aa | 11 |
5 files changed, 75 insertions, 0 deletions
diff --git a/databases/ruby-mysql/DESCR b/databases/ruby-mysql/DESCR new file mode 100644 index 00000000000..174626336c7 --- /dev/null +++ b/databases/ruby-mysql/DESCR @@ -0,0 +1,2 @@ +This is the extension library to access a MySQL database from Ruby, +which provides the same function as C API. diff --git a/databases/ruby-mysql/Makefile b/databases/ruby-mysql/Makefile new file mode 100644 index 00000000000..8aff4b1a51f --- /dev/null +++ b/databases/ruby-mysql/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/01/27 15:19:06 taca Exp $ +# + +DISTNAME= mysql-ruby-2.4.2 +PKGNAME= ${RUBY_PKGNAMEPREFIX}mysql-2.4 +CATEGORIES= databases +MASTER_SITES= http://www.tmtm.org/mysql/ruby/ + +MAINTAINER= neumann@s-direktnet.de +HOMEPAGE= http://www.tmtm.org/mysql/ruby/ +COMMENT= Ruby extension for MySQL + +DIST_SUBDIR= ruby +USE_RUBY_EXTCONF= yes +CONFIGURE_ARGS+= --with-mysql-include-dir=${PREFIX}/include \ + --with-mysql-lib-dir=${PREFIX}/lib/mysql +INSTALL_TARGET= site-install + +DOCS= README README.ja +TEST_SCRIPTS= test.rb +TEST_SCRIPTS2= 00connect.rb 10create_db.rb 20create_table.rb 30insert.rb \ + 40select.rb 50update.rb 60drop_table.rb 70drop_db.rb \ + 80close.rb + +post-install: + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mysql +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/$f ${RUBY_DOCDIR}/mysql +.endfor + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mysql/t +.for f in ${TEST_SCRIPTS} + ${INSTALL_SCRIPT} ${WRKSRC}/$f ${RUBY_EXAMPLESDIR}/mysql +.endfor +.for f in ${TEST_SCRIPTS2} + ${INSTALL_SCRIPT} ${WRKSRC}/t/$f ${RUBY_EXAMPLESDIR}/mysql/t +.endfor + +.include "../../lang/ruby-base/Makefile.common" +.include "../../databases/mysql-client/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/ruby-mysql/PLIST b/databases/ruby-mysql/PLIST new file mode 100644 index 00000000000..b68f4be2953 --- /dev/null +++ b/databases/ruby-mysql/PLIST @@ -0,0 +1,17 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/27 15:19:06 taca Exp $ +${RUBY_SITEARCHLIBDIR}/mysql.so +${RUBY_DOCDIR}/mysql/README +${RUBY_DOCDIR}/mysql/README.ja +@dirrm ${RUBY_DOCDIR}/mysql +${RUBY_EXAMPLESDIR}/mysql/t/00connect.rb +${RUBY_EXAMPLESDIR}/mysql/t/10create_db.rb +${RUBY_EXAMPLESDIR}/mysql/t/20create_table.rb +${RUBY_EXAMPLESDIR}/mysql/t/30insert.rb +${RUBY_EXAMPLESDIR}/mysql/t/40select.rb +${RUBY_EXAMPLESDIR}/mysql/t/50update.rb +${RUBY_EXAMPLESDIR}/mysql/t/60drop_table.rb +${RUBY_EXAMPLESDIR}/mysql/t/70drop_db.rb +${RUBY_EXAMPLESDIR}/mysql/t/80close.rb +@dirrm ${RUBY_EXAMPLESDIR}/mysql/t +${RUBY_EXAMPLESDIR}/mysql/test.rb +@dirrm ${RUBY_EXAMPLESDIR}/mysql diff --git a/databases/ruby-mysql/distinfo b/databases/ruby-mysql/distinfo new file mode 100644 index 00000000000..deeacabff37 --- /dev/null +++ b/databases/ruby-mysql/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/01/27 15:19:06 taca Exp $ + +SHA1 (ruby/mysql-ruby-2.4.2.tar.gz) = 0f3fd2553b5450636b79648056d4277808746e15 +Size (ruby/mysql-ruby-2.4.2.tar.gz) = 13348 bytes +SHA1 (patch-aa) = 58737351d0e5520292f6f9358545b759bd352173 diff --git a/databases/ruby-mysql/patches/patch-aa b/databases/ruby-mysql/patches/patch-aa new file mode 100644 index 00000000000..c5e43ac6d80 --- /dev/null +++ b/databases/ruby-mysql/patches/patch-aa @@ -0,0 +1,11 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/01/27 15:19:06 taca Exp $ + +--- extconf.rb.orig Mon Jan 7 10:17:28 2002 ++++ extconf.rb +@@ -1,5 +1,5 @@ + require 'mkmf' +-inc, lib = dir_config('mysql', '/usr/local') ++inc, lib = dir_config('mysql', CONFIG['prefix']) + find_library('mysqlclient', 'mysql_query', lib, "#{lib}/mysql") or exit 1 + # If you have error such as 'undefined symbol', delete '#' mark follow + # lines: |