summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2012-02-21 13:41:48 +0000
committerTony Vroon <chainsaw@gentoo.org>2012-02-21 13:41:48 +0000
commitd784401b054b85e7b8dbadb098d5c232b369f512 (patch)
treeeea2cbe832a2b1eb46851c465ae7c6e17d3eaca5 /sci-visualization
parentStable for amd64, wrt bug #404655 (diff)
downloadgentoo-2-d784401b054b85e7b8dbadb098d5c232b369f512.tar.gz
gentoo-2-d784401b054b85e7b8dbadb098d5c232b369f512.tar.bz2
gentoo-2-d784401b054b85e7b8dbadb098d5c232b369f512.zip
Initial commit. Ebuild by me, build system tamed by Kacper "xarthisius" Kowalik. Please note that you require CEE hardware to use the pixelpulse visualiser. Many thanks to upstream for rolling me a personal tarball.
(Portage version: 2.1.10.48/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/nonolith-connect/ChangeLog13
-rw-r--r--sci-visualization/nonolith-connect/Manifest7
-rw-r--r--sci-visualization/nonolith-connect/files/1.0.1-cflags-respect.patch69
-rw-r--r--sci-visualization/nonolith-connect/files/60-nonolith-connect.rules3
-rwxr-xr-xsci-visualization/nonolith-connect/files/nonolith-connect.initd17
-rw-r--r--sci-visualization/nonolith-connect/metadata.xml9
-rw-r--r--sci-visualization/nonolith-connect/nonolith-connect-1.0.1.ebuild51
7 files changed, 169 insertions, 0 deletions
diff --git a/sci-visualization/nonolith-connect/ChangeLog b/sci-visualization/nonolith-connect/ChangeLog
new file mode 100644
index 000000000000..f6611e6cfb1d
--- /dev/null
+++ b/sci-visualization/nonolith-connect/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sci-visualization/nonolith-connect
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/nonolith-connect/ChangeLog,v 1.1 2012/02/21 13:41:48 chainsaw Exp $
+
+*nonolith-connect-1.0.1 (21 Feb 2012)
+
+ 21 Feb 2012; Tony Vroon <chainsaw@gentoo.org>
+ +files/1.0.1-cflags-respect.patch, +files/60-nonolith-connect.rules,
+ +nonolith-connect-1.0.1.ebuild, +files/nonolith-connect.initd, +metadata.xml:
+ Initial commit. Ebuild by me, build system tamed by Kacper "xarthisius"
+ Kowalik. Please note that you require CEE hardware to use the pixelpulse
+ visualiser. Many thanks to upstream for rolling me a personal tarball.
+
diff --git a/sci-visualization/nonolith-connect/Manifest b/sci-visualization/nonolith-connect/Manifest
new file mode 100644
index 000000000000..619862670ce5
--- /dev/null
+++ b/sci-visualization/nonolith-connect/Manifest
@@ -0,0 +1,7 @@
+AUX 1.0.1-cflags-respect.patch 2468 RMD160 d76c6d47777577399201c4fec0ddad5acb7695d6 SHA1 b0bdd51f2a26272ef41c315b39c2b56ba3644aee SHA256 2651b7e9b72cb3170b8b80611a7681b4825e9403bfddb23c0f22a254718801f9
+AUX 60-nonolith-connect.rules 297 RMD160 b04c24ea473dc6c61d16a312b872e773ac2dcab9 SHA1 1fefe3ce8f4ee8a3d5957fad17231dcc67b829ba SHA256 6d86a4dcaac783fbb57f624619410082c0bd7b7529c2290d05bfd7a90851caf2
+AUX nonolith-connect.initd 352 RMD160 365f2c39868071e266623bc674168ae1fd23b161 SHA1 dd2d48decb7e49c5a3e42a65bfd1aa9d04307680 SHA256 3f54df8a85bc42f958524c5c30518e02d77cc80e44f0a13cd8b5de5b94000311
+DIST nonolith-connect-1.0.1.tar.bz2 560774 RMD160 e92fa4703afdbccba334e0a4985ff761b12be50e SHA1 6a39aea92f8cc687f9a35ef1b441ab3fa2695eec SHA256 47326bfd90cbdb52ce2085a406f5c8ac362e5381e9f7e645025e7b7eb6be221c
+EBUILD nonolith-connect-1.0.1.ebuild 1206 RMD160 1343ddaf15a64c2149ec8c852511eaf7845699ca SHA1 31f171f2219d52cfff3b11ca3979438bb08768d2 SHA256 1067202373c422f1906d2ba7638393397a8f82fafedb64dee5466370aa2e605e
+MISC ChangeLog 596 RMD160 b484e544a8b1b59598a089dc016acb5b4df45cfa SHA1 4ffb1207f114c03b4946161ed5d825d5fbf18658 SHA256 f287f16e59fec8d2451bed8a36d22cf61bf39805cfd957b8672ff3c378f19b77
+MISC metadata.xml 256 RMD160 6299389c645e5c9948ae3804d74c23b2f5f5d2be SHA1 84e6ddc5504f4f7c2e1c24c7393c4862e6229a90 SHA256 7731955bcd1bebf3e752d445e5834c97202dc46c13b598195a34787c429f6b79
diff --git a/sci-visualization/nonolith-connect/files/1.0.1-cflags-respect.patch b/sci-visualization/nonolith-connect/files/1.0.1-cflags-respect.patch
new file mode 100644
index 000000000000..46e0aed1d1f4
--- /dev/null
+++ b/sci-visualization/nonolith-connect/files/1.0.1-cflags-respect.patch
@@ -0,0 +1,69 @@
+--- SConstruct
++++ SConstruct
+@@ -1,7 +1,21 @@
+ import sys, os, shutil
++import SCons.Util
+
+ env = Environment()
+
++if os.environ.has_key('CC'):
++ env['CC'] = os.environ['CC']
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
++if "$CCFLAGS" in env['CXXCOM']:
++ env['CXXCOM'] = env['CXXCOM'].replace("$CCFLAGS","")
++
+ opts = Variables()
+ opts.Add(BoolVariable("mingwcross", "Cross-compile with mingw for Win32", 0))
+ opts.Add(BoolVariable("boost_static", "Statically link against Boost", 0))
+@@ -101,8 +115,7 @@
+ sources = Glob('*.cpp') + ['cee/cee.cpp', 'bootloader/bootloader.cpp']
+
+ json = env.Library('json',
+- Glob('libjson/Source/*.cpp'),
+- CCFLAGS = "-c -O3 -ffast-math -fexpensive-optimizations".split()
++ Glob('libjson/Source/*.cpp')
+ )
+
+ websocketpp = env.Library('websocketpp', ['websocketpp/src/'+i for i in [
+@@ -113,7 +126,7 @@
+ 'websocket_session.cpp',
+ 'sha1/sha1.cpp',
+ 'base64/base64.cpp'
+- ]], CCFLAGS=['-g', '-O3'])
++ ]])
+
+
+ libusb_cflags = []
+@@ -127,14 +140,21 @@
+ libusb_os = ['os/poll_windows.c', 'os/windows_usb.c', 'os/threads_windows.c']
+ libusb_cflags += ['-D OS_WINDOWS', '-DPOLL_NFDS_TYPE=unsigned int', '-D WINVER=0x0501']
+
+-libusb = env.Library('libusb_nonolith', ['libusb/libusb/'+i for i in [
++env_libusb = env.Clone()
++env_libusb.Append(CPPFLAGS=libusb_cflags)
++env_libusb.Append(CFLAGS=['-Ilibusb', '-Ilibusb/libusb'])
++
++libusb = env_libusb.Library('libusb_nonolith', ['libusb/libusb/'+i for i in [
+ 'core.c',
+ 'descriptor.c',
+ 'io.c',
+ 'sync.c',
+- ]+libusb_os], CFLAGS=['-g', '-O3', '-Ilibusb', '-Ilibusb/libusb']+libusb_cflags)
+-
++ ]+libusb_os])
+
+ libs += boostlibs
+
+-env.Program('nonolith-connect', sources, LIBS=libs, CCFLAGS=['-Wall', '-g', '-O3', '-Ilibusb', '-Iwebsocketpp/src', '-shared', "-DVERSION='%s'"%version], FRAMEWORKS=frameworks)
++env_main = env.Clone()
++env_main.Append(CPPFLAGS=["-DVERSION='%s'"%version])
++env_main.Append(CXXFLAGS=['-Ilibusb', '-Iwebsocketpp/src', '-Wall'])
++#env_main.Append(LINKFLAGS=['-shared'])
++env_main.Program('nonolith-connect', sources, LIBS=libs, FRAMEWORKS=frameworks)
diff --git a/sci-visualization/nonolith-connect/files/60-nonolith-connect.rules b/sci-visualization/nonolith-connect/files/60-nonolith-connect.rules
new file mode 100644
index 000000000000..63d44d042f16
--- /dev/null
+++ b/sci-visualization/nonolith-connect/files/60-nonolith-connect.rules
@@ -0,0 +1,3 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="59e3", ATTR{idProduct}=="cee1", GROUP:="nonolithd", MODE="0666"
+SUBSYSTEM=="usb", ATTR{idVendor}=="59e3", ATTR{idProduct}=="b003", GROUP:="nonolithd", MODE="0666"
+SUBSYSTEM=="usb", ATTR{idVendor}=="59e3", ATTR{idProduct}=="bbbb", GROUP:="nonolithd", MODE="0666"
diff --git a/sci-visualization/nonolith-connect/files/nonolith-connect.initd b/sci-visualization/nonolith-connect/files/nonolith-connect.initd
new file mode 100755
index 000000000000..42ce559b6849
--- /dev/null
+++ b/sci-visualization/nonolith-connect/files/nonolith-connect.initd
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+
+depend() {
+ after logger
+}
+
+start() {
+ ebegin "Starting nonolith-connect"
+ start-stop-daemon --start --quiet -b -m -p /var/run/nonolith-connect.pid -u nonolithd:usb --exec /usr/bin/nonolith-connect
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nonolith-connect"
+ start-stop-daemon --stop --quiet -p /var/run/nonolith-connect.pid
+ eend $?
+}
diff --git a/sci-visualization/nonolith-connect/metadata.xml b/sci-visualization/nonolith-connect/metadata.xml
new file mode 100644
index 000000000000..f14f39732531
--- /dev/null
+++ b/sci-visualization/nonolith-connect/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-visualization/nonolith-connect/nonolith-connect-1.0.1.ebuild b/sci-visualization/nonolith-connect/nonolith-connect-1.0.1.ebuild
new file mode 100644
index 000000000000..52015b8f590b
--- /dev/null
+++ b/sci-visualization/nonolith-connect/nonolith-connect-1.0.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/nonolith-connect/nonolith-connect-1.0.1.ebuild,v 1.1 2012/02/21 13:41:48 chainsaw Exp $
+
+EAPI=4
+
+inherit base scons-utils toolchain-funcs
+
+DESCRIPTION="CEE (Control - Experiment - Explore) analog multitool"
+HOMEPAGE="http://www.nonolithlabs.com/cee/"
+SRC_URI="http://apps.nonolithlabs.com/download/source/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-libs/boost
+ sys-fs/udev"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PV}-cflags-respect.patch" )
+
+pkg_setup() {
+ tc-export CC CXX
+ enewuser nonolithd -1 -1 /dev/null usb
+}
+
+src_configure() {
+ myesconsargs=(
+ boost_static=0
+ )
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ dobin nonolith-connect
+ newinitd "${FILESDIR}/nonolith-connect.initd" nonolith-connect
+ insinto /lib/udev
+ doins "${FILESDIR}/60-nonolith-connect.rules"
+}
+
+pkg_postinst() {
+ einfo "Consider adding nonolith-connect to the default runlevel."
+ einfo "Please connect your CEE hardware, start nonolith-connect "
+ einfo "using the init script provided and then visit:"
+ einfo "http://apps.nonolithlabs.com/setup"
+}