Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rebar-bin/
Date: Wed, 24 Oct 2018 22:27:35
Message-Id: 1540420019.1efa3958413cda09142e12371e54032a9c442e17.aidecoe@gentoo
1 commit: 1efa3958413cda09142e12371e54032a9c442e17
2 Author: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 24 22:23:19 2018 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 24 22:26:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1efa3958
7
8 dev-lang/rebar-bin: Add new package
9
10 Fetch and install prebuilt binary as it's way easier than building this
11 from source.
12
13 Bug: https://bugs.gentoo.org/628876
14 Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo.org>
15
16 dev-util/rebar-bin/Manifest | 1 +
17 dev-util/rebar-bin/metadata.xml | 28 ++++++++++++++++++++++++++++
18 dev-util/rebar-bin/rebar-bin-3.6.2.ebuild | 31 +++++++++++++++++++++++++++++++
19 3 files changed, 60 insertions(+)
20
21 diff --git a/dev-util/rebar-bin/Manifest b/dev-util/rebar-bin/Manifest
22 new file mode 100644
23 index 00000000000..da758047790
24 --- /dev/null
25 +++ b/dev-util/rebar-bin/Manifest
26 @@ -0,0 +1 @@
27 +DIST rebar3 694889 BLAKE2B 3a8f5562a0c984caf5d7b3ba1063a90bf110a60cea316eaf88f5199b890e186f85193dc0302b36dc31051d3552912c8d1582f563f989df97ee28364a3f47512a SHA512 8fb5c7737d70fc7a706b1e124ab660550e8637da9258338016ab2e260f1c6d662548ef723705cd18210050d052e79945578623d9e9892e08dbfdb9cb04fd89fb
28
29 diff --git a/dev-util/rebar-bin/metadata.xml b/dev-util/rebar-bin/metadata.xml
30 new file mode 100644
31 index 00000000000..56b1d345d11
32 --- /dev/null
33 +++ b/dev-util/rebar-bin/metadata.xml
34 @@ -0,0 +1,28 @@
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">
39 + <email>aidecoe@g.o</email>
40 + <name>Amadeusz Żołnowski</name>
41 + </maintainer>
42 + <longdescription lang="en">
43 + Rebar3 is an Erlang tool that makes it easy to create, develop, and
44 + release Erlang libraries, applications, and systems in a repeatable
45 + manner.
46 +
47 + Rebar3 will:
48 +
49 + - respect and enforce standard Erlang/OTP conventions for project
50 + structure so they are easily reusable by the community;
51 + - manage source dependencies and Erlang packages while ensuring
52 + repeatable builds;
53 + - handle build artifacts, paths, and libraries such that standard
54 + development tools can be used without a headache;
55 + - adapt to projects of all sizes on almost any platform;
56 + - treat documentation as a feature, and errors or lack of documentation
57 + as a bug.
58 + </longdescription>
59 + <upstream>
60 + <remote-id type="github">erlang/rebar3</remote-id>
61 + </upstream>
62 +</pkgmetadata>
63
64 diff --git a/dev-util/rebar-bin/rebar-bin-3.6.2.ebuild b/dev-util/rebar-bin/rebar-bin-3.6.2.ebuild
65 new file mode 100644
66 index 00000000000..9835d50cdf2
67 --- /dev/null
68 +++ b/dev-util/rebar-bin/rebar-bin-3.6.2.ebuild
69 @@ -0,0 +1,31 @@
70 +# Copyright 1999-2018 Gentoo Foundation
71 +# Distributed under the terms of the GNU General Public License v2
72 +
73 +EAPI=7
74 +
75 +MY_PN=${P#-bin}
76 +MY_P=${MY_PN}-${PV}
77 +
78 +DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
79 +HOMEPAGE="https://github.com/erlang/rebar3"
80 +
81 +SRC_URI="https://github.com/erlang/rebar3/releases/download/${PV}/rebar3"
82 +
83 +LICENSE="Apache-2.0"
84 +SLOT="3"
85 +KEYWORDS="~amd64 ~x86"
86 +
87 +RDEPEND="dev-lang/erlang"
88 +DEPEND=""
89 +
90 +S="${WORKDIR}"
91 +
92 +QA_PREBUILT="/usr/bin/rebar3"
93 +
94 +src_unpack() {
95 + cp -v "${DISTDIR}/${A}" "${S}/" || die
96 +}
97 +
98 +src_install() {
99 + dobin rebar3
100 +}