# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 inherit eutils autotools git-r3 EQ_SERVER="live" if [[ "${EQ_SERVER}" == "live" ]]; then SLOT="live" PROGRAM_SUFFIX="" # Maybe use mirror://sourceforge/? EGIT_REPO_URI="https://github.com/lucianposton/showeq-maps.git" if [[ ${PV} == 9999* ]]; then KEYWORDS="" else KEYWORDS="amd64 x86" EGIT_COMMIT="${PV}" fi else SLOT="${EQ_SERVER}" PROGRAM_SUFFIX="-${EQ_SERVER}" EGIT_REPO_URI="https://github.com/lucianposton/showeq-maps.git" if [[ ${PV} == 9999* ]]; then KEYWORDS="" EGIT_BRANCH="${EQ_SERVER}" else KEYWORDS="amd64 x86" EGIT_COMMIT="${PV%.[[:digit:]]*}_${EQ_SERVER}v${PV##[[:digit:]]*.}" fi fi HOMEPAGE="https://github.com/lucianposton/showeq-maps" DESCRIPTION="Maps for ShowEQ" LICENSE="GPL-2" IUSE="" DEPEND="" RDEPEND="${DEPEND}" src_prepare() { if [[ -n "${PROGRAM_SUFFIX}" ]]; then sed -i -e "s:showeq:showeq${PROGRAM_SUFFIX}:" configure.* fi epatch_user eautoreconf } src_configure() { econf \ --program-suffix="${PROGRAM_SUFFIX}" } src_install() { einstall }