All pastes #66345 Raw Edit

Someone

public text v1 · immutable
#66345 ·published 2006-06-16 20:29 UTC
rendered paste body
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils toolchain-funcs cvs games

ECVS_SERVER="quadra.cvs.sourceforge.net:/cvsroot/quadra"

if [ -z "${ECVS_BRANCH}" ]; then
    ECVS_BRANCH="HEAD"
fi

ECVS_MODULE="quadra"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_CVS_OPTIONS="-z3 -dP"


DESCRIPTION="A tetris clone with multiplayer support"
HOMEPAGE="http://quadra.sourceforge.net/"
SRC_URI=""

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE="svga"

RDEPEND="|| ( x11-libs/libXpm virtual/x11 )
    >=media-libs/libpng-1.2.1
    svga? ( media-libs/svgalib"
DEPEND="${RDEPEND}
    || ( x11-proto/xextproto virtual/x11 )"

src_compile() {
    # configure script is coded only to accept --without-svgalib
    # --with-svgalib is bugged
    # raised bug #1433828 @ quadra - Sourceforge
    # http://sourceforge.net/tracker/index.php?func=detail&aid=1433828&group_id=7275&atid=107275
    if use svga; then
        egamesconf || die
    else
        egamesconf --without-svgalib || die
    fi
        emake || die "emake failed"
}

src_install() {
    dogamesbin ${PN}
    if use svga; then
        dogameslib.so ${PN}-svga.so
    fi
    insinto ${GAMES_DATADIR}/${PN}
    doins ${PN}.res
    doicon images/${PN}.xpm
    make_desktop_entry ${PN} "Quadra" ${PN}.xpm

    dodoc ChangeLog NEWS README
    dohtml help/*
    prepgamesdirs
}