From 239ebcc34b45ebe7c21e741814ab088288531b06 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 5 Jul 2022 11:04:30 -0400 Subject: [PATCH] app-misc/siglo: save minimally used package from gentoo --- app-misc/siglo/Manifest | 1 + app-misc/siglo/siglo-0.9.9.ebuild | 51 +++++++++++++++++++ dev-python/gatt-python/Manifest | 1 + .../gatt-python/gatt-python-0.2.6.ebuild | 20 ++++++++ dev-python/gatt-python/metadata.xml | 12 +++++ 5 files changed, 85 insertions(+) create mode 100644 app-misc/siglo/Manifest create mode 100644 app-misc/siglo/siglo-0.9.9.ebuild create mode 100644 dev-python/gatt-python/Manifest create mode 100644 dev-python/gatt-python/gatt-python-0.2.6.ebuild create mode 100644 dev-python/gatt-python/metadata.xml diff --git a/app-misc/siglo/Manifest b/app-misc/siglo/Manifest new file mode 100644 index 000000000..2d33f2b8c --- /dev/null +++ b/app-misc/siglo/Manifest @@ -0,0 +1 @@ +DIST siglo-0.9.9.tar.gz 38697 BLAKE2B 0519169a2cd49e7ad17be7a051565bf2679e4eb56f022943b69d3abfc10049478f42c2d2e7a63eb89440f48cb7f0c359c415d9dd173ba6283ae961462311d4c4 SHA512 966b2513e0832ebfa3b30f1c7e28dba12bc9c2115ced5d58e6208d1c97b241fae999ec2bb78c704ad310dbd99fc03899ed92cba992bd07c9e38bb420063c1bf2 diff --git a/app-misc/siglo/siglo-0.9.9.ebuild b/app-misc/siglo/siglo-0.9.9.ebuild new file mode 100644 index 000000000..f7b9bd6bc --- /dev/null +++ b/app-misc/siglo/siglo-0.9.9.ebuild @@ -0,0 +1,51 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..10} ) +inherit gnome2-utils python-single-r1 meson xdg + +DESCRIPTION="GTK app to sync InfiniTime watch with PinePhone" +HOMEPAGE="https://github.com/alexr4535/siglo" +SRC_URI="https://github.com/alexr4535/siglo/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +DEPEND="" +RDEPEND="${DEPEND} + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/gatt-python[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + ')" +BDEPEND="${PYTHON_DEPS}" + +#tests seem to fail +#RESTRICT="test" + +src_configure() { + python_setup + sed -i "s#python.find_installation('python3').path()#\'${EPYTHON}\'#" src/meson.build + meson_src_configure +} + +src_install() { + meson_src_install + python_fix_shebang "${ED}/usr/bin" + python_optimize +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/dev-python/gatt-python/Manifest b/dev-python/gatt-python/Manifest new file mode 100644 index 000000000..de4b4c91e --- /dev/null +++ b/dev-python/gatt-python/Manifest @@ -0,0 +1 @@ +DIST gatt-python-0.2.6.tar.gz 11368 BLAKE2B 835721be6c0238e02cebf97acbac6041cd2bc37ecee01f6496cb2406edeec02346cd00425f8130026693ec30105c647e7246b3dd04da4b48c4021ef4e62d3018 SHA512 0751784e908132fac566f6c5c64de1bb4ca8273e099ff5becae7e5043c2c13ca3a2ef63e5585ac225088a83af15c794b797268c3abeeaedccc058fbd5cee0a09 diff --git a/dev-python/gatt-python/gatt-python-0.2.6.ebuild b/dev-python/gatt-python/gatt-python-0.2.6.ebuild new file mode 100644 index 000000000..a85dbe1fe --- /dev/null +++ b/dev-python/gatt-python/gatt-python-0.2.6.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Bluetooth GATT SDK for Python" +HOMEPAGE="https://github.com/getsenic/gatt-python" +SRC_URI="https://github.com/getsenic/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="amd64 arm64 x86" +SLOT="0" + +RDEPEND=" + net-wireless/bluez +" diff --git a/dev-python/gatt-python/metadata.xml b/dev-python/gatt-python/metadata.xml new file mode 100644 index 000000000..72e8ba053 --- /dev/null +++ b/dev-python/gatt-python/metadata.xml @@ -0,0 +1,12 @@ + + + + + + zerochaos@gentoo.org + Rick Farina + + + getsenic/gatt-python + +