Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/typeprof/
Date: Mon, 28 Dec 2020 07:47:02
Message-Id: 1609141607.cc1e05c66ee7fb6bf652382dce8691bc070cad51.graaff@gentoo
1 commit: cc1e05c66ee7fb6bf652382dce8691bc070cad51
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 07:45:07 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 07:46:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc1e05c6
7
8 dev-ruby/typeprof: initial import of 0.11.0
9
10 New dependency of dev-lang/ruby
11
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
14
15 dev-ruby/typeprof/Manifest | 1 +
16 dev-ruby/typeprof/metadata.xml | 11 +++++++++++
17 dev-ruby/typeprof/typeprof-0.11.0.ebuild | 32 ++++++++++++++++++++++++++++++++
18 3 files changed, 44 insertions(+)
19
20 diff --git a/dev-ruby/typeprof/Manifest b/dev-ruby/typeprof/Manifest
21 new file mode 100644
22 index 00000000000..ddf52bd76c0
23 --- /dev/null
24 +++ b/dev-ruby/typeprof/Manifest
25 @@ -0,0 +1 @@
26 +DIST typeprof-0.11.0.tar.gz 496673 BLAKE2B 215bd738a4a4b9e7de78943a944fd63dd4f166f215a493cdc89270e0452453683d3fdd1f71ccc05f4399f61e120248a73ed9b77b5b24ed4aa8b54e97d9e0073d SHA512 cc64bd805c57a16c275ba5622df08ff30fd64ae82b18e29fb30e03d17a6ca0e889c03696c745597bfec6444290f1f33020c4bd9c49a02fc3053add33e3e60084
27
28 diff --git a/dev-ruby/typeprof/metadata.xml b/dev-ruby/typeprof/metadata.xml
29 new file mode 100644
30 index 00000000000..f44cfa2e551
31 --- /dev/null
32 +++ b/dev-ruby/typeprof/metadata.xml
33 @@ -0,0 +1,11 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="project">
38 + <email>ruby@g.o</email>
39 + <name>Gentoo Ruby Project</name>
40 + </maintainer>
41 + <upstream>
42 + <remote-id type="github">ruby/typeprof</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-ruby/typeprof/typeprof-0.11.0.ebuild b/dev-ruby/typeprof/typeprof-0.11.0.ebuild
47 new file mode 100644
48 index 00000000000..ba75d91faf8
49 --- /dev/null
50 +++ b/dev-ruby/typeprof/typeprof-0.11.0.ebuild
51 @@ -0,0 +1,32 @@
52 +# Copyright 1999-2020 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +USE_RUBY="ruby27 ruby30"
57 +
58 +RUBY_FAKEGEM_RECIPE_DOC="none"
59 +RUBY_FAKEGEM_EXTRADOC="README.md"
60 +
61 +RUBY_FAKEGEM_BINDIR="exe"
62 +
63 +RUBY_FAKEGEM_GEMSPEC="typeprof.gemspec"
64 +
65 +inherit ruby-fakegem
66 +
67 +DESCRIPTION="Performs a type analysis of non-annotated Ruby code"
68 +HOMEPAGE="https://github.com/ruby/typeprof"
69 +SRC_URI="https://github.com/ruby/typeprof/archive/v${PV}.tar.gz -> ${P}.tar.gz"
70 +
71 +LICENSE="MIT"
72 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
73 +SLOT="0"
74 +IUSE="test"
75 +
76 +ruby_add_rdepend ">=dev-ruby/rbs-1.0.0"
77 +
78 +all_ruby_prepare() {
79 + # Avoid tests that download live code using git
80 + rm -r test/typeprof/{goodcheck,diff-lcs}_test.rb || die
81 +
82 + sed -i -e "s:_relative ': './:" ${RUBY_FAKEGEM_GEMSPEC} || die
83 +}