[proaudio] [2009] portaudio-9999: now using autotools instead of unmaintained scons |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 2009
Author: keenblade
Date: 2011-07-03 12:55:13 +0200 (Sun, 03 Jul 2011)
Log Message:
-----------
portaudio-9999: now using autotools instead of unmaintained scons
Modified Paths:
--------------
trunk/overlays/proaudio/media-libs/portaudio/ChangeLog
trunk/overlays/proaudio/media-libs/portaudio/Manifest
trunk/overlays/proaudio/media-libs/portaudio/portaudio-9999.ebuild
Modified: trunk/overlays/proaudio/media-libs/portaudio/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/portaudio/ChangeLog 2011-07-02 17:31:34 UTC (rev 2008)
+++ trunk/overlays/proaudio/media-libs/portaudio/ChangeLog 2011-07-03 10:55:13 UTC (rev 2009)
@@ -2,6 +2,9 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 03 Jul 2011; Hakan Demiralp <keenblade@xxxxxxxxxxxxx portaudio-9999.ebuild:
+ portaudio-9999: now using autotools instead of unmaintained scons
+
*portaudio-19_pre20071207 (01 Jul 2011)
01 Jul 2011; Hakan Demiralp <keenblade@xxxxxxxxxxxxx
Modified: trunk/overlays/proaudio/media-libs/portaudio/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/portaudio/Manifest 2011-07-02 17:31:34 UTC (rev 2008)
+++ trunk/overlays/proaudio/media-libs/portaudio/Manifest 2011-07-03 10:55:13 UTC (rev 2009)
@@ -2,6 +2,6 @@
EBUILD portaudio-19-r3.ebuild 2484 RMD160 5faec0297c6d31b1fbbfd1ae094faff06ba2bdc4 SHA1 070a74105dc4ffda1eb34299959a1401a88bf40b SHA256 2c9b0ff9f196965eb0418a3ae9f39189ea6965ad7c00f63a93909d8811400204
EBUILD portaudio-19-r4.ebuild 2563 RMD160 a53f8e9856ab91735dad6feca59b47f4543d9b62 SHA1 54ec722894f558a26fc05ccd83ceec1cfabfc859 SHA256 da34169b21015d8bbfc4e982a0180efef9bb75d3cc655981913b82ac4a9da33b
EBUILD portaudio-19_pre20071207.ebuild 895 RMD160 a0859b873d43ed5d5f89a671661bd54539fda323 SHA1 f023705172f7befd1b375fd66f9f443f2bb50ab6 SHA256 d3d3f13c3ae021469e0fa6363171c5927215dcc081091977aa0a335ab86d8008
-EBUILD portaudio-9999.ebuild 2426 RMD160 68699f7d5cecf36d620496d32076632ad0849303 SHA1 092132a63f60fae19a023f458a863968845ed17c SHA256 1b008e784bf4b32c426750cd88109c853cbedffd3840973ed2358d10c31f6223
-MISC ChangeLog 870 RMD160 6dfa8361c7b18330db67665c2c8c50f6e32659b5 SHA1 fa54ba485ac19267bf50c706602d066a49b5082a SHA256 f659ceedb76be10d1f2bd4d9becd8ca1bfd0cefc62295e0fbf1b481f9eed9086
+EBUILD portaudio-9999.ebuild 992 RMD160 df1dac1a1175d55ccbef1af16f853d83e6ff7651 SHA1 ed92b59cc5c493f2e1c58604dc814bff2251512b SHA256 64313e277699b93f61c919978c7bd8e92f5fd961611961b8d6356d154f60e867
+MISC ChangeLog 1017 RMD160 79ae402f8e6bc4979188eb1548febd83bee3578e SHA1 51642c244b08883e88f05d784c11bf9397eade05 SHA256 168b31e9043febd85f6be10a5733fd0df2ca970733a651aacd80b123b9dfe3c5
MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89
Modified: trunk/overlays/proaudio/media-libs/portaudio/portaudio-9999.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/portaudio/portaudio-9999.ebuild 2011-07-02 17:31:34 UTC (rev 2008)
+++ trunk/overlays/proaudio/media-libs/portaudio/portaudio-9999.ebuild 2011-07-03 10:55:13 UTC (rev 2009)
@@ -1,88 +1,56 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /cvsroot/jacklab/gentoo/media-libs/portaudio/portaudio-19.ebuild,v 1.1.1.1 2006/04/10 11:22:11 gimpel Exp $
+# $Header: $
-inherit eutils subversion #fetch-tools
+EAPI=4
-ESVN_REPO_URI="https://www.portaudio.com/repos/portaudio/trunk"
+inherit libtool subversion
+
DESCRIPTION="An open-source cross platform audio API."
HOMEPAGE="http://www.portaudio.com"
+ESVN_REPO_URI="https://www.portaudio.com/repos/portaudio/trunk"
SRC_URI=""
-url="http://portaudio.com/archives/pa_snapshot_v19.tar.gz"
+LICENSE="as-is"
SLOT="19"
-LICENSE="GPL-2"
KEYWORDS=""
-IUSE="jack alsa oss doc"
+IUSE="alsa +cxx debug jack oss static-libs"
-RDEPEND="virtual/libc"
-DEPEND="app-arch/unzip
- jack? ( >=media-sound/jack-audio-connection-kit-0.100.0 )
- alsa? ( >=media-libs/alsa-lib-0.9 )
- dev-util/scons"
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
S=${WORKDIR}/${PN}
src_unpack() {
- #fetch_tarball_cmp "${url}"
- #unpack pa_snapshot_v19.tar.gz
subversion_src_unpack
}
-src_compile() {
- scons_compile(){
- mkdir -p "${D}"/usr
- local myconf="enableShared=1 prefix=${D}/usr enableStatic=0 enableAsserts=0 enableCxx=1"
- ! use jack; myconf="${myconf} useJACK=$?"
- ! use alsa; myconf="${myconf} useALSA=$?"
- ! use oss; myconf="${myconf} useOSS=$?"
- einfo "${myconf}"
- scons configure ${myconf} customCFlags="${CFLAGS}" || return 1 # "configure failed"
- scons ${MAKEOPTS} || return 1 # "scons failed"
- return 0
- }
+src_prepare() {
+ elibtoolize
+}
- make_compile() {
- econf $(use_with alsa) $(use_with jack) \
- $(use_with oss)|| return 1 #die "econf failed"
- emake || return 1 #die "emake failed"
- return 0
- }
- ewarn "using scons build system"
- scons_compile
- if [ $? == "1" ];then
- build_tool="auto"
- ewarn "scons failded trying autotools"
- make_compile || die "die configure/build"
- else
- build_tool="scons"
- fi
+src_configure() {
+ econf \
+ $(use_enable debug debug-output) \
+ $(use_enable cxx) \
+ $(use_enable static-libs static) \
+ $(use_with alsa) \
+ $(use_with jack) \
+ $(use_with oss)
}
+src_compile() {
+ emake lib/libportaudio.la || die
+ emake || die
+}
+
src_install() {
- if [ "${build_tool}" == "scons" ];then
- dodir /usr
- scons install DESTDIR="${D}/usr" || die "scons failed to install"
- use doc && dodoc docs/*
- else
-# if ! use ppc-macos;then
-# dolib lib/*
-# dosym /usr/$(get_libdir)/libportaudio.so.0.0.19 /usr/$(get_libdir)/libportaudio.so
-# else
-# dolib pa_mac_core/libportaudio.dylib
-# fi
- emake DESTDIR="${D}" install || die "install failed"
+ default
- insinto /usr/include
- doins include/portaudio.h
- use doc && dodoc docs/*
- fi
-}
+ find "${D}" -name '*.la' -exec rm -f {} +
-pkg_postinst(){
- einfo "If you update from portaudio-19 to portaudio-19-r1"
- einfo "and have troubles with apps using portaudio you need to run:"
- einfo
- einfo "revdep-rebuild --library=libportaudio.so.*"
- einfo
- einfo "to fix apps which linked against portaudio-19"
+ dodoc README.txt
+ dohtml index.html
}