summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-libs/legousbtower
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-libs/legousbtower')
-rw-r--r--dev-libs/legousbtower/Manifest1
-rw-r--r--dev-libs/legousbtower/files/20-lego.rules1
-rw-r--r--dev-libs/legousbtower/legousbtower-0.5.4.ebuild45
-rw-r--r--dev-libs/legousbtower/metadata.xml11
4 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/legousbtower/Manifest b/dev-libs/legousbtower/Manifest
new file mode 100644
index 000000000000..c95b94d4947b
--- /dev/null
+++ b/dev-libs/legousbtower/Manifest
@@ -0,0 +1 @@
+DIST legousbtower-0.5.4.tar.gz 22782 SHA256 8f61267ab2036d1936fe70f49b454a23e151021bbcd7d4ed1663810bdee7f8bb SHA512 169cf31d4585bf3b7bd9aded76d202bb14e285f644f8aa10a6f4bf6d99e6f28efc33c65922388cdfa17a1bfc0dbc777edc1fb45484155543a42117eaba6fb7e7 WHIRLPOOL f98e4639828454b5a8c347a6b8b099802af194c0574ab52407e76dc188b780fc15dfef9f6b60f683f1121ba033a3f29f9e2ffdacb9dfa4e0a574f154312ef7d2
diff --git a/dev-libs/legousbtower/files/20-lego.rules b/dev-libs/legousbtower/files/20-lego.rules
new file mode 100644
index 000000000000..ddd5470b9315
--- /dev/null
+++ b/dev-libs/legousbtower/files/20-lego.rules
@@ -0,0 +1 @@
+SYSFS{product}=="LEGO USB Tower", NAME="usb/%k", SYMLINK="usb/lego%n", GROUP="usb"
diff --git a/dev-libs/legousbtower/legousbtower-0.5.4.ebuild b/dev-libs/legousbtower/legousbtower-0.5.4.ebuild
new file mode 100644
index 000000000000..feeb25ec6171
--- /dev/null
+++ b/dev-libs/legousbtower/legousbtower-0.5.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit linux-mod
+
+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"
+LICENSE="MPL-1.0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_compile()
+{
+ if [ ${KV_MINOR} -eq 4 ] ; then
+ econf || die "Configuration failed"
+ emake || die "Compilation failed"
+ fi
+}
+
+src_install() {
+ if [ ${KV_MINOR} -eq 4 ] ; then
+ einstall || die "Make Install Failed"
+ else
+ insinto /usr/include/LegoUSB
+ doins include/legousbtower.h
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}"/20-lego.rules
+ fi
+ dodoc README
+}
+
+pkg_postinst() {
+ if [ ${KV_MINOR} -eq 4 ] ; 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
+}
diff --git a/dev-libs/legousbtower/metadata.xml b/dev-libs/legousbtower/metadata.xml
new file mode 100644
index 000000000000..93565528cbf4
--- /dev/null
+++ b/dev-libs/legousbtower/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">legousb</remote-id>
+ </upstream>
+</pkgmetadata>