summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Riosa <vivo@gentoo.org>2006-10-23 11:11:01 +0000
committerFrancesco Riosa <vivo@gentoo.org>2006-10-23 11:11:01 +0000
commit47dd098006d749acb00cb3c97d855924b6be4910 (patch)
tree71af3d307d3f08bce5d0bc62d688a5d6ac45c0df /media-sound
parentstable on amd64 (diff)
downloadgentoo-2-47dd098006d749acb00cb3c97d855924b6be4910.tar.gz
gentoo-2-47dd098006d749acb00cb3c97d855924b6be4910.tar.bz2
gentoo-2-47dd098006d749acb00cb3c97d855924b6be4910.zip
replaced CLK_TCK with CLOCKS_PER_SEC in sources
(Portage version: 2.1.1)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/digitaldj/ChangeLog7
-rw-r--r--media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild11
-rw-r--r--media-sound/digitaldj/digitaldj-0.7.5.ebuild11
-rw-r--r--media-sound/digitaldj/files/digest-digitaldj-0.7.3-r12
-rw-r--r--media-sound/digitaldj/files/digest-digitaldj-0.7.52
-rw-r--r--media-sound/digitaldj/files/digitaldj-remove_obsolete_CLK_TCK.patch25
6 files changed, 55 insertions, 3 deletions
diff --git a/media-sound/digitaldj/ChangeLog b/media-sound/digitaldj/ChangeLog
index cdfd1b4a891b..57b49ef41b20 100644
--- a/media-sound/digitaldj/ChangeLog
+++ b/media-sound/digitaldj/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/digitaldj
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/ChangeLog,v 1.13 2006/10/04 19:53:42 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/ChangeLog,v 1.14 2006/10/23 11:11:01 vivo Exp $
+
+ 23 Oct 2006; <vivo@gentoo.org>
+ +files/digitaldj-remove_obsolete_CLK_TCK.patch, digitaldj-0.7.3-r1.ebuild,
+ digitaldj-0.7.5.ebuild:
+ replaced CLK_TCK with CLOCKS_PER_SEC in sources
04 Oct 2006; Diego Pettenò <flameeyes@gentoo.org>
digitaldj-0.7.3-r1.ebuild, digitaldj-0.7.5.ebuild:
diff --git a/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild b/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild
index 919398f510ee..f2287fa1d783 100644
--- a/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild
+++ b/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild,v 1.8 2006/10/04 19:53:42 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/digitaldj-0.7.3-r1.ebuild,v 1.9 2006/10/23 11:11:01 vivo Exp $
DESCRIPTION="A SQL-based mp3-player frontend designed to work with Grip"
HOMEPAGE="http://www.nostatic.org/ddj/"
@@ -17,6 +17,15 @@ DEPEND="dev-db/mysql
media-sound/grip
>=x11-libs/gtk+-1.2"
+inherit eutils
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # CLK_TCK -> CLOCKS_PER_SEC
+ epatch "${FILESDIR}/${PN}-remove_obsolete_CLK_TCK.patch"
+}
+
src_compile() {
econf `use_enable lirc` || die
emake || die
diff --git a/media-sound/digitaldj/digitaldj-0.7.5.ebuild b/media-sound/digitaldj/digitaldj-0.7.5.ebuild
index 1f7e9261e1eb..86d9c8405464 100644
--- a/media-sound/digitaldj/digitaldj-0.7.5.ebuild
+++ b/media-sound/digitaldj/digitaldj-0.7.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/digitaldj-0.7.5.ebuild,v 1.3 2006/10/04 19:53:42 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/digitaldj/digitaldj-0.7.5.ebuild,v 1.4 2006/10/23 11:11:01 vivo Exp $
DESCRIPTION="A SQL-based mp3-player frontend designed to work with Grip"
HOMEPAGE="http://www.nostatic.org/ddj/"
@@ -17,6 +17,15 @@ DEPEND="dev-db/mysql
media-sound/grip
>=x11-libs/gtk+-1.2"
+inherit eutils
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # CLK_TCK -> CLOCKS_PER_SEC
+ epatch "${FILESDIR}/${PN}-remove_obsolete_CLK_TCK.patch"
+}
+
src_compile() {
econf `use_enable lirc` || die
emake || die
diff --git a/media-sound/digitaldj/files/digest-digitaldj-0.7.3-r1 b/media-sound/digitaldj/files/digest-digitaldj-0.7.3-r1
index 2b4772b3bd33..de0dd3cec600 100644
--- a/media-sound/digitaldj/files/digest-digitaldj-0.7.3-r1
+++ b/media-sound/digitaldj/files/digest-digitaldj-0.7.3-r1
@@ -1 +1,3 @@
MD5 187c7b2a4d9f661910c26b42b91ecf21 digitaldj-0.7.3.tar.gz 204240
+RMD160 941fbffcecbda206c2f6beb3ab7e08fecc412142 digitaldj-0.7.3.tar.gz 204240
+SHA256 0b7b281b1ffe1af9bccbc93dd1d6ddd7d5be883abaebb852d3367d5c20b7bf62 digitaldj-0.7.3.tar.gz 204240
diff --git a/media-sound/digitaldj/files/digest-digitaldj-0.7.5 b/media-sound/digitaldj/files/digest-digitaldj-0.7.5
index e16ba6ddb171..71a800440660 100644
--- a/media-sound/digitaldj/files/digest-digitaldj-0.7.5
+++ b/media-sound/digitaldj/files/digest-digitaldj-0.7.5
@@ -1 +1,3 @@
MD5 837c881d67c14dc0ce6dde4cbce5afce digitaldj-0.7.5.tar.gz 224386
+RMD160 065f623ef9babeada1e864d5ff6c0b3721e41515 digitaldj-0.7.5.tar.gz 224386
+SHA256 49d2740923601b76be3669bbabadcfb76e80dbb81e3e4a694761eca3a7fc8bab digitaldj-0.7.5.tar.gz 224386
diff --git a/media-sound/digitaldj/files/digitaldj-remove_obsolete_CLK_TCK.patch b/media-sound/digitaldj/files/digitaldj-remove_obsolete_CLK_TCK.patch
new file mode 100644
index 000000000000..5cd489452f18
--- /dev/null
+++ b/media-sound/digitaldj/files/digitaldj-remove_obsolete_CLK_TCK.patch
@@ -0,0 +1,25 @@
+--- digitaldj-0.7.3.orig/src/ddj.c 2006-10-23 09:03:37.000000000 +0000
++++ digitaldj-0.7.3/src/ddj.c 2006-10-23 09:04:04.000000000 +0000
+@@ -948,11 +948,11 @@
+ clock_t curr_time;
+ struct tms t;
+
+- if(!clock_ticking) return elapsed_time/CLK_TCK;
++ if(!clock_ticking) return elapsed_time/CLOCKS_PER_SEC;
+ else {
+ curr_time=times(&t);
+
+- return (elapsed_time+(curr_time-init_time))/CLK_TCK;
++ return (elapsed_time+(curr_time-init_time))/CLOCKS_PER_SEC;
+ }
+ }
+
+@@ -2327,7 +2327,7 @@
+ end_time=times(&t);
+
+ bpm=rint((gfloat)(num_beats-1)/
+- (((gfloat)(end_time-start_time))/(gfloat)(CLK_TCK*60)));
++ (((gfloat)(end_time-start_time))/(gfloat)(CLOCKS_PER_SEC*60)));
+
+ gtk_spin_button_set_value(GTK_SPIN_BUTTON(beat_spin),bpm);
+ }