games-arcade/gav - 0.9.0-r1 (gentoo)

Search

Package Information

Description:
GPL Arcade Volleyball
Homepage:
https://gav.sourceforge.net/
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
0.9.0-r1 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

DESCRIPTION="GPL Arcade Volleyball"
HOMEPAGE="https://gav.sourceforge.net/"
# the themes are behind a lame php-counter script.
SRC_URI="
	https://downloads.sourceforge.net/gav/${P}.tar.gz
	mirror://gentoo/fabeach.tgz
	mirror://gentoo/florindo.tgz
	mirror://gentoo/inverted.tgz
	mirror://gentoo/naive.tgz
	mirror://gentoo/unnamed.tgz
	mirror://gentoo/yisus.tgz
	mirror://gentoo/yisus2.tgz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	media-libs/sdl-image[jpeg,png]
	media-libs/sdl-net
	media-libs/libsdl[joystick,video]"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-ldflags.patch
	"${FILESDIR}"/${P}-gcc43.patch
)

src_prepare() {
	default

	local d
	for d in . automa menu net; do
		cp ${d}/Makefile.Linux ${d}/Makefile || die "cp ${d}/Makefile failed"
	done

	# Now, move the additional themes in the proper directory
	mv ../{fabeach,florindo,inverted,naive,unnamed,yisus,yisus2} themes || die

	# No reason to have executable bit set on themes
	find themes -type f -exec chmod a-x '{}' \; || die

	# Respect LD, bug #779976
	sed -i -e 's/LD = ld/LD ?= ld/' CommonHeader || die
	sed -i -e 's/$(LD)/& $(LDFLAGS)/' */Makefile || die
}

src_configure() {
	tc-export CXX

	# Nobody _really_ sets LD. Tell the compiler what to do instead.
	export LD="${CXX}"
}

src_compile() {
	# bug #41530 - doesn't like the hot parallel make action.
	emake -C automa
	emake -C menu
	emake -C net
	emake
}

src_install() {
	dodir /usr/bin
	emake ROOT="${D}" install

	insinto /usr/share/${PN}
	doins -r sounds

	einstalldocs
}

Applicable Mirrors

Mirror Name URLs
gentoo

Dependencies

DEPEND

	media-libs/sdl-image[jpeg,png]
	media-libs/sdl-net
	media-libs/libsdl[joystick,video]

RDEPEND

	media-libs/sdl-image[jpeg,png]
	media-libs/sdl-net
	media-libs/libsdl[joystick,video]

Manifest for 0.9.0-r1

Type File Size Source URLs
DIST fabeach.tgz 163750 bytes mirror://gentoo/fabeach.tgz
DIST florindo.tgz 175052 bytes mirror://gentoo/florindo.tgz
DIST inverted.tgz 35554 bytes mirror://gentoo/inverted.tgz
DIST naive.tgz 80169 bytes mirror://gentoo/naive.tgz
DIST unnamed.tgz 156406 bytes mirror://gentoo/unnamed.tgz
DIST yisus.tgz 131021 bytes mirror://gentoo/yisus.tgz
DIST yisus2.tgz 117923 bytes mirror://gentoo/yisus2.tgz