summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board')
-rw-r--r--games-board/chessx/chessx-1.5.4.ebuild7
-rw-r--r--games-board/chessx/files/chessx-1.5.4-install.patch27
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 d97f0eac6a87..e0d0825a1ae4 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 000000000000..c017b3ea1535
--- /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 \