From 7c775b469cab1c4bf2ab45facd9977fdd7b34764 Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Fri, 22 May 2020 15:49:03 -0400 Subject: media-video/streamdeck-ui: now it mostly works Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Rick Farina --- .../streamdeck-ui-0.0_p20200102-r1.ebuild | 44 ++++++++++++++++++++++ .../streamdeck-ui-0.0_p20200102.ebuild | 32 ---------------- .../streamdeck-ui/streamdeck-ui-9999.ebuild | 14 ++++++- 3 files changed, 57 insertions(+), 33 deletions(-) create mode 100644 media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild delete mode 100644 media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild (limited to 'media-video') diff --git a/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild b/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild new file mode 100644 index 000000000000..df568550786c --- /dev/null +++ b/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +inherit distutils-r1 + +DESCRIPTION="A Linux compatible UI for the Elgato Stream Deck" +HOMEPAGE="https://github.com/timothycrosley/streamdeck-ui" +if [ "${PV}" = "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/timothycrosley/streamdeck-ui.git" +else + COMMIT="9b6678d2d3027963ddac147ee3aeda322ec77f29" + SRC_URI="https://github.com/timothycrosley/streamdeck-ui/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="${PYTHON_DEPS} + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pynput[${PYTHON_USEDEP}] + dev-python/pyside2[${PYTHON_USEDEP},designer] + media-libs/elgato-streamdeck[${PYTHON_USEDEP}] + dev-libs/hidapi" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i "s#os.path.dirname(os.path.abspath(__file__))#'/usr/share/streamdeck-ui'#" streamdeck_ui/config.py + distutils-r1_src_prepare +} + +src_install() { + insinto /usr/share/streamdeck-ui + doins streamdeck_ui/logo.png + doins -r streamdeck_ui/fonts + distutils-r1_src_install +} diff --git a/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild b/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild deleted file mode 100644 index fb064b24fe53..000000000000 --- a/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8} ) -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -inherit distutils-r1 - -DESCRIPTION="A Linux compatible UI for the Elgato Stream Deck" -HOMEPAGE="https://github.com/timothycrosley/streamdeck-ui" -if [ "${PV}" = "9999" ]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/timothycrosley/streamdeck-ui.git" -else - COMMIT="9b6678d2d3027963ddac147ee3aeda322ec77f29" - SRC_URI="https://github.com/timothycrosley/streamdeck-ui/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-${COMMIT}" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="${PYTHON_DEPS} - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pynput[${PYTHON_USEDEP}] - dev-python/pyside2[${PYTHON_USEDEP},designer] - media-libs/elgato-streamdeck[${PYTHON_USEDEP}] - dev-libs/hidapi" -RDEPEND="${DEPEND}" diff --git a/media-video/streamdeck-ui/streamdeck-ui-9999.ebuild b/media-video/streamdeck-ui/streamdeck-ui-9999.ebuild index fb064b24fe53..df568550786c 100644 --- a/media-video/streamdeck-ui/streamdeck-ui-9999.ebuild +++ b/media-video/streamdeck-ui/streamdeck-ui-9999.ebuild @@ -19,7 +19,7 @@ else KEYWORDS="~amd64 ~x86" fi -LICENSE="MIT" +LICENSE="MIT Apache-2.0" SLOT="0" IUSE="" @@ -30,3 +30,15 @@ DEPEND="${PYTHON_DEPS} media-libs/elgato-streamdeck[${PYTHON_USEDEP}] dev-libs/hidapi" RDEPEND="${DEPEND}" + +src_prepare() { + sed -i "s#os.path.dirname(os.path.abspath(__file__))#'/usr/share/streamdeck-ui'#" streamdeck_ui/config.py + distutils-r1_src_prepare +} + +src_install() { + insinto /usr/share/streamdeck-ui + doins streamdeck_ui/logo.png + doins -r streamdeck_ui/fonts + distutils-r1_src_install +} -- cgit v1.2.3-65-gdbad