commit:     e64d02b65940a5ac590c4ffccfe37b2ae5b604bc
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 15 05:44:05 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Oct 15 05:44:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e64d02b6

dev-ruby/acts_as_list: add 1.2.3

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/acts_as_list/Manifest                  |  1 +
 dev-ruby/acts_as_list/acts_as_list-1.2.3.ebuild | 47 +++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-ruby/acts_as_list/Manifest b/dev-ruby/acts_as_list/Manifest
index 2e053b8a4265..4ba67505c0cf 100644
--- a/dev-ruby/acts_as_list/Manifest
+++ b/dev-ruby/acts_as_list/Manifest
@@ -1 +1,2 @@
 DIST acts_as_list-1.2.2.tar.gz 38316 BLAKE2B 
8fca217bab42ec45f8860323347e0d5282c99b494588f84f623cbb395bbf1cbeaa8cd8c7fd5344a7c1900a65a3a5f263ffd11fc340e2a0533dc8cbddc297d2a8
 SHA512 
1e985593b849cb4da5749bce72d09354454b06e40eeefbba161b0e8ceeccf08702761793692213bce013848151de373f0407d7794e7d1745e60646070e4946d7
+DIST acts_as_list-1.2.3.tar.gz 38545 BLAKE2B 
d154f52d45ba5eb2d11351a28e9173eb2d32bac54e88de304240395834aa058fd283e27947fa220b2f92bd02c2bbf75166acf8d37735532da67bb09eab0cf98e
 SHA512 
5f099d7018d608b10c35f790497bf2a4f4c9f86765cfa7b9e340e54db7eb15b91b67afcc9b3d633e6e3373e2265c5860750eaebc082b7e1734e74ef415cdf31f

diff --git a/dev-ruby/acts_as_list/acts_as_list-1.2.3.ebuild 
b/dev-ruby/acts_as_list/acts_as_list-1.2.3.ebuild
new file mode 100644
index 000000000000..e31722ad807a
--- /dev/null
+++ b/dev-ruby/acts_as_list/acts_as_list-1.2.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+inherit ruby-fakegem
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+DESCRIPTION="Capabilities for sorting and reordering a number of objects in a 
list"
+HOMEPAGE="https://github.com/brendon/acts_as_list";
+SRC_URI="https://github.com/brendon/acts_as_list/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="3"
+KEYWORDS="~amd64"
+IUSE="test"
+
+ruby_add_rdepend ">=dev-ruby/activerecord-6.1:* >=dev-ruby/activesupport-6.1:*"
+
+ruby_add_bdepend "
+       test? (
+               >=dev-ruby/minitest-hooks-1.5.1:1
+               >=dev-ruby/mocha-2.1.0:2
+               dev-ruby/test-unit:2
+               >=dev-ruby/timecop-0.9.8
+               dev-ruby/activerecord[sqlite]
+       )"
+
+all_ruby_prepare() {
+       rm Gemfile || die
+       sed -i -e '/[Bb]undler/d' Rakefile || die
+       sed -i -e '/bundler/,/^end/ s:^:#:' test/helper.rb || die
+       sed -e 's/git ls-files -z/find lib CHANGELOG.md README.md init.rb 
-print0/' \
+               -e '/executables/ s:^:#:' \
+               -e 's/__dir__/"."/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+       sed -i -e '/github_changelog/,$ s:^:#:' Rakefile || die
+}
+
+each_ruby_test() {
+       DB=sqlite each_fakegem_test
+}

Reply via email to