1 # Copyright 1999-2009 Gentoo Foundation
   2 # Distributed under the terms of the GNU General Public License v2
   3 # $Header: $
   4 
   5 DESCRIPTION="Schism Tracker mercurial"
   6 HOMEPAGE="http://schismtracker.org/"
   7 SRC_URI="http://schismtracker.org/hg/archive/default.tar.bz2"
   8 
   9 LICENSE="GPL"
  10 SLOT="0"
  11 KEYWORDS=""
  12 IUSE=""
  13 
  14 DEPEND=">=media-libs/libsdl-1.2.8-r1"
  15 
  16 S="${WORKDIR}/Schism-Tracker-default"
  17 
  18 src_unpack(){
  19     unpack ${A}
  20     cd ${S}
  21 }
  22 
  23 src_compile(){
  24     autoreconf -i
  25     mkdir -p build && cd build
  26     ../configure || die "configure failed"
  27     emake || die "emake failed"
  28 }
  29 
  30 src_install(){
  31     cd build
  32     emake DESTDIR="${D}" install || die
  33     cd ..
  34     dodoc README TODO AUTHORS NEWS
  35 }