commit: d6b8a521a79d1bcd0496377078e16a0fe382b02b
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 12 23:48:16 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jul 13 00:29:10 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6b8a521
games-board/chessx: Add missing install to qmake build system
Thanks to openSUSE for the patch.
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
games-board/chessx/chessx-1.5.4.ebuild | 7 +++---
.../chessx/files/chessx-1.5.4-install.patch | 27 ++++++++++++++++++++++
2 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/games-board/chessx/chessx-1.5.4.ebuild
b/games-board/chessx/chessx-1.5.4.ebuild
index d97f0eac6a8..e0d0825a1ae 100644
--- a/games-board/chessx/chessx-1.5.4.ebuild
+++ b/games-board/chessx/chessx-1.5.4.ebuild
@@ -37,6 +37,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-system-quazip.patch
"${FILESDIR}"/${P}-missing-translations.patch
+ "${FILESDIR}"/${P}-install.patch
)
src_configure() {
@@ -44,8 +45,6 @@ src_configure() {
}
src_install() {
- dobin release/${PN}
- dodoc ChangeLog TODO
- doicon data/images/${PN}.png
- domenu unix/chessx.desktop
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
}
diff --git a/games-board/chessx/files/chessx-1.5.4-install.patch
b/games-board/chessx/files/chessx-1.5.4-install.patch
new file mode 100644
index 00000000000..c017b3ea153
--- /dev/null
+++ b/games-board/chessx/files/chessx-1.5.4-install.patch
@@ -0,0 +1,27 @@
+Index: chessx-1.5.4/chessx.pro
+===================================================================
+--- chessx-1.5.4.orig/chessx.pro
++++ chessx-1.5.4/chessx.pro
+@@ -546,6 +546,22 @@ macx {
+ data/timeseal/mac/timeseal
+ }
+
++unix:!macx {
++ isEmpty(PREFIX) {
++ PREFIX = /usr
++ }
++ target.path = $$PREFIX/bin
++ desktop.path = $$PREFIX/share/applications
++ desktop.files = unix/chessx.desktop
++ icon.path = $$PREFIX/share/pixmaps
++ icon.files = data/images/chessx.png
++ data.path = $$PREFIX/share/chessx
++ data.files = data
++ lang.path = $$PREFIX/share/chessx/data/lang
++ lang.files = i18n/*.qm
++ INSTALLS += target desktop icon data lang
++}
++
+ win32 {
+ OTHER_FILES += \
+ src/chessx.rc \