From 3f71901f8c228f4de570abed1831ce3ee425343e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 8 Sep 2018 10:50:14 +0100 Subject: gentoo resync 08.09.2018 --- media-sound/chuck/Manifest | 6 - media-sound/chuck/chuck-1.3.5.1.ebuild | 72 ---------- media-sound/chuck/chuck-1.3.5.2.ebuild | 72 ---------- .../chuck/files/chuck-1.2.1.1-hid-smc.patch | 149 --------------------- .../chuck/files/chuck-1.3.5.1-makefile.patch | 27 ---- 5 files changed, 326 deletions(-) delete mode 100644 media-sound/chuck/chuck-1.3.5.1.ebuild delete mode 100644 media-sound/chuck/chuck-1.3.5.2.ebuild delete mode 100644 media-sound/chuck/files/chuck-1.2.1.1-hid-smc.patch delete mode 100644 media-sound/chuck/files/chuck-1.3.5.1-makefile.patch (limited to 'media-sound/chuck') diff --git a/media-sound/chuck/Manifest b/media-sound/chuck/Manifest index 594b081817a5..e991ef27ab78 100644 --- a/media-sound/chuck/Manifest +++ b/media-sound/chuck/Manifest @@ -1,11 +1,5 @@ -AUX chuck-1.2.1.1-hid-smc.patch 3066 BLAKE2B c18bbb0bbf344a4a32f90c19e11df0c7a67ef5660570b0c87091f49f81faada3573931c7997fa117b8dca847a9ce9ac72d43f10cf0e36cec2e99612854b52cfe SHA512 854e2134f49b29f928f2752ab5228879f5fb2be4eab07ad68d2a66effcc8b0e6cb798bcd499a7cef6f3476923ae9f4dafe9e299c714a22020094074d2cbd3482 -AUX chuck-1.3.5.1-makefile.patch 865 BLAKE2B 6ffdc0d542d5dfda67b75824ed0f3e7b554825323a4e24aeca19a9864a7c0ebb1dc5c3e20cb37306e6eeecb439e9fecc90e58c17a9acd781186e25e52ea7e010 SHA512 3b338b8f744e273ad90d8982a5df0c516eef070c27c604d22c9c091ff2f6ac713305ac6f52db121f3bb224b4171bfa6996d16f1e364532386bf17d05267450f2 AUX chuck-1.4.0.0-hid-smc.patch 2937 BLAKE2B 5bc65ffc74409860218983635501c319f4a69448e93340671ad252cd4bb5edd3d4765aa196b3618d7af37897aff40267e7d8538672560dc4de9650a12a5964b6 SHA512 09b04441e9bbd11a15e798878b79010598dd97513a64f6df21e5ed066147382d6021a496e1d1a33b2268d04caa972a1a94afe48c44a226439e3334da35f47be0 AUX chuck-1.4.0.0-makefile.patch 929 BLAKE2B 1bb70bc169faf5138b3e0d4b60c60366bc6e60a366f2eee3d18c3093b5f2d99e821e0fc948b6a79205500884b8babd12a6676d31c65435f37bf73dedbf5aec74 SHA512 4ceda974263f3a043f187f7d95aae7a16fc65936c7a687f6fa0003a51493caa6eebc8e932075a274373fd319a1c0fb329e1764fc756c4b1691c1dfd8443be836 -DIST chuck-1.3.5.1.tgz 14686970 BLAKE2B 4ce0427d26070ed86b2ec3f788eff88944bf32eec42790a1126641e111bb41abe4e67b4a16b61a6a93524eb2b34d4460fa7ccb9b3656bdcc60cc23189a67ec3b SHA512 450237207150b285954dc2661d6f7829424d4353cdc457a7dce637b6877247b106ad0ed58bdbded17c1f7558e0f01daa7a06642f2727136f6edca5a64d202f73 -DIST chuck-1.3.5.2.tgz 14687476 BLAKE2B 35c3803ba1291bbfedd31d7c2845d20e32af4e91ea77e0790f429465b98d6d3ff91e321f036e3c2294d900d746741d987ac3a231bd6db01e3edaab006d507c97 SHA512 00407b0f20fa9adcd9d0c31078ef7593f8a5b026f19086942c3fa56128fd07e202848651e5e8f41f1d70566de766e84f4a049ca4013e65a61b6f6fb10d69ffbc DIST chuck-1.4.0.0.tgz 14664130 BLAKE2B 2009cc3f6905c7e4361aefdbcc89cab08d21328c6fe8ea366aad32a862428a5ffb16d45b1717e849d174f52e104ff0394a0aa2f93cfceed066e7b393edaabb1e SHA512 198b3c08a79bbbd2c0cdd5d9a7a11b8b58f09e949a3f5dd3f330af7d80fdb2861ca53dce807df555aed6ba917e72001ef7147b62a3ada57c34154102388dece1 -EBUILD chuck-1.3.5.1.ebuild 1929 BLAKE2B 0449896f8ce0053063cf5bad18fdfbbcb78b3520eda472ddd435248a1ba5f041b9b5b019b8f8ee28fff0a23525a5d4247828b3728f4f00552dc2e06d67e733a3 SHA512 e220556b04dc04e84accecddc815fe7e38ce856eca1731e8eb22d49daae7bfb54a8844c5454f4a311b423354cb70f70ae7cd329995f0671d2118c4b310bfafa5 -EBUILD chuck-1.3.5.2.ebuild 1918 BLAKE2B baa283c1ea0193ed834660ddfbab1d2fdf6a7ec298ce1cc766f314e45939f4188404c0acb3205644fc88bb347027b652d1e79b8b61eacb1cff015a9c8feb6a8e SHA512 45e6e77187cc65a4e4740b84a6e18212b62f98a7be100b0d374102b6ae30c554a5ac1d5f6ed62b6266a542c821eaab61c603d6d56e122b4e79e23a7610168c8f EBUILD chuck-1.4.0.0.ebuild 1892 BLAKE2B cd70d52af6b1e789a4eff89f7d92d96263e6d472586bf796c285c69f5c70d121d9d6e0573375b186264f95bd02c1d7ad60dcc836349a1f2059a92cd14b78ffe9 SHA512 a5a5d49048ad3ea97f0e522712142272bc8c04e11f20b113bbf8524db7108e836f96533de0e9100a4ad024d8be5cb5987a0e45cfbef46ea59723e2dfd82d2278 MISC metadata.xml 967 BLAKE2B 505781d22a20892538d6bcdda07f1a1ecaecb56c8574cc6745d4fddfa2b4d3ab643947c1403827bc306eb0082434327beccd0eb583287eea9a488bf6adc4ad21 SHA512 9d4c5d826ec6f90bf81a84e389f2ecca527b5116693fc5c32ccb456f5cb29f7daa42f4d655d57d4ed11a0c7625ec65904777e765a64217a4c3b5ad8a9e17b6e0 diff --git a/media-sound/chuck/chuck-1.3.5.1.ebuild b/media-sound/chuck/chuck-1.3.5.1.ebuild deleted file mode 100644 index 249ca778cb9a..000000000000 --- a/media-sound/chuck/chuck-1.3.5.1.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit toolchain-funcs flag-o-matic eutils - -DESCRIPTION="Strongly-timed, concurrent, and on-the-fly audio programming language" -HOMEPAGE="http://chuck.cs.princeton.edu/" -SRC_URI="http://chuck.cs.princeton.edu/release/files/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+alsa jack examples" -REQUIRED_USE="|| ( alsa jack )" - -RDEPEND="app-eselect/eselect-chuck - media-libs/libsndfile - alsa? ( media-libs/alsa-lib ) - jack? ( media-sound/jack-audio-connection-kit )" -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-1.2.1.1-hid-smc.patch \ - "${FILESDIR}"/${PN}-1.3.5.1-makefile.patch -} - -compile_backend() { - backend=$1 - pushd "${S}/src" &>/dev/null || die - einfo "Compiling against ${backend}" - emake CC=$(tc-getCC) CXX=$(tc-getCXX) linux-${backend} - mv chuck{,-${backend}} - emake clean - popd &>/dev/null || die -} - -src_compile() { - # when compile with athlon or athlon-xp flags - # chuck 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 -} - -src_install() { - use jack && dobin src/chuck-jack - use alsa && dobin src/chuck-alsa - - dodoc AUTHORS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS - docinto doc - dodoc doc/* - if use examples; then - insinto /usr/share/doc/${PF}/ - doins -r examples - docompress -x /usr/share/doc/${PF}/examples - fi -} - -pkg_postinst() { - elog "Chuck now can use multiple audio engines, so you can specify" - elog "the preferred audio engine with chuck-{jack,alsa}" - elog "Or you can use 'eselect chuck' to set the audio engine" - - einfo "Calling eselect chuck update..." - eselect chuck update --if-unset -} diff --git a/media-sound/chuck/chuck-1.3.5.2.ebuild b/media-sound/chuck/chuck-1.3.5.2.ebuild deleted file mode 100644 index fd5abfa7224b..000000000000 --- a/media-sound/chuck/chuck-1.3.5.2.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit toolchain-funcs flag-o-matic - -DESCRIPTION="Strongly-timed, concurrent, and on-the-fly audio programming language" -HOMEPAGE="http://chuck.cs.princeton.edu/" -SRC_URI="http://chuck.cs.princeton.edu/release/files/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+alsa jack examples" -REQUIRED_USE="|| ( alsa jack )" - -RDEPEND="app-eselect/eselect-chuck - media-libs/libsndfile - alsa? ( media-libs/alsa-lib ) - jack? ( media-sound/jack-audio-connection-kit )" -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex" - -PATCHES=( - "${FILESDIR}"/${PN}-1.2.1.1-hid-smc.patch - "${FILESDIR}"/${PN}-1.3.5.1-makefile.patch -) - -compile_backend() { - backend=$1 - pushd "${S}/src" &>/dev/null || die - einfo "Compiling against ${backend}" - emake CC=$(tc-getCC) CXX=$(tc-getCXX) linux-${backend} - mv chuck{,-${backend}} || die - emake clean - popd &>/dev/null || die -} - -src_compile() { - # when compile with athlon or athlon-xp flags - # chuck 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 -} - -src_install() { - use jack && dobin src/chuck-jack - use alsa && dobin src/chuck-alsa - - dodoc AUTHORS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS - docinto doc - dodoc doc/* - if use examples; then - insinto /usr/share/doc/${PF}/ - doins -r examples - docompress -x /usr/share/doc/${PF}/examples - fi -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]]; then - elog "Chuck now can use multiple audio engines, so you can specify" - elog "the preferred audio engine with chuck-{jack,alsa}" - elog "Or you can use 'eselect chuck' to set the audio engine" - fi - eselect chuck update --if-unset -} diff --git a/media-sound/chuck/files/chuck-1.2.1.1-hid-smc.patch b/media-sound/chuck/files/chuck-1.2.1.1-hid-smc.patch deleted file mode 100644 index e5dcef9da811..000000000000 --- a/media-sound/chuck/files/chuck-1.2.1.1-hid-smc.patch +++ /dev/null @@ -1,149 +0,0 @@ -diff -ru chuck-1.2.1.1~/src/util_hid.cpp chuck-1.2.1.1/src/util_hid.cpp ---- chuck-1.2.1.1~/src/util_hid.cpp 2008-03-29 23:24:21.000000000 +0100 -+++ chuck-1.2.1.1/src/util_hid.cpp 2008-03-29 23:24:54.000000000 +0100 -@@ -7175,14 +7175,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 chuck-1.2.1.1/src: util_hid.cpp.orig diff --git a/media-sound/chuck/files/chuck-1.3.5.1-makefile.patch b/media-sound/chuck/files/chuck-1.3.5.1-makefile.patch deleted file mode 100644 index e714d20e6b92..000000000000 --- a/media-sound/chuck/files/chuck-1.3.5.1-makefile.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- chuck-1.3.5.1/src/makefile -+++ chuck-1.3.5.1/src/makefile -@@ -40,8 +40,6 @@ - - ifneq ($(CHUCK_DEBUG),) - CFLAGS+= -g --else --CFLAGS+= -O3 - endif - - ifneq ($(USE_64_BIT_SAMPLE),) ---- chuck-1.3.5.1/src/makefile.alsa -+++ chuck-1.3.5.1/src/makefile.alsa -@@ -1,4 +1,4 @@ - --CFLAGS+= -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -+CFLAGS+= -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ - LDFLAGS+= -lasound -lstdc++ -ldl -lm -lsndfile -lpthread - ---- chuck-1.3.5.1/src/makefile.jack -+++ chuck-1.3.5.1/src/makefile.jack -@@ -1,4 +1,4 @@ - --CFLAGS+= -D__UNIX_JACK__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -+CFLAGS+= -D__UNIX_JACK__ -D__PLATFORM_LINUX__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ - LDFLAGS+= -lasound -ljack -lstdc++ -ldl -lm -lsndfile -lpthread - -- cgit v1.2.3