From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- dev-ruby/mysql2/Manifest | 4 ++- dev-ruby/mysql2/mysql2-0.5.3.20210920.ebuild | 4 +-- dev-ruby/mysql2/mysql2-0.5.4.ebuild | 49 ++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 dev-ruby/mysql2/mysql2-0.5.4.ebuild (limited to 'dev-ruby/mysql2') diff --git a/dev-ruby/mysql2/Manifest b/dev-ruby/mysql2/Manifest index eeff11e62135..a66d88c1b44f 100644 --- a/dev-ruby/mysql2/Manifest +++ b/dev-ruby/mysql2/Manifest @@ -1,5 +1,7 @@ DIST mysql2-0.5.3.20210920.tar.gz 114492 BLAKE2B 589ee721838f956f90474e859d0dd2e8cf11c8622a8f89410929f9c52c82c240a5a7eea7e6b132e0212dd6e9cd13c5ca950e6cacac368d158aeca9feacc98a7c SHA512 3bec768b69ecc3b54db84048b633602e80f09c4b4631daf1fbd81810c33038410f6112b467ab7ac86051ba91e4660abb3546e55cb52d26b96531f3305b43871f DIST mysql2-0.5.3.gem 74240 BLAKE2B 9de25a34173ab952f6842f01d9207405c8bc6ed5937fdf66de4062129fc20f425635956f6d12f78466c8c341c49916f7d00df845f84a4101d34a98b1585b9919 SHA512 59a0ee00261b09e8bbfc586a6f75af840a465a94fd8c9463a3d7767e5ea6b7e64507c9571fb90c6d0cdde3cfff560c97fbf3f3c32b3916aca852ef5c41e1bce9 +DIST mysql2-0.5.4.tar.gz 116463 BLAKE2B 9c9ad00d813d69b6790d9a0c6c05979892d1b8bedb54e95326bf2250479a93958797fa845d60e29b5a8efcb416a80a94be66535e641d30c92b64d50c5f62c3b5 SHA512 89958220d2f5454351f4e4b93099e12355cb0a8c36824125650f2366b15cdb3e1aa208f60beb348834cd2ee6fa36aac4102581c16fe1b6bd4f2136cc1a8b5c99 EBUILD mysql2-0.5.3-r1.ebuild 1114 BLAKE2B 5be541a84c0737f953ef451d9205052b27640fb8c78d0f422b9727f3e9bee3daf383c12eba5a06d330249d03489bad9a4edf9b547c2ca62fd794a84f0ba3b24f SHA512 9309ac33ac7c5ef24153260b7c08622ae897f8dff9213c00f9d743662ed4edffb767df5197394113e1c0686258b150c36c0b302f8b5f9ba368b7be9908dbe618 -EBUILD mysql2-0.5.3.20210920.ebuild 1420 BLAKE2B 930138bf1040d32a8eda635ccd5cda4a4020f3bffa0ea3b360b20e32c17f6fbfed019d249021deab78db5cf2fd0e31369172d27bd32cde2a608bffd0ec9ba264 SHA512 940cd69703f22f3ad0ede5e2c14845125c6382d837349bcf355b734c858181e4ee83a72428cd5d15509c94d6e59020e7de259dce81aed00d194317157eba1d12 +EBUILD mysql2-0.5.3.20210920.ebuild 1427 BLAKE2B 1460b27b6ab944e04dfc2a6be97c082f8a0b2632113a52174c46ed31f9b726eef8bd51e04b195165fc906cfccc38be3d3dfc054a619b952e1c5679f0278d2a34 SHA512 34e325e5bbc40c8d4f5493e4bdd95f6fb75d7939dbb7d1eb78b34cbc309ba28dcbb134acc03df4bb0e9e4d0f02b8df455cb1834f063aadcfe195f3686073f2c6 +EBUILD mysql2-0.5.4.ebuild 1348 BLAKE2B 8576575592038025e09154eb0eb560251bfbf31d829500cd33cddab90f76142b4c2e96800d3d88dce05d593f268d7bd6ae5eff4d495ea8eafb3ac87d9087599d SHA512 eb8abf2fdbbd2ebff5735a14f5381074ac98cf171ceb044beb7314016fda6de23699fc32c489afe1955ac88b56e4aeb69a41364954042691653ab9b4097b230e MISC metadata.xml 414 BLAKE2B 38309330df062150b84012dff2bacfaeccc80ad855697c841708611e167ed12f07ba7284dd4ec8d349cfe8c13c363d0c6949370ac1357057ec9efcd43b6236fe SHA512 8fa3177228145a7f3e1b2cb8d1124ad1ed3639112f17885d6464dd266858d0855ef2645954ea0238011597e3d3d99d9fcc02f6b900315c18f48386ffbe3b8ff3 diff --git a/dev-ruby/mysql2/mysql2-0.5.3.20210920.ebuild b/dev-ruby/mysql2/mysql2-0.5.3.20210920.ebuild index 1603c28efec1..37d6e7fd7c44 100644 --- a/dev-ruby/mysql2/mysql2-0.5.3.20210920.ebuild +++ b/dev-ruby/mysql2/mysql2-0.5.3.20210920.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby26 ruby27 ruby30 ruby31" # Tests require a live MySQL database but should all pass. RUBY_FAKEGEM_TASK_TEST="" diff --git a/dev-ruby/mysql2/mysql2-0.5.4.ebuild b/dev-ruby/mysql2/mysql2-0.5.4.ebuild new file mode 100644 index 000000000000..c37cd71d63a4 --- /dev/null +++ b/dev-ruby/mysql2/mysql2-0.5.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +# Tests require a live MySQL database but should all pass. +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/mysql2/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/mysql2 + +RUBY_FAKEGEM_GEMSPEC="mysql2.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A modern, simple and very fast Mysql library for Ruby - binding to libmysql" +HOMEPAGE="https://github.com/brianmario/mysql2" +SRC_URI="https://github.com/brianmario/mysql2/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="mysql mariadb" +REQUIRED_USE="^^ ( mariadb mysql )" + +MDEPEND="mysql? ( dev-db/mysql-connector-c:= ) mariadb? ( dev-db/mariadb-connector-c:= )" +DEPEND="${DEPEND} ${MDEPEND}" +RDEPEND="${RDEPEND} ${MDEPEND}" + +all_ruby_prepare() { + sed -i -e '/s.version/ s/Mysql2::VERSION/"'${PV}'"/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_configure() { + local config + if use mysql ; then + config="${EPREFIX}/usr/bin/mysql_config" + fi + if use mariadb ; then + config="${EPREFIX}/usr/bin/mariadb_config" + fi + + ${RUBY} -Cext/mysql2 extconf.rb --with-mysql-config="${config}" || die +} -- cgit v1.2.3