Files
gentoo/dev-ruby/ruby-vips/ruby-vips-2.3.0.ebuild
Alfred Wingate 156f3b5abd dev-ruby/ruby-vips: new package, add 2.3.0
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>
2026-08-06 00:51:59 +01:00

44 lines
888 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_FAKEGEM_GEMSPEC="ruby-vips.gemspec"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
inherit ruby-fakegem
DESCRIPTION="A fast image processing library with low memory needs"
HOMEPAGE="https://github.com/libvips/ruby-vips"
SRC_URI="
https://github.com/libvips/ruby-vips/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# See 'ffi_lib FFI.library_name("vips", ??)' in lib/vips.rb
VIPS_ABI="42"
RDEPEND="
media-libs/vips:0/${VIPS_ABI}[introspection]
"
ruby_add_rdepend "
>=dev-ruby/ffi-1.12
dev-ruby/logger
"
all_ruby_prepare() {
sed -e 's:require_relative ":require "./:' \
-e 's:git ls-files -z:find * -print0:' \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
}