diff options
Diffstat (limited to 'dev-vcs/git-num')
-rw-r--r-- | dev-vcs/git-num/Manifest | 3 | ||||
-rw-r--r-- | dev-vcs/git-num/git-num-2.0.1.ebuild | 36 | ||||
-rw-r--r-- | dev-vcs/git-num/metadata.xml | 8 |
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-vcs/git-num/Manifest b/dev-vcs/git-num/Manifest new file mode 100644 index 000000000000..6948d3874872 --- /dev/null +++ b/dev-vcs/git-num/Manifest @@ -0,0 +1,3 @@ +DIST git-num-2.0.1.tar.gz 53833 BLAKE2B 4080bb19ad15441fff5f641576a33d7df89ece30f10c159dbc3f8a659c29568dc295f4b3f7d01aacbf13ddad3347dc705d4e9f83a07c6c3bf5e7d2ae9f07763b SHA512 f35599a74b91efb3ccb6e8509ca1c7eb7c2f67cb90b131efc6693f8f36ea97adcb01026ad307746bdf0613200646da289aa315095cbae2580c4443b03e9dd040 +EBUILD git-num-2.0.1.ebuild 944 BLAKE2B 403d12dd26269ea6b67b74558a84181059a8ac91a77ea28cc340f8c4076bb7e4fd615663a37fef13108709190c802172063f3bd8ad90f3da476586439fcbddc1 SHA512 4018ecad97900ef50864576bef709e53ce8253a859a2203e84f080665a2a307677c2a6b65e600b9fc3cf94428505609d84fa38f2224aa9e9d44797dad4caa6b4 +MISC metadata.xml 250 BLAKE2B c7535e9e453a300c160cc23db68c3c9044cf2b4badd2506a548f85b0613df59ca4af598bed1612f5a03f120a4c540aeab35f855dc780f81a8299d366d7a4fb69 SHA512 1ac35f3998bc50445dbaf10ca62a8831d129f514433d51ffe3a92da1f10ab35013eb9960869a79804216e9818c23bb70e8a9b25d131dc23a5eb4bb958792d5d0 diff --git a/dev-vcs/git-num/git-num-2.0.1.ebuild b/dev-vcs/git-num/git-num-2.0.1.ebuild new file mode 100644 index 000000000000..d3551f87af70 --- /dev/null +++ b/dev-vcs/git-num/git-num-2.0.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Quickly reference files in Git using numbers" +HOMEPAGE="https://github.com/schreifels/git-num" +SRC_URI="https://github.com/schreifels/git-num/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND+=" test? ( dev-vcs/git )" +RDEPEND+=" dev-vcs/git" + +all_ruby_prepare() { + # cp git-num since specs depend on the default location + mkdir bin || die + cp git-num bin || die + + sed -i -e '14i`git config user.email "test-git-num@gentoo.org"`' \ + -e '15i`git config user.name "git-num tester"`' spec/lib/git_tools.rb || die +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec spec/unit.rb spec/integration.rb +} diff --git a/dev-vcs/git-num/metadata.xml b/dev-vcs/git-num/metadata.xml new file mode 100644 index 000000000000..27c27617bd7c --- /dev/null +++ b/dev-vcs/git-num/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="github">schreifels/git-num</remote-id> + </upstream> +</pkgmetadata> |