1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit games toolchain-funcs versionator
9 MY_P="${PN}_v$(delete_all_version_separators $PV)_src"
11 DESCRIPTION="Action-adventure dungen crawl game"
12 HOMEPAGE="http://www.asceai.net/meritous/"
13 SRC_URI="http://www.asceai.net/files/${MY_P}.tar.bz2
14 ( http://omploader.org/vMTNkZg -> data-dir.patch )"
18 KEYWORDS="~amd64 ~x86"
21 DEPEND="media-libs/libsdl
29 epatch "${DISTDIR}"/data-dir.patch
30 epatch "${FILESDIR}"/Makefile-flags.patch
31 sed -ie 's/gcc/$(CC)/' Makefile || die "sed Makefile failed"
35 CFLAGS="${CFLAGS} -DDATA_DIR=\\\"${GAMES_DATADIR}/meritous\\\"" \
36 emake CC=$(tc-getCC) default || die
40 insinto "${GAMES_DATADIR}/meritous"
42 dogamesbin meritous || die
43 dodoc readme.txt || die