commit:     7c775b469cab1c4bf2ab45facd9977fdd7b34764
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri May 22 19:49:03 2020 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri May 22 19:49:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c775b46

media-video/streamdeck-ui: now it mostly works

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 ...200102.ebuild => streamdeck-ui-0.0_p20200102-r1.ebuild} | 14 +++++++++++++-
 media-video/streamdeck-ui/streamdeck-ui-9999.ebuild        | 14 +++++++++++++-
 2 files changed, 26 insertions(+), 2 deletions(-)

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 fb064b24fe5..df568550786 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 fb064b24fe5..df568550786 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
+}

Reply via email to