mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/modemmanager: add 1.24.2
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44254 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
e2a5eb39eb
commit
ea48bc189b
@@ -1,2 +1,3 @@
|
||||
DIST ModemManager-1.20.6.tar.bz2 1467367 BLAKE2B 6fc6e678fac966ccd6697e469152e3b0fa93d868d16985828e01b4890ba35beacc8f1c5a47a74bf8586035088c6f61124d12214d022e30dbc3b9196b0dd6f28e SHA512 2c5c121d6a74a7dc0922231a88ba64e350e947a57dae25ce7e8c58b6041b60fd5c4ff395e641beef3447b0239e1e60c15c2752e47e77a648a1bea9ef5f3ac577
|
||||
DIST ModemManager-1.24.0.tar.bz2 1512276 BLAKE2B 58c5326df6fb028fd37c3fc397ee2fe9f2f82f2189040f7bf35484697b43b4053251d3e443dce0c32d64c26e53189606fa24f0540fc8a08941dd9ba8b7b0b180 SHA512 3ff8605abf40551501c867dd3dda0a591524d9796962dca095a9101d538d90463b1620f1af20a4fce8235742fa995f9445b7a88ed7c403da4c043aa59df55d79
|
||||
DIST ModemManager-1.24.2.tar.bz2 1518460 BLAKE2B 744908c51f4e07652d4df0838df883385c1128de6e072a11af58bcd4b2a6fef90f9689667e362855d6406e60c964c0ecb0cd32313be806504f676fa8f76a6630 SHA512 692d0699037845f7e189cc854f6fbaab90615c9eaaada83a00a02745d13bd87afac16349a4211425929a84cf373fda18475479bff64c9fe89cb35b361fb45663
|
||||
|
||||
124
net-misc/modemmanager/modemmanager-1.24.2.ebuild
Normal file
124
net-misc/modemmanager/modemmanager-1.24.2.ebuild
Normal file
@@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit bash-completion-r1 meson python-any-r1 optfeature systemd udev vala xdg
|
||||
|
||||
DESCRIPTION="Modem and mobile broadband management libraries"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/ModemManager/ https://gitlab.freedesktop.org/mobile-broadband/ModemManager"
|
||||
SRC_URI="https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/archive/${PV}/ModemManager-${PV}.tar.bz2"
|
||||
S="${WORKDIR}/ModemManager-${PV}"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
IUSE="elogind gtk-doc +introspection +mbim policykit +qmi +qrtr selinux systemd test +udev vala"
|
||||
REQUIRED_USE="
|
||||
?? ( elogind systemd )
|
||||
qrtr? ( qmi )
|
||||
vala? ( introspection )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.56.0:2
|
||||
sys-apps/dbus
|
||||
udev? ( >=dev-libs/libgudev-232:= )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
||||
mbim? ( >=net-libs/libmbim-1.32.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.106[introspection?] )
|
||||
qmi? ( >=net-libs/libqmi-1.36.0:=[qrtr?] )
|
||||
qrtr? ( >=net-libs/libqrtr-glib-1.0.0:= )
|
||||
elogind? ( sys-auth/elogind )
|
||||
systemd? ( >=sys-apps/systemd-209 )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
selinux? ( sec-policy/selinux-modemmanager )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-libs/libxslt
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
gtk-doc? ( dev-util/gtk-doc )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
|
||||
python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_setup
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Let's avoid BuildRequiring bash-completion, install it manually
|
||||
local emesonargs=(
|
||||
-Dbash_completion=false
|
||||
$(meson_use gtk-doc gtk_doc)
|
||||
$(meson_use introspection)
|
||||
|
||||
$(meson_use udev)
|
||||
-Dudevdir="${EPREFIX}$(get_udevdir)"
|
||||
-Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
|
||||
$(meson_use systemd systemd_journal)
|
||||
|
||||
-Dpolkit=$(usex policykit permissive no)
|
||||
|
||||
$(meson_use mbim)
|
||||
$(meson_use qmi)
|
||||
$(meson_use qrtr)
|
||||
|
||||
$(meson_use vala vapi)
|
||||
)
|
||||
if use systemd || use elogind; then
|
||||
emesonargs+=(-Dsystemd_suspend_resume=true)
|
||||
else
|
||||
emesonargs+=(-Dsystemd_suspend_resume=false)
|
||||
fi
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
newinitd "${FILESDIR}/modemmanager.initd" modemmanager
|
||||
newbashcomp cli/mmcli-completion mmcli
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
if ! use udev; then
|
||||
ewarn "You have built ModemManager without udev support. You may have to teach it"
|
||||
ewarn "about your modem port manually."
|
||||
fi
|
||||
|
||||
use udev && udev_reload
|
||||
|
||||
systemd_reenable ModemManager.service
|
||||
|
||||
optfeature "the case your modem shows up as a storage drive" sys-apps/usb_modeswitch
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
use udev && udev_reload
|
||||
}
|
||||
Reference in New Issue
Block a user