1
0

net-wireless/artemis: add 3.2.2; fix Python deps

This commit is contained in:
Ryan Fox 2022-08-05 16:26:09 -07:00
parent 0b7def7d19
commit b5eb105624
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
3 changed files with 86 additions and 11 deletions

View File

@ -1,6 +1,8 @@
AUX artemis 48 BLAKE2B 47f57400f037dac39f3568aacf2eb1daea8082a48e49aa8c4a08843b818a840aaee1d25b63b971bec706314cc1ca0b50963fdafc63868fbefaca7b9b192952fe SHA512 017342a7ab32e18844607350599ea54a16af6a2b1f216d694fd8e2a83f8108b8b0dee9ad3ea7b333fcd6dc9830445feabfcf7a93835005ba7011c696c0b23756 AUX artemis 48 BLAKE2B 47f57400f037dac39f3568aacf2eb1daea8082a48e49aa8c4a08843b818a840aaee1d25b63b971bec706314cc1ca0b50963fdafc63868fbefaca7b9b192952fe SHA512 017342a7ab32e18844607350599ea54a16af6a2b1f216d694fd8e2a83f8108b8b0dee9ad3ea7b333fcd6dc9830445feabfcf7a93835005ba7011c696c0b23756
AUX artemis.desktop 112 BLAKE2B cc0e54c14b915d80cdb43e55f63990a906cac848c7afb9e708c3345fe742931c3e6ab41d0af45667c2c93a56eb14beab5265ecd961fe3349d68afaf9fc194081 SHA512 71d34a8c2b3e58c7f38ec6c3f55fa34a9bbd4c0c1bdb789518c27350f9cb50260920407333afa33c13ade18dc7b504332b9e92a8bc46f14471b1c2e7e89ef5ba AUX artemis.desktop 112 BLAKE2B cc0e54c14b915d80cdb43e55f63990a906cac848c7afb9e708c3345fe742931c3e6ab41d0af45667c2c93a56eb14beab5265ecd961fe3349d68afaf9fc194081 SHA512 71d34a8c2b3e58c7f38ec6c3f55fa34a9bbd4c0c1bdb789518c27350f9cb50260920407333afa33c13ade18dc7b504332b9e92a8bc46f14471b1c2e7e89ef5ba
DIST artemis-3.2.1.tar.gz 1351008 BLAKE2B 8d9a8d14f26d0743d35aed4226aaceb372b47d9ecc19c028dad6c3033f0723154e9010412c23fef832af22f34f81707128fbe2d8681add2787b6c934d1cdca8a SHA512 6a42d4d354e16d3323a2898179109bf8d1c9adecd5826e3578cb4831add2660514ccbba0eb3b9302799ffd08b6f2a4162b249c1ea2f59d2b0fbb6c44ff7acf75 DIST artemis-3.2.1.tar.gz 1351008 BLAKE2B 8d9a8d14f26d0743d35aed4226aaceb372b47d9ecc19c028dad6c3033f0723154e9010412c23fef832af22f34f81707128fbe2d8681add2787b6c934d1cdca8a SHA512 6a42d4d354e16d3323a2898179109bf8d1c9adecd5826e3578cb4831add2660514ccbba0eb3b9302799ffd08b6f2a4162b249c1ea2f59d2b0fbb6c44ff7acf75
DIST artemis-3.2.2.tar.gz 1362834 BLAKE2B cc298e34eb31a977e50a8d2612a63eef14993540d9e20409ad05d225ec82f679452f5e8f8ffc1e0852d1879a151f8f0f05f79468bcd1c3c311bde3b26d0fbead SHA512 613b15f6535933edffc27c3809ca4b81afe0c370bd2c29203555cb12f7f27739c950b3cbdb5af5af043aefac579c2a8e6a8b61644eba23245e15fc14b2e993cc
EBUILD artemis-3.2.1.ebuild 1619 BLAKE2B 5c1e9a27857096e37061d87299b54d7c90fc883bb179fb6d134808f82b37fe14c97b9b05a9c4477b8f5e7358a6b1c7e2b997e0a1b7c16305dcf9cae3d9c3b18a SHA512 b53dc42d5255b3fd0d9ee765a794236c236bf7349d18cd5c4e95c00dcd7f46dccc47201355ae6b7423e30a734aecd52c3f2cd0eaede5b6c9ff5255de027ac401 EBUILD artemis-3.2.1.ebuild 1619 BLAKE2B 5c1e9a27857096e37061d87299b54d7c90fc883bb179fb6d134808f82b37fe14c97b9b05a9c4477b8f5e7358a6b1c7e2b997e0a1b7c16305dcf9cae3d9c3b18a SHA512 b53dc42d5255b3fd0d9ee765a794236c236bf7349d18cd5c4e95c00dcd7f46dccc47201355ae6b7423e30a734aecd52c3f2cd0eaede5b6c9ff5255de027ac401
EBUILD artemis-9999.ebuild 1619 BLAKE2B 5c1e9a27857096e37061d87299b54d7c90fc883bb179fb6d134808f82b37fe14c97b9b05a9c4477b8f5e7358a6b1c7e2b997e0a1b7c16305dcf9cae3d9c3b18a SHA512 b53dc42d5255b3fd0d9ee765a794236c236bf7349d18cd5c4e95c00dcd7f46dccc47201355ae6b7423e30a734aecd52c3f2cd0eaede5b6c9ff5255de027ac401 EBUILD artemis-3.2.2.ebuild 1978 BLAKE2B 38153df76629af7938e75e982b7dc4cbe14f87303ce5fd6abdb50fed1d297def23928072f84d68d849bdc551aaef553c139343a4499e22104ba937b27545c402 SHA512 9f4092fc8def20bc225ecbf21399e10d6815d98e0bbaeed3f33f4f3b75a8f56d995a9d277e73e7654ba06c1a07192a0a84b034c7028667b1cd5094dd80c50749
EBUILD artemis-9999.ebuild 1978 BLAKE2B 38153df76629af7938e75e982b7dc4cbe14f87303ce5fd6abdb50fed1d297def23928072f84d68d849bdc551aaef553c139343a4499e22104ba937b27545c402 SHA512 9f4092fc8def20bc225ecbf21399e10d6815d98e0bbaeed3f33f4f3b75a8f56d995a9d277e73e7654ba06c1a07192a0a84b034c7028667b1cd5094dd80c50749
MISC metadata.xml 325 BLAKE2B f28a6799634ac42627d1a50e76037519477390a9cfa3f578e845bda08f700b77bb85a3df94ca2684e8ddd0c4fe630cd523fc3671594e815c200e1beba6790994 SHA512 10401d476316597f35c4368ff6dc2baca8d57c820cebb4b5185effbff9573e637d1edaf551d08b833f22b99d3a881cbc9e96d0a8a2f1d286de7ba2d2055b4ddd MISC metadata.xml 325 BLAKE2B f28a6799634ac42627d1a50e76037519477390a9cfa3f578e845bda08f700b77bb85a3df94ca2684e8ddd0c4fe630cd523fc3671594e815c200e1beba6790994 SHA512 10401d476316597f35c4368ff6dc2baca8d57c820cebb4b5185effbff9573e637d1edaf551d08b833f22b99d3a881cbc9e96d0a8a2f1d286de7ba2d2055b4ddd

View File

@ -0,0 +1,68 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit python-single-r1 xdg
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/AresValley/Artemis.git"
else
SRC_URI="https://github.com/AresValley/Artemis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
MY_PN="Artemis"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Radio Signals Recognition Manual"
HOMEPAGE="https://aresvalley.com/Artemis/"
LICENSE="GPL-3"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND=""
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
>=dev-python/aiohttp-3.8.1[${PYTHON_USEDEP}]
>=dev-python/certifi-2022.6.15[${PYTHON_USEDEP}]
>=dev-python/numpy-1.23.1[${PYTHON_USEDEP}]
>=dev-python/pandas-1.4.3[${PYTHON_USEDEP}]
>=dev-python/pygame-2.1.2[${PYTHON_USEDEP}]
>=dev-python/PyQt5-5.15.6[${PYTHON_USEDEP}]
>=dev-python/qtawesome-1.1.1[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.26.9[${PYTHON_USEDEP}]
')
"
BDEPEND="${RDEPEND}"
src_prepare() {
default
# Do not delete the Data directory
sed -i 's/import remove/import remove, system/' "${S}/src/downloadtargetfactory.py" || die
sed -i 's;rmtree(Constants.DATA_FOLDER.*;os.system("rm -rf "+Constants.DATA_FOLDER+"/*");' "${S}/src/downloadtargetfactory.py" || die
}
src_install() {
dodir /opt
cp -r "${S}/src" "${D}/opt/${PN}" || die
# TODO: Submit PR to use XDG dirs
touch "${D}/opt/${PN}/info.log" || die
echo "{}" > "${D}/opt/${PN}/settings.json" || die
keepdir "/opt/${PN}/Data"
for target in info.log settings.json Data
do
chown root:users "${D}/opt/${PN}/${target}" || die
chmod g+rw "${D}/opt/${PN}/${target}" || die
done
dodir /usr/share/applications
dodir /usr/share/icons
cp "${FILESDIR}/artemis.desktop" "${D}/usr/share/applications" || die
cp "${S}/spec_files/Linux/artemis3.svg" "${D}/usr/share/icons" || die
dobin "${FILESDIR}/artemis"
}

View File

@ -3,7 +3,8 @@
EAPI=8 EAPI=8
inherit xdg PYTHON_COMPAT=( python3_{8..10} )
inherit python-single-r1 xdg
if [[ ${PV} == 9999 ]]; then if [[ ${PV} == 9999 ]]; then
inherit git-r3 inherit git-r3
@ -20,19 +21,23 @@ DESCRIPTION="Radio Signals Recognition Manual"
HOMEPAGE="https://aresvalley.com/Artemis/" HOMEPAGE="https://aresvalley.com/Artemis/"
LICENSE="GPL-3" LICENSE="GPL-3"
SLOT="0" SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="" DEPEND=""
RDEPEND=" RDEPEND="
dev-python/aiohttp ${PYTHON_DEPS}
dev-python/certifi $(python_gen_cond_dep '
dev-python/numpy >=dev-python/aiohttp-3.8.1[${PYTHON_USEDEP}]
dev-python/pandas >=dev-python/certifi-2022.6.15[${PYTHON_USEDEP}]
>=dev-python/pygame-1.9.6 >=dev-python/numpy-1.23.1[${PYTHON_USEDEP}]
dev-python/PyQt5 >=dev-python/pandas-1.4.3[${PYTHON_USEDEP}]
dev-python/qtawesome >=dev-python/pygame-2.1.2[${PYTHON_USEDEP}]
dev-python/urllib3 >=dev-python/PyQt5-5.15.6[${PYTHON_USEDEP}]
>=dev-python/qtawesome-1.1.1[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.26.9[${PYTHON_USEDEP}]
')
" "
BDEPEND="" BDEPEND="${RDEPEND}"
src_prepare() { src_prepare() {
default default