summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2021-12-10 09:51:36 +0100
committerFlorian Schmaus <flow@gentoo.org>2021-12-10 14:03:40 +0100
commit4136091bc41e2e5cb05c21034abc7a507c8566db (patch)
treeed2ec8dffb3272b778b78d730501442f7ded6b16 /dev-erlang/jose
parentdev-erlang/fast_yaml: add 1.0.32 (diff)
downloadgentoo-4136091bc41e2e5cb05c21034abc7a507c8566db.tar.gz
gentoo-4136091bc41e2e5cb05c21034abc7a507c8566db.tar.bz2
gentoo-4136091bc41e2e5cb05c21034abc7a507c8566db.zip
dev-erlang/jose: add 1.11.1
Bug: https://bugs.gentoo.org/810886 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-erlang/jose')
-rw-r--r--dev-erlang/jose/Manifest1
-rw-r--r--dev-erlang/jose/jose-1.11.1.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-erlang/jose/Manifest b/dev-erlang/jose/Manifest
index c908bfb02590..868e1410245e 100644
--- a/dev-erlang/jose/Manifest
+++ b/dev-erlang/jose/Manifest
@@ -1,2 +1,3 @@
DIST erlang-jose-1.10.1.tar.gz 279187 BLAKE2B 18b606e5a2fd93b96a26b989a52235af08bd925eb610a9010b4ff930c1feb50bf8143456bd6b4743b53342948185eb5e4d4df760f774fc4bce1dc6a11fb2acf6 SHA512 2887a1d43e212516b32a0a690d5a94e6a797b4802b21fa0a51cc4830790f56625575db38af8fb1c0f4cf4694740c6149eb75989cfbd51867af69c1b23b7ba8ee
+DIST erlang-jose-1.11.1.tar.gz 281125 BLAKE2B 839d4b8a4f95f2430378cbbeff5ad4f0095faeacfbdbd1d5ce87f62844f664bd89b500dc4d43b410be3bef296743cfd4fc77509547258bbc302d26deae753af9 SHA512 eed87ba597b8df064f38b873216f0a54fc4173d4393de49b648bc9e4e519778c4f3043701f8e6cb84a0f452ff555fcfa1d65afeb91d4466616bcc27838772fd6
DIST erlang-jose-1.9.0.tar.gz 258407 BLAKE2B c6036e743b062cd18518537ffee03cc138f55f3973a2ab538410d362757747e2c8880a899326d494914068f36ffaf2bb902e83ba7899c3256d6cfc7b89f07156 SHA512 59f7123fe589c8e9bf0bab5a21089301d6b3a1c35316b9f530386bd0d9de8da8f5f956769ea6b1166c545a51d119668ed18db57e8adfa02e6f4327b01168db68
diff --git a/dev-erlang/jose/jose-1.11.1.ebuild b/dev-erlang/jose/jose-1.11.1.ebuild
new file mode 100644
index 000000000000..2df775e9d8a8
--- /dev/null
+++ b/dev-erlang/jose/jose-1.11.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit rebar
+
+DESCRIPTION="JSON Object Signing and Encryption (JOSE) for Erlang and Elixir"
+HOMEPAGE="https://github.com/potatosalad/erlang-jose"
+SRC_URI="https://github.com/potatosalad/erlang-jose/archive/${PV}.tar.gz
+ -> erlang-${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/erlang-19.0"
+RDEPEND="${DEPEND}"
+
+DOCS=( ALGORITHMS.md CHANGELOG.md README.md examples/KEY-GENERATION.md )
+
+# TODO: jose has test suite, but it require lots of dependencies. It may not be
+# TODO: urgent, but it would be nice to have those sooner or later.
+RESTRICT=test
+
+S="${WORKDIR}/erlang-${P}"
+
+src_prepare() {
+ # disable warnings_as_errors for erlang 23 compatibiltiy
+ # https://github.com/potatosalad/erlang-jose/issues/87
+ sed -i -e 's|warnings_as_errors||g' \
+ -e 's|debug_info,|debug_info|g' rebar.config
+ rebar_src_prepare
+}