diff options
Diffstat (limited to 'dev-libs/nng')
-rw-r--r-- | dev-libs/nng/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/nng/files/nng-1.10.1-version.patch | 12 | ||||
-rw-r--r-- | dev-libs/nng/metadata.xml | 25 | ||||
-rw-r--r-- | dev-libs/nng/nng-1.10.1.ebuild | 39 |
4 files changed, 80 insertions, 0 deletions
diff --git a/dev-libs/nng/Manifest b/dev-libs/nng/Manifest new file mode 100644 index 000000000000..6a943978649f --- /dev/null +++ b/dev-libs/nng/Manifest @@ -0,0 +1,4 @@ +AUX nng-1.10.1-version.patch 486 BLAKE2B 9b5511b5d1fc33be5e9dccd2796e8330e126b689077e4b3da8dae04ee807549d594319f17a017931c6bdbbb507e13055ecf148a6f7efecde8df350723da28ffc SHA512 619962a50f51008c06430e78b5a8932251c3d6eb9064de1ed6544818aecb97a3e3a15b188eef938b012cff2b2089ecf7e61d52ff18ccaa7b557f636b48d8fb5f +DIST nng-1.10.1.tar.gz 769608 BLAKE2B 199a9d67d9806ad493f3e3c3de20a1284c4a8ccffece223c5cfae6c0b7800d596a0f7342f51ff9ed346b00b6c49c4697c64dad3b0046315b3fa6d3a1b9fb3c74 SHA512 79d5d176e96591951379150c632322553fb96c62a254a1366303bb491612f84f7b07a7c9e1e1391173d3beb673c4568be3553cc7002165fc9832d738cc0d9a54 +EBUILD nng-1.10.1.ebuild 1010 BLAKE2B 6de8fdf6dc068356ff4c8d066774f2116005363b68be8c5fd676635f3ae805f972106e0b96e1839cddca85711021c472081d6dd62790a6e24b874b72a1462b0f SHA512 8e310b3c143bde4184474353ec16615d2b64a3cb7b3aa444249d33a553360ca4f8c1a399bf79c061db8fc4ecde585ed61022ca85adbca9883899205268bd63f4 +MISC metadata.xml 921 BLAKE2B 28e320519e00126705ca25cd4c6ee5341df218e602a9a22e9d15347270e9dea095bd303c96fdc00215e233dddb09bbdfb1afd04e45fd94e8242e90bce67f2f89 SHA512 c76253c7177a85a2c0c50b7d92443edbce347e44fd1ccdc439d5d66eaa7181f1f24b98aa101f347cf8cae09d8694f8886d65e84a3143a31dd0e726792bbffb7f diff --git a/dev-libs/nng/files/nng-1.10.1-version.patch b/dev-libs/nng/files/nng-1.10.1-version.patch new file mode 100644 index 000000000000..1cf77b351b3f --- /dev/null +++ b/dev-libs/nng/files/nng-1.10.1-version.patch @@ -0,0 +1,12 @@ +diff -Naur nng-1.10.1-orig/include/nng/nng.h nng-1.10.1/include/nng/nng.h +--- nng-1.10.1-orig/include/nng/nng.h 2025-01-26 08:38:16.000000000 -0800 ++++ nng-1.10.1/include/nng/nng.h 2025-03-13 00:02:11.356499237 -0700 +@@ -58,7 +58,7 @@ + // may not necessarily match the ABI versions. + #define NNG_MAJOR_VERSION 1 + #define NNG_MINOR_VERSION 10 +-#define NNG_PATCH_VERSION 0 ++#define NNG_PATCH_VERSION 1 + // if non-empty (i.e. "pre"), this is a pre-release + #define NNG_RELEASE_SUFFIX "" + diff --git a/dev-libs/nng/metadata.xml b/dev-libs/nng/metadata.xml new file mode 100644 index 000000000000..e14b4cdddca6 --- /dev/null +++ b/dev-libs/nng/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>zoltan@sinustrom.info</email> + <name>Zoltan Puskas</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="compat">Enable compatibility with the legacy nanomsg API</flag> + <flag name="deprecated">Build deprecated features</flag> + <flag name="tools">Build and install command line tools</flag> + </use> + <longdescription> + NNG is a lightweight, broker-less library, offering a simple API to + solve common recurring messaging problems, such as publish/subscribe, + RPC-style request/reply, or service discovery. + </longdescription> + <upstream> + <remote-id type="github">nanomsg/nng</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-libs/nng/nng-1.10.1.ebuild b/dev-libs/nng/nng-1.10.1.ebuild new file mode 100644 index 000000000000..a69d6fe5b2d4 --- /dev/null +++ b/dev-libs/nng/nng-1.10.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Light-weight brokerless messaging" +HOMEPAGE="https://nng.nanomsg.org/" +SRC_URI="https://github.com/nanomsg/nng/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +# compat and deprecated match upstream's default choice +IUSE="+compat +deprecated doc ssl test tools" + +DEPEND="ssl? ( net-libs/mbedtls:= )" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( dev-ruby/asciidoctor )" + +RESTRICT="test" # Needs network + +DOCS=(README.adoc docs/RATIONALE.adoc) + +PATCHES=( "${FILESDIR}"/${P}-version.patch ) + +src_configure() { + local mycmakeargs=( + -DNNG_ELIDE_DEPRECATED=$(usex deprecated OFF ON) + -DNNG_ENABLE_COMPAT=$(usex compat ON OFF) + -DNNG_ENABLE_TLS=$(usex ssl ON OFF) + -DNNG_TESTS=$(usex test ON OFF) + -DNNG_ENABLE_DOC=$(usex doc ON OFF) + -DNNG_ENABLE_NNGCAT=$(usex tools ON OFF) + -DNNG_TOOLS=$(usex tools ON OFF) + ) + cmake_src_configure +} |