summaryrefslogtreecommitdiff
blob: f6c98702e9481ad0a31e7eacc9dc366afe6b051d (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=0

inherit eutils

DESCRIPTION="A portable assembler for processors of the PowerPC family"
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.gz"
HOMEPAGE="http://sun.hasenbraten.de/~frank/projects/"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~ppc ~ppc-macos"

src_unpack() {
	mkdir -p "${S}"/LinuxPPC
	cd "${S}"
	unpack ${A}
	epatch "${FILESDIR}/${P}-ppc.patch"
}

src_compile() {
	emake || die "Compilation failed"
}

src_install () {
	dobin pasm || die "Failed to install pasm binary"
	dodoc pasm.doc || die "Failed to install pasm documentation"
}