media-video/streamdeck-ui: now it mostly works
authorRick Farina <zerochaos@gentoo.org>
Fri, 22 May 2020 19:49:03 +0000 (15:49 -0400)
committerRick Farina <zerochaos@gentoo.org>
Fri, 22 May 2020 19:49:13 +0000 (15:49 -0400)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102-r1.ebuild [moved from media-video/streamdeck-ui/streamdeck-ui-0.0_p20200102.ebuild with 74% similarity]
media-video/streamdeck-ui/streamdeck-ui-9999.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 fb064b24fe53ba0021660fd408a2eb3fe44e635a..df568550786cc87a59cecd4449f126b207155b1e 100644 (file)
@@ -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
+}
index fb064b24fe53ba0021660fd408a2eb3fe44e635a..df568550786cc87a59cecd4449f126b207155b1e 100644 (file)
@@ -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
+}