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
1.0 KiB
48 lines
1.0 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit desktop
|
||
13 years ago
|
|
||
|
DESCRIPTION="A puzzle game where it's your job to clear the screen of gems"
|
||
|
HOMEPAGE="http://www.newbreedsoftware.com/gemdropx/"
|
||
|
SRC_URI="ftp://ftp.sonic.net/pub/users/nbs/unix/x/gemdropx/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
>=media-libs/libsdl-1.2.3-r1[joystick,video]
|
||
|
>=media-libs/sdl-mixer-1.2.1[mod]
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
13 years ago
|
sed -i \
|
||
|
-e '/^CC/d' \
|
||
|
-e '/^CXX/d' \
|
||
|
-e 's/CXX/CC/' \
|
||
|
-e 's/-o/$(LDFLAGS) -o/' \
|
||
|
Makefile || die
|
||
|
|
||
|
find data/ -type d -name .xvpics -exec rm -rf \{\} +
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake \
|
||
6 years ago
|
DATA_PREFIX="/usr/share/${PN}" \
|
||
10 years ago
|
XTRA_FLAGS="${CFLAGS}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
dobin gemdropx
|
||
|
dodir "/usr/share/${PN}"
|
||
|
cp -r data/* "${ED}/usr/share/${PN}/" || die
|
||
13 years ago
|
dodoc AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
|
||
6 years ago
|
newicon data/images/gemdropx-icon.xpm ${PN}.xpm
|
||
|
make_desktop_entry ${PN} "Gem Drop X" /usr/share/pixmaps/${PN}.xpm
|
||
13 years ago
|
}
|