diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2012-02-21 13:41:48 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2012-02-21 13:41:48 +0000 |
commit | b7a758ab534d5c8bb5174707f626de4dcb025144 (patch) | |
tree | b822cb2e6aa5970e57f2344225c361b5d1caaced /sci-visualization | |
parent | Stable for amd64, wrt bug #404655 (diff) | |
download | historical-b7a758ab534d5c8bb5174707f626de4dcb025144.tar.gz historical-b7a758ab534d5c8bb5174707f626de4dcb025144.tar.bz2 historical-b7a758ab534d5c8bb5174707f626de4dcb025144.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.
Package-Manager: portage-2.1.10.48/cvs/Linux x86_64
Diffstat (limited to 'sci-visualization')
7 files changed, 179 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..43ad506a9c14 --- /dev/null +++ b/sci-visualization/nonolith-connect/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 1230 RMD160 b815afbc4ee4e0feac8e130bde462bdfbf4bd070 SHA1 340f002dcd38830838d3b042360491bf39d44537 SHA256 68e2ac5188ab5e4fafe0fdf4b6ccff010fcdb48f5b10977990ec38c2c6612911 +MISC ChangeLog 704 RMD160 ce5f33c7f19822260ba13f090200a42212f2cacd SHA1 31d04ee873e1636dd961f06ff9c972c0938016d9 SHA256 8a73ac422409d1da4cd63ea6d24fa030e4df8b8d526392812ab55cea4fe4c08e +MISC metadata.xml 256 RMD160 6299389c645e5c9948ae3804d74c23b2f5f5d2be SHA1 84e6ddc5504f4f7c2e1c24c7393c4862e6229a90 SHA256 7731955bcd1bebf3e752d445e5834c97202dc46c13b598195a34787c429f6b79 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iEYEARECAAYFAk9DnyMACgkQp5vW4rUFj5pQQQCfWcsmH9VrnOKFz81zoQVmzag5 +MWIAn0CupjeIXsenIUmp29hnp4r4654x +=kf6C +-----END PGP SIGNATURE----- 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" +} |