Created attachment 509354 [details] emerge --info apricots-0.2.6-r1.ebuild contains the line sed -i -e 's:-DAP_PATH=\\\\\\"$prefix.*":-DAP_PATH=\\\\\\"${GAMES_DATADIR}/${PN}/\\\\\\"":' -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in || die which patches the CXXFLAGS in configure.in to CXXFLAGS="$CXXFLAGS -DAP_PATH=\\\"${GAMES_DATADIR}/${PN}/\\\"" GAMES_DATADIR and PN are unset at compile time, so the game looks for its files at "/apricots" instead of "/usr/share/games/apricots". But using the line sed -i -e 's:-DAP_PATH=\\\\\\"$prefix.*":-DAP_PATH=\\\\\\"'${GAMES_DATADIR}/${PN}'/\\\\\\"":' -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in || die (note the ' enclosing ${GAMES_DATADIR}/${PN}) patches CXXFLAGS to CXXFLAGS="$CXXFLAGS -DAP_PATH=\\\"/usr/share/games/apricots/\\\"" and the game find its files.
[master 306b3ed8f51b] games-arcade/apricots: Stop using games.eclass 3 files changed, 71 insertions(+), 8 deletions(-) create mode 100644 games-arcade/apricots/apricots-0.2.6-r2.ebuild