From: Rick Farina Date: Fri, 22 May 2020 19:49:03 +0000 (-0400) Subject: media-video/streamdeck-ui: now it mostly works X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c775b469cab1c4bf2ab45facd9977fdd7b34764;p=gentoo.git media-video/streamdeck-ui: now it mostly works Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Rick Farina --- 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 +}