games-arcade/lbreakouthd - 1.1.9 (myov)

Search

Install

Install this version:

emerge -a =games-arcade/lbreakouthd-1.1.9

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =games-arcade/lbreakouthd-1.1.9

Or alternatively:

emerge --autounmask-write -a =games-arcade/lbreakouthd-1.1.9

Package Information

Description:
Breakout clone written with the SDL library
Homepage:
http://lgames.sourceforge.net/LBreakoutHD/
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
1.1.9 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

LB_LEVELS_V="20160512"
LB_THEMES_V="20160512"

DESCRIPTION="Breakout clone written with the SDL library"
HOMEPAGE="http://lgames.sourceforge.net/LBreakoutHD/"
SRC_URI="
	https://sourceforge.net/projects/lgames/files/${PN}/${P}.tar.gz
	https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-levelsets-${LB_LEVELS_V}.tar.gz
	themes? (
		https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-themes-${LB_THEMES_V}.tar.gz
	)
"

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

RDEPEND="
	acct-group/gamestat
	media-libs/libpng:=
	media-libs/libsdl2[joystick,sound,video]
	media-libs/sdl2-image
	media-libs/sdl2-mixer
	media-libs/sdl2-net
	media-libs/sdl2-ttf
	sys-libs/zlib:=

	nls? (
		virtual/libintl
	)
"
DEPEND="
	${RDEPEND}
"
BDEPEND="
	nls? (
		sys-devel/gettext
	)
	themes? (
		app-arch/unzip
	)
"

src_unpack() {
	unpack "${P}.tar.gz"

	cd "${S}/src/levels" || die
	unpack "lbreakout2-levelsets-${LB_LEVELS_V}.tar.gz"

	if use themes ; then
		mkdir -p "${WORKDIR}/themes" || die
		cd "${WORKDIR}/themes" || die
		unpack "lbreakout2-themes-${LB_THEMES_V}.tar.gz"

		# Do not overwrite the main themes.
		rm -f ./absoluteB.zip ./oz.zip ./moiree.zip || die

		local f=""
		for f in ./*.zip; do
			unpack "./${f}"
			rm -r "./${f}" || die
		done
	fi
}

src_configure() {
	local -a econfargs=(
		$(use_enable nls)
		--localstatedir="${EPREFIX}/var/games"
	)
	econf "${econfargs[@]}"
}

src_install() {
	default

	make_desktop_entry "${PN}" LBreakoutHD lbreakouthd256

	if use themes ; then
		insinto /usr/share/lbreakouthd/themes
		doins -r "${WORKDIR}/themes/."
	fi

	fowners :gamestat "/usr/bin/${PN}" "/var/games/${PN}.hscr"
	fperms g+s "/usr/bin/${PN}"
	fperms 660 "/var/games/${PN}.hscr"
}

USE Flags

Manage flags for this package: euse -i <flag> -p games-arcade/lbreakouthd | euse -E <flag> -p games-arcade/lbreakouthd | euse -D <flag> -p games-arcade/lbreakouthd

Global/Standard Flags

nls
Default: Enabled (+)
themes
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	
	acct-group/gamestat
	media-libs/libpng:=
	media-libs/libsdl2[joystick,sound,video]
	media-libs/sdl2-image
	media-libs/sdl2-mixer
	media-libs/sdl2-net
	media-libs/sdl2-ttf
	sys-libs/zlib:=

	nls? (
		virtual/libintl
	)

RDEPEND

	acct-group/gamestat
	media-libs/libpng:=
	media-libs/libsdl2[joystick,sound,video]
	media-libs/sdl2-image
	media-libs/sdl2-mixer
	media-libs/sdl2-net
	media-libs/sdl2-ttf
	sys-libs/zlib:=

	nls? (
		virtual/libintl
	)

BDEPEND

	nls? (
		sys-devel/gettext
	)
	themes? (
		app-arch/unzip
	)

Manifest for 1.1.9

Type File Size Source URLs
DIST lbreakout2-levelsets-20160512.tar.gz 372221 bytes https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-levelsets-20160512.tar.gz
DIST lbreakout2-themes-20160512.tar.gz 34090783 bytes https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-themes-20160512.tar.gz
DIST lbreakouthd-1.1.9.tar.gz 4162278 bytes https://sourceforge.net/projects/lgames/files/lbreakouthd/lbreakouthd-1.1.9.tar.gz