# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

SHA="3e6c7a5e8b0cefe4128f4bdb2550209dc38b5756"

inherit bash-completion-r1 udev

DESCRIPTION="Portable GAL Assembler"
HOMEPAGE="https://github.com/daveho/GALasm"
SRC_URI="https://github.com/daveho/GALasm/archive/${SHA}.tar.gz -> ${P}.tar.gz"

LICENSE="galasm"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND=""
DEPEND="${RDEPEND}"

S=${WORKDIR}/GALasm-${SHA}

src_compile() {
	emake -C src
}

src_install() {
	dobin src/galasm
	HTML_DOCS=( "${S}"/galer/* )
	dodoc -r examples
	einstalldocs
}