D27330: Fix DESTDIR usage

Antonio Rojas <[email protected]>
Newsgroups gmane.comp.kde.devel.games
Message-ID <[email protected]>
arojas created this revision.
arojas added reviewers: KDE Games, asturmlechner, lbeltrame, fvogt.
Herald added a subscriber: kde-games-devel.
arojas requested review of this revision.

REVISION SUMMARY
  kajongg's build system uses DESTDIR during cmake to construct the command that creates the kajongg and kajonggserver symlinks in bindir. This is a problem for distributions, which usually have separated ckame/make/make install stages with DESTDIR only available in the later one. So distros are currently working around this in different ways, either creating the symlinks manually after make install (Gentoo, Fedora) or defining DESTDIR before running cmake (Arch, Opensuse).
  This patch changes the symlink installation process to only make the DESTDIR substitution during make install.

TEST PLAN
  cmake && make && make DESTDIR=foo install, symlinks are correctly created inside foo.

REPOSITORY
  R387 Kajongg

REVISION DETAIL
  https://phabricator.kde.org/D27330

AFFECTED FILES
  cmake-modules/KDEPython.cmake

To: arojas, #kde_games, asturmlechner, lbeltrame, fvogt
Cc: kde-games-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.