commit: 3878ff1e05b14bbb805c40186484bb24f6045897 Author: Brian Evans <grknight <AT> gentoo <DOT> org> AuthorDate: Fri Jan 19 16:05:30 2018 +0000 Commit: Brian Evans <grknight <AT> gentoo <DOT> org> CommitDate: Fri Jan 19 16:05:30 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3878ff1e
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(-) diff --git a/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild b/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild index 3745344dc35..51fdecaf027 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" }