From 3878ff1e05b14bbb805c40186484bb24f6045897 Mon Sep 17 00:00:00 2001 From: Brian Evans <grknight@gentoo.org> Date: Fri, 19 Jan 2018 11:05:30 -0500 Subject: dev-libs/legousbtower: Drop kernel 2.4 support Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild | 37 ++++++---------------- 1 file changed, 9 insertions(+), 28 deletions(-) (limited to 'dev-libs/legousbtower') diff --git a/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild b/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild index 3745344dc358..51fdecaf027b 100644 --- a/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild +++ b/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit linux-info +inherit udev DESCRIPTION="The lego mindstorms usb tower headers and/or modules" SRC_URI="mirror://sourceforge/legousb/${P}.tar.gz" @@ -14,37 +14,18 @@ LICENSE="MPL-1.0" KEYWORDS="amd64 ppc x86" IUSE="" -src_configure() { - if kernel_is -lt 2 5 ; then - econf - fi -} -src_compile() -{ - if kernel_is -lt 2 5 ; then - emake - fi -} +src_configure() { :; } +src_compile() { :; } src_install() { - if kernel_is -lt 2 5 ; then - einstall - else - insinto /usr/include/LegoUSB - doins include/legousbtower.h - insinto /lib/udev/rules.d - doins "${FILESDIR}"/20-lego.rules - fi + insinto /usr/include/LegoUSB + doins include/legousbtower.h + udev_dorules "${FILESDIR}"/20-lego.rules dodoc README } pkg_postinst() { - if kernel_is -lt 2 5 ; then - elog "You are using the 2.4 kernel series." - elog "These are unsupported." - else - elog "You are using the 2.6 kernel series." - elog "This package only provides the header file." - elog "You need to enable the lego usb tower option in the kernel." - fi + elog "This package only provides the header file." + elog "You need to enable the lego usb tower option in the kernel." + elog "The kernel 2.4 module is no longer built or supported" } -- cgit v1.2.3-65-gdbad