games-board/eboard - 1.1.1-r2 (gentoo)

Search

Package Information

Description:
chess interface for POSIX systems
Homepage:
http://www.bergo.eng.br/eboard/
License:
GPL-2

Ebuild Details

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

EAPI=7

inherit desktop toolchain-funcs

DEB_V=${PV}-4.1
EXTRAS1="eboard-extras-1pl2"
EXTRAS2="eboard-extras-2"
DESCRIPTION="chess interface for POSIX systems"
HOMEPAGE="http://www.bergo.eng.br/eboard/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2
	https://downloads.sourceforge.net/${PN}/${EXTRAS1}.tar.gz
	https://downloads.sourceforge.net/${PN}/${EXTRAS2}.tar.gz
	mirror://debian/pool/main/e/eboard/${PN}_${DEB_V}.diff.gz"

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

RDEPEND="
	dev-libs/atk
	dev-libs/glib
	>=dev-libs/gobject-introspection-1.82.0-r2
	media-libs/fontconfig
	media-libs/freetype
	media-libs/libpng:0=
	virtual/zlib:=
	x11-libs/cairo
	x11-libs/gdk-pixbuf
	x11-libs/gtk+:2
	x11-libs/pango
"
DEPEND="${RDEPEND}"
BDEPEND="
	dev-lang/perl
	virtual/pkgconfig
"

PATCHES=(
	"${WORKDIR}"/${PN}_${DEB_V}.diff
	"${FILESDIR}"/${P}-as-needed.patch
	"${FILESDIR}"/${P}-gcc44.patch
	"${FILESDIR}"/${P}-ovflfix.patch
	"${FILESDIR}"/${P}-libpng15.patch
)

src_prepare() {
	default

	sed -i \
		-e "s:(\"-O6\"):split(' ', \"${CXXFLAGS}\"):" \
		configure || die
}

src_configure() {
	./configure \
		--compiler="$(tc-getCXX)" \
		--prefix="/usr" \
		--data-prefix="/usr/share" \
		--man-prefix="/usr/share/man" \
		--extra-libs="dl" \
		$(use_enable nls) || die # not an autoconf script
}

src_install() {
	default
	dodoc Documentation/*.txt

	newicon icon-eboard.xpm ${PN}.xpm
	make_desktop_entry ${PN} ${PN} ${PN}

	cd "${WORKDIR}"/${EXTRAS1} || die
	insinto /usr/share/${PN}
	doins *.png *.wav
	newins extras1.conf themeconf.extras1
	newdoc ChangeLog Changelog.extras
	newdoc README README.extras
	dodoc CREDITS

	cd "${WORKDIR}"/${EXTRAS2} || die
	doins *.png *.wav
	newins extras2.conf themeconf.extras2
}

USE Flags

nls

Applicable Mirrors

Mirror Name URLs
debian

Dependencies

DEPEND

	dev-libs/atk
	dev-libs/glib
	>=dev-libs/gobject-introspection-1.82.0-r2
	media-libs/fontconfig
	media-libs/freetype
	media-libs/libpng:0=
	virtual/zlib:=
	x11-libs/cairo
	x11-libs/gdk-pixbuf
	x11-libs/gtk+:2
	x11-libs/pango

RDEPEND

	dev-libs/atk
	dev-libs/glib
	>=dev-libs/gobject-introspection-1.82.0-r2
	media-libs/fontconfig
	media-libs/freetype
	media-libs/libpng:0=
	virtual/zlib:=
	x11-libs/cairo
	x11-libs/gdk-pixbuf
	x11-libs/gtk+:2
	x11-libs/pango

BDEPEND

	dev-lang/perl
	virtual/pkgconfig

Manifest for 1.1.1-r2

Type File Size Source URLs
DIST eboard-extras-1pl2.tar.gz 361237 bytes https://downloads.sourceforge.net/eboard/eboard-extras-1pl2.tar.gz
DIST eboard-extras-2.tar.gz 598909 bytes https://downloads.sourceforge.net/eboard/eboard-extras-2.tar.gz