# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="TADS: the Text Adventure Development System, 3.x series" HOMEPAGE="http://tads.org/" MY_P="tads23-unix" SRC_URI="http://www.ifarchive.org/if-archive/programming/tads3/source/${MY_P}.tar.gz" LICENSE="TADS-3" SLOT="3" KEYWORDS="~x86" IUSE="" DEPEND="" S="${WORKDIR}/tads-3.0.7/tads3" src_unpack() { tar zxf ${DISTDIR}/${MY_P}.tar.gz cd tads-3.0.7/tads2 # Patch makefile for directories, CFLAGS, etc. epatch ${FILESDIR}/01_x86_makefile_2.5.8.patch.bz2 cd ../tads3 # Same here... epatch ${FILESDIR}/01_x86_makefile_3.0.7.patch.bz2 } src_compile() { # We need to build 2.x before we build 3.x cd ../tads2 emake || die "emake failed" cd ../tads3 emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die }