[proaudio] [1629] jnoise update

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


Revision: 1629
Author:   gavlee
Date:     2010-04-11 03:55:24 +0200 (Sun, 11 Apr 2010)
Log Message:
-----------
jnoise update

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/jnoise/ChangeLog
    trunk/overlays/proaudio/media-sound/jnoise/Manifest
    trunk/overlays/proaudio/media-sound/jnoise/jnoise-0.4.0.ebuild

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/jnoise/files/
    trunk/overlays/proaudio/media-sound/jnoise/files/jnoise-0.4.0-makefile.patch

Modified: trunk/overlays/proaudio/media-sound/jnoise/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/jnoise/ChangeLog	2010-04-10 20:54:30 UTC (rev 1628)
+++ trunk/overlays/proaudio/media-sound/jnoise/ChangeLog	2010-04-11 01:55:24 UTC (rev 1629)
@@ -2,6 +2,11 @@
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  11 Apr 2010; Gavin Pryke <gavinlee303@xxxxxxxxxxxxxx> jnoise-0.4.0.ebuild,
+  +files/jnoise-0.4.0-makefile.patch, metadata.xml:
+  patch for Makefile to work around sandbox errors, add sed tricks from
+  jaaa/japa
+
 *jnoise-0.4.0 (07 Apr 2010)
 
   12 Jan 2009; Florian Faber <faber@xxxxxxxxxxx>;

Modified: trunk/overlays/proaudio/media-sound/jnoise/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/jnoise/Manifest	2010-04-10 20:54:30 UTC (rev 1628)
+++ trunk/overlays/proaudio/media-sound/jnoise/Manifest	2010-04-11 01:55:24 UTC (rev 1629)
@@ -1,4 +1,5 @@
+AUX jnoise-0.4.0-makefile.patch 733 RMD160 82c6f69603930cc9907a6945c5d0c08b115d2fd2 SHA1 c2bb7e777b6a8687d72007400e04279a2ab7c930 SHA256 dd800e0522b98f480adaf9f7249c397db65abf47f6a454337a714effb311431f
 DIST jnoise-0.4.0.tar.bz2 11051 RMD160 d19c47192dc284e48a23e43f578311d327353c5b SHA1 d1a905f1d7345fd3a07d43254e4f5d548cfa19b4 SHA256 5d596bb4a97a3642899b8344f991f0e88c5d59dfe9b241d7182c498b19133e2a
-EBUILD jnoise-0.4.0.ebuild 643 RMD160 5fcda82a7bd20b3f8f83bea93bceac64e321bf82 SHA1 1e4a457f29dc79c8853a1f67f93264ee6e9bab7c SHA256 d96e6bb7fb7481c25582641da5b2b3d3d2284f39a40824f0fbb54b3b7aa29ec4
-MISC ChangeLog 240 RMD160 b1d481d6a6598143b6706e982fb7d7b0204355a5 SHA1 66401270032da9e2994735a58c8ce01a2075c316 SHA256 318b483abba59e9e0927fc6717f633b876bae29ec1ea01b64ae338cff333e6ad
+EBUILD jnoise-0.4.0.ebuild 907 RMD160 8488e69bef53192b9a399e2fa45a897bc526cdf7 SHA1 1bdd265c7e7511d9f438b68f71a6d909d0a406e7 SHA256 1a90833fb7669706410b92065d5a92266c3a48730283b10718d0f9190c4bea06
+MISC ChangeLog 454 RMD160 dc82d3cd499c1b82f49def7fd53bc7b1f05b8dfe SHA1 1519876f5423916394626a47e1e17ad7602ac904 SHA256 1b5b32372dfecb9cff5ce995b949ec5319f97cb7b59cb7db6311873254e11ab9
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Added: trunk/overlays/proaudio/media-sound/jnoise/files/jnoise-0.4.0-makefile.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/jnoise/files/jnoise-0.4.0-makefile.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/jnoise/files/jnoise-0.4.0-makefile.patch	2010-04-11 01:55:24 UTC (rev 1629)
@@ -0,0 +1,26 @@
+--- Makefile.old	2010-04-10 03:53:31.000000000 +0100
++++ Makefile	2010-04-11 02:01:12.000000000 +0100
+@@ -22,20 +22,20 @@
+ DISTDIR = jnoise-$(VERSION)
+ CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\"
+ #CPPFLAGS += -march=pentium4
+-LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
++LDFLAGS += -L$(PREFIX)/$(LIBDIR)
+ LDLIBS += -ljack -lrt
+ 
+ 
+ JNOISE_O = jnoise.o rngen.o
+ jnoise:	$(JNOISE_O)
+-	g++ $(LDFLAGS) -o $@ $(JNOISE_O) $(LDLIBS)
++	$(CXX) $(LDFLAGS) -o $@ $(JNOISE_O) $(LDLIBS)
+ 
+ $(JNOISE_O):
+ -include $(JNOISE_O:%.o=%.d)
+ 
+ 
+ install:	jnoise
+-	/usr/bin/install -m 755 jnoise $(PREFIX)/bin
++	/usr/bin/install -D -m 755 jnoise $(DESTDIR)$(PREFIX)/bin/jnoise
+ 
+ $(JNOISE_O):	$(JNOISE_H)
+ 

Modified: trunk/overlays/proaudio/media-sound/jnoise/jnoise-0.4.0.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/jnoise/jnoise-0.4.0.ebuild	2010-04-10 20:54:30 UTC (rev 1628)
+++ trunk/overlays/proaudio/media-sound/jnoise/jnoise-0.4.0.ebuild	2010-04-11 01:55:24 UTC (rev 1629)
@@ -2,9 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-inherit exteutils
+EAPI=2
 
-RESTRICT="nomirror"
+inherit eutils multilib
+
+RESTRICT="mirror"
 DESCRIPTION="A command line JACK app generating white and pink gaussian noise"
 HOMEPAGE="http://www.kokkinizita.net/linuxaudio";
 SRC_URI="http://www.kokkinizita.net/linuxaudio/downloads/${P}.tar.bz2";
@@ -17,11 +19,21 @@
 DEPEND=">=media-sound/jack-audio-connection-kit-0.100"
 
 S="${WORKDIR}/${PN}"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-makefile.patch"
+	sed -i -e 's@g++@\$(CXX)@g' \
+		-e '/^CPPFLAGS/ s/-O3//' \
+		-e '/^PREFIX/ s@/usr/local@/usr@' \
+		-e "/^LIBDIR/ s/lib\$(SUFFIX)/$(get_libdir)/" "${S}/Makefile" \
+		|| die "sed of Makefile failed"
+}
+
 src_compile() {
 	emake || die "make failed"
 }
 
 src_install() {
 	emake DESTDIR="${D}" install || die "install failed"
-	dodoc AUTHORS COPYING README
+	dodoc AUTHORS README
 }


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