net-wireless/artemis: New package
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
parent
ab1d8e1b1e
commit
95bde5e24d
6
net-wireless/artemis/Manifest
Normal file
6
net-wireless/artemis/Manifest
Normal file
@ -0,0 +1,6 @@
|
||||
AUX artemis 48 BLAKE2B 47f57400f037dac39f3568aacf2eb1daea8082a48e49aa8c4a08843b818a840aaee1d25b63b971bec706314cc1ca0b50963fdafc63868fbefaca7b9b192952fe SHA512 017342a7ab32e18844607350599ea54a16af6a2b1f216d694fd8e2a83f8108b8b0dee9ad3ea7b333fcd6dc9830445feabfcf7a93835005ba7011c696c0b23756
|
||||
AUX artemis.desktop 112 BLAKE2B cc0e54c14b915d80cdb43e55f63990a906cac848c7afb9e708c3345fe742931c3e6ab41d0af45667c2c93a56eb14beab5265ecd961fe3349d68afaf9fc194081 SHA512 71d34a8c2b3e58c7f38ec6c3f55fa34a9bbd4c0c1bdb789518c27350f9cb50260920407333afa33c13ade18dc7b504332b9e92a8bc46f14471b1c2e7e89ef5ba
|
||||
DIST artemis-3.2.1.tar.gz 1351008 BLAKE2B 8d9a8d14f26d0743d35aed4226aaceb372b47d9ecc19c028dad6c3033f0723154e9010412c23fef832af22f34f81707128fbe2d8681add2787b6c934d1cdca8a SHA512 6a42d4d354e16d3323a2898179109bf8d1c9adecd5826e3578cb4831add2660514ccbba0eb3b9302799ffd08b6f2a4162b249c1ea2f59d2b0fbb6c44ff7acf75
|
||||
EBUILD artemis-3.2.1.ebuild 1619 BLAKE2B 5c1e9a27857096e37061d87299b54d7c90fc883bb179fb6d134808f82b37fe14c97b9b05a9c4477b8f5e7358a6b1c7e2b997e0a1b7c16305dcf9cae3d9c3b18a SHA512 b53dc42d5255b3fd0d9ee765a794236c236bf7349d18cd5c4e95c00dcd7f46dccc47201355ae6b7423e30a734aecd52c3f2cd0eaede5b6c9ff5255de027ac401
|
||||
EBUILD artemis-9999.ebuild 1619 BLAKE2B 5c1e9a27857096e37061d87299b54d7c90fc883bb179fb6d134808f82b37fe14c97b9b05a9c4477b8f5e7358a6b1c7e2b997e0a1b7c16305dcf9cae3d9c3b18a SHA512 b53dc42d5255b3fd0d9ee765a794236c236bf7349d18cd5c4e95c00dcd7f46dccc47201355ae6b7423e30a734aecd52c3f2cd0eaede5b6c9ff5255de027ac401
|
||||
MISC metadata.xml 325 BLAKE2B f28a6799634ac42627d1a50e76037519477390a9cfa3f578e845bda08f700b77bb85a3df94ca2684e8ddd0c4fe630cd523fc3671594e815c200e1beba6790994 SHA512 10401d476316597f35c4368ff6dc2baca8d57c820cebb4b5185effbff9573e637d1edaf551d08b833f22b99d3a881cbc9e96d0a8a2f1d286de7ba2d2055b4ddd
|
63
net-wireless/artemis/artemis-3.2.1.ebuild
Normal file
63
net-wireless/artemis/artemis-3.2.1.ebuild
Normal file
@ -0,0 +1,63 @@
|
||||
# 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"
|
||||
}
|
63
net-wireless/artemis/artemis-9999.ebuild
Normal file
63
net-wireless/artemis/artemis-9999.ebuild
Normal file
@ -0,0 +1,63 @@
|
||||
# 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"
|
||||
}
|
3
net-wireless/artemis/files/artemis
Normal file
3
net-wireless/artemis/files/artemis
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cd /opt/artemis
|
||||
python3 artemis.py $@
|
7
net-wireless/artemis/files/artemis.desktop
Normal file
7
net-wireless/artemis/files/artemis.desktop
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=Artemis
|
||||
Type=Application
|
||||
StartupWMClass=artemis3
|
||||
Exec=artemis
|
||||
Terminal=false
|
||||
Icon=artemis3
|
11
net-wireless/artemis/metadata.xml
Normal file
11
net-wireless/artemis/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?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