commit: 6fe728d7ff5b5a9f47603f0cbbe6f6385b7459d6 Author: Matthew Smith <matthew <AT> gentoo <DOT> org> AuthorDate: Fri Aug 30 10:02:07 2024 +0000 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> CommitDate: Fri Aug 30 10:02:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fe728d7
dev-util/rebar: add 3.24.0 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> dev-util/rebar/Manifest | 1 + dev-util/rebar/rebar-3.24.0.ebuild | 68 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/dev-util/rebar/Manifest b/dev-util/rebar/Manifest index 8d3920cabb1f..d2cc3c1589ad 100644 --- a/dev-util/rebar/Manifest +++ b/dev-util/rebar/Manifest @@ -2,3 +2,4 @@ DIST meck-0.8.13.tar 34304 BLAKE2B f2bb100bdea75079351610edd572ea7ced1503c02f86e DIST rebar-2.6.4.tar.gz 213158 BLAKE2B a71c525948697f9ba44a7faa9183f1aadce031b8b85857da87c5b2376f3b7511c78d02c183b115836605a6d3830e9b9ceac754ab64ec11d9d1bb66f37ea78665 SHA512 4e53d1ab7db296c60fb039443da7e3b31b63410fc614690c6faa7ec330d9e9393dbc1c8507aa4aea2c99397e1b443ff9d25e4d57ec57f616ee748aa97d055ffa DIST rebar-3.22.1.tar.gz 797521 BLAKE2B 7785dcfb400108324ea5ee351796cfdf7ca8658a93db01d4530e291feb22d64261749142cd74f9fe0dd5c1e53190f191531932315e6dcc4290870f13519b7df2 SHA512 fc41b306ba88ce2fb600763b226850d55f6b85a169d6177cf24c4483effbc6c4c202051b6e0b4d0cd1e06b913fb8597b1517d73d2c1422b573005e51ed81d54e DIST rebar-3.23.0.tar.gz 807007 BLAKE2B 97c4bdb2c2fa8d5ad6f3dd7760329ecff801495a3cd3c4e389a9197071fc6e34cc880626e94a30045a4783e0dd240fcd46d32f41a0d83f823daf8d304c02294b SHA512 4da1db8ed830c59fb322c1a652c2efe28d54e09ad74d12a87381ea7a7f13965b91815f383221831fbc14e6deed1a75db1039164f7df128a977d5b64048540cc3 +DIST rebar-3.24.0.tar.gz 821260 BLAKE2B 28db51e93c6d6407dc6a6654837a84d237e187e9ca0b8ea17d4f51ff20900d3fe77860c49bde21fb65d157568821d61bde8aa350bfd92027bc9221cc256c6205 SHA512 f6673d384e9f16b27e940ee738b15088007c1edd4b8cc87e4624ba66aead9fbe790f39797abd3996f4e234ca3536d4d0b9e4166bec6df21ec2ea887cfabcb2a6 diff --git a/dev-util/rebar/rebar-3.24.0.ebuild b/dev-util/rebar/rebar-3.24.0.ebuild new file mode 100644 index 000000000000..cac74bb37686 --- /dev/null +++ b/dev-util/rebar/rebar-3.24.0.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} +}