summaryrefslogtreecommitdiff
path: root/dev-util/rebar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-16 11:29:23 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-16 11:29:23 +0000
commitaafe376c08b0a844bae25813092c119b165798da (patch)
tree52062fff385a3ffbf302ec79173fe7d5fdf2e3d3 /dev-util/rebar
parentf174ed40d3cca6ab6b3bb718e8b5fccca6b04b3f (diff)
gentoo auto-resync : 16:01:2024 - 11:29:23
Diffstat (limited to 'dev-util/rebar')
-rw-r--r--dev-util/rebar/Manifest1
-rw-r--r--dev-util/rebar/rebar-3.22.1-r1.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/rebar/Manifest b/dev-util/rebar/Manifest
index cb56cc2d938c..3c51103772c5 100644
--- a/dev-util/rebar/Manifest
+++ b/dev-util/rebar/Manifest
@@ -21,5 +21,6 @@ EBUILD rebar-3.19.0.ebuild 2462 BLAKE2B 52b97493bde303b742e274dd294bde9df57a89b4
EBUILD rebar-3.20.0-r1.ebuild 1467 BLAKE2B 4431e40b79721f27e5ad2115ceb2613c6c96149dc3a0db1d1b1fbe51a95ce9147e76440359a5b6357bd360eeb1255a4788f5fdb21cc9e4a0f7a5ca4613137eea SHA512 f50c2cdae112c820f099c4ccd0abd6cf86376c4c88ffff6447a4a867521966e8d09d566c4cc35dd33902a205820c927fff7c824f6ac009d042ebf5e4e3a72086
EBUILD rebar-3.20.0.ebuild 1360 BLAKE2B 1b74606b259767109415f9f8657d77a04d91810ce0bd96176b92dfc6351bd3833e35caae6d4d74dcec1fd7d08a6e54b1f2f6915a1f8efd11ee4b2a32b7aa6527 SHA512 9d4da37362e8c66dc544f0667d14f094e7007c2948362a3d62cb8051cda790ca63441172911a93b5106320e8ceb9b1c8966675c6af55b29155f2e97ca47690a4
EBUILD rebar-3.21.0.ebuild 1462 BLAKE2B 1a95bdbeb3842cc303603f09d85ce1d86351121febb07ea01e31cb01403770c1c120112e5c7a6aa59dc44646b94a22da071ae3e4c9b7c3222d7c0faaa3b03090 SHA512 547dfb2625d62c36b58251aca9afc2592f3c3412203387f5122c78c19706f17febfa89f9599ca6906d259485ede55fe9ffcb2a47110043e5e25b207d2d3e9cba
+EBUILD rebar-3.22.1-r1.ebuild 1527 BLAKE2B 0ee47b404009f8c9b6b25eb6ca912ff75ce9b3574dcbff40fc58d53399446b84f9b6f2e15682804d0a3728d0fc72409a214982740e50df559ecd589df1bd0e62 SHA512 16789d1be7e77de2fc0eae32a5fbd56a544f30f1b7b3e85f70cbffc3d354c00eb25528109fefa0918b6e649ba7edcdedcf51ae15ff685e13465e826820e701ba
EBUILD rebar-3.22.1.ebuild 1462 BLAKE2B 1a95bdbeb3842cc303603f09d85ce1d86351121febb07ea01e31cb01403770c1c120112e5c7a6aa59dc44646b94a22da071ae3e4c9b7c3222d7c0faaa3b03090 SHA512 547dfb2625d62c36b58251aca9afc2592f3c3412203387f5122c78c19706f17febfa89f9599ca6906d259485ede55fe9ffcb2a47110043e5e25b207d2d3e9cba
MISC metadata.xml 361 BLAKE2B d58dbad87667d782d0b5d81f0d9166b4e93dc0dea86b7b665acd6463c945949425746085f1a36cc952ad0ca3bcd7acb949a855c2aa57eae8a18bfd16120da1ae SHA512 aa1aae5e0688d6e921d4018714a37f079a333282baff352d7faeef3b1810471be421c99a705b1b97de0cb5c846efb69b3ec4f018033cb56efc307164fb8871c3
diff --git a/dev-util/rebar/rebar-3.22.1-r1.ebuild b/dev-util/rebar/rebar-3.22.1-r1.ebuild
new file mode 100644
index 000000000000..76fb5f3577b0
--- /dev/null
+++ b/dev-util/rebar/rebar-3.22.1-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=${PN}3
+MECK_PV=0.8.13 # see rebar.config
+
+inherit bash-completion-r1
+
+DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
+HOMEPAGE="https://www.rebar3.org https://github.com/erlang/rebar3"
+SRC_URI="
+ https://github.com/erlang/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://repo.hex.pm/tarballs/meck-${MECK_PV}.tar )
+"
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+LICENSE="Apache-2.0 MIT BSD"
+SLOT="3"
+KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 sparc x86"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+# Note: /usr/bin/rebar is a ZIP archive of BEAM files so := is needed
+# see #913601
+RDEPEND="
+ dev-lang/erlang:=[ssl]
+"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ if use test; then
+ mkdir "${S}"/vendor/meck || die
+ tar -O -xf "${DISTDIR}"/meck-${MECK_PV}.tar contents.tar.gz |
+ tar -xzf - -C "${S}"/vendor/meck
+ assert
+ fi
+}
+
+src_compile() {
+ ./bootstrap || die
+}
+
+src_test() {
+ ./rebar3 ct || die
+}
+
+src_install() {
+ dobashcomp apps/rebar/priv/shell-completion/bash/${MY_PN}
+ dobin ${MY_PN}
+ dodoc rebar.config.sample
+ doman manpages/${MY_PN}.1
+
+ # MIX_REBAR3: Used by elixir
+ newenvd - 98rebar3 <<-EOF
+ MIX_REBAR3=${EPREFIX}/usr/bin/${MY_PN}
+EOF
+
+ insinto /usr/share/fish/completion
+ newins apps/rebar/priv/shell-completion/fish/${MY_PN}.fish ${MY_PN}
+
+ insinto /usr/share/zsh/site-functions
+ doins apps/rebar/priv/shell-completion/zsh/_${MY_PN}
+}