blob: 58c3d94af73bb35af8c112cb90531ce504574671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="Classic memory game"
HOMEPAGE="https://lgames.sourceforge.io/LPairs/"
SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+sound"
RDEPEND="
media-libs/libsdl[sound?,video]
virtual/libintl"
DEPEND="${RDEPEND}"
BDEPEND="sys-devel/gettext"
src_prepare() {
default
sed -i '/^inst_dir=/s|/games||' configure || die
}
src_configure() {
# --enable-sound doesn't enable it, needs to be unspecified
econf $(usev !sound --disable-sound)
}
src_install() {
default
doicon ${PN}.png
make_desktop_entry ${PN} LPairs
}
|