1
0
Fork 0

net-wireless/artemis: drop 3.2.1, 3.2.2

This commit is contained in:
Ryan Fox 2023-03-26 21:54:06 -07:00
parent d9fc9f42d6
commit 27ff1b9afc
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
3 changed files with 0 additions and 133 deletions

View File

@ -1,3 +1 @@
DIST artemis-3.2.1.tar.gz 1351008 BLAKE2B 8d9a8d14f26d0743d35aed4226aaceb372b47d9ecc19c028dad6c3033f0723154e9010412c23fef832af22f34f81707128fbe2d8681add2787b6c934d1cdca8a SHA512 6a42d4d354e16d3323a2898179109bf8d1c9adecd5826e3578cb4831add2660514ccbba0eb3b9302799ffd08b6f2a4162b249c1ea2f59d2b0fbb6c44ff7acf75
DIST artemis-3.2.2.tar.gz 1362834 BLAKE2B cc298e34eb31a977e50a8d2612a63eef14993540d9e20409ad05d225ec82f679452f5e8f8ffc1e0852d1879a151f8f0f05f79468bcd1c3c311bde3b26d0fbead SHA512 613b15f6535933edffc27c3809ca4b81afe0c370bd2c29203555cb12f7f27739c950b3cbdb5af5af043aefac579c2a8e6a8b61644eba23245e15fc14b2e993cc
DIST artemis-3.2.4.tar.gz 1365022 BLAKE2B d5a7f933779294fbba9c650dc5aa3a82addc17ca743641318987730a029c0f1d37f59a6fae7705b654fec5bb5a547cdd3202ccf52d6f3f89da5b02e4a445f513 SHA512 e3802122d02fcc8d09156489b8ad9bb08d5570ca6d17042d7a55984ee5c2a4af1316b3203b561e43f8f88a41db67b725bea9fe7e3ae5daeea1ea1925df3903f4

View File

@ -1,63 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit 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"
DEPEND=""
RDEPEND="
dev-python/aiohttp
dev-python/certifi
dev-python/numpy
dev-python/pandas
>=dev-python/pygame-1.9.6
dev-python/PyQt5
dev-python/qtawesome
dev-python/urllib3
"
BDEPEND=""
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

@ -1,68 +0,0 @@
# 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"
}