summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-19 11:05:30 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-19 11:05:30 -0500
commit3878ff1e05b14bbb805c40186484bb24f6045897 (patch)
tree8ba9de616bf47a05790ff75efb3dfdf1e16979d4 /dev-libs/legousbtower
parentapp-emulation/docker: Fix docker daemon version (diff)
downloadgentoo-3878ff1e05b14bbb805c40186484bb24f6045897.tar.gz
gentoo-3878ff1e05b14bbb805c40186484bb24f6045897.tar.bz2
gentoo-3878ff1e05b14bbb805c40186484bb24f6045897.zip
dev-libs/legousbtower: Drop kernel 2.4 support
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-libs/legousbtower')
-rw-r--r--dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild37
1 files 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 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"
}