[crux-commits] ports/opt (3.5): ruby-mysql: update to 0.5.3, cleanup

crux at crux.nu crux at crux.nu
Wed Jul 29 11:27:08 UTC 2020


commit 06c355bf70d01a638db79a61e4b13666b5ee9c35
Author: Juergen Daubert <jue at jue.li>
Date:   Wed Jul 29 13:25:35 2020 +0200

    ruby-mysql: update to 0.5.3, cleanup

diff --git a/ruby-mysql/.footprint b/ruby-mysql/.footprint
index 80cf2973a..e763e705f 100644
--- a/ruby-mysql/.footprint
+++ b/ruby-mysql/.footprint
@@ -3,10 +3,6 @@ drwxr-xr-x	root/root	usr/lib/
 drwxr-xr-x	root/root	usr/lib/ruby/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/
-drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/build_info/
-drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/cache/
--rw-r--r--	root/root	usr/lib/ruby/gems/2.7/cache/mysql2-0.5.3.gem
-drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/doc/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/extensions/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/extensions/x86_64-linux/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/extensions/x86_64-linux/2.7/
@@ -18,9 +14,6 @@ drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/extensions/x86_64-linux/2.7/mysql2-0.
 -rwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/extensions/x86_64-linux/2.7/mysql2-0.5.3/mysql2/mysql2.so
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/gems/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/
--rw-r--r--	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/CHANGELOG.md
--rw-r--r--	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/LICENSE
--rw-r--r--	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/README.md
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/ext/
 drwxr-xr-x	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/ext/mysql2/
 -rw-r--r--	root/root	usr/lib/ruby/gems/2.7/gems/mysql2-0.5.3/ext/mysql2/.sitearchdir.-.mysql2.time (EMPTY)
diff --git a/ruby-mysql/.signature b/ruby-mysql/.signature
index 427b0dd7a..3c78e077f 100644
--- a/ruby-mysql/.signature
+++ b/ruby-mysql/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/U+sEyK1+l7UAG2mnu+bURLTYtljeevdVXWGzTpVQfhIkgsJDAhEPFTCRKhHa0/oTn/g0loX5MdunhNCXTyPuAg=
-SHA256 (Pkgfile) = 9ac63af6b53a52fd663d6eab879240a8242cd34da6c072b752dff0c13412721f
-SHA256 (.footprint) = 1df8c1ce0f6e19a74f8345eaa11ed7a07fa5ac7b2bafca864062472764b7e6e9
-SHA256 (ruby-mysql-0.5.2.tar.gz) = 3a04a17d653f68814364db4b6859d7fcceed97d85b89b77ee456ba41eaa97818
+RWSE3ohX2g5d/Zq5AcalPeJ8yH+XX188H7DZBniVb855DJlSPysDwWs7Y6e6WgwCSb109nZuUqSG1OfGR+H/jslGF9VIuS/G9A8=
+SHA256 (Pkgfile) = d8d30e149a26d9341a2851aa3e59f4f15b3cd2c473800b5d3a0d4ed28f962d50
+SHA256 (.footprint) = 7c93b2c574e1bfac20ed590bdb78695e3150c45cb74c0c0a781d239e139a237e
+SHA256 (mysql2-0.5.3.gem) = 5ca2d97d9c25fa27dc67eca77dd8d73f12576c4cd4f6f6c18b12925a3cbb2434
diff --git a/ruby-mysql/Pkgfile b/ruby-mysql/Pkgfile
index 964276210..2616429a2 100644
--- a/ruby-mysql/Pkgfile
+++ b/ruby-mysql/Pkgfile
@@ -4,16 +4,20 @@
 # Depends on:  ruby mysql
 
 name=ruby-mysql
-version=0.5.2
-release=2
-source=(https://github.com/brianmario/mysql2/archive/$version/$name-$version.tar.gz)
+version=0.5.3
+release=1
+source=(https://rubygems.org/downloads/mysql2-$version.gem)
 
 build () {
-    cd mysql2-$version
+	gem install mysql2 \
+		--ignore-dependencies \
+		--no-user-install \
+		--no-document \
+		--local \
+		--build-root $PKG
 
-    gem install mysql2 \
-        --ignore-dependencies \
-        --no-user-install \
-        --no-document \
-        --build-root $PKG
+	cd $PKG/$(gem env gemdir)
+	rm -r cache doc build_info
+	cd gems/mysql2-$version
+	rm CHANGELOG.md LICENSE README.md
 }


More information about the crux-commits mailing list