Final draft plchat ebuild
parent
ee7234c1aa
commit
b24bf966dd
|
@ -1,2 +1,2 @@
|
||||||
DIST plchat-1.0.1.tar.gz 54919 BLAKE2B afbcadb938c9b0090c6dceba61500e44c1ac049c98770a31527330e2d4bb8d7bd5ee825b27271e204dca527c215df1016b9a47edd12fa98d0b25fd21c54a6364 SHA512 f40a5db16f6be59f3ddc54b81f96b9018a4704456757f50aea6cef05226f8343840d514766f862ec9dd814b9eb1dc4673a2e95693630457c1216733cb6f50236
|
DIST plchat-1.0.2.tar.gz 55689 BLAKE2B d115eac725af782db64f7a96bb0fee90c1a3eb038c4010b1f4938196c3d5d78305cb5c697a7f2c46033130073978f51dfad8d34fe4b74a67e7e12ee195ad201e SHA512 5c69d34cb70d9d96b3123b6b3d13c46cad887988a7b8f2af8ae625c733a4dedd7c08bf0be38b72dba82d946b79a18e7e95d08bf9c77f323ea84591b2fc48e957
|
||||||
EBUILD plchat-1.0.1.ebuild 3094 BLAKE2B fbc26bcc46fa344f85a93253fa4f901e6b3e90bc8efe7ea3f658854a77f7a3698e543b0fe01ae93ef54ad21d5a907ee26d919334800d2e97dbb441e487558a6c SHA512 e008866934618b953a43b04e7e24375378d11197e69002cb8d0be0348bc5beb34b73f8d17f2493801b59b920e91a956757b06f87296dc5f6abcba08591472196
|
EBUILD plchat-1.0.2.ebuild 3520 BLAKE2B 0edbc91c07d423390695ca319052d7db1845f78a50361070514dd56adde01a13edaf74b03906cdc1f2a0d529d5b1496b0bda9e56dd3be104d99c336a3fe77d2a SHA512 7465a5122921d0dd58deea892917b2505f4b938cc644c3df9fc0144c38c7065598c6f7ee48fe42a78531cf4d1b665e7729cb10db32eb885e9bd359745c6f5c0d
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
# 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
|
|
||||||
}
|
|
|
@ -0,0 +1,99 @@
|
||||||
|
# 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.2.tar.gz -> plchat-1.0.2.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_gen_useflags 'python3*')
|
||||||
|
# dev-python/python-dateutil $(python_gen_useflags 'python3*')
|
||||||
|
# dev-python/websockets $(python_gen_useflags 'python3*')
|
||||||
|
# dev-python/keyring $(python_gen_useflags 'python3*')
|
||||||
|
# dev-python/notify-py $(python_gen_useflags 'python3*')
|
||||||
|
# dev-python/appdirs $(python_gen_useflags 'python3*')
|
||||||
|
# dev-python/requests $(python_gen_useflags 'python3*')
|
||||||
|
# dev-python/urllib3 $(python_gen_useflags 'python3*')
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
$(python_gen_impl_dep)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
$(python_gen_cond_dep 'dev-python/PyQt5[widgets,multimedia,${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/PyQt5-sip[${PYTHON_USEDEP}]')
|
||||||
|
media-libs/gst-plugins-base
|
||||||
|
media-libs/gst-plugins-good
|
||||||
|
media-libs/gst-plugins-bad
|
||||||
|
media-libs/gst-plugins-ugly
|
||||||
|
media-plugins/gst-plugins-neon
|
||||||
|
media-plugins/gst-plugins-soup
|
||||||
|
media-plugins/gst-plugins-libav
|
||||||
|
|
||||||
|
system-libs? (
|
||||||
|
$(python_gen_cond_dep 'dev-python/python-magic[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/python-dateutil[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/websockets[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/keyring[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/notify-py[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/appdirs[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/requests[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/urllib3[${PYTHON_USEDEP}]')
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
>=sys-devel/gcc-5.1.0
|
||||||
|
$(python_gen_cond_dep 'dev-python/nuitka[${PYTHON_USEDEP}]')
|
||||||
|
|
||||||
|
!system-libs? (
|
||||||
|
$(python_gen_cond_dep 'dev-python/python-magic[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/python-dateutil[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/websockets[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/keyring[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/notify-py[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/appdirs[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/requests[${PYTHON_USEDEP}]')
|
||||||
|
$(python_gen_cond_dep 'dev-python/urllib3[${PYTHON_USEDEP}]')
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack 'plchat-1.0.2.tar.gz'
|
||||||
|
mv 'plchat' 'plchat-1.0.2'
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if use system-libs; then
|
||||||
|
"${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
|
||||||
|
else
|
||||||
|
"${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
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /$(get_libdir)/plchat/bin
|
||||||
|
into /$(get_libdir)/plchat
|
||||||
|
doins fedi.ico
|
||||||
|
doins fedi.svg
|
||||||
|
doins send.svg
|
||||||
|
doins unread.svg
|
||||||
|
dobin plchat
|
||||||
|
dosym /$(get_libdir)/plchat/bin/plchat /usr/bin/plchat
|
||||||
|
}
|
Loading…
Reference in New Issue