[proaudio] [1381] add lash rc

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 1381
Author:   gimpel
Date:     2008-12-08 17:43:00 +0100 (Mon, 08 Dec 2008)

Log Message:
-----------
add lash rc

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/lash/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/lash/lash-0.6.0_rc2.ebuild


Modified: trunk/overlays/proaudio/media-sound/lash/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/lash/Manifest	2008-12-08 16:38:24 UTC (rev 1380)
+++ trunk/overlays/proaudio/media-sound/lash/Manifest	2008-12-08 16:43:00 UTC (rev 1381)
@@ -1,5 +1,7 @@
 AUX lash-0.5.4-glibc2.8.patch 337 RMD160 a06ca6ffb2b5e0e7bc8cd0dde2afb963841e663b SHA1 72e1881315df0b04cb650c6282b3d0feaa24aee1 SHA256 f3ae3954e6754b9d2fc43773fb1472f5e64c58188c6fff3517f11f0f75a1f546
 DIST lash-0.5.4.tar.gz 623469 RMD160 251a20c0597b8ec6fac2a39bab1d18ab5c017f40 SHA1 d8fa24ebef0807c3b0426894d7ecd6229fda28b4 SHA256 105a7da84415c4725c6bcad28e70f23aeb4534f94fc80ca262b6a2cef2226c16
+DIST lash-0.6.0~rc2.tar.bz2 431891 RMD160 556d20f6f841cb1abc2ab245ced0cddab5119826 SHA1 b683424683c41c082ebcf58ed38cd2f34f9ed5e5 SHA256 3c1eb2bd88e1a0722dea5c24be4ede1d80848c963d41751973fae73c47dfe18b
 EBUILD lash-0.5.4.ebuild 2391 RMD160 9b8ce9b63e65655f6d21a605b068593d505b57a1 SHA1 6b6c8e8895f2c2fc511ec1d9890b1497521e9eaa SHA256 bb8e7258ccf046c81ebdf551805831f182a9e333043b39cc93bf604d9d155cb3
+EBUILD lash-0.6.0_rc2.ebuild 2042 RMD160 e99546f118390fcb1d4cce69831bdd7843089a5d SHA1 6d1f3020398c6e7ca14d17ad5af726bd2a9f367b SHA256 150618ae75fe907dafeaf81166296e6e1646b155529fbc19d317971b28f285ce
 MISC ChangeLog 548 RMD160 6b648ad1401a7887b5fc21915ade7923cc4e4d7c SHA1 4aa3158cdf61e0371ff811de1f3cd0f7057bc92c SHA256 84f53d5ca869d30643644ea4f6271e576a5aab1ecbc1534fb7f4381684621139
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Added: trunk/overlays/proaudio/media-sound/lash/lash-0.6.0_rc2.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/lash/lash-0.6.0_rc2.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/lash/lash-0.6.0_rc2.ebuild	2008-12-08 16:43:00 UTC (rev 1381)
@@ -0,0 +1,83 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils libtool
+
+MY_P="${P/_/~}"
+
+DESCRIPTION="LASH Audio Session Handler"
+HOMEPAGE="http://www.nongnu.org/lash/";
+SRC_URI="http://download.savannah.gnu.org/releases/lash/${MY_P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa debug gtk python"
+
+RDEPEND="alsa? ( media-libs/alsa-lib[midi] )
+	media-sound/jack-audio-connection-kit
+	dev-libs/libxml2
+	gtk? ( >=x11-libs/gtk+-2.0 )
+	python? ( dev-lang/python )
+	|| ( sys-libs/readline dev-libs/libedit )"
+DEPEND="${RDEPEND}
+	dev-util/pkgconfig
+	python? ( >=dev-lang/swig-1.3.31 )"
+
+S="${WORKDIR}/${PN}-0.6.0.594"
+
+src_compile() {
+	local myconf
+
+	# Yet-another-broken-configure: --enable-pylash would disable it.
+	use python || myconf="${myconf} --disable-pylash"
+
+	econf \
+		$(use_enable alsa alsa-midi) \
+		$(use_enable gtk gtk2) \
+		$(use_enable debug) \
+		${myconf} \
+		--disable-serv-inst \
+		--disable-dependency-tracking \
+		|| die "econf failed"
+	emake || die "emake failed"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install || die
+
+	dodoc AUTHORS ChangeLog NEWS README TODO
+}
+
+pkg_postinst(){
+	if [ ! $(grep -q ^lash /etc/services) ] || [ $(grep -q ^ladcca /etc/services) ] ; then
+		# cleanup trailing blank lines in /etc/service
+		sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' /etc/services
+		# check for old ladcca entries and remove
+		if grep -q ^ladcca /etc/services; then
+			sed -i /ladcca/d /etc/services
+		fi
+		# add new lash entry
+		if ! grep -q ^lash /etc/services ; then
+			cat >>/etc/services<<-EOF
+
+lash		14541/tcp			# LASH client/server protocol
+EOF
+		fi
+	fi
+}
+
+pkg_postrm(){
+	# cleanup /etc/services
+	if grep -q ^lash /etc/services; then
+		einfo "cleaning lash entries frome /etc/services"
+		sed -i /lash/d /etc/services
+	fi
+	# cleanup trailing blank lines in /etc/service
+	sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' /etc/services
+	einfo "if programs which use lash fails try:"
+	einfo "revdep-rebuild --library="liblash.so.*""
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/