net-wireless/artemis: treeclean
I've not used this in a while, and I'm too lazy to support the new major version.
This commit is contained in:
parent
77025f19e1
commit
101e0ee286
@ -1 +0,0 @@
|
||||
DIST artemis-3.2.4.tar.gz 1365022 BLAKE2B d5a7f933779294fbba9c650dc5aa3a82addc17ca743641318987730a029c0f1d37f59a6fae7705b654fec5bb5a547cdd3202ccf52d6f3f89da5b02e4a445f513 SHA512 e3802122d02fcc8d09156489b8ad9bb08d5570ca6d17042d7a55984ee5c2a4af1316b3203b561e43f8f88a41db67b725bea9fe7e3ae5daeea1ea1925df3903f4
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
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"
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
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"
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd /opt/artemis
|
||||
python3 artemis.py $@
|
@ -1,7 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=Artemis
|
||||
Type=Application
|
||||
StartupWMClass=artemis3
|
||||
Exec=artemis
|
||||
Terminal=false
|
||||
Icon=artemis3
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>flewkey@2a03.party</email>
|
||||
<name>Ryan Fox</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">AresValley/Artemis</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user