From ee7234c1aaec0bca4ef99bb7443de3ec5f614f9f Mon Sep 17 00:00:00 2001 From: knotteye Date: Thu, 22 Apr 2021 15:11:50 -0500 Subject: [PATCH] First draft plchat ebuild --- net-im/plchat/Manifest | 2 + net-im/plchat/plchat-1.0.1.ebuild | 92 +++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 net-im/plchat/Manifest create mode 100644 net-im/plchat/plchat-1.0.1.ebuild diff --git a/net-im/plchat/Manifest b/net-im/plchat/Manifest new file mode 100644 index 0000000..ad9b4b1 --- /dev/null +++ b/net-im/plchat/Manifest @@ -0,0 +1,2 @@ +DIST plchat-1.0.1.tar.gz 54919 BLAKE2B afbcadb938c9b0090c6dceba61500e44c1ac049c98770a31527330e2d4bb8d7bd5ee825b27271e204dca527c215df1016b9a47edd12fa98d0b25fd21c54a6364 SHA512 f40a5db16f6be59f3ddc54b81f96b9018a4704456757f50aea6cef05226f8343840d514766f862ec9dd814b9eb1dc4673a2e95693630457c1216733cb6f50236 +EBUILD plchat-1.0.1.ebuild 3094 BLAKE2B fbc26bcc46fa344f85a93253fa4f901e6b3e90bc8efe7ea3f658854a77f7a3698e543b0fe01ae93ef54ad21d5a907ee26d919334800d2e97dbb441e487558a6c SHA512 e008866934618b953a43b04e7e24375378d11197e69002cb8d0be0348bc5beb34b73f8d17f2493801b59b920e91a956757b06f87296dc5f6abcba08591472196 diff --git a/net-im/plchat/plchat-1.0.1.ebuild b/net-im/plchat/plchat-1.0.1.ebuild new file mode 100644 index 0000000..d7d1fbf --- /dev/null +++ b/net-im/plchat/plchat-1.0.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A Pleroma Chat client in PyQt5." + +PYTHON_COMPAT=( python3_{7..9} ) +inherit python-single-r1 + +HOMEPAGE="https://git.waldn.net/git/knotteye/plchat" + +SRC_URI="https://git.waldn.net/git/knotteye/plchat/archive/1.0.1.tar.gz -> plchat-1.0.1.tar.gz" + +LICENSE="GPL-3" + +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~arm ~arm64" + +IUSE="+system-libs" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# dev-python/python-magic ${PYTHON_SINGLE_TARGET} +# dev-python/python-dateutil ${PYTHON_SINGLE_TARGET} +# dev-python/websockets ${PYTHON_SINGLE_TARGET} +# dev-python/keyring ${PYTHON_SINGLE_TARGET} +# dev-python/notify-py ${PYTHON_SINGLE_TARGET} +# dev-python/appdirs ${PYTHON_SINGLE_TARGET} +# dev-python/requests ${PYTHON_SINGLE_TARGET} +# dev-python/urllib3 ${PYTHON_SINGLE_TARGET} + +RDEPEND=" + dev-python/PyQt5 multimedia widgets ${PYTHON_SINGLE_TARGET} + dev-python/PyQt5-sip ${PYTHON_SINGLE_TARGET} + media-plugins/gst-plugins-base + media-plugins/gst-plugins-good + media-plugins/gst-plugins-bad + media-plugins/gst-plugins-ugly + media-plugins/gst-plugins-neon + media-plugins/gst-plugins-soup + media-plugins/gst-plugins-libav + + system-libs? ( + dev-python/python-magic ${PYTHON_SINGLE_TARGET} + dev-python/python-dateutil ${PYTHON_SINGLE_TARGET} + dev-python/websockets ${PYTHON_SINGLE_TARGET} + dev-python/keyring ${PYTHON_SINGLE_TARGET} + dev-python/notify-py ${PYTHON_SINGLE_TARGET} + dev-python/appdirs ${PYTHON_SINGLE_TARGET} + dev-python/requests ${PYTHON_SINGLE_TARGET} + dev-python/urllib3 ${PYTHON_SINGLE_TARGET} + ) +" + +BDEPEND=" + >=sys-devel/gcc-5.1.0 + dev-python/nuitka ${PYTHON_SINGLE_TARGET} + + system-libs? ( + dev-python/python-magic ${PYTHON_SINGLE_TARGET} + dev-python/python-dateutil ${PYTHON_SINGLE_TARGET} + dev-python/websockets ${PYTHON_SINGLE_TARGET} + dev-python/keyring ${PYTHON_SINGLE_TARGET} + dev-python/notify-py ${PYTHON_SINGLE_TARGET} + dev-python/appdirs ${PYTHON_SINGLE_TARGET} + dev-python/requests ${PYTHON_SINGLE_TARGET} + dev-python/urllib3 ${PYTHON_SINGLE_TARGET} + ) +" + +#src_configure() { +#} + +src_compile() { + if use system-libs; then + "${PYTHON}" -m nuitka --file-reference-choice=runtime --follow-imports --include-module=certifi --include-module=keyring.backends.kwallet --include-module=keyring.backends.chainer --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py + else + "${PYTHON}" -m nuitka --file-reference-choice=runtime --nofollow-imports --follow-import-to=misc --follow-import-to=monkeypatch --follow-import-to=pleroma --follow-import-to=timeconvert --follow-import-to=videowidget --follow-import-to=audiowidget --python-flag=-O -o plchat plchat.py + fi +} + +src_install() { + mkdir -p $(get_libdir)/plchat + install dist/plchat $(get_libdir)/plchat + install dist/fedi.ico $(get_libdir)/plchat + install dist/fedi.svg $(get_libdir)/plchat + install dist/send.svg $(get_libdir)/plchat + install dist/unread.svg $(get_libdir)/plchat + ln -sf $(get_libdir)/plchat/plchat /bin/plchat +}