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: www-apps/nanoc-core/
Date: Mon, 08 Apr 2019 05:19:33
Message-Id: 1554700694.fc21e0abe505c0f2b83714f9a0da05aaeb274311.graaff@gentoo
1 commit: fc21e0abe505c0f2b83714f9a0da05aaeb274311
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 8 05:18:14 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 8 05:18:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc21e0ab
7
8 www-apps/nanoc-core: initial import of 4.11.2
9
10 New dependency for www-apps/nanoc, split off from the main nanoc
11 repository.
12
13 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
14 Package-Manager: Portage-2.3.62, Repoman-2.3.11
15
16 www-apps/nanoc-core/Manifest | 1 +
17 www-apps/nanoc-core/metadata.xml | 9 ++++
18 www-apps/nanoc-core/nanoc-core-4.11.2.ebuild | 65 ++++++++++++++++++++++++++++
19 3 files changed, 75 insertions(+)
20
21 diff --git a/www-apps/nanoc-core/Manifest b/www-apps/nanoc-core/Manifest
22 new file mode 100644
23 index 00000000000..cc430550d7d
24 --- /dev/null
25 +++ b/www-apps/nanoc-core/Manifest
26 @@ -0,0 +1 @@
27 +DIST nanoc-core-4.11.2.tar.gz 302927 BLAKE2B 206142cc13468c3456dfd141bb031791c3d6aa31b81cca04493519e8b44d7bc82d6837d266a0edecc58c0e635cee7428bfdf0d5428de7d5e6fb6eacebb09d45e SHA512 842703e5218c06e817ce188458ee0e9267467b92219dd566fda9d58cd21ec9842bbc011b8f2faa7854caf39af1379c2eae16a3e3b73c53f2c8af6b8851c7c8b9
28
29 diff --git a/www-apps/nanoc-core/metadata.xml b/www-apps/nanoc-core/metadata.xml
30 new file mode 100644
31 index 00000000000..9abf9c6b8ec
32 --- /dev/null
33 +++ b/www-apps/nanoc-core/metadata.xml
34 @@ -0,0 +1,9 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 +<maintainer type="person"><email>graaff@g.o</email></maintainer>
39 +<maintainer type="project">
40 +<email>ruby@g.o</email>
41 +<name>Gentoo Ruby Project</name>
42 +</maintainer>
43 +</pkgmetadata>
44
45 diff --git a/www-apps/nanoc-core/nanoc-core-4.11.2.ebuild b/www-apps/nanoc-core/nanoc-core-4.11.2.ebuild
46 new file mode 100644
47 index 00000000000..65bb6bb4159
48 --- /dev/null
49 +++ b/www-apps/nanoc-core/nanoc-core-4.11.2.ebuild
50 @@ -0,0 +1,65 @@
51 +# Copyright 1999-2019 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +USE_RUBY="ruby24 ruby25"
56 +
57 +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md"
58 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
59 +
60 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
61 +
62 +inherit ruby-fakegem
63 +
64 +DESCRIPTION="nanoc is a simple but very flexible static site generator written in Ruby"
65 +HOMEPAGE="https://nanoc.ws/"
66 +SRC_URI="https://github.com/nanoc/nanoc/archive/${PV}.tar.gz -> ${P}.tar.gz"
67 +LICENSE="MIT"
68 +
69 +KEYWORDS="~amd64"
70 +SLOT="0"
71 +IUSE="${IUSE} minimal"
72 +
73 +DEPEND+="test? ( app-text/asciidoc app-text/highlight )"
74 +
75 +RUBY_S="nanoc-${PV}/nanoc-core"
76 +
77 +ruby_add_rdepend "
78 + dev-ruby/ddmemoize:1
79 + dev-ruby/ddmetrics:1
80 + dev-ruby/ddplugin:1
81 + =dev-ruby/hamster-3*
82 + >=dev-ruby/json_schema-0.19:0
83 + dev-ruby/zeitwerk:1
84 +"
85 +
86 +ruby_add_bdepend "test? (
87 + dev-ruby/bundler
88 + dev-ruby/rspec:3
89 + dev-ruby/rspec-its
90 + dev-ruby/fuubar
91 + dev-ruby/minitest
92 + dev-ruby/timecop
93 + dev-ruby/yard
94 +)
95 +"
96 +
97 +all_ruby_prepare() {
98 + # Avoid unneeded development dependencies
99 + sed -i -e '/simplecov/I s:^:#:' \
100 + -e '/codecov/I s:^:#:' ../common/spec/spec_helper_head_core.rb || die
101 + sed -i -e '/coverall/I s:^:#:' \
102 + -e '/rubocop/ s:^:#:' Rakefile || die
103 + sed -i -e '1i require "tmpdir"; require "pathname"' spec/spec_helper.rb || die
104 +
105 + echo "-r ./spec/spec_helper.rb" > .rspec || die
106 +
107 + sed -i -e "s:require_relative 'lib:require './lib:" ${RUBY_FAKEGEM_GEMSPEC} || die
108 +
109 + # Use useable tmp dir
110 + sed -i -e 's:/tmp/whatever:'${T}'/whatever:' spec/nanoc/core/checksummer_spec.rb || die
111 +}
112 +
113 +each_ruby_test() {
114 + RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die
115 +}