summaryrefslogtreecommitdiff
path: root/media-sound/audicle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/audicle
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/audicle')
-rw-r--r--media-sound/audicle/Manifest9
-rw-r--r--media-sound/audicle/audicle-1.0.0.7-r1.ebuild93
-rw-r--r--media-sound/audicle/files/audicle-1.0.0.6-font.patch65
-rw-r--r--media-sound/audicle/files/audicle-1.0.0.7-const.patch12
-rw-r--r--media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch68
-rw-r--r--media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch149
-rw-r--r--media-sound/audicle/metadata.xml10
7 files changed, 406 insertions, 0 deletions
diff --git a/media-sound/audicle/Manifest b/media-sound/audicle/Manifest
new file mode 100644
index 000000000000..fd89c2960e60
--- /dev/null
+++ b/media-sound/audicle/Manifest
@@ -0,0 +1,9 @@
+AUX audicle-1.0.0.6-font.patch 2862 SHA256 ca958277aaead8c7cfe4f02a4ee78a0ba3d527bfb61857f4e349ad8f1389c152 SHA512 4cb763b5b38c5e3768d8da38129bdd6fd281c818adfa1ec7e28fcec1c1352d0d677408f3f79ee96ee64ace40e49722b8f2f9c12e3cac9206e0afd72949a95d31 WHIRLPOOL a63811dc4867dc0e4f51bf486cf196e2c41f3b936a6d4495623464b0c002104888446dbe51ae71ec702157f9ece3a62da9c45f9800964c16b0fb882610ab2a93
+AUX audicle-1.0.0.7-const.patch 455 SHA256 72283e31406be66ab7730584767a6f54c6a5ce52d43a9b4387325e7fa6050d2d SHA512 203e760a772f4283e5add18883091d819935226a0fa82a56bc79ff585a2450d08067fee0b3a4a4b6421f393c707d41d342966c5dc72527fb59cb877c1041079f WHIRLPOOL 712b6ac76a05744881803b42f2620050eb2f9bc6cd8a8e8a354256db54004d4f2f07a0c95299eaaab107cf2dd5fcf682807c972b0c8816ef282cc17856def0eb
+AUX audicle-1.0.0.7-gcc43.patch 2777 SHA256 95466803195f8d3eaec75fc74bf387c806f4ce876c6f9695467a2ac5be2dab17 SHA512 e9858e7c7cea35d8f5af5c4c8ca22c80c030eb14bd8798cb617b86bc55067413d3875c9cc30700c2a3aa86a5439dd60708a266acd41195280e744affa89503cf WHIRLPOOL 266557e06851f22ceb6657054ab7aa74e1eccc3176b9df8823b8f8890753a1a7d5ad40757d2ec1bc12ed38f47c6bc9afd6b4d8ad4adfb01409a490a029d51789
+AUX audicle-1.0.0.7-hid-smc.patch 3181 SHA256 992f7792208a164c6f03c7748f75bced25537d35dbfdfb6ce50ad7a1395aba49 SHA512 8092d8de0fb6aea240e38c98a45218c002e78af0b1d7b285bca8d9d81ae77a76b15b0db57aaf42c70a65fd52c8ced89c0e31b22213654ba52ac3105f2a764ff5 WHIRLPOOL bce1d702d2f529c459182062d6de394fc2a0aa01e197b73037e4382ec9047c1fd0662513eeaa74ae359bc2e0f480d31430c3995ef55db4ee8ae6fcdf08854e4c
+DIST audicle-1.0.0.7.tgz 5561088 SHA256 72d739c887eb8af612e821bf0ede966a7a84254e1224290fd8acfb80fadb2514 SHA512 c96506620e22e1f7846288cb4f34dc7efe59e14d845425673524d0a89712ea7d3dabed546eb921220e021d4e8526937990a4f5764fbf2bb90339b993f6703772 WHIRLPOOL e14627f1a2be219782403388fde1385c185b654b5c90d10d31bd397a7bfdaa916f91503c41aa5f2ad385bbf0b3c685427fff15c659cb2049a7857971cd5a69d2
+EBUILD audicle-1.0.0.7-r1.ebuild 2440 SHA256 5632786fea99bec33bfad4babc67951c701a29985395363bdd5ccd4421be8bcb SHA512 519c7b158d1a3ac3c33a58cb782b4b02d49bdbba3a5e010d9f489a48a4928fb7d065e05a9a41c4a6361531b609cbc5d088e5f59d47505fb3662e47bec3e54159 WHIRLPOOL 582d9d04528d320491705dfed53af2ae1217d1a8564b1e2ef01741edd13c0234f493e973d60f981458a57b5669ff25e24ac0d240be16ecf95ec6dc18565b58b3
+MISC ChangeLog 3077 SHA256 b9ce187c85c74fda38c91a8038de63724b531b5a39d1e87e849ffc6d9fc6e09f SHA512 4bbf4f9f03e96b227a67aaf98886823d56509e2cb80d646506dd5ff3e0b0f65d39559f1732846a0a1e743a535a30bf406d8f70048855c3496e7a2db97a087eef WHIRLPOOL 95c32eccee746737a9cddfea21714ae27d49c88f253e597afa2196b7e599ad8149bb70c4b5bb640374991d60ce1878d8bbc2433dc579fef18b6803d890eaef06
+MISC ChangeLog-2015 2334 SHA256 e84611ca79ebba45f74c21d9bfb34b09f398be6020fc8cff345b250d02276334 SHA512 97e3206192f4a936b15dbf9866071bd54007358ae89d20a3c79e79317cfd603291e96e5b266abc2d8dd0b5e63755e456930414505b991a1897858f4d3ea963c8 WHIRLPOOL 411855115d7aa28f7b99cdaa887a76813a785a6f15e3ad8794e2427a41a0285caa496e09d8267fb38eb030f1260d32fbfc3fc5f400ab69b7a8b5c6533e9d8fb5
+MISC metadata.xml 386 SHA256 ac8f820a53cbee86cf3d2dcf3d4bcf7490dd750484579c02db639e7a14646928 SHA512 df4591da51216c3a5b15ef353db9b5666b7e5e4082f3e8214a596a9ab7a344c5e64178c437fe2d15b9f8b5eb1ace88e6ed800595f3b94ebb17c972fe91bed414 WHIRLPOOL b6db9824a4d5b0edf414380c9d1f900f80c5c6fcf0c5a3df1125136bc1e2e94921e743a32cfd022327305174b8891513a588f64057d434a202af86b345d068b4
diff --git a/media-sound/audicle/audicle-1.0.0.7-r1.ebuild b/media-sound/audicle/audicle-1.0.0.7-r1.ebuild
new file mode 100644
index 000000000000..b09d488baa5f
--- /dev/null
+++ b/media-sound/audicle/audicle-1.0.0.7-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="A Context-sensitive, On-the-fly Audio Programming Environ/mentality"
+HOMEPAGE="http://audicle.cs.princeton.edu/"
+SRC_URI="http://audicle.cs.princeton.edu/release/files/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+alsa jack oss truetype"
+
+RDEPEND="jack? ( media-sound/jack-audio-connection-kit )
+ alsa? ( >=media-libs/alsa-lib-0.9 )
+ media-libs/libsndfile
+ media-libs/freeglut
+ virtual/opengl
+ virtual/glu
+ x11-libs/gtk+:2
+ truetype? ( media-libs/ftgl
+ media-fonts/corefonts )
+ app-eselect/eselect-audicle"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig"
+
+REQUIRED_USE="|| ( alsa jack oss )"
+
+DOCS=( AUTHORS PROGRAMMER README THANKS TODO VERSIONS )
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.0.6-font.patch"
+ "${FILESDIR}/${P}-hid-smc.patch"
+ "${FILESDIR}/${P}-gcc43.patch"
+ "${FILESDIR}/${P}-const.patch"
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+
+ sed -i \
+ -e 's@../ftgl_lib/FTGL/include@/usr/include/FTGL@' \
+ -e 's@../ftgl_lib/FTGL/mac/build@/usr/lib@' \
+ -e 's/gcc -o/$(CC) -o/' \
+ -e 's/-O3 -c/-c $(CFLAGS)/' \
+ -e 's/$(LIBS)/$(LDFLAGS) $(LIBS)/' \
+ src/makefile.{alsa,jack,oss} || die "sed failed"
+
+ epatch_user
+}
+
+compile_backend() {
+ local backend="$1"
+ local config
+ use truetype && config="USE_FREETYPE_LIBS=1"
+ einfo "Compiling against ${backend}"
+ cd "${S}/src"
+ emake -f "makefile.${backend}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" LEX=flex \
+ YACC=bison ${config}
+ mv audicle{,-${backend}}
+ emake -f makefile clean
+}
+
+src_compile() {
+ # when compile with athlon or athlon-xp flags
+ # audicle crashes on removing a shred with a double free or corruption
+ # it happens in Chuck_VM_Stack::shutdown() on the line
+ # SAFE_DELETE_ARRAY( stack );
+ replace-cpu-flags athlon athlon-xp i686
+
+ use jack && compile_backend jack
+ use alsa && compile_backend alsa
+ use oss && compile_backend oss
+}
+
+src_install() {
+ use jack && dobin src/audicle-jack
+ use alsa && dobin src/audicle-alsa
+ use oss && dobin src/audicle-oss
+ dodoc ${DOCS[@]}
+}
+
+pkg_postinst() {
+ elog "Audicle now can use many audio engines, so you can specify audio engine"
+ elog "with audicle-{jack,alsa,oss}"
+ elog "Or you can use 'eselect audicle' to set the audio engine"
+
+ einfo "Calling eselect audicle update..."
+ eselect audicle update --if-unset
+}
diff --git a/media-sound/audicle/files/audicle-1.0.0.6-font.patch b/media-sound/audicle/files/audicle-1.0.0.6-font.patch
new file mode 100644
index 000000000000..9e2658df16c3
--- /dev/null
+++ b/media-sound/audicle/files/audicle-1.0.0.6-font.patch
@@ -0,0 +1,65 @@
+diff -ru audicle-1.0.0.6~/src/audicle_font.cpp audicle-1.0.0.6/src/audicle_font.cpp
+--- audicle-1.0.0.6~/src/audicle_font.cpp 2008-03-30 00:29:37.000000000 +0100
++++ audicle-1.0.0.6/src/audicle_font.cpp 2008-03-30 01:04:46.000000000 +0100
+@@ -201,13 +201,13 @@
+ #ifdef __PLATFORM_WIN32__
+ char fontpath[] = "C:\\WINDOWS\\FONTS\\";
+ #else
+-char fontpath[] = "/define/this/directory/";
++char fontpath[] = "/usr/share/fonts/corefonts/";
+
+ #endif
+ #endif
+
+-char kernedfontfile[] = "FTGL:verdana.TTF";
+-char monospacedfontfile[] = "FTGL:LUCON.TTF";
++char kernedfontfile[] = "FTGL:verdana.ttf";
++char monospacedfontfile[] = "FTGL:couri.ttf";
+
+
+ class AudicleFTGLFont : public AudicleFont {
+@@ -301,13 +301,11 @@
+ #endif
+
+ // we should do a directory scan here...
+- AudicleFont::available_fonts().push_back( "FTGL:ARIAL.TTF" );
+- AudicleFont::available_fonts().push_back( "FTGL:ARIBLK.TTF" );
+- AudicleFont::available_fonts().push_back( "FTGL:BYTE.TTF" );
+- AudicleFont::available_fonts().push_back( "FTGL:COUR.TTF" );
+- AudicleFont::available_fonts().push_back( "FTGL:LUCON.TTF" );
+- AudicleFont::available_fonts().push_back( "FTGL:TIMES.TTF" );
+- AudicleFont::available_fonts().push_back( "FTGL:verdana.TTF" );
++ AudicleFont::available_fonts().push_back( "FTGL:arial.ttf" );
++ AudicleFont::available_fonts().push_back( "FTGL:ariblk.ttf" );
++ AudicleFont::available_fonts().push_back( "FTGL:cour.ttf" );
++ AudicleFont::available_fonts().push_back( "FTGL:times.ttf" );
++ AudicleFont::available_fonts().push_back( "FTGL:verdana.ttf" );
+
+ };
+
+diff -ru audicle-1.0.0.6~/src/audicle_ui_base.cpp audicle-1.0.0.6/src/audicle_ui_base.cpp
+--- audicle-1.0.0.6~/src/audicle_ui_base.cpp 2008-03-30 00:29:37.000000000 +0100
++++ audicle-1.0.0.6/src/audicle_ui_base.cpp 2008-03-30 00:30:32.000000000 +0100
+@@ -47,8 +47,8 @@
+ void init_UI_Fonts() {
+ if ( _ui_fonts_inited ) return;
+ #ifdef _USE_FTGL_FONTS_
+- labelFont = AudicleFont::loadFont ( "FTGL:verdana.TTF" );
+- labelFontMono = AudicleFont::loadFont ( "FTGL:LUCON.TTF" );
++ labelFont = AudicleFont::loadFont ( "FTGL:verdana.ttf" );
++ labelFontMono = AudicleFont::loadFont ( "FTGL:couri.ttf" );
+ #else
+ labelFont = AudicleFont::loadFont ( "OpenGL:variable" );
+ labelFontMono = AudicleFont::loadFont ( "OpenGL:variable" );
+diff -ru audicle-1.0.0.6~/src/audicle_ui_editor.cpp audicle-1.0.0.6/src/audicle_ui_editor.cpp
+--- audicle-1.0.0.6~/src/audicle_ui_editor.cpp 2008-03-30 00:29:37.000000000 +0100
++++ audicle-1.0.0.6/src/audicle_ui_editor.cpp 2008-03-30 00:30:32.000000000 +0100
+@@ -46,7 +46,7 @@
+
+ void init_Buffer_Font() {
+ #ifdef _USE_FTGL_FONTS_
+- bufferFont = AudicleFont::loadFont ( "FTGL:LUCON.TTF" );
++ bufferFont = AudicleFont::loadFont ( "FTGL:couri.ttf" );
+ #else
+ bufferFont = AudicleFont::loadFont ( "OpenGL:mono" );
+ #endif
diff --git a/media-sound/audicle/files/audicle-1.0.0.7-const.patch b/media-sound/audicle/files/audicle-1.0.0.7-const.patch
new file mode 100644
index 000000000000..38acbf2f2ede
--- /dev/null
+++ b/media-sound/audicle/files/audicle-1.0.0.7-const.patch
@@ -0,0 +1,12 @@
+diff -ru audicle-1.0.0.7.orig//src/audicle_font.cpp audicle-1.0.0.7/src/audicle_font.cpp
+--- audicle-1.0.0.7.orig//src/audicle_font.cpp 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/src/audicle_font.cpp 2012-03-17 10:49:24.000000000 +0100
+@@ -215,7 +215,7 @@
+ protected :
+ FTFont * m_font;
+ public:
+- AudicleFTGLFont( char * name ) {
++ AudicleFTGLFont( const char * name ) {
+
+ glEnable ( GL_TEXTURE_2D );
+
diff --git a/media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch b/media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch
new file mode 100644
index 000000000000..f6fc08e7da47
--- /dev/null
+++ b/media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch
@@ -0,0 +1,68 @@
+diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/chuck_vm.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/chuck_vm.cpp
+--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/chuck_vm.cpp 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/chuck_vm.cpp 2012-03-17 10:27:23.000000000 +0100
+@@ -48,6 +48,7 @@
+ #else
+ #include <unistd.h>
+ #include <pthread.h>
++ #include <algorithm>
+ #endif
+
+
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: chuck_vm.cpp.orig
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: rtaudio.cpp.orig
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: rtaudio.cpp.rej
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_stk.cpp.orig
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_stk.cpp.rej
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_xxx.cpp.orig
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_xxx.cpp.rej
+diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp
+--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:27:23.000000000 +0100
+@@ -38,6 +38,7 @@
+ #include <limits.h>
+ #include <vector>
+ #include <map>
++#include <climits>
+
+ using namespace std;
+
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: util_hid.cpp.orig
+diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_opsc.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_opsc.cpp
+--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_opsc.cpp 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_opsc.cpp 2012-03-17 10:27:23.000000000 +0100
+@@ -57,6 +57,7 @@
+ #include <netinet/tcp.h>
+ #include <arpa/inet.h>
+ #include <netdb.h>
++#include <algorithm>
+ #endif
+
+ #if defined(__MACOSX_CORE__)
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: util_opsc.cpp.orig
+diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_string.h audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_string.h
+--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_string.h 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_string.h 2012-03-17 10:27:23.000000000 +0100
+@@ -36,6 +36,7 @@
+ #include "chuck_def.h"
+ #include <string>
+ #include <vector>
++#include <cstdio>
+
+
+ // itoa
+diff -ru audicle-1.0.0.7.orig//src/audicle_def.h audicle-1.0.0.7/src/audicle_def.h
+--- audicle-1.0.0.7.orig//src/audicle_def.h 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/src/audicle_def.h 2012-03-17 10:28:40.000000000 +0100
+@@ -39,8 +39,9 @@
+
+ #include "chuck_def.h"
+
+-#include <stdio.h>
+-#include <math.h>
++#include <cstdio>
++#include <cmath>
++#include <algorithm>
+ #include <assert.h>
+ #ifndef __PLATFORM_WIN32__
+ #include <unistd.h>
diff --git a/media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch b/media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch
new file mode 100644
index 000000000000..d362ed06423a
--- /dev/null
+++ b/media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch
@@ -0,0 +1,149 @@
+diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp
+--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:23:39.000000000 +0100
++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:25:03.000000000 +0100
+@@ -7392,14 +7392,139 @@
+ int WiiRemote_send( const HidMsg * msg ){ return -1; }
+ const char * WiiRemote_name( int wr ){ return NULL; }
+
++#define SYSFS_TILTSENSOR_FILE "/sys/devices/platform/applesmc/position"
++#define TILTSENSOR_BUF_LEN 32
++
++static struct t_TiltSensor_data
++{
++ union
++ {
++ struct t_macbook
++ {
++ int x;
++ int y;
++ int z;
++ } macbook;
++ } data;
++ int dataType;
++ int detected;
++ int refcount;
++
++ t_TiltSensor_data()
++ {
++ refcount = 0;
++ dataType = -1;
++ detected = 0;
++ }
++
++} TiltSensor_data;
++enum
++{
++ linuxAppleSMCMacBookDataType
++};
++static int TiltSensor_detect()
++{
++ int fd;
++
++ fd = open(SYSFS_TILTSENSOR_FILE, O_RDONLY);
++
++ if (fd > 0)
++ {
++ TiltSensor_data.dataType = linuxAppleSMCMacBookDataType;
++ TiltSensor_data.detected = 1;
++ close(fd);
++ return 1;
++ }
++
++ TiltSensor_data.detected = -1;
++
++ return 0;
++}
++
++static int TiltSensor_do_read()
++{
++
++ switch(TiltSensor_data.dataType)
++ {
++ case linuxAppleSMCMacBookDataType:
++ char buf[TILTSENSOR_BUF_LEN];
++ int ret, fd;
++ fd = open(SYSFS_TILTSENSOR_FILE, O_RDONLY);
++
++ if (fd < 0) {
++ return -1;
++ }
++ ret = read(fd, buf, TILTSENSOR_BUF_LEN);
++ if (ret < 0) {
++ close(fd);
++ return -1;
++ }
++ if (sscanf(buf, "(%d,%d,%d)\n", &TiltSensor_data.data.macbook.x, &TiltSensor_data.data.macbook.y, &TiltSensor_data.data.macbook.z) != 3) {
++ close(fd);
++ return -1;
++ }
++ close(fd);
++ break;
++ default:
++ return 0;
++ }
++ return 1;
++}
+ void TiltSensor_init(){}
+ void TiltSensor_quit(){}
+ void TiltSensor_probe(){}
+-int TiltSensor_count(){ return 0; }
+-int TiltSensor_open( int ts ){ return -1; }
+-int TiltSensor_close( int ts ){ return -1; }
+-int TiltSensor_read( int ts, int type, int num, HidMsg * msg ){ return -1; }
+-const char * TiltSensor_name( int ts ){ return NULL; }
++int TiltSensor_count()
++{
++ if(TiltSensor_data.detected == 0)
++ TiltSensor_detect();
++
++ if(TiltSensor_data.detected == -1)
++ return 0;
++ else if(TiltSensor_data.detected == 1)
++ return 1;
++
++ return 0;
++}
++int TiltSensor_open( int ts )
++{
++ if(TiltSensor_data.detected == 0)
++ TiltSensor_detect();
++
++ if(TiltSensor_data.detected == -1)
++ return -1;
++
++ TiltSensor_data.refcount++;
++
++ return 0;
++}
++int TiltSensor_close( int ts )
++{
++ TiltSensor_data.refcount--;
++
++ return 0;
++}
++int TiltSensor_read( int ts, int type, int num, HidMsg * msg )
++{
++
++ if(TiltSensor_data.detected == -1)
++ return -1;
++
++ if(!TiltSensor_do_read())
++ return -1;
++
++ if(TiltSensor_data.dataType == linuxAppleSMCMacBookDataType)
++ {
++ msg->idata[0] = TiltSensor_data.data.macbook.x;
++ msg->idata[1] = TiltSensor_data.data.macbook.y;
++ msg->idata[2] = TiltSensor_data.data.macbook.z;
++ }
++
++ return 0;
++}
++const char * TiltSensor_name( int ts )
++{
++ return "Apple Sudden Motion Sensor";
++}
+
+
+ #endif
+Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: util_hid.cpp.orig
diff --git a/media-sound/audicle/metadata.xml b/media-sound/audicle/metadata.xml
new file mode 100644
index 000000000000..69313e7770a3
--- /dev/null
+++ b/media-sound/audicle/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ a potentially new type of audio programming environment that integrates
+ the programmability of the development environment with elements of the
+ runtime environment
+ </longdescription>
+</pkgmetadata>