mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
Bug: https://bugs.gentoo.org/980072 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1622 Signed-off-by: Sam James <sam@gentoo.org>
90 lines
2.1 KiB
Bash
90 lines
2.1 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
USE_RUBY="ruby32 ruby33 ruby34"
|
|
|
|
RUBY_FAKEGEM_BINWRAP=""
|
|
RUBY_FAKEGEM_DOCDIR=""
|
|
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
|
RUBY_FAKEGEM_EXTRAINSTALL="app config db"
|
|
RUBY_FAKEGEM_GEMSPEC="activestorage.gemspec"
|
|
RUBY_FAKEGEM_RECIPE_DOC=""
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="Attach cloud and local files in Rails applications"
|
|
HOMEPAGE="https://github.com/rails/rails"
|
|
|
|
SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
|
RUBY_S="rails-${PV}/${PN}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="$(ver_cut 1-2)"
|
|
KEYWORDS="~amd64"
|
|
|
|
ruby_add_rdepend "
|
|
~dev-ruby/actionpack-${PV}:*
|
|
~dev-ruby/activejob-${PV}:*
|
|
~dev-ruby/activerecord-${PV}:*
|
|
~dev-ruby/activesupport-${PV}:*
|
|
dev-ruby/marcel:1.0
|
|
"
|
|
ruby_add_bdepend "
|
|
test? (
|
|
dev-ruby/bundler
|
|
>=dev-ruby/image_processing-1.2:0
|
|
dev-ruby/mini_magick
|
|
dev-ruby/minitest:5
|
|
>=dev-ruby/ruby-vips-2.3
|
|
>=dev-ruby/sprockets-rails-2.0.0
|
|
>=dev-ruby/sqlite3-1.6.6
|
|
dev-ruby/webmock
|
|
)
|
|
"
|
|
BDEPEND+="
|
|
test? (
|
|
>=app-text/mupdf-1.23.7
|
|
app-text/poppler[utils]
|
|
media-gfx/imagemagick[jpeg,png,tiff]
|
|
media-libs/vips[imagemagick]
|
|
media-video/ffmpeg
|
|
)
|
|
"
|
|
|
|
all_ruby_prepare() {
|
|
# Replace Gemfile with something simpler for the test run
|
|
cat <<-EOF > ../Gemfile || die
|
|
source "https://rubygems.org"
|
|
gemspec
|
|
|
|
gem "rake"
|
|
|
|
gem "minitest", "~> 5.0"
|
|
|
|
gem "image_processing", "~> 1.2"
|
|
gem "mini_magick"
|
|
gem "ruby-vips"
|
|
gem "sprockets-rails", ">= 2.0.0"
|
|
gem "sqlite3", ">= 1.6.6"
|
|
gem "webmock"
|
|
EOF
|
|
rm ../Gemfile.lock || die
|
|
|
|
# Avoid failing test depending on yarn
|
|
rm -f test/javascript_package_test.rb || die
|
|
|
|
# Needs vips[gif] that isn't hooked up
|
|
sed -e '/"optimized variation of GIF blob"/,/^ end/ s:^:#:' \
|
|
-e '/"thumbnail variation of extensionless GIF blob processed with VIPS"/,/^ end/ s:^:#:' \
|
|
-i test/models/variant_test.rb || die
|
|
|
|
# Avoid test where different ffmpeg versions apply different rounding for the duration.
|
|
sed -e '/0.914286/ s:^:#:' \
|
|
-i test/analyzer/audio_analyzer_test.rb || die
|
|
|
|
# Unpackaged azure-storage-blob
|
|
rm test/service/configurator_test.rb || die
|
|
}
|