summaryrefslogtreecommitdiff
path: root/app-emulation/gxemul/gxemul-0.6.3.1.ebuild
blob: aeb15b0df272a0d9f251dbc78e81d72e508c8ec9 (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
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="A Machine Emulator, Mainly emulates MIPS, but supports other CPU types"
HOMEPAGE="http://gxemul.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/project/gxemul/GXemul/${PV}/${P}.tar.gz"

LICENSE="BSD public-domain"
SLOT="0"
KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
IUSE="debug X"

RDEPEND="X? ( x11-libs/libX11 )"
DEPEND="
	${RDEPEND}
	X? ( x11-base/xorg-proto )
"
DOCS=( HISTORY README )
HTML_DOCS=( doc/. )
PATCHES=(
	"${FILESDIR}"/${PN}-0.6.0-gcc46.patch
	"${FILESDIR}"/${PN}-0.6.0-no-doxygen.patch
)

src_prepare() {
	default
	sed -i configure -e 's|-O3||g' || die
}

src_configure() {
	tc-export CC CXX
	# no autotools
	local myconfargs=(
		--disable-valgrind
		$(use debug && echo --debug)
		$(use X || echo --disable-x)
	)
	./configure "${myconfargs[@]}" || die
}

src_install() {
	dobin ${PN}
	doman man/${PN}.1
	einstalldocs
}