You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
995 B
48 lines
995 B
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit desktop
|
||
12 years ago
|
|
||
|
DESCRIPTION="Color lines game written with SDL with bonus features"
|
||
8 years ago
|
HOMEPAGE="https://github.com/OpenA/color-lines-sdl"
|
||
9 years ago
|
SRC_URI="https://color-lines.googlecode.com/files/lines_${PV}.tar.gz"
|
||
12 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||
12 years ago
|
|
||
6 years ago
|
RDEPEND="
|
||
|
media-libs/libsdl[X,sound,video]
|
||
12 years ago
|
media-libs/sdl-image[png]
|
||
6 years ago
|
media-libs/sdl-mixer[wav,mod]
|
||
|
"
|
||
12 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
S="${WORKDIR}/lines-${PV}"
|
||
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
eapply "${FILESDIR}/${P}-Makefile.patch"
|
||
12 years ago
|
|
||
|
sed -i \
|
||
|
-e '/^Encoding/d' \
|
||
|
-e '/^Version/d' \
|
||
|
-e '/^Icon/s/.png//' \
|
||
|
color-lines.desktop.in || die 'sed on color-lines.desktop.in failed'
|
||
|
}
|
||
|
|
||
12 years ago
|
src_compile() {
|
||
6 years ago
|
emake BINDIR="${EPREFIX}/usr/bin/" GAMEDATADIR="${EPREFIX}/usr/share/${PN}/"
|
||
12 years ago
|
}
|
||
|
|
||
12 years ago
|
src_install() {
|
||
6 years ago
|
insinto "/usr/share/${PN}"
|
||
12 years ago
|
doins -r gfx sounds
|
||
|
|
||
|
domenu ${PN}.desktop
|
||
|
doicon icon/${PN}.png
|
||
6 years ago
|
einstalldocs
|
||
|
dobin ${PN}
|
||
12 years ago
|
}
|