adding meshtastic-2.7.0.ebuild (update)
This commit is contained in:
parent
c1e60f1941
commit
eb4b55b9bc
3 changed files with 174 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
|||
DIST gtk-meshtastic-client-1.2.tar.gz 2253578 BLAKE2B ac3a5c8cf36528ed26570ead8d8135f2262833a453112517b372104dea3191f07f73fbb1a1005cda1811bf0886c3b4617038a2c7586498baf494dda51c423873 SHA512 7b29977e0c6e4f95211afe4a36c9ddd0485cf02ed5658e0e4dcfcafbe5e4cb1cd9d32cbd95789a36b2ee0a1f5d5a6acb424bf4485319bc80d9e844afc4889ac3
|
||||
DIST meshtastic-2.5.1.tar.gz 361093 BLAKE2B 52a06c7141089a6a7311057934c124b6a478efc567e06ae401c1876ebd17c89aea43b316f02539e6bf1b7de91adf73ad6203f4e3e847efac03de20d333f09b3f SHA512 c9c9cb13602eef1847db0f04b2cb47b7d1fbc4cb6a23d1756a62eadfad00d05a6c13117a73978db07aa3ee16f51712e1b5d17eec77c06b3fea348fe58c3491da
|
||||
DIST meshtastic-2.6.4.tar.gz 493132 BLAKE2B 5075529e28163d23a4943144de66c84a2133f51ccceb694b8eb00adae721b00f511509fe885c3a2f570e09bff0ca74dae40eeda6a57f00540dd5e4c95459df70 SHA512 32d53c19eab010d702993f51b9294000b5627c803c3e1b840e6aafb1c88b289b31a6863b13e6e60538c886c0d90c26c3509d27ce98e6c43ed12efd23e350169d
|
||||
DIST meshtastic-2.7.0.tar.gz 498158 BLAKE2B 302d49fb1dbf32bdb1ef1b681be927fc5cd3f2c13ded8e1c6ea90ca7071d26a20bf82dafe780e36efeb7eb7ace56563108ed2f2965ea8b6cfa1a12ff184a7c4b SHA512 8c309cb9f34ab564acf4f42c82036998c0f821d437b364fd5000d01a362cf0b00a9ac174e99a38cae920dcdb2d31470e9e09f489dca5cc0477ea842df4de99ab
|
||||
|
|
172
media-radio/meshtastic/meshtastic-2.7.0.ebuild
Normal file
172
media-radio/meshtastic/meshtastic-2.7.0.ebuild
Normal file
|
@ -0,0 +1,172 @@
|
|||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
inherit distutils-r1 meson python-r1
|
||||
|
||||
DESCRIPTION="Python CLI and API for Meshtastic devices, with optional GUI client"
|
||||
HOMEPAGE="https://github.com/meshtastic/python https://gitlab.com/kop316/gtk-meshtastic-client/"
|
||||
|
||||
GUI_PV="1.2"
|
||||
SRC_URI="
|
||||
https://github.com/meshtastic/python/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
|
||||
gui? ( https://gitlab.com/kop316/gtk-meshtastic-client/-/archive/${GUI_PV}/gtk-meshtastic-client-${GUI_PV}.tar.gz )
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="gui minimal +qrcode +tun"
|
||||
|
||||
# Common Python dependencies
|
||||
COMMON_DEPEND="
|
||||
>=dev-python/bleak-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-4.3.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-6.31.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyserial-3.5-r2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-6.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.32.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-80.9.0-r1[${PYTHON_USEDEP}]
|
||||
>=dev-python/tabulate-0.9.0-r1[${PYTHON_USEDEP}]
|
||||
>=dev-python/build-1.2.2_p1-r2[${PYTHON_USEDEP}]
|
||||
>=dev-python/dotmap-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pypubsub-4.0.3[${PYTHON_USEDEP}]
|
||||
!minimal? ( dev-python/print-color[${PYTHON_USEDEP}] )
|
||||
qrcode? ( >=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}] )
|
||||
tun? ( >=dev-python/pytap2-2.3.0[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
gui? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/meson-python[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
gui? (
|
||||
dev-libs/glib:2
|
||||
x11-libs/gdk-pixbuf:2
|
||||
dev-libs/gobject-introspection
|
||||
gui-libs/libadwaita[introspection]
|
||||
>=gui-libs/gtk-4.10:4[introspection]
|
||||
>=x11-libs/pango-1.44.0[introspection]
|
||||
media-libs/libshumate[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pygobject-3.36[${PYTHON_USEDEP},cairo]
|
||||
dev-python/dotmap[${PYTHON_USEDEP}]
|
||||
dev-python/pyqrcode[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-python/poetry-core[${PYTHON_USEDEP}]
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
dev-python/installer[${PYTHON_USEDEP}]
|
||||
gui? (
|
||||
dev-util/desktop-file-utils
|
||||
x11-libs/gtk+
|
||||
)
|
||||
"
|
||||
|
||||
S="${WORKDIR}/python-${PV}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if use gui; then
|
||||
mv "${WORKDIR}/gtk-meshtastic-client-${GUI_PV}" "${WORKDIR}/gtk-meshtastic-client" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
distutils-r1_src_configure
|
||||
if use gui; then
|
||||
[[ -f "${WORKDIR}/gtk-meshtastic-client/meson.build" ]] || die "meson.build not found in ${WORKDIR}/gtk-meshtastic-client"
|
||||
mkdir -p "${WORKDIR}/gui-build" || die
|
||||
pushd "${WORKDIR}/gui-build" || die
|
||||
python_setup
|
||||
meson setup \
|
||||
--prefix=/usr \
|
||||
--libdir=lib64 \
|
||||
--localstatedir=/var/lib \
|
||||
--sysconfdir=/etc \
|
||||
--wrap-mode=nodownload \
|
||||
--build.pkg-config-path=/usr/share/pkgconfig \
|
||||
--pkg-config-path=/usr/share/pkgconfig \
|
||||
-Db_pch=false \
|
||||
-Dwerror=false \
|
||||
-Dbuildtype=plain \
|
||||
"${WORKDIR}/gtk-meshtastic-client" \
|
||||
"${WORKDIR}/gui-build" || die "Meson setup failed"
|
||||
popd || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile
|
||||
if use gui; then
|
||||
pushd "${WORKDIR}/gui-build" || die
|
||||
python_setup
|
||||
meson_src_compile
|
||||
popd || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
dodoc README.md
|
||||
if use gui; then
|
||||
pushd "${WORKDIR}/gui-build" || die
|
||||
python_setup
|
||||
meson_src_install
|
||||
python_optimize
|
||||
python_fix_shebang "${ED}/usr/bin/gtk-meshtastic-client"
|
||||
popd || die
|
||||
|
||||
if [[ -f "${WORKDIR}/gtk-meshtastic-client/data/io.meshtastic.GtkClient.desktop" ]]; then
|
||||
insinto /usr/share/applications
|
||||
doins "${WORKDIR}/gtk-meshtastic-client/data/io.meshtastic.GtkClient.desktop"
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}/gtk-meshtastic-client/data/icons" ]]; then
|
||||
insinto /usr/share/icons
|
||||
doins -r "${WORKDIR}/gtk-meshtastic-client/data/icons"/*
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gui; then
|
||||
xdg_pkg_postinst
|
||||
glib-compile-schemas /usr/share/glib-2.0/schemas || die "Failed to compile GSettings schemas"
|
||||
update-desktop-database /usr/share/applications
|
||||
gtk-update-icon-cache -f -t /usr/share/icons/hicolor
|
||||
elog "The Meshtastic GTK Client has been installed and is available in your application menu."
|
||||
elog "To use the GUI, ensure a Meshtastic device is connected via serial, Bluetooth, or TCP."
|
||||
elog "For configuration details, visit: https://meshtastic.org/docs/software/python/gui-client/"
|
||||
elog "Report issues at: https://gitlab.com/kop316/gtk-meshtastic-client/-/issues"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gui; then
|
||||
update-desktop-database /usr/share/applications
|
||||
gtk-update-icon-cache -f -t /usr/share/icons/hicolor
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue