summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libslirp/Manifest1
-rw-r--r--net-libs/libslirp/libslirp-4.6.0.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/net-libs/libslirp/Manifest b/net-libs/libslirp/Manifest
index eaa6c1a9a550..52c684af539e 100644
--- a/net-libs/libslirp/Manifest
+++ b/net-libs/libslirp/Manifest
@@ -1,2 +1,3 @@
DIST libslirp-4.3.1.tar.gz 127008 BLAKE2B de40980521a54367fda73b9a67a80159ff14e8ea073086d8df3b42028ffe778b62f0aabe2b3f0929e168c73c453a8eda3fe0bb866d22de5b0712775e9cece19f SHA512 fa38a5e508b00802538f8466b8b52fc4842d6f7f74caa399db1011c15bb37198678415147327a606e3f259fd5def9390012df1d4dc76e8869e9bb77ca6514005
DIST libslirp-4.4.0.tar.gz 128453 BLAKE2B da747071c22522649627dd8b2e1cd621129a6898b2391d0da2a8f032068f129d11de3dc0e0f94ac38b36c79e2cc0c9508a3bd3e9a07beca914219146c82faec0 SHA512 27f5d41730a3070df4ead1af4ec42fdff141289e5072ec93053b9236d9197bc3f1a3a804c85eef08458ab47a0d4921457df57ece5aae42cab9f068ccda31f3ee
+DIST libslirp-4.6.0.tar.gz 135533 BLAKE2B 62be67192a68b4c8bdc0b84f1ba2f1d3617a2c94c14720f9eb2f4ca317af59b59ce4d2147903b4055e60f4de262db7500345db6341b083a1d6f48e9f6a2edd04 SHA512 f3464818182bd2d8d21fd1f158172acd84523d8c252f21cab4f29317606b01ebd772a612dc522255e7f4a169608e6604b389e433e65d3163ba591f639e744a81
diff --git a/net-libs/libslirp/libslirp-4.6.0.ebuild b/net-libs/libslirp/libslirp-4.6.0.ebuild
new file mode 100644
index 000000000000..26b1487afc74
--- /dev/null
+++ b/net-libs/libslirp/libslirp-4.6.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson
+
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+MY_P="${PN}-v${PV}"
+SRC_URI="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="A TCP-IP emulator used to provide virtual networking services."
+HOMEPAGE="https://gitlab.freedesktop.org/slirp/libslirp"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/glib:="
+
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ echo "${PV}" > .tarball-version || die
+ echo -e "#!${BASH}\necho -n \$(cat '${S}/.tarball-version')" > build-aux/git-version-gen || die
+ default
+}
+
+src_configure() {
+ local emesonargs=(
+ -Ddefault_library=$(usex static-libs both shared)
+ )
+ meson_src_configure
+}