summaryrefslogtreecommitdiff
path: root/dev-libs/libjcat
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libjcat')
-rw-r--r--dev-libs/libjcat/Manifest4
-rw-r--r--dev-libs/libjcat/libjcat-0.2.1.ebuild2
-rw-r--r--dev-libs/libjcat/libjcat-0.2.2.ebuild85
3 files changed, 89 insertions, 2 deletions
diff --git a/dev-libs/libjcat/Manifest b/dev-libs/libjcat/Manifest
index 14281649f6c6..0bdfa701ba22 100644
--- a/dev-libs/libjcat/Manifest
+++ b/dev-libs/libjcat/Manifest
@@ -1,3 +1,5 @@
DIST libjcat-0.2.1.tar.gz 76698 BLAKE2B 62f77c993e47843dddacc9a67b9daac9bd29bef7363ce62125ecd22f9649b8a5ce2de07d74ea6900e9a45feb141caa19761bcffd337530d86a31b6ed94cab164 SHA512 e29fdaae38ade2960ffa7ac3cd41224ccab5fdb351d2ae420ffe0cf0ddb948bba37e9e040cc3046c8593be4622bf018779dfa80f173873b79582061f12c02373
-EBUILD libjcat-0.2.1.ebuild 1782 BLAKE2B 67c98a8218e6f7dac67941583d20e3f69d613b9878d8199a5d9a68954a4d6ba11ec2e0eb24d16b83c0d9a295a00ad2cff0f1e2d06ad35f7f86fd10939c6e49f4 SHA512 9260406f23335cc3a85ac34f36bbd04b50e936108f659f7eaa18ee1799c77071cb4f3bb714148dc913656faee7817d86272cea865ce7bb8f13f5a9a46184f0f3
+DIST libjcat-0.2.2.tar.xz 66128 BLAKE2B 30e855ec626616adf8326832dbb6e5c9266ffd41d14d1ef2a230f72e0a339d4c8ed83adacd0253faf242b065736dca7f25bd4ce04d30605998d39cacf01beac0 SHA512 91d4d9761e7de3ae312d9ef7b92fbbb82be262cdc4259ee9dad7abef8912abb047b2db51886b3d323565cb2d9a3175a56161b4879d27b36d4d318ad4419ab594
+EBUILD libjcat-0.2.1.ebuild 1782 BLAKE2B f0d05298374a5d1f55bb12781ce7188ed5a0aa5a76b37d9a82efb110f351923acb4512ecd71a2cdb001921c49e8fb5ed0ee508f4216e831da6099145b05ef10d SHA512 1d963e63011c464e88e8193a9331bf6261dad2113b718e5495ed56147898719cc715f80830cb905687beb0403955ad57170639b4355555a3fcdd4d3cd2c15df7
+EBUILD libjcat-0.2.2.ebuild 1773 BLAKE2B 55b7f917639ad0b1efa5762ec0816a7d6735d03181dee6f39b4e6e236bfcc886f9edff46c65f5c1ea583248f261a8e267e6bec1aadd095fe9081d4ecc21388e9 SHA512 c6916b1df0e98b75a0b99adf4945d03c5d8e517b505f6c4ac57ef76e0f1e5d24d9ebab3537c9b5696fc8a887405b0501c0ebc202faf0b9849d4e50a3f268ed04
MISC metadata.xml 878 BLAKE2B fb0d039464ebdfffe6de1bc524d22a0e7f674cf060ff696e145dbd5817b1704f32a960c809eeaaf312daf03b051b839bd8b6c9f9025f005c76a7fbae0c634f94 SHA512 d2d13760163ab41ed1fcdd6185c6b1486bf6652cae881bcba9336a73f8299baff48d6f045dbdd6d55f321994f51805530bc8924f43ecc35c626a97e5ca062881
diff --git a/dev-libs/libjcat/libjcat-0.2.1.ebuild b/dev-libs/libjcat/libjcat-0.2.1.ebuild
index e9469374ad53..2e7765b1428f 100644
--- a/dev-libs/libjcat/libjcat-0.2.1.ebuild
+++ b/dev-libs/libjcat/libjcat-0.2.1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
PYTHON_REQ_USE="xml(+)"
inherit meson python-any-r1 vala xdg-utils
diff --git a/dev-libs/libjcat/libjcat-0.2.2.ebuild b/dev-libs/libjcat/libjcat-0.2.2.ebuild
new file mode 100644
index 000000000000..fb70f6741cec
--- /dev/null
+++ b/dev-libs/libjcat/libjcat-0.2.2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit meson python-any-r1 vala xdg-utils
+
+DESCRIPTION="Library and tool for reading and writing Jcat files"
+HOMEPAGE="https://github.com/hughsie/libjcat"
+SRC_URI="https://github.com/hughsie/libjcat/releases/download/${PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="+ed25519 +gpg gtk-doc +introspection +man +pkcs7 test vala"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/json-glib:=
+ ed25519? (
+ net-libs/gnutls:=
+ )
+ gpg? (
+ app-crypt/gpgme:=
+ dev-libs/libgpg-error
+ )
+ introspection? ( dev-libs/gobject-introspection:= )
+ pkcs7? ( net-libs/gnutls:= )
+ vala? ( dev-lang/vala:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ $(python_gen_any_dep '
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ')
+ gtk-doc? ( dev-util/gtk-doc )
+ man? ( sys-apps/help2man )
+ test? ( net-libs/gnutls[tools] )
+"
+
+RESTRICT="!test? ( test )"
+
+python_check_deps() {
+ python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use vala && vala_setup
+}
+
+src_prepare() {
+ xdg_environment_reset
+ default
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use ed25519)
+ $(meson_use gtk-doc gtkdoc)
+ $(meson_use gpg)
+ $(meson_use introspection)
+ $(meson_use man)
+ $(meson_use pkcs7)
+ $(meson_use test tests)
+ $(meson_use vala vapi)
+ )
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+
+ if use test; then
+ # Preventing tests from being installed in the first place is a moving target,
+ # just axe them all afterwards.
+ rm -rf \
+ "${ED}"/usr/libexec/installed-tests \
+ "${ED}"/usr/share/installed-tests \
+ || die
+ fi
+}