-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST geigerlog-v1.4.1.zip 8478591 BLAKE2B 8e191685d45535e8151ca7db833ade9ea80f1e0825ee8fb3ef34b5b4b816a7175f9e0439f05a95073db9bb3b1b592314312c73b2a7a175a3f6d3e3366ca827e5 SHA512 b423406f8ccaab9245331859f0f9600431f69c733e643c3751911ad3cf92068d7c380c8a484e0a0f0ee31ec2b6fcfaccc39b1d63130c08c8475aec7f6eeddacb | ||
DIST geigerlog-v1.5.0.zip 8337922 BLAKE2B 4b05efe62c28f7e83b696717164d494a135382f51efeb64d1637f4a20ee09d0d740623642a238c9569a4b0f99fd0960969ca69f6bbb9c1fbf3702da467c9d8a8 SHA512 fc9a09dd9e1df8df2e3051a3cf7d5d28e483003c15299d21f699d21a309dc561fd14d4d3c5d14a01994172b3dd1d0baedc48e752ffe38e24dad816b283f5b6af | ||
EBUILD geigerlog-1.4.1-r1.ebuild 1687 BLAKE2B 25be274d7edfb0bff9e073aa459310e62d267ab5d737df85b0b04a6a804317c309680f3f54d21ce556eaf66a72c8adb41db6668348c06624c0c5b06f8daec2a0 SHA512 2e6ca9bd582cff5f98824269987e14af244fa31d3b34038e8c88a9513d61787ff14a0884cc60f27223d071a26061b4153871a26f5da0e5780b19f9441ce9926b | ||
EBUILD geigerlog-1.5.0.ebuild 2064 BLAKE2B 29d7ef5157a9c5d1bd723acea1fc962d0dd4076e24d2e0ca6833f208b10cd618203179744ab3f991895c026f0c0c808f8ea41ecce140b278ba904de21b7591fc SHA512 94f05a2357d6a60ffba48d2f934b725558440de508bfceb4139ffdb6cdff6af0587bd43e0eee847139b0df2f0f94d8b2f342e801327ff6242ff1675b0b9fcdac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{11,12} ) | ||
PYTHON_REQ_USE="sqlite" | ||
DISTUTILS_USE_PEP517=setuptools | ||
|
||
inherit desktop python-single-r1 | ||
|
||
DESCRIPTION="A Python based GUI program to work with GQ Electronic's Geiger counters" | ||
HOMEPAGE="https://sourceforge.net/projects/geigerlog/" | ||
SRC_URI="https://downloads.sourceforge.net/project/geigerlog/geigerlog-v${PV}.zip" | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
RDEPEND="${PYTHON_DEPS} | ||
$(python_gen_cond_dep ' | ||
dev-python/PyQt5[${PYTHON_USEDEP}] | ||
dev-python/PyQt5-sip[${PYTHON_USEDEP}] | ||
dev-python/pip[${PYTHON_USEDEP}] | ||
dev-python/py-cpuinfo[${PYTHON_USEDEP}] | ||
dev-python/setuptools[${PYTHON_USEDEP}] | ||
dev-python/matplotlib[${PYTHON_USEDEP}] | ||
dev-python/ntplib[${PYTHON_USEDEP}] | ||
dev-python/numpy[${PYTHON_USEDEP}] | ||
dev-python/scipy[${PYTHON_USEDEP}] | ||
dev-python/pyserial[${PYTHON_USEDEP}] | ||
dev-python/paho-mqtt[${PYTHON_USEDEP}] | ||
dev-python/pyaudio[${PYTHON_USEDEP}] | ||
dev-python/sounddevice[${PYTHON_USEDEP}] | ||
dev-python/soundfile[${PYTHON_USEDEP}] | ||
')" | ||
DEPEND="${RDEPEND}" | ||
|
||
S="${WORKDIR}/${PN}-v${PV}/${PN}" | ||
|
||
src_prepare() { | ||
default | ||
|
||
sed -e '1s|^ ||' \ | ||
-i geigerlog.py || die | ||
sed -z -e '0,/def getPathToDataDir()/ s/dp = os.path.join(getPathToProgDir()/dp = os.path.join(os.getenv("HOME")/' \ | ||
-i gsup_utils.py || die | ||
sed -z -e '0,/def getPathToConfigDir()/ s/dp = os.path.join(getPathToProgDir()/dp = os.path.join(os.getenv("HOME"), ".geigerlog"/' \ | ||
-i gsup_utils.py || die | ||
# sed -z -e '0,/def getPathToSettingsFile()/ s/dp = os.path.join(g.progDir/dp = os.path.join(getPathToConfigDir()/' \ | ||
# -i gsup_utils.py || die | ||
} | ||
|
||
src_install() { | ||
MANUAL="${S}/gmanual/GeigerLog-Manual-v${PV}.pdf" | ||
dodoc ${MANUAL} | ||
rm ${MANUAL} | ||
rm -r "${S}/data" | ||
dodir /usr/share/${PN} | ||
chmod +x ${PN}.py | ||
cp -r ${S}/* ${D}/usr/share/${PN} | ||
dosym /usr/share/${PN}/${PN}.py /usr/bin/${PN} | ||
python_fix_shebang ${D}/usr/share/${PN}/${PN}.py | ||
make_desktop_entry ${PN}.py GeigerLog /usr/share/${PN}/gres/icon_geigerlog.png | ||
} |