dev-lang/rebar-bin: Add new package
authorAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>
Wed, 24 Oct 2018 22:23:19 +0000 (23:23 +0100)
committerAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>
Wed, 24 Oct 2018 22:26:59 +0000 (23:26 +0100)
Fetch and install prebuilt binary as it's way easier than building this
from source.

Bug: https://bugs.gentoo.org/628876
Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe@gentoo.org>
dev-util/rebar-bin/Manifest [new file with mode: 0644]
dev-util/rebar-bin/metadata.xml [new file with mode: 0644]
dev-util/rebar-bin/rebar-bin-3.6.2.ebuild [new file with mode: 0644]

diff --git a/dev-util/rebar-bin/Manifest b/dev-util/rebar-bin/Manifest
new file mode 100644 (file)
index 0000000..da75804
--- /dev/null
@@ -0,0 +1 @@
+DIST rebar3 694889 BLAKE2B 3a8f5562a0c984caf5d7b3ba1063a90bf110a60cea316eaf88f5199b890e186f85193dc0302b36dc31051d3552912c8d1582f563f989df97ee28364a3f47512a SHA512 8fb5c7737d70fc7a706b1e124ab660550e8637da9258338016ab2e260f1c6d662548ef723705cd18210050d052e79945578623d9e9892e08dbfdb9cb04fd89fb
diff --git a/dev-util/rebar-bin/metadata.xml b/dev-util/rebar-bin/metadata.xml
new file mode 100644 (file)
index 0000000..56b1d34
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>aidecoe@gentoo.org</email>
+               <name>Amadeusz Żołnowski</name>
+       </maintainer>
+       <longdescription lang="en">
+               Rebar3 is an Erlang tool that makes it easy to create, develop, and
+               release Erlang libraries, applications, and systems in a repeatable
+               manner.
+
+               Rebar3 will:
+
+               - respect and enforce standard Erlang/OTP conventions for project
+               structure so they are easily reusable by the community;
+               - manage source dependencies and Erlang packages while ensuring
+               repeatable builds;
+               - handle build artifacts, paths, and libraries such that standard
+               development tools can be used without a headache;
+               - adapt to projects of all sizes on almost any platform;
+               - treat documentation as a feature, and errors or lack of documentation
+               as a bug.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">erlang/rebar3</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/dev-util/rebar-bin/rebar-bin-3.6.2.ebuild b/dev-util/rebar-bin/rebar-bin-3.6.2.ebuild
new file mode 100644 (file)
index 0000000..9835d50
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN=${P#-bin}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
+HOMEPAGE="https://github.com/erlang/rebar3"
+
+SRC_URI="https://github.com/erlang/rebar3/releases/download/${PV}/rebar3"
+
+LICENSE="Apache-2.0"
+SLOT="3"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-lang/erlang"
+DEPEND=""
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/usr/bin/rebar3"
+
+src_unpack() {
+       cp -v "${DISTDIR}/${A}" "${S}/" || die
+}
+
+src_install() {
+       dobin rebar3
+}