summaryrefslogtreecommitdiff
path: root/dev-libs/legousbtower/legousbtower-0.5.4-r1.ebuild
blob: f24ec9097bb4d1bf07665b2f1d38852455a2e231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit udev

DESCRIPTION="The lego mindstorms usb tower headers and/or modules"
SRC_URI="mirror://sourceforge/legousb/${P}.tar.gz"
HOMEPAGE="http://legousb.sourceforge.net/"

SLOT="0"
# The specified license is wrong as the file uses code from proprietary
# SDK.  http://legousb.sourceforge.net/legousbtower/index.shtml
LICENSE="all-rights-reserved"
KEYWORDS="amd64 ppc x86"
IUSE=""
RESTRICT="bindist mirror"

src_configure() { :; }
src_compile() { :; }

src_install() {
	insinto /usr/include/LegoUSB
	doins include/legousbtower.h
	udev_dorules "${FILESDIR}"/20-lego.rules
	dodoc README
}

pkg_postinst() {
	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"
}