summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-12-25 15:49:07 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-12-25 15:49:07 +0000
commit86f7323d28a04492eb6abd933f3566227ec16ab5 (patch)
tree6ad6cb18800ca69498e4a3bc5695ab4ef6623bde /dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild
parent7a12d9167cf63635da26027e1ab96c25aa889bef (diff)
downloadsrcux-86f7323d28a04492eb6abd933f3566227ec16ab5.tar.gz
srcux-86f7323d28a04492eb6abd933f3566227ec16ab5.tar.xz
srcux-86f7323d28a04492eb6abd933f3566227ec16ab5.zip
Adding metadata
Diffstat (limited to 'dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild')
-rw-r--r--dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild b/dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild
new file mode 100644
index 000000000000..a23ae9460ff3
--- /dev/null
+++ b/dev-ruby/ruby-prof/ruby-prof-1.4.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGES"
+RUBY_FAKEGEM_DOCDIR="doc"
+
+RUBY_FAKEGEM_GEMSPEC="ruby-prof.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/ruby_prof/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/ruby_prof"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A module for profiling Ruby code"
+HOMEPAGE="https://github.com/ruby-prof/ruby-prof"
+SRC_URI="https://github.com/ruby-prof/${PN}/archive/${PV}.tar.gz -> ${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit:2 dev-ruby/minitest )"
+
+all_ruby_prepare() {
+ # Avoid bundler
+ sed -i -e '/bundler/I s:^:#:' -e '/:build/ s:^:#:' Rakefile || die
+
+ sed -i -e '2igem "test-unit"' -e '/bundler/ s:^:#:' test/test_helper.rb || die
+
+ # We install the shared object in lib, not ext.
+ sed -i -e 's#../ext/ruby_prof#../lib/ruby_prof#' lib/ruby-prof.rb || die
+
+ # Avoid unneeded dependency on rake-compiler
+ sed -i -e '/extensiontask/ s:^:#:' \
+ -e '/ExtensionTask/,/end/ s:^:#:' Rakefile || die
+}