summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2020-09-07 09:49:24 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2020-09-07 09:49:56 +0200
commitf3a7b2d7aa852019000f5281c765b7d82d64f3ff (patch)
treeb1a47a5c81d9c8e0c62bd8fa190c5086b3526121 /media-sound
parentdev-python/pytest: keyworded 6.0.1 for ppc64 (diff)
downloadgentoo-f3a7b2d7aa852019000f5281c765b7d82d64f3ff.tar.gz
gentoo-f3a7b2d7aa852019000f5281c765b7d82d64f3ff.tar.bz2
gentoo-f3a7b2d7aa852019000f5281c765b7d82d64f3ff.zip
media-sound/hydrogen: fixed i18n install path
Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/hydrogen/files/hydrogen-1.0.0-i18n-path.patch13
-rw-r--r--media-sound/hydrogen/files/hydrogen-9999-i18n-path.patch13
-rw-r--r--media-sound/hydrogen/hydrogen-1.0.0.ebuild5
-rw-r--r--media-sound/hydrogen/hydrogen-9999.ebuild5
4 files changed, 34 insertions, 2 deletions
diff --git a/media-sound/hydrogen/files/hydrogen-1.0.0-i18n-path.patch b/media-sound/hydrogen/files/hydrogen-1.0.0-i18n-path.patch
new file mode 100644
index 00000000000..075d0d444a0
--- /dev/null
+++ b/media-sound/hydrogen/files/hydrogen-1.0.0-i18n-path.patch
@@ -0,0 +1,13 @@
+--- a/data/i18n/CMakeLists.txt 2020-09-07 08:47:15.743516826 +0200
++++ b/data/i18n/CMakeLists.txt 2020-09-07 09:03:56.084304480 +0200
+@@ -5,4 +5,9 @@
+
+ QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES})
+ ADD_CUSTOM_TARGET(translations ALL DEPENDS ${QM_FILES})
+-INSTALL(FILES ${QM_FILES} DESTINATION "data/i18n")
++
++IF(MINGW)
++ INSTALL(FILES ${QM_FILES} DESTINATION "data/i18n")
++ELSE()
++ INSTALL(FILES ${QM_FILES} DESTINATION "${H2_SYS_PATH}/data/i18n")
++ENDIF()
diff --git a/media-sound/hydrogen/files/hydrogen-9999-i18n-path.patch b/media-sound/hydrogen/files/hydrogen-9999-i18n-path.patch
new file mode 100644
index 00000000000..3c32e2b3e62
--- /dev/null
+++ b/media-sound/hydrogen/files/hydrogen-9999-i18n-path.patch
@@ -0,0 +1,13 @@
+--- a/data/i18n/CMakeLists.txt 2020-09-07 09:31:57.481066097 +0200
++++ b/data/i18n/CMakeLists.txt 2020-09-07 09:29:27.612763184 +0200
+@@ -5,4 +5,9 @@
+
+ QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES})
+ ADD_CUSTOM_TARGET(translations ALL DEPENDS ${QM_FILES})
+-INSTALL(FILES ${QM_FILES} DESTINATION "./data/i18n")
++
++IF(MINGW)
++ INSTALL(FILES ${QM_FILES} DESTINATION "data/i18n")
++ELSE()
++ INSTALL(FILES ${QM_FILES} DESTINATION "${H2_SYS_PATH}/data/i18n")
++ENDIF()
diff --git a/media-sound/hydrogen/hydrogen-1.0.0.ebuild b/media-sound/hydrogen/hydrogen-1.0.0.ebuild
index bfd663bbc55..12ec74567cf 100644
--- a/media-sound/hydrogen/hydrogen-1.0.0.ebuild
+++ b/media-sound/hydrogen/hydrogen-1.0.0.ebuild
@@ -57,7 +57,10 @@ RDEPEND="${CDEPEND}"
DOCS=( AUTHORS ChangeLog DEVELOPERS README.txt )
-PATCHES=( "${FILESDIR}/${P}-gnuinstalldirs.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-gnuinstalldirs.patch"
+ "${FILESDIR}/${P}-i18n-path.patch"
+)
src_prepare() {
cmake_src_prepare
diff --git a/media-sound/hydrogen/hydrogen-9999.ebuild b/media-sound/hydrogen/hydrogen-9999.ebuild
index 245dc874f11..87e5b809fe3 100644
--- a/media-sound/hydrogen/hydrogen-9999.ebuild
+++ b/media-sound/hydrogen/hydrogen-9999.ebuild
@@ -57,7 +57,10 @@ RDEPEND="${CDEPEND}"
DOCS=( AUTHORS ChangeLog DEVELOPERS README.txt )
-PATCHES=( "${FILESDIR}/${PN}-1.0.0-gnuinstalldirs.patch" )
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.0-gnuinstalldirs.patch"
+ "${FILESDIR}/${P}-i18n-path.patch"
+)
src_prepare() {
cmake_src_prepare