diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-01-25 08:10:44 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-01-25 08:10:44 +0000 |
commit | 14ea902ac144965954bc6d828f00a8cc38e40a9d (patch) | |
tree | 5fb351b03688f5236b921266b95115dd70a19228 /dev-tcltk | |
parent | Bump (diff) | |
download | gentoo-2-14ea902ac144965954bc6d828f00a8cc38e40a9d.tar.gz gentoo-2-14ea902ac144965954bc6d828f00a8cc38e40a9d.tar.bz2 gentoo-2-14ea902ac144965954bc6d828f00a8cc38e40a9d.zip |
dev-tcltk/snack: Respect AR, #453914; respect CFLAGS, #453916; use distutils-r1 and autotools_utils eclasses
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'dev-tcltk')
-rw-r--r-- | dev-tcltk/snack/ChangeLog | 8 | ||||
-rw-r--r-- | dev-tcltk/snack/snack-2.2.10-r6.ebuild | 98 |
2 files changed, 105 insertions, 1 deletions
diff --git a/dev-tcltk/snack/ChangeLog b/dev-tcltk/snack/ChangeLog index 4a59918cae1a..af26059e377d 100644 --- a/dev-tcltk/snack/ChangeLog +++ b/dev-tcltk/snack/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-tcltk/snack # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v 1.53 2013/01/24 22:24:15 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v 1.54 2013/01/25 08:10:44 jlec Exp $ + +*snack-2.2.10-r6 (25 Jan 2013) + + 25 Jan 2013; Justin Lecher <jlec@gentoo.org> +snack-2.2.10-r6.ebuild: + Respect AR, #453914; respect CFLAGS, #453916; use distutils-r1 and + autotools_utils eclasses 24 Jan 2013; Agostino Sarubbo <ago@gentoo.org> snack-2.2.10-r5.ebuild: Stable for x86, wrt bug #446822 diff --git a/dev-tcltk/snack/snack-2.2.10-r6.ebuild b/dev-tcltk/snack/snack-2.2.10-r6.ebuild new file mode 100644 index 000000000000..4accaff7d1d5 --- /dev/null +++ b/dev-tcltk/snack/snack-2.2.10-r6.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/snack-2.2.10-r6.ebuild,v 1.1 2013/01/25 08:10:44 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} pypy{1_9,2_0} ) + +inherit autotools autotools-utils distutils-r1 multilib + +DESCRIPTION="The Snack Sound Toolkit (Tcl)" +HOMEPAGE="http://www.speech.kth.se/snack/" +SRC_URI="http://www.speech.kth.se/snack/dist/${PN}${PV}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +SLOT="0" +IUSE="alsa examples python threads vorbis" + +RESTRICT="test" # Bug 78354 + +DEPEND=" + dev-lang/tcl + dev-lang/tk + alsa? ( media-libs/alsa-lib ) + python? ( ${PYTHON_DEPS} ) + vorbis? ( media-libs/libvorbis )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}${PV}/unix" + +#PYTHON_MODNAME="tkSnack.py" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=( + "${FILESDIR}"/alsa-undef-sym.patch + "${FILESDIR}"/${P}-CVE-2012-6303-fix.patch + ) + +src_prepare() { + # adds -install_name (soname on Darwin) + [[ ${CHOST} == *-darwin* ]] && PATCHES+=( "${FILESDIR}"/${P}-darwin.patch ) + + sed \ + -e "s:ar cr:$(tc-getAR) cr:g" \ + -e "s:-O:${CFLAGS}:g" \ + -i Makefile.in || die + + cd .. || die + + autotools-utils_src_prepare + + sed \ + -e 's|^\(#define roundf(.*\)|//\1|' \ + -i generic/jkFormatMP3.c || die +} + +src_configure() { + local myeconfargs=( + --libdir="${EPREFIX}"/usr/$(get_libdir) + --includedir="${EPREFIX}"/usr/include + ) + + use alsa && myconf+=( --enable-alsa ) + use threads && myconf+=( --enable-threads ) + + use vorbis && \ + myconf+=( --with-ogg-include="${EPREFIX}"/usr/include ) && \ + myconf+=( --with-ogg-lib="${EPREFIX}"/usr/$(get_libdir) ) + + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile +} + +src_install() { + autotools-utils_src_install + + if use python ; then + cd "${S}"/../python || die + distutils-r1_src_install + fi + + cd "${S}"/.. || die + + dohtml doc/* + + if use examples ; then + docinto examples + sed -i -e 's/wish[0-9.]+/wish/g' demos/tcl/* || die + dodoc -r demos/tcl + + use python && dodoc -r demos/python + fi +} |