-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-inherit linux-mod
+EAPI=6
+
+inherit linux-info
DESCRIPTION="The lego mindstorms usb tower headers and/or modules"
SRC_URI="mirror://sourceforge/legousb/${P}.tar.gz"
SLOT="0"
LICENSE="MPL-1.0"
-KEYWORDS="amd64 ppc x86"
+KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
+src_configure() {
+ if kernel_is -lt 2 5 ; then
+ econf
+ fi
+}
src_compile()
{
- if [ ${KV_MINOR} -eq 4 ] ; then
- econf || die "Configuration failed"
- emake || die "Compilation failed"
+ if kernel_is -lt 2 5 ; then
+ emake
fi
}
src_install() {
- if [ ${KV_MINOR} -eq 4 ] ; then
- einstall || die "Make Install Failed"
+ if kernel_is -lt 2 5 ; then
+ einstall
else
insinto /usr/include/LegoUSB
doins include/legousbtower.h
}
pkg_postinst() {
- if [ ${KV_MINOR} -eq 4 ] ; then
+ if kernel_is -lt 2 5 ; then
elog "You are using the 2.4 kernel series."
elog "These are unsupported."
else