-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-mud/ytin/ytin-1.83.5-r1.ebuild,v 1.6 2004/12/21 12:26:17 absinthe Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-mud/ytin/ytin-1.83.5-r1.ebuild,v 1.7 2006/11/23 23:58:52 nyhm Exp $
-inherit games
+inherit toolchain-funcs games
DESCRIPTION="yet another TinTin++"
HOMEPAGE="http://ytin.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ~ppc ~amd64"
+KEYWORDS="~amd64 ~ppc x86"
IUSE=""
-RDEPEND="virtual/libc
- sys-libs/ncurses"
-DEPEND="${RDEPEND}
- >=sys-apps/sed-4"
-
-S="${WORKDIR}/${PN}"
+S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
sed -i \
-e 's:extern int errno;::' utils.cpp \
|| die "sed utils.cpp failed"
}
src_compile() {
- econf || die
- emake CFLAGS="${CFLAGS}" || die "emake died"
+ egamesconf || die
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ || die "emake failed"
}
src_install() {
- dogamesbin tt++ || die
+ dogamesbin tt++ || die "dogamesbin failed"
dodoc ChangeLog README.1st docs/*.txt
prepgamesdirs
}