summaryrefslogtreecommitdiff
path: root/dev-util/ugtrain/ugtrain-9999.ebuild
blob: 2d512a7dc7495d10b75f30df2d6efd5cec9d1698 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools bash-completion-r1

DESCRIPTION="Universal Game Trainer"
HOMEPAGE="https://github.com/ugtrain/ugtrain"
if [[ ${PV} == 9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
	S="${WORKDIR}/${P}"
else
	SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

SLOT="0"
LICENSE="GPL-3"
RESTRICT="!test? ( test )"
IUSE="bash-completion examples glib multilib test"

DEPEND=""
RDEPEND="
	dev-util/scanmem
	sys-devel/binutils
"

src_prepare() {
	default

	eautoreconf
}

src_configure() {
	local myeconfargs=(
		--with-bash-completion-dir=$(usex bash-completion $(get_bashcompdir))
		$(use_enable glib)
		$(use_enable multilib)
		$(use_enable test testing)
	)

	econf "${myeconfargs[@]}"
}

src_install() {
	default

	if use examples; then
		dodoc -r examples
		docompress -x /usr/share/doc/${PF}/examples
	fi
}