net-libs/libslirp - 4.9.3 (gentoo)

Search

Install

Install this version:

emerge -a =net-libs/libslirp-4.9.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/libslirp-4.9.3

Or alternatively:

emerge --autounmask-write -a =net-libs/libslirp-4.9.3

Package Information

Description:
A TCP-IP emulator used to provide virtual networking services
Homepage:
https://gitlab.freedesktop.org/slirp/libslirp
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
4.9.3 8 ~amd64 ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

MY_P="${PN}-v${PV}"

DESCRIPTION="A TCP-IP emulator used to provide virtual networking services"
HOMEPAGE="https://gitlab.freedesktop.org/slirp/libslirp"
SRC_URI="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${PV}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
S=${WORKDIR}/${MY_P}

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~x86"
IUSE="static-libs valgrind"

RDEPEND="dev-libs/glib:="
# Valgrind usage is automagic but it's not so bad given it's a header-only dep.
DEPEND="${RDEPEND}
	valgrind? ( dev-debug/valgrind )
"

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
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/libslirp | euse -E <flag> -p net-libs/libslirp | euse -D <flag> -p net-libs/libslirp

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

dev-libs/glib:=
	valgrind? ( dev-debug/valgrind )

RDEPEND

dev-libs/glib:=

Manifest for 4.9.3

Type File Size Source URLs
DIST libslirp-4.9.3.tar.bz2 133720 bytes https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.9.3/libslirp-v4.9.3.tar.bz2