From 7c775b469cab1c4bf2ab45facd9977fdd7b34764 Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Fri, 22 May 2020 15:49:03 -0400 Subject: [PATCH] media-video/streamdeck-ui: now it mostly works Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Rick Farina --- ...build => streamdeck-ui-0.0_p20200102-r1.ebuild} | 14 +++++++++++++- .../streamdeck-ui/streamdeck-ui-9999.ebuild | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) rename media-video/streamdeck-ui/{streamdeck-ui-0.0_p20200102.ebuild => streamdeck-ui-0.0_p20200102-r1.ebuild} (74%) diff --git a/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild b/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild similarity index 74% rename from media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild rename to media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild index fb064b24fe53..df568550786c 100644 --- a/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild +++ b/media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.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 +} 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 +} -- 2.26.2