From: Cédric Krier Date: Sun, 31 Dec 2006 16:01:37 +0000 (+0000) Subject: New ebuild X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed70a491fa9373f644572d4912b9e2e03e7cfb07;p=gentoo.git New ebuild Package-Manager: portage-2.1.1-r2 --- diff --git a/media-sound/chuck/ChangeLog b/media-sound/chuck/ChangeLog new file mode 100644 index 000000000000..2d774a4fb69d --- /dev/null +++ b/media-sound/chuck/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-sound/chuck +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/chuck/ChangeLog,v 1.1 2006/12/31 16:01:37 cedk Exp $ + +*chuck-1.2.0.7 (31 Dec 2006) + + 31 Dec 2006; Cedric Krier +metadata.xml, + +chuck-1.2.0.7.ebuild: + New ebuild for bug #122332 + diff --git a/media-sound/chuck/Manifest b/media-sound/chuck/Manifest new file mode 100644 index 000000000000..4b3fcc753e81 --- /dev/null +++ b/media-sound/chuck/Manifest @@ -0,0 +1,16 @@ +DIST chuck-1.2.0.7.tgz 1422688 RMD160 bf934d7fa8ca4f39941ab30ac8d1e97cbcf03570 SHA1 574bfd079d1452a99ab459a76b8cb9ad94180d5b SHA256 d70653dcf81db4ceed962234bdec19510acb6ebf12081187e72904a2cbaaa9ee +EBUILD chuck-1.2.0.7.ebuild 1949 RMD160 4dc21ef0f8c4e4beccb38cc16b906ef4668355ee SHA1 177ba1e8f1b52e3266cdf43c981f81c49bf7da56 SHA256 c09f4cb6994ec207ca221539ac0d7aad7e0d87e1c7fa2cb14e29a29d55aa74e2 +MD5 fb3d6790fa168117c6df252592010191 chuck-1.2.0.7.ebuild 1949 +RMD160 4dc21ef0f8c4e4beccb38cc16b906ef4668355ee chuck-1.2.0.7.ebuild 1949 +SHA256 c09f4cb6994ec207ca221539ac0d7aad7e0d87e1c7fa2cb14e29a29d55aa74e2 chuck-1.2.0.7.ebuild 1949 +MISC ChangeLog 351 RMD160 81249f33bb6885f0dea34714476655bf3731d452 SHA1 bed129e341bd1963d7fb791dbbe328b63be97ced SHA256 0c5f8f3390544b0604887435db16a497245e5f6a6baae9140d21caa05ec6d757 +MD5 19cfb7a7e0171cb2b978afa43157098c ChangeLog 351 +RMD160 81249f33bb6885f0dea34714476655bf3731d452 ChangeLog 351 +SHA256 0c5f8f3390544b0604887435db16a497245e5f6a6baae9140d21caa05ec6d757 ChangeLog 351 +MISC metadata.xml 368 RMD160 1bdbac2a814e0ac3680a3fbdbbb426c4b42aa1f0 SHA1 e0f26be139138f200081a60985b3a13d75b6c359 SHA256 27805233ee7ce2aaa17abecafbc40d5b5f2664636e1849f314f3e1dc56241030 +MD5 37f5331ee01f827c5992c108eb5f4215 metadata.xml 368 +RMD160 1bdbac2a814e0ac3680a3fbdbbb426c4b42aa1f0 metadata.xml 368 +SHA256 27805233ee7ce2aaa17abecafbc40d5b5f2664636e1849f314f3e1dc56241030 metadata.xml 368 +MD5 38faf60379b772c4775be7f3f8843a95 files/digest-chuck-1.2.0.7 235 +RMD160 c9b61820e51f96b0f529756ab2a68c9d7345029f files/digest-chuck-1.2.0.7 235 +SHA256 5e751645f614213d1e1df668641e99e5554dccc77523f62fb6b1e41936ae71a9 files/digest-chuck-1.2.0.7 235 diff --git a/media-sound/chuck/chuck-1.2.0.7.ebuild b/media-sound/chuck/chuck-1.2.0.7.ebuild new file mode 100644 index 000000000000..c784fb5ca388 --- /dev/null +++ b/media-sound/chuck/chuck-1.2.0.7.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/chuck/chuck-1.2.0.7.ebuild,v 1.1 2006/12/31 16:01:37 cedk Exp $ + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Strongly-timed, Concurrent, and On-the-fly +Audio Programming Language" +HOMEPAGE="http://chuck.cs.princeton.edu/release/" +SRC_URI="http://chuck.cs.princeton.edu/release/files/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="oss jack alsa examples" + +RDEPEND="jack? ( media-sound/jack-audio-connection-kit ) + alsa? ( >=media-libs/alsa-lib-0.9 ) + media-libs/libsndfile" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +pkg_setup() { + local cnt=0 + use jack && cnt="$((${cnt} + 1))" + use alsa && cnt="$((${cnt} + 1))" + use oss && cnt="$((${cnt} + 1))" + if [[ "${cnt}" -eq 0 ]] ; then + eerror "One of the following USE flags is needed: jack, alsa or oss" + die "Please set one audio engine type" + elif [[ "${cnt}" -ne 1 ]] ; then + ewarn "You have set ${P} to use multiple audio engine." + fi +} + +src_compile() { + local backend + if use jack ; then + backend="jack" + elif use alsa ; then + backend="alsa" + elif use oss ; then + backend="oss" + fi + einfo "Compiling against ${backend}" + + # 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 + + cd "${S}/src" + emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed" +} + +src_install() { + dobin src/chuck + + dodoc AUTHORS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS + docinto doc + dodoc doc/* + if use examples; then + insinto /usr/share/doc/${P}/examples + doins `find examples -type f` + for dir in `find examples/* -type d`; do + insinto /usr/share/doc/${P}/$dir + doins $dir/* + done + fi +} diff --git a/media-sound/chuck/files/digest-chuck-1.2.0.7 b/media-sound/chuck/files/digest-chuck-1.2.0.7 new file mode 100644 index 000000000000..6feb17515d07 --- /dev/null +++ b/media-sound/chuck/files/digest-chuck-1.2.0.7 @@ -0,0 +1,3 @@ +MD5 d69f62bc33fa24249f189f7eaa311611 chuck-1.2.0.7.tgz 1422688 +RMD160 bf934d7fa8ca4f39941ab30ac8d1e97cbcf03570 chuck-1.2.0.7.tgz 1422688 +SHA256 d70653dcf81db4ceed962234bdec19510acb6ebf12081187e72904a2cbaaa9ee chuck-1.2.0.7.tgz 1422688 diff --git a/media-sound/chuck/metadata.xml b/media-sound/chuck/metadata.xml new file mode 100644 index 000000000000..80ee97b367a5 --- /dev/null +++ b/media-sound/chuck/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + cedk@gentoo.org + +ChucK is a new (and developing) audio programming language for +real-time synthesis, composition, and performance +