Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/rex/
Date: Tue, 13 Feb 2018 20:47:21
Message-Id: 1518554835.17211e38d70f47e505f73fce5bafd78ab2d09d64.patrick@gentoo
1 commit: 17211e38d70f47e505f73fce5bafd78ab2d09d64
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 13 20:47:00 2018 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 13 20:47:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17211e38
7
8 app-admin/rex: Bump
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-admin/rex/Manifest | 1 +
13 app-admin/rex/rex-1.6.0.ebuild | 145 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 146 insertions(+)
15
16 diff --git a/app-admin/rex/Manifest b/app-admin/rex/Manifest
17 index 203c954d597..0f9e21d527b 100644
18 --- a/app-admin/rex/Manifest
19 +++ b/app-admin/rex/Manifest
20 @@ -2,3 +2,4 @@ DIST Rex-1.3.3.tar.gz 274725 BLAKE2B a87576a136baac488a040098f2089412e6b53bb9bc4
21 DIST Rex-1.4.0.tar.gz 289330 BLAKE2B 70d74753e5b04b05ea7a5507f5c8c19ae953b4cc28e55e4d52dd57bbe2b3084ec00195d9f65f1a4c0ba712238ba8efe0cc4b33f236a7c4f9bb429ad2f98af652 SHA512 d14489157860df1b32dd2b4af7ce8148a9693d66f59bc0ee228c7c4ff57f38f7b308212c18fc7c0aff7a585a76028a9de0a7a96f8eb58c2455d19bd6b2713eab
22 DIST Rex-1.4.1.tar.gz 317358 BLAKE2B 8c12d54e86684ec224a75693f82fd4728af32a986f166d530bccc2d06c5087fdb29f067d4419f3160244d37c12ace6cd29ba1322992bcc9f4a481c06e00efa51 SHA512 07e7d950326aaa60e05977f2acb2ac90f07efe0d56411ba202a4c60a890c37e984c6786383623ac67f8e36052cf8436e8430fd024dde282a7d2530425b420e8e
23 DIST Rex-1.5.0.tar.gz 327424 BLAKE2B ea735ebeef7a4d879ec61783c7ee803f198b4091882bbdbaee1b415330fcb20ba408f082e7ecaaa5c63664d905690bd6b5601d2d726ff20f5dc9d1f8c6d470a4 SHA512 43a1e147e5d2dccdc641479f2bf5449b0051651d152823738caf946bb3ceecb444011c3273f0c70ca5feab737702f6cd609f5b211eec8261e1facd80c82b6c73
24 +DIST Rex-1.6.0.tar.gz 331330 BLAKE2B cb3a2895c1b7fd775aa762e8af7fbfdf3d14aac0d4ed5cd32bc65f4eb2b7794e438015daf9602cea3a852ed17dd207c9647303a106d8fff2cc89b5ce7a5ff0a2 SHA512 8e4421e034ddf7337266ce2002e96cad12a632ff37742991685d2919e3b11a4f6f3348097fd36717ab83a38e2e46aa974d0e56c67568a857c30f7ea673a51cda
25
26 diff --git a/app-admin/rex/rex-1.6.0.ebuild b/app-admin/rex/rex-1.6.0.ebuild
27 new file mode 100644
28 index 00000000000..5a34558d4ef
29 --- /dev/null
30 +++ b/app-admin/rex/rex-1.6.0.ebuild
31 @@ -0,0 +1,145 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +if [[ ${PV} == 9999 ]]; then
38 + GITHUB_USER=RexOps
39 + GITHUB_REPO=Rex
40 + EGIT_REPO_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}.git"
41 + EGIT_BRANCH="development-1.x"
42 + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-git"
43 + VCS_ECLASS="git-r3"
44 +else
45 + # This is intentional to stop perl-module.eclass doing magic things when it
46 + # shouldn't. Like making ${S} contain "Rex" when the git clone has "rex"
47 + # Also prevents perl-module.eclass provisioning SRC_URI
48 + DIST_AUTHOR=JFRIED
49 + DIST_NAME=Rex
50 + KEYWORDS="~amd64 ~x86"
51 +fi
52 +
53 +inherit perl-module ${VCS_ECLASS}
54 +
55 +DESCRIPTION="(R)?ex is a small script to ease the execution of remote commands"
56 +
57 +SLOT="0"
58 +IUSE="test"
59 +
60 +DZIL_DEPENDS="
61 + dev-perl/Dist-Zilla
62 + dev-perl/Dist-Zilla-Plugin-MakeMaker-Awesome
63 + dev-perl/Dist-Zilla-Plugin-MetaProvides-Package
64 + dev-perl/Dist-Zilla-Plugin-OSPrereqs
65 + dev-perl/Dist-Zilla-Plugin-OurPkgVersion
66 + dev-perl/Dist-Zilla-Plugin-Test-MinimumVersion
67 + dev-perl/Dist-Zilla-Plugin-Test-Perl-Critic
68 +"
69 +
70 +RDEPEND="
71 + dev-perl/Data-Validate-IP
72 + dev-perl/DBI
73 + dev-perl/Devel-Caller
74 + dev-perl/Digest-HMAC
75 + dev-perl/Digest-SHA1
76 + dev-perl/Expect
77 + dev-perl/Hash-Merge
78 + dev-perl/IO-String
79 + dev-perl/IO-Tty
80 + dev-perl/IPC-Shareable
81 + dev-perl/JSON-XS
82 + dev-perl/List-MoreUtils
83 + dev-perl/Net-OpenSSH
84 + dev-perl/Net-SFTP-Foreign
85 + dev-perl/Parallel-ForkManager
86 + dev-perl/Sort-Naturally
87 + dev-perl/String-Escape
88 + dev-perl/TermReadKey
89 + dev-perl/Test-Deep
90 + dev-perl/Text-Glob
91 + dev-perl/URI
92 + dev-perl/XML-LibXML
93 + dev-perl/XML-Simple
94 + dev-perl/libwww-perl
95 + dev-perl/YAML
96 + virtual/perl-Carp
97 + virtual/perl-Data-Dumper
98 + virtual/perl-Digest-MD5
99 + virtual/perl-Exporter
100 + virtual/perl-File-Spec
101 + virtual/perl-MIME-Base64
102 + virtual/perl-Scalar-List-Utils
103 + virtual/perl-Storable
104 + virtual/perl-Time-HiRes
105 +"
106 +
107 +DEPEND="
108 + ${RDEPEND}
109 + test? (
110 + dev-perl/JSON-MaybeXS
111 + dev-perl/Test-UseAllModules
112 + virtual/perl-File-Temp
113 + )
114 +"
115 +
116 +[[ ${PV} == 9999 ]] && DEPEND+=" ${DZIL_DEPENDS}"
117 +
118 +src_unpack() {
119 + if [[ $PV == 9999 ]]; then
120 + "${VCS_ECLASS}"_src_unpack
121 + mkdir -p "${S}" || die "Can't make ${S}"
122 + else
123 + default
124 + fi
125 +}
126 +
127 +dzil_to_distdir() {
128 + local dzil_root dest has_missing modname dzil_version
129 + dzil_root="$1"
130 + dest="$2"
131 +
132 + cd "${dzil_root}" || die "Can't enter git workdir '${dzil_root}'";
133 +
134 + dzil_version="$(dzil version)" || die "Error invoking 'dzil version'"
135 + einfo "Generating CPAN dist with ${dzil_version}"
136 +
137 + has_missing=""
138 +
139 + einfo "Checking dzil authordeps"
140 + while IFS= read -d $'\n' -r modname; do
141 + if [[ -z "${has_missing}" ]]; then
142 + has_missing=1
143 + eerror "'dzil authordeps' indicates missing build dependencies"
144 + eerror "These will prevent building, please report a bug"
145 + eerror "Missing:"
146 + fi
147 + eerror " ${modname}"
148 + done < <( dzil authordeps --missing --versions )
149 +
150 + [[ -z "${has_missing}" ]] || die "Satisfy all missing authordeps first"
151 +
152 + einfo "Checking dzil build deps"
153 + while IFS= read -d $'\n' -r modname; do
154 + if [[ -z "${has_missing}" ]]; then
155 + has_missing=1
156 + ewarn "'dzil listdeps' indicates missing build dependencies"
157 + ewarn "These may prevent building, please report a bug if they do"
158 + ewarn "Missing:"
159 + fi
160 + ewarn " ${modname}"
161 + done < <( dzil listdeps --missing --versions --author )
162 +
163 + einfo "Generating release"
164 + dzil build --notgz --in "${dest}" || die "Unable to build CPAN dist in '${dest}'"
165 +}
166 +
167 +src_prepare() {
168 + if [[ ${PV} == 9999 ]]; then
169 + # Uses git sources in WORKDIR/rex-git
170 + # to generate a CPAN-style tree in ${S}
171 + # before letting perl-module.eclass do the rest
172 + dzil_to_distdir "${EGIT_CHECKOUT_DIR}" "${S}"
173 + fi
174 + cd "${S}" || die "Can't enter build dir"
175 + perl-module_src_prepare
176 +}