pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ruby-mysql28 databases/ruby-mysql28: add rub...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/31f3d64cee64
branches:  trunk
changeset: 368755:31f3d64cee64
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Sep 18 02:36:01 2017 +0000

description:
databases/ruby-mysql28: add ruby-mysql28 2.8.2

Add ruby-mysql 2.8.2 as ruby-mysql28 2.8.2 since 2.9 contains some
imconpatible change from 2.8.

diffstat:

 databases/ruby-mysql28/DESCR                    |   4 +++
 databases/ruby-mysql28/Makefile                 |  29 +++++++++++++++++++++++++
 databases/ruby-mysql28/PLIST                    |   6 +++++
 databases/ruby-mysql28/distinfo                 |   7 ++++++
 databases/ruby-mysql28/patches/patch-extconf.rb |  18 +++++++++++++++
 5 files changed, 64 insertions(+), 0 deletions(-)

diffs (84 lines):

diff -r 67fd680a2746 -r 31f3d64cee64 databases/ruby-mysql28/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-mysql28/DESCR      Mon Sep 18 02:36:01 2017 +0000
@@ -0,0 +1,4 @@
+This is the extension library to access a MySQL database from Ruby,
+which provides the same function as C API.
+
+This is mysql-ruby 2.8.x.
diff -r 67fd680a2746 -r 31f3d64cee64 databases/ruby-mysql28/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-mysql28/Makefile   Mon Sep 18 02:36:01 2017 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2017/09/18 02:36:01 taca Exp $
+#
+
+DISTNAME=      mysql-ruby-2.8.2
+PKGNAME=       ${RUBY_PKGPREFIX}-mysql28-2.8.2
+CATEGORIES=    databases ruby
+MASTER_SITES=  http://tmtm.org/downloads/mysql/ruby/
+
+MAINTAINER=    neumann%s-direktnet.de@localhost
+HOMEPAGE=      http://www.tmtm.org/en/mysql/ruby/
+COMMENT=       Ruby extension for MySQL
+LICENSE=       gnu-gpl-v2 OR ruby-license
+
+USE_RUBY_EXTCONF=      yes
+INSTALL_TARGET=                site-install
+CONFIGURE_ARGS+=       --with-mysql-config
+INSTALLATION_DIRS=     ${RUBY_DOC}/mysql ${RUBY_EG}/mysql
+
+DOCS=          README.html README_ja.html tommy.css
+
+post-install:
+.for f in ${DOCS}
+       ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/mysql
+.endfor
+       ${INSTALL_SCRIPT} ${WRKSRC}/test.rb ${DESTDIR}${PREFIX}/${RUBY_EG}/mysql
+
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 67fd680a2746 -r 31f3d64cee64 databases/ruby-mysql28/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-mysql28/PLIST      Mon Sep 18 02:36:01 2017 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/18 02:36:01 taca Exp $
+${RUBY_VENDORARCHLIB}/mysql.${RUBY_DLEXT}
+${RUBY_DOC}/mysql/README.html
+${RUBY_DOC}/mysql/README_ja.html
+${RUBY_DOC}/mysql/tommy.css
+${RUBY_EG}/mysql/test.rb
diff -r 67fd680a2746 -r 31f3d64cee64 databases/ruby-mysql28/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-mysql28/distinfo   Mon Sep 18 02:36:01 2017 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/09/18 02:36:01 taca Exp $
+
+SHA1 (mysql-ruby-2.8.2.tar.gz) = c20ec0f41f19f11270963d9c9e0d5a2bba27801e
+RMD160 (mysql-ruby-2.8.2.tar.gz) = 0cd9a6071f0878a5ab4b47d9a023066f5ae39955
+SHA512 (mysql-ruby-2.8.2.tar.gz) = f39bba5679031bab2d78bc5cb44bb00e7818c1f94e20af374e7b843ced85981e82f185f7442962728165abf9afa9f4d384e3ff6ca22c32320cf4bfa3af84c0e6
+Size (mysql-ruby-2.8.2.tar.gz) = 32710 bytes
+SHA1 (patch-extconf.rb) = 339b618a3057a3868448f971932b9231fd059404
diff -r 67fd680a2746 -r 31f3d64cee64 databases/ruby-mysql28/patches/patch-extconf.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-mysql28/patches/patch-extconf.rb   Mon Sep 18 02:36:01 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-extconf.rb,v 1.1 2017/09/18 02:36:01 taca Exp $
+
+Use modern module name.
+
+--- extconf.rb.orig    2009-02-01 08:31:18.000000000 +0000
++++ extconf.rb
+@@ -37,9 +37,9 @@ File.open("conftest.c", "w") do |f|
+   f.puts src
+ end
+ if defined? cpp_command then
+-  cpp = Config.expand(cpp_command(''))
++  cpp = RbConfig.expand(cpp_command(''))
+ else
+-  cpp = Config.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
++  cpp = RbConfig.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
+ end
+ if /mswin32/ =~ RUBY_PLATFORM && !/-E/.match(cpp)
+   cpp << " -E"



Home | Main Index | Thread Index | Old Index