diff options
7 files changed, 184 insertions, 0 deletions
diff --git a/sci-visualization/spectromatic/ChangeLog b/sci-visualization/spectromatic/ChangeLog new file mode 100644 index 000000000000..8b61d058922b --- /dev/null +++ b/sci-visualization/spectromatic/ChangeLog @@ -0,0 +1,36 @@ +# ChangeLog for media-gfx/spectromatic +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/spectromatic/ChangeLog,v 1.1 2006/01/29 20:20:53 cryos Exp $ + + 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> + +files/spectromatic-1.0-gentoo.diff, + +files/spectromatic-1.0-stringliteral.patch, +metadata.xml, + +spectromatic-1.0.ebuild: + Moved from media-gfx/spectromatic to sci-visualization/spectromatic. + + 22 Jul 2005; David Holm <dholm@gentoo.org> spectromatic-1.0.ebuild: + Added to ~ppc. + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> + spectromatic-1.0.ebuild: + Dependency update: dev-libs/gsl -> sci-libs/gsl. + +*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/sci-visualization/spectromatic/Manifest b/sci-visualization/spectromatic/Manifest new file mode 100644 index 000000000000..df9b8058c8ed --- /dev/null +++ b/sci-visualization/spectromatic/Manifest @@ -0,0 +1,6 @@ +MD5 4a9aff9f7d13e74e67133e08ed67ef13 ChangeLog 1183 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 b4cb9d26a9901c0e43df921d40e7676f spectromatic-1.0.ebuild 939 +MD5 23d4c34b3e33e1ed27f69a9d41c34220 files/digest-spectromatic-1.0 69 +MD5 3f1f11cd807e925f279e51c239688289 files/spectromatic-1.0-gentoo.diff 603 +MD5 981e4c6dcc48b5ffbd99f76b39c32ef8 files/spectromatic-1.0-stringliteral.patch 2217 diff --git a/sci-visualization/spectromatic/files/digest-spectromatic-1.0 b/sci-visualization/spectromatic/files/digest-spectromatic-1.0 new file mode 100644 index 000000000000..e7c7313952d4 --- /dev/null +++ b/sci-visualization/spectromatic/files/digest-spectromatic-1.0 @@ -0,0 +1 @@ +MD5 d0a6bc5a087d744c6137f66696ed97ee spectromatic_1.0-1.tar.gz 13724 diff --git a/sci-visualization/spectromatic/files/spectromatic-1.0-gentoo.diff b/sci-visualization/spectromatic/files/spectromatic-1.0-gentoo.diff new file mode 100644 index 000000000000..9fef68467dfe --- /dev/null +++ b/sci-visualization/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/sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch b/sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch new file mode 100644 index 000000000000..2d18f01b216a --- /dev/null +++ b/sci-visualization/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/sci-visualization/spectromatic/metadata.xml b/sci-visualization/spectromatic/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-visualization/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/sci-visualization/spectromatic/spectromatic-1.0.ebuild b/sci-visualization/spectromatic/spectromatic-1.0.ebuild new file mode 100644 index 000000000000..d9cf875f380a --- /dev/null +++ b/sci-visualization/spectromatic/spectromatic-1.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/spectromatic/spectromatic-1.0.ebuild,v 1.1 2006/01/29 20:20:53 cryos 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="~ppc x86" + +DEPEND=">=sci-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 +} |