Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/zglob/
Date: Wed, 07 Feb 2018 20:15:43
Message-Id: 1518034458.230371b00dc1988a33ae7ce3c7841c28bcd32970.mgorny@gentoo
1 commit: 230371b00dc1988a33ae7ce3c7841c28bcd32970
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 1 00:57:15 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 7 20:14:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=230371b0
7
8 dev-go/zglob: new package
9
10 dependency of www-plugins/browserpass
11
12 dev-go/zglob/Manifest | 1 +
13 dev-go/zglob/metadata.xml | 12 ++++++++++++
14 dev-go/zglob/zglob-0_p20171230.ebuild | 35 +++++++++++++++++++++++++++++++++++
15 3 files changed, 48 insertions(+)
16
17 diff --git a/dev-go/zglob/Manifest b/dev-go/zglob/Manifest
18 new file mode 100644
19 index 00000000000..6d88855ead2
20 --- /dev/null
21 +++ b/dev-go/zglob/Manifest
22 @@ -0,0 +1 @@
23 +DIST zglob-0_p20171230.tar.gz 7993 BLAKE2B dd441531a30f6491c5c85b82e364bf8a21adb9d3842793ef2d9afc617ab5a7b7f6d83e53bb911bfe0a8205f5a434aaee42f2ab7160cce103f0e83cc198757fa7 SHA512 6eec0222ee27527b992809f235b6e06d24e857866f969f25901eaf21c9a352d6f50ec3ef2874d51cc7b91015bc9c6f197e79445e2c36ed1facad4ec04e919d83
24
25 diff --git a/dev-go/zglob/metadata.xml b/dev-go/zglob/metadata.xml
26 new file mode 100644
27 index 00000000000..004ae50f4a5
28 --- /dev/null
29 +++ b/dev-go/zglob/metadata.xml
30 @@ -0,0 +1,12 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person" >
35 + <email>lluixhi@×××××.com</email>
36 + <name>Aric Belsito</name>
37 + </maintainer>
38 + <maintainer type="project">
39 + <email>proxy-maint@g.o</email>
40 + <name>Proxy Maintainers</name>
41 + </maintainer>
42 +</pkgmetadata>
43
44 diff --git a/dev-go/zglob/zglob-0_p20171230.ebuild b/dev-go/zglob/zglob-0_p20171230.ebuild
45 new file mode 100644
46 index 00000000000..2d0bf65d558
47 --- /dev/null
48 +++ b/dev-go/zglob/zglob-0_p20171230.ebuild
49 @@ -0,0 +1,35 @@
50 +# Copyright 1999-2018 Gentoo Foundation
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=6
54 +EGO_PN=github.com/mattn/go-zglob
55 +
56 +if [[ ${PV} = *9999* ]]; then
57 + inherit golang-vcs
58 +else
59 + KEYWORDS="~amd64"
60 + EGIT_COMMIT=4959821b481786922ac53e7ef25c61ae19fb7c36
61 + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
62 + inherit golang-vcs-snapshot
63 +fi
64 +inherit golang-build
65 +
66 +DESCRIPTION="Unix-optimized file globbing and directory walking for Go"
67 +HOMEPAGE="https://github.com/mattn/go-zglob"
68 +LICENSE="MIT"
69 +SLOT="0/${PVR}"
70 +RDEPEND=""
71 +
72 +src_compile() {
73 + EGO_PN="${EGO_PN}/cmd/zglob" golang-build_src_compile
74 +}
75 +
76 +src_install() {
77 + dobin zglob
78 +
79 + golang-build_src_install
80 +
81 + pushd "src/${EGO_PN}" >/dev/null || die
82 + einstalldocs
83 + popd >/dev/null || die
84 +}