2021-11-07 21:40:46 +03:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2016-08-26 11:45:35 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-11-07 21:40:46 +03:00
|
|
|
EAPI=8
|
2016-08-26 11:45:35 +03:00
|
|
|
|
2021-11-07 21:40:46 +03:00
|
|
|
inherit autotools toolchain-funcs
|
2016-08-26 11:45:35 +03:00
|
|
|
|
2017-03-24 13:44:04 +03:00
|
|
|
DESCRIPTION="Tools including assembler, linker and librarian for PIC microcontrollers"
|
2017-09-06 11:32:25 +03:00
|
|
|
HOMEPAGE="https://gputils.sourceforge.io"
|
2016-08-26 11:45:35 +03:00
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2017-12-16 17:13:23 +03:00
|
|
|
KEYWORDS="amd64 ppc ppc64 x86"
|
2021-11-07 21:40:46 +03:00
|
|
|
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${P}-respect-flags.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# Only needed for the flags patch, if a new release ever comes...
|
|
|
|
eautoreconf
|
|
|
|
}
|
2016-08-26 11:45:35 +03:00
|
|
|
|
|
|
|
src_configure() {
|
2021-11-07 21:40:46 +03:00
|
|
|
# bug #369291, bug #818802
|
|
|
|
tc-ld-disable-gold
|
|
|
|
|
2016-12-20 21:35:09 +03:00
|
|
|
# Their configure script tries to do funky things with default
|
|
|
|
# compiler selection. Force our own defaults instead.
|
|
|
|
tc-export CC
|
2021-11-07 21:40:46 +03:00
|
|
|
|
|
|
|
econf
|
2016-08-26 11:45:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
2021-11-07 21:40:46 +03:00
|
|
|
|
2016-08-26 11:45:35 +03:00
|
|
|
dodoc doc/gputils.pdf
|
|
|
|
}
|