summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2004-12-24 02:55:48 +0000
committerOlivier Fisette <ribosome@gentoo.org>2004-12-24 02:55:48 +0000
commita50ecaf9ef550b6786e44eaf910d7c9f03a2d9b1 (patch)
tree3ddef303f3adfe2ae035a92676d1dd4e521040cc /media-gfx
parentMoving to media-gfx/spectromatic (diff)
downloadhistorical-a50ecaf9ef550b6786e44eaf910d7c9f03a2d9b1.tar.gz
historical-a50ecaf9ef550b6786e44eaf910d7c9f03a2d9b1.tar.bz2
historical-a50ecaf9ef550b6786e44eaf910d7c9f03a2d9b1.zip
Moved from app-sci/spectromatic to media-gfx/spectromatic.
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/spectromatic/ChangeLog23
-rw-r--r--media-gfx/spectromatic/Manifest6
-rw-r--r--media-gfx/spectromatic/files/digest-spectromatic-1.01
-rw-r--r--media-gfx/spectromatic/files/spectromatic-1.0-gentoo.diff23
-rw-r--r--media-gfx/spectromatic/files/spectromatic-1.0-stringliteral.patch78
-rw-r--r--media-gfx/spectromatic/metadata.xml5
-rw-r--r--media-gfx/spectromatic/spectromatic-1.0.ebuild35
7 files changed, 171 insertions, 0 deletions
diff --git a/media-gfx/spectromatic/ChangeLog b/media-gfx/spectromatic/ChangeLog
new file mode 100644
index 000000000000..77c87e9b75ae
--- /dev/null
+++ b/media-gfx/spectromatic/ChangeLog
@@ -0,0 +1,23 @@
+# ChangeLog for app-sci/spectromatic
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/spectromatic/ChangeLog,v 1.1 2004/12/24 02:55:48 ribosome Exp $
+
+*spectromatic-1.0 (23 Dec 2004)
+
+ 23 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/spectromatic-1.0-gentoo.diff,
+ +files/spectromatic-1.0-stringliteral.patch, +spectromatic-1.0.ebuild:
+ Moved from app-sci/spectromatic to media-gfx/spectromatic.
+
+ 02 Jul 2004; Patrick Kursawe <phosphan@gentoo.org> spectromatic-1.0.ebuild,
+ files/spectromatic-1.0-stringliteral.patch:
+ Adding patch that replaces deprecated multiline string literals, see
+ bug #54507
+
+ 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> spectromatic-1.0.ebuild:
+ Changed patch to epatch
+
+*spectromatic-1.0 (23 Dec 2002)
+
+ 23 Dec 2002; Tobias Eichert <viz@gentoo.org> spectromatic-1.0.ebuild, files/spectromatic-1.0-gentoo.diff
+ Initial import.
diff --git a/media-gfx/spectromatic/Manifest b/media-gfx/spectromatic/Manifest
new file mode 100644
index 000000000000..966ffc9904ec
--- /dev/null
+++ b/media-gfx/spectromatic/Manifest
@@ -0,0 +1,6 @@
+MD5 d8b29c21bda7f2fc8a804f74636f5127 spectromatic-1.0.ebuild 935
+MD5 9a8489a18e7e7a5083bf2a84a7315cd5 ChangeLog 687
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 981e4c6dcc48b5ffbd99f76b39c32ef8 files/spectromatic-1.0-stringliteral.patch 2217
+MD5 3f1f11cd807e925f279e51c239688289 files/spectromatic-1.0-gentoo.diff 603
+MD5 23d4c34b3e33e1ed27f69a9d41c34220 files/digest-spectromatic-1.0 69
diff --git a/media-gfx/spectromatic/files/digest-spectromatic-1.0 b/media-gfx/spectromatic/files/digest-spectromatic-1.0
new file mode 100644
index 000000000000..e7c7313952d4
--- /dev/null
+++ b/media-gfx/spectromatic/files/digest-spectromatic-1.0
@@ -0,0 +1 @@
+MD5 d0a6bc5a087d744c6137f66696ed97ee spectromatic_1.0-1.tar.gz 13724
diff --git a/media-gfx/spectromatic/files/spectromatic-1.0-gentoo.diff b/media-gfx/spectromatic/files/spectromatic-1.0-gentoo.diff
new file mode 100644
index 000000000000..9fef68467dfe
--- /dev/null
+++ b/media-gfx/spectromatic/files/spectromatic-1.0-gentoo.diff
@@ -0,0 +1,23 @@
+--- Makefile.orig 2002-12-10 21:25:31.000000000 +0100
++++ Makefile 2002-12-10 21:25:20.000000000 +0100
+@@ -13,15 +13,16 @@
+
+ TARGET = spectromatic
+
+-install: all
++all: $(OBJ)
++ $(CC) -o $(TARGET) $(OBJ) $(LIBS)
++ strip $(TARGET)
++
++install:
+ mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/bin
+ mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/man/man1
+ install -o root -g root -m 0755 spectromatic $(DESTDIR)$(TOPLEVEL_HOME)/bin
+ install -o root -g root -m 0644 man/spectromatic.1 $(DESTDIR)$(TOPLEVEL_HOME)/man/man1
+
+-all: $(OBJ)
+- $(CC) -o $(TARGET) $(OBJ) $(LIBS)
+- strip $(TARGET)
+
+ clean:
+ $(RM) $(TARGET) $(OBJ)
diff --git a/media-gfx/spectromatic/files/spectromatic-1.0-stringliteral.patch b/media-gfx/spectromatic/files/spectromatic-1.0-stringliteral.patch
new file mode 100644
index 000000000000..2d18f01b216a
--- /dev/null
+++ b/media-gfx/spectromatic/files/spectromatic-1.0-stringliteral.patch
@@ -0,0 +1,78 @@
+diff -ru spectromatic-1.0/spectromatic.c spectromatic-1.0-new/spectromatic.c
+--- spectromatic-1.0/spectromatic.c 2002-03-30 06:17:34.000000000 +0100
++++ spectromatic-1.0-new/spectromatic.c 2004-07-02 21:25:49.485524639 +0200
+@@ -21,6 +21,7 @@
+ ****************************************************************************/
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <malloc.h>
+ #include <png.h>
+ #include <string.h>
+@@ -37,36 +38,36 @@
+ void usage (char *pname)
+ {
+ fprintf (stderr,
+-"
+-Usage: %s [options] file.wav
+-
+-Options:
+- --window <size> FFT window size (default: 2048)
+-
+- --step <size> Slide the window by <size> samples each time
+- (default: 200)
+-
+- --inverse White/Colour-on-black
+-
+- --logarithmic Intensity is calculated by
+- log10 (1 + 9 * (amplitude / max_amp)) -
+- better for visualising weaker signals
+-
+- --combine XYZ Determines how a stereo signal is
+- represented as an RGB image. The argument is
+- a 3-character block, each character
+- corresponding to R, G and B components. It
+- may take values of L, R, A, D, X or Z,
+- meaning Left, Right, Average, Difference,
+- Cross-Correlation or Zero respectively.
+-
+- --verbose Slightly less quiet
+-
+- --version Print out the version
+-
+- --help You're in it.
+-
+-", pname);
++"\n"
++"Usage: %s [options] file.wav\n"
++"\n"
++"Options:\n"
++" --window <size> FFT window size (default: 2048)\n"
++"\n"
++" --step <size> Slide the window by <size> samples each time \n"
++" (default: 200)\n"
++"\n"
++" --inverse White/Colour-on-black\n"
++"\n"
++" --logarithmic Intensity is calculated by\n"
++" log10 (1 + 9 * (amplitude / max_amp)) -\n"
++" better for visualising weaker signals\n"
++"\n"
++" --combine XYZ Determines how a stereo signal is\n"
++" represented as an RGB image. The argument is\n"
++" a 3-character block, each character\n"
++" corresponding to R, G and B components. It\n"
++" may take values of L, R, A, D, X or Z,\n"
++" meaning Left, Right, Average, Difference,\n"
++" Cross-Correlation or Zero respectively.\n"
++"\n"
++" --verbose Slightly less quiet\n"
++"\n"
++" --version Print out the version\n"
++"\n"
++" --help You're in it.\n"
++"\n"
++, pname);
+
+
+ exit (-1);
diff --git a/media-gfx/spectromatic/metadata.xml b/media-gfx/spectromatic/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/media-gfx/spectromatic/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>
diff --git a/media-gfx/spectromatic/spectromatic-1.0.ebuild b/media-gfx/spectromatic/spectromatic-1.0.ebuild
new file mode 100644
index 000000000000..1429176654fb
--- /dev/null
+++ b/media-gfx/spectromatic/spectromatic-1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/spectromatic/spectromatic-1.0.ebuild,v 1.1 2004/12/24 02:55:48 ribosome Exp $
+
+inherit eutils
+
+IUSE=""
+
+MY_P="spectromatic_1.0-1"
+DESCRIPTION="Little program that generates spectrograms (time-frequency analysis images) from mono or stereo wave files."
+HOMEPAGE="http://ieee.uow.edu.au/~daniel/software/spectromatic/"
+SRC_URI="http://ieee.uow.edu.au/~daniel/software/spectromatic/dist/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND=">=dev-libs/gsl-1.2
+ >=media-libs/libpng-1.2.4"
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+ epatch ${FILESDIR}/${P}-stringliteral.patch
+}
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dobin spectromatic
+ doman spectromatic.1
+ dodoc COPYING README || die
+}