From 51c4f47c76597913de2c00b96f1c0a71b3eee82e Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 21 Feb 2017 18:04:30 +0100 Subject: media-sound/ecasound: python-single-r1, EAPI=6 --- media-sound/ecasound/ecasound-2.6.0-r1.ebuild | 70 ++++++++++++++++++ media-sound/ecasound/ecasound-2.6.0.ebuild | 77 ------------------- media-sound/ecasound/ecasound-2.9.1-r1.ebuild | 94 ++++++++++++++++++++++++ media-sound/ecasound/ecasound-2.9.1.ebuild | 102 -------------------------- 4 files changed, 164 insertions(+), 179 deletions(-) create mode 100644 media-sound/ecasound/ecasound-2.6.0-r1.ebuild delete mode 100644 media-sound/ecasound/ecasound-2.6.0.ebuild create mode 100644 media-sound/ecasound/ecasound-2.9.1-r1.ebuild delete mode 100644 media-sound/ecasound/ecasound-2.9.1.ebuild diff --git a/media-sound/ecasound/ecasound-2.6.0-r1.ebuild b/media-sound/ecasound/ecasound-2.6.0-r1.ebuild new file mode 100644 index 000000000000..99d0d192d101 --- /dev/null +++ b/media-sound/ecasound/ecasound-2.6.0-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="a package for multitrack audio processing" +HOMEPAGE="http://ecasound.seul.org/ecasound" +SRC_URI="http://${PN}.seul.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="1" +KEYWORDS="amd64 ~ppc x86" +IUSE="alsa audiofile debug doc jack libsamplerate mikmod ncurses vorbis oss python ruby sndfile" + +RDEPEND="python? ( ${PYTHON_DEPS} ) + jack? ( media-sound/jack-audio-connection-kit ) + media-libs/ladspa-sdk + audiofile? ( media-libs/audiofile ) + alsa? ( media-libs/alsa-lib ) + vorbis? ( media-libs/libvorbis ) + libsamplerate? ( media-libs/libsamplerate ) + mikmod? ( media-libs/libmikmod:0 ) + ruby? ( dev-lang/ruby ) + python? ( dev-lang/python ) + ncurses? ( sys-libs/ncurses ) + sndfile? ( media-libs/libsndfile ) + sys-libs/readline" +DEPEND="${RDEPEND}" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local pyconf=() + + if use python ; then + pyconf=( "--with-python-modules=${EPREFIX}/usr/$(get_libdir)/${EPYTHON}" ) + fi + + econf \ + $(use_enable alsa) \ + --disable-arts \ + $(use_enable audiofile) \ + $(use_enable debug) \ + $(use_enable jack) \ + $(use_enable libsamplerate) \ + $(use_enable ncurses) \ + $(use_enable oss) \ + $(use_enable python pyecasound c) \ + $(use_enable ruby rubyecasound) \ + $(use_enable sndfile) \ + --enable-shared \ + --with-largefile \ + --enable-sys-readline \ + "${pyconf[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + use python && python_optimize + dodoc BUGS NEWS README TODO + use doc && dodoc Documentation/*.html +} diff --git a/media-sound/ecasound/ecasound-2.6.0.ebuild b/media-sound/ecasound/ecasound-2.6.0.ebuild deleted file mode 100644 index 3b0e3ca6bca0..000000000000 --- a/media-sound/ecasound/ecasound-2.6.0.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=3 - -inherit eutils python - -DESCRIPTION="a package for multitrack audio processing" -HOMEPAGE="http://ecasound.seul.org/ecasound" -SRC_URI="http://${PN}.seul.org/download/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="1" -KEYWORDS="amd64 ~ppc x86" -IUSE="alsa audiofile debug doc jack libsamplerate mikmod ncurses vorbis oss python ruby sndfile" - -RDEPEND="python? ( dev-lang/python ) - jack? ( media-sound/jack-audio-connection-kit ) - media-libs/ladspa-sdk - audiofile? ( media-libs/audiofile ) - alsa? ( media-libs/alsa-lib ) - vorbis? ( media-libs/libvorbis ) - libsamplerate? ( media-libs/libsamplerate ) - mikmod? ( media-libs/libmikmod:0 ) - ruby? ( dev-lang/ruby ) - python? ( dev-lang/python ) - ncurses? ( sys-libs/ncurses ) - sndfile? ( media-libs/libsndfile ) - sys-libs/readline" -DEPEND="${RDEPEND}" - -src_configure() { - local PYConf - - if use python; then - PYConf="--enable-pyecasound=c - --with-python-includes=$(python_get_includedir) - --with-python-modules=$(python_get_libdir)" - else - PYConf="$myconf --disable-pyecasound" - fi - - econf \ - $(use_enable alsa) \ - --disable-arts \ - $(use_enable audiofile) \ - $(use_enable debug) \ - $(use_enable jack) \ - $(use_enable libsamplerate) \ - $(use_enable ncurses) \ - $(use_enable oss) \ - $(use_enable ruby rubyecasound) \ - $(use_enable sndfile) \ - --enable-shared \ - --with-largefile \ - --enable-sys-readline \ - ${PYConf} || die "econf failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed." - dodoc BUGS NEWS README TODO Documentation/*.txt - use doc && dohtml Documentation/*.html -} - -pkg_postinst() { - if use python; then - python_mod_optimize ecacontrol.py eci.py pyeca.py - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup ecacontrol.py eci.py pyeca.py - fi -} diff --git a/media-sound/ecasound/ecasound-2.9.1-r1.ebuild b/media-sound/ecasound/ecasound-2.9.1-r1.ebuild new file mode 100644 index 000000000000..db40f645c4b3 --- /dev/null +++ b/media-sound/ecasound/ecasound-2.9.1-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils python-single-r1 + +DESCRIPTION="a package for multitrack audio processing" +HOMEPAGE="http://ecasound.seul.org/ecasound" +SRC_URI="http://ecasound.seul.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="1" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="alsa audiofile debug doc jack libsamplerate lv2 mikmod ncurses oil osc oss +python ruby sndfile static-libs test" +REQUIRED_USE="test? ( lv2 ) + python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="sys-libs/readline:0= + alsa? ( media-libs/alsa-lib:= ) + audiofile? ( media-libs/audiofile:= ) + jack? ( virtual/jack:= ) + libsamplerate? ( media-libs/libsamplerate:= ) + lv2? ( >=media-libs/lilv-0.5.0:= ) + media-libs/ladspa-sdk + mikmod? ( media-libs/libmikmod:0= ) + ncurses? ( sys-libs/ncurses:0= ) + oil? ( dev-libs/liboil:= ) + osc? ( media-libs/liblo:= ) + python? ( ${PYTHON_DEPS} ) + ruby? ( dev-lang/ruby ) + sndfile? ( media-libs/libsndfile:= )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + eapply "${FILESDIR}"/${PN}-2.8.1-ldflags.patch + eapply_user + +# if use python ; then +# sed -i -e "s:\$(ecasoundc_libs):\0 $(python_get_library -l):" \ +# pyecasound/Makefile.am || die "sed failed" +# fi + + eautoreconf +} + +src_configure() { + local pyconf=() + + if use python ; then + pyconf=( "--with-python-modules=${EPREFIX}/usr/$(get_libdir)/${EPYTHON}" ) + fi + + econf \ + --disable-arts \ + --enable-shared \ + --enable-sys-readline \ + --with-largefile \ + $(use_enable alsa) \ + $(use_enable audiofile) \ + $(use_enable debug) \ + $(use_enable jack) \ + $(use_enable libsamplerate) \ + $(use_enable lv2 liblilv) \ + $(use_enable ncurses) \ + $(use_enable oil liboil) \ + $(use_enable osc liblo) \ + $(use_enable oss) \ + $(use_enable python pyecasound) \ + $(use_enable ruby rubyecasound) \ + $(use_enable sndfile) \ + $(use_enable static-libs static) \ + "${pyconf[@]}" +} + +src_install() { + default + use python && python_optimize + + if use doc ; then + dodoc Documentation/*.html + dodoc Documentation/programmers_guide/ecasound_programmers_guide.txt + fi + + prune_libtool_files +} diff --git a/media-sound/ecasound/ecasound-2.9.1.ebuild b/media-sound/ecasound/ecasound-2.9.1.ebuild deleted file mode 100644 index a17e5c60fb1e..000000000000 --- a/media-sound/ecasound/ecasound-2.9.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=4 -PYTHON_DEPEND="python? 2" - -inherit eutils python autotools - -DESCRIPTION="a package for multitrack audio processing" -HOMEPAGE="http://ecasound.seul.org/ecasound" -SRC_URI="http://ecasound.seul.org/download/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="1" -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="alsa audiofile debug doc jack libsamplerate lv2 mikmod ncurses oil osc oss -python ruby sndfile static-libs test" -REQUIRED_USE="test? ( lv2 )" - -RDEPEND="sys-libs/readline - alsa? ( media-libs/alsa-lib ) - audiofile? ( media-libs/audiofile ) - jack? ( media-sound/jack-audio-connection-kit ) - libsamplerate? ( media-libs/libsamplerate ) - lv2? ( >=media-libs/lilv-0.5.0 ) - media-libs/ladspa-sdk - mikmod? ( media-libs/libmikmod:0 ) - ncurses? ( sys-libs/ncurses ) - oil? ( dev-libs/liboil ) - osc? ( media-libs/liblo ) - ruby? ( dev-lang/ruby ) - sndfile? ( media-libs/libsndfile )" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -pkg_setup() { - if use python ; then - python_set_active_version 2 - python_pkg_setup - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-2.8.1-ldflags.patch - - if use python ; then - sed -i -e "s:\$(ecasoundc_libs):\0 $(python_get_library -l):" \ - pyecasound/Makefile.am || die "sed failed" - fi - - eautoreconf -} - -src_configure() { - local pyconf - - if use python ; then - pyconf="--with-python-includes=${EPREFIX}$(python_get_includedir) - --with-python-modules=${EPREFIX}$(python_get_libdir)" - fi - - econf \ - --disable-arts \ - --enable-shared \ - --enable-sys-readline \ - --with-largefile \ - $(use_enable alsa) \ - $(use_enable audiofile) \ - $(use_enable debug) \ - $(use_enable jack) \ - $(use_enable libsamplerate) \ - $(use_enable lv2 liblilv) \ - $(use_enable ncurses) \ - $(use_enable oil liboil) \ - $(use_enable osc liblo) \ - $(use_enable oss) \ - $(use_enable python pyecasound) \ - $(use_enable ruby rubyecasound) \ - $(use_enable sndfile) \ - $(use_enable static-libs static) \ - ${pyconf} -} - -src_install() { - default - - if use doc ; then - dohtml Documentation/*.html - dodoc Documentation/programmers_guide/ecasound_programmers_guide.txt - fi - - prune_libtool_files -} - -pkg_postinst() { - use python && python_mod_optimize ecacontrol.py eci.py pyeca.py -} - -pkg_postrm() { - use python && python_mod_cleanup ecacontrol.py eci.py pyeca.py -} -- cgit v1.2.3-65-gdbad