From 15c0643efc851dd7be778608ee8516e6446f02fb Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Sun, 29 Jan 2006 20:20:53 +0000 Subject: Moved from media-gfx/spectromatic to sci-visualization/spectromatic. --- sci-visualization/spectromatic/ChangeLog | 36 ++++++++++ sci-visualization/spectromatic/Manifest | 6 ++ .../spectromatic/files/digest-spectromatic-1.0 | 1 + .../files/spectromatic-1.0-gentoo.diff | 23 +++++++ .../files/spectromatic-1.0-stringliteral.patch | 78 ++++++++++++++++++++++ sci-visualization/spectromatic/metadata.xml | 5 ++ .../spectromatic/spectromatic-1.0.ebuild | 35 ++++++++++ 7 files changed, 184 insertions(+) create mode 100644 sci-visualization/spectromatic/ChangeLog create mode 100644 sci-visualization/spectromatic/Manifest create mode 100644 sci-visualization/spectromatic/files/digest-spectromatic-1.0 create mode 100644 sci-visualization/spectromatic/files/spectromatic-1.0-gentoo.diff create mode 100644 sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch create mode 100644 sci-visualization/spectromatic/metadata.xml create mode 100644 sci-visualization/spectromatic/spectromatic-1.0.ebuild (limited to 'sci-visualization/spectromatic') 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 + +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 spectromatic-1.0.ebuild: + Added to ~ppc. + + 28 Dec 2004; Olivier Fisette + spectromatic-1.0.ebuild: + Dependency update: dev-libs/gsl -> sci-libs/gsl. + +*spectromatic-1.0 (23 Dec 2004) + + 23 Dec 2004; Olivier Fisette +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 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 spectromatic-1.0.ebuild: + Changed patch to epatch + +*spectromatic-1.0 (23 Dec 2002) + + 23 Dec 2002; Tobias Eichert 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 ++#include + #include + #include + #include +@@ -37,36 +38,36 @@ + void usage (char *pname) + { + fprintf (stderr, +-" +-Usage: %s [options] file.wav +- +-Options: +- --window FFT window size (default: 2048) +- +- --step Slide the window by 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 FFT window size (default: 2048)\n" ++"\n" ++" --step Slide the window by 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 @@ + + + +sci + 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 +} -- cgit v1.2.3-65-gdbad