dev-ruby/appsignal - 4.5.9 (graaff)

Search

Install

Install this version:

emerge -a =dev-ruby/appsignal-4.5.9

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ruby/appsignal-4.5.9

Or alternatively:

emerge --autounmask-write -a =dev-ruby/appsignal-4.5.9

Package Information

Description:
The official appsignal.com gem
Homepage:
https://docs.appsignal.com/ruby
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
4.5.9 8 ~amd64 $(ver_cut 1)
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34"

RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md SUPPORT.md"

RUBY_FAKEGEM_RECIPE_TEST="rspec3"

RUBY_FAKEGEM_EXTRAINSTALL="ext resources"

RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb)

AGENT_VERSION="0.36.3"

inherit flag-o-matic ruby-fakegem

DESCRIPTION="The official appsignal.com gem"
HOMEPAGE="https://docs.appsignal.com/ruby"
SRC_URI="https://github.com/appsignal/appsignal-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
		 https://appsignal-agent-releases.global.ssl.fastly.net/${AGENT_VERSION}/appsignal-x86_64-linux-all-static.tar.gz -> appsignal-x86_64-${PV}.patch.bz2"
RUBY_S="appsignal-ruby-${PV}"

LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
IUSE="test"

ruby_add_rdepend "
	dev-ruby/logger
	dev-ruby/rack:*
	!<dev-ruby/appsignal-3.13.1-r1
"

ruby_add_bdepend "test? (
	dev-ruby/bundler
	dev-ruby/timecop
	dev-ruby/webmock
)"

all_ruby_prepare() {
	sed -i -e '/rake/ s/~>/>=/' -e '/\("rubocop\|pry\)/ s:^:#:' appsignal.gemspec || die
	sed -i -e '/pry/ s:^:#:' spec/spec_helper.rb || die
	echo 'gem "json"' >> Gemfile || die
	echo 'gem "rexml"' >> Gemfile || die

	# This is a horrible hack to work around the default unpack support
	# in all_ruby_unpack which tries to unpack all files in ${A} and
	# then fails. But it leaves a patch.bz2 file untouched...
	pushd ext || die
	cp "${DISTDIR}/appsignal-x86_64-${PV}.patch.bz2" appsignal-x86_64-linux-all-static.tar.gz || die
	popd || die
	sed -i -e 's/download_archive(library_type)/open("appsignal-x86_64-linux-all-static.tar.gz")/' ext/extconf.rb || die

	# Avoid specs that require a network
	sed -e '/\(the\|extension\) installation report/askip "requires live network"' \
		-i spec/lib/appsignal/cli/diagnose_spec.rb || die

	# Fix spec that expect a specific command name
	sed -e '/process_name/ s/rspec/rspec-3/' -i spec/lib/appsignal/probes/gvl_spec.rb || die
}

each_ruby_prepare() {
	sed -e "/executable/ s:\"ruby\":\"${RUBY}\":" \
		-i spec/integration/runner.rb || die
}

each_ruby_configure() {
	append-flags -std=gnu17
	filter-flags -std=gnu23

	each_fakegem_configure
}

each_ruby_test() {
	${RUBY} -S bundle exec rspec-3 spec || die
}

each_ruby_install() {
	each_fakegem_install

	local extdir
	extdir="$(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/ext"

	fperms 0755 "${extdir}/appsignal-agent"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ruby/appsignal | euse -E <flag> -p dev-ruby/appsignal | euse -D <flag> -p dev-ruby/appsignal

Global/Standard Flags

Inherited Eclasses

Manifest for 4.5.9

Type File Size Source URLs
DIST appsignal-4.5.9.tar.gz 443194 bytes https://github.com/appsignal/appsignal-ruby/archive/refs/tags/v4.5.9.tar.gz
DIST appsignal-x86_64-4.5.9.patch.bz2 4638779 bytes https://appsignal-agent-releases.global.ssl.fastly.net/0.36.3/appsignal-x86_64-linux-all-static.tar.gz