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.
58 lines
1.3 KiB
58 lines
1.3 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
inherit toolchain-funcs
|
||
8 years ago
|
|
||
|
DESCRIPTION="very nice backgammon game for X"
|
||
|
HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html"
|
||
|
SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}a.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
|
||
4 years ago
|
RDEPEND="
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXaw
|
||
4 years ago
|
x11-libs/libXt
|
||
|
!<x11-terms/kterm-6.2.0-r7"
|
||
4 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
8 years ago
|
app-text/rman
|
||
4 years ago
|
>=x11-misc/imake-1.0.8-r1"
|
||
8 years ago
|
|
||
4 years ago
|
S="${WORKDIR}/${P}a"
|
||
8 years ago
|
|
||
|
PATCHES=(
|
||
4 years ago
|
"${FILESDIR}"/${P}-broken.patch
|
||
4 years ago
|
"${FILESDIR}"/${P}-r2-config.patch
|
||
4 years ago
|
"${FILESDIR}"/${P}-glibc-2.32.patch
|
||
|
"${FILESDIR}"/${P}-fno-common.patch
|
||
8 years ago
|
)
|
||
|
|
||
|
src_configure() {
|
||
4 years ago
|
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
|
||
|
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
|
||
8 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
env PATH=".:${PATH}" emake \
|
||
|
EXTRA_LDOPTIONS="${LDFLAGS}" \
|
||
|
CDEBUGFLAGS="${CFLAGS}" \
|
||
4 years ago
|
CC="$(tc-getCC)"
|
||
8 years ago
|
}
|
||
|
|
||
4 years ago
|
src_install() {
|
||
|
default
|
||
|
# remove link to avoid collision (bug #668892)
|
||
|
rm "${ED}"/usr/$(get_libdir)/X11/app-defaults || die
|
||
|
}
|
||
|
|
||
8 years ago
|
pkg_postinst() {
|
||
|
einfo "xgammon need helvetica fonts"
|
||
|
einfo "They can be loaded emerging media-fonts/font-adobe-100dpi"
|
||
|
einfo "or similar. Remember to restart X after loading fonts"
|
||
|
}
|