diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-08-07 04:33:17 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-08-07 04:37:25 -0400 |
commit | d074c9f8331986302c06e523696cdb875335811b (patch) | |
tree | e3dc43d525bfde1eac2ab2dd5f1034f9a416e564 /media-sound/chuck | |
parent | net-p2p/dogecoin-qt: Cleanup per bug #498574 (diff) | |
download | gentoo-d074c9f8331986302c06e523696cdb875335811b.tar.gz gentoo-d074c9f8331986302c06e523696cdb875335811b.tar.bz2 gentoo-d074c9f8331986302c06e523696cdb875335811b.zip |
media-sound/chuck: version bump to 1.3.5.2
Diffstat (limited to 'media-sound/chuck')
-rw-r--r-- | media-sound/chuck/Manifest | 1 | ||||
-rw-r--r-- | media-sound/chuck/chuck-1.3.5.2.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/media-sound/chuck/Manifest b/media-sound/chuck/Manifest index 867f5fb0095f..ce56ee1e500e 100644 --- a/media-sound/chuck/Manifest +++ b/media-sound/chuck/Manifest @@ -1,2 +1,3 @@ DIST chuck-1.2.1.2.tgz 1546875 SHA256 9cb9c246a2fb7ac886c0a3d5f23a5d60eb18aa7717f6ee57f031e42140cf0d2a SHA512 c5666200b54aec825ede1252f8b0b81a4b0608dde6c5a73a8c15cef35877b88d6a9b880a40f980edb7eca00fd4796db23cf46724bf5b858910ddbca4cbd27dbe WHIRLPOOL 54278f4ad348b6e5c7275bb3180e1327f2e9657ad90d823ad0c9c3934346114c83cd40dbb5260405158cc6e028caee336be2d0655e4729af0fc8092d7efd1036 DIST chuck-1.3.5.1.tgz 14686970 SHA256 d141ca61547131edd2b29bdb88183835e4133ef09807674bfa33a4e6e09d1f53 SHA512 450237207150b285954dc2661d6f7829424d4353cdc457a7dce637b6877247b106ad0ed58bdbded17c1f7558e0f01daa7a06642f2727136f6edca5a64d202f73 WHIRLPOOL 5b70e6badffa39e38ea795ea688b4a452cd290dd849d6779e799c7a79e00513fa4b8c07ed64b7243bd0075936ce3ab4bdc99482268d564391ef3a1a96b9f9e8f +DIST chuck-1.3.5.2.tgz 14687476 SHA256 e900b8545ffcb69c6d49354b18c43a9f9b8f789d3ae822f34b408eaee8d3e70b SHA512 00407b0f20fa9adcd9d0c31078ef7593f8a5b026f19086942c3fa56128fd07e202848651e5e8f41f1d70566de766e84f4a049ca4013e65a61b6f6fb10d69ffbc WHIRLPOOL 1eb7da2136d88cec35d7cb26b56e2e4073eb546ee304d6113cf44a82852e0bc5b87e4064bfb87224cfb1080931e68e179d6468be26da9b8e1ad6d987f7d71d7e diff --git a/media-sound/chuck/chuck-1.3.5.2.ebuild b/media-sound/chuck/chuck-1.3.5.2.ebuild new file mode 100644 index 000000000000..1dd3ac4d6355 --- /dev/null +++ b/media-sound/chuck/chuck-1.3.5.2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |