From 9d4810f84de876ec9d0ae03d0d44224500b41188 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 19 May 2024 00:01:59 +0100 Subject: gentoo auto-resync : 19:05:2024 - 00:01:59 --- sci-visualization/spectromatic/Manifest | 6 -- .../files/spectromatic-1.0-makefile.patch | 49 ---------- .../files/spectromatic-1.0-stringliteral.patch | 78 ---------------- .../spectromatic-1.0-waveheaderstruct-amd64.patch | 103 --------------------- sci-visualization/spectromatic/metadata.xml | 19 ---- .../spectromatic/spectromatic-1.0-r3.ebuild | 33 ------- 6 files changed, 288 deletions(-) delete mode 100644 sci-visualization/spectromatic/Manifest delete mode 100644 sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch delete mode 100644 sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch delete mode 100644 sci-visualization/spectromatic/files/spectromatic-1.0-waveheaderstruct-amd64.patch delete mode 100644 sci-visualization/spectromatic/metadata.xml delete mode 100644 sci-visualization/spectromatic/spectromatic-1.0-r3.ebuild (limited to 'sci-visualization/spectromatic') diff --git a/sci-visualization/spectromatic/Manifest b/sci-visualization/spectromatic/Manifest deleted file mode 100644 index d069bfb20d66..000000000000 --- a/sci-visualization/spectromatic/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX spectromatic-1.0-makefile.patch 1158 BLAKE2B 250fa533240e192e7391779d853c37c16b6f62e410e8dd7c034e47c172327bbbcd30b04001b3a0c537e1b276132b0cac38b7b1a23eec8d5cd4cb96bde3dace91 SHA512 f20f12b01fe947b7136cf20706e49e6d47c0dc9d6f82f9059c1a26227bf9668bd5643e3bc64c69ce4204d884095ebca5252c07bd9e7d5aff6ab166d889fadebf -AUX spectromatic-1.0-stringliteral.patch 2111 BLAKE2B ceb51362812f6f7bc8c5bac252e6212fb267650cae1d32a9d4bdd61fb2df409c06e1338027303f0a2c6a55cef7a31106ed170ece8d877a9e51524158d6edc7d4 SHA512 a15ca056d2d9ff31223e17e4a95120e842850626f1cbff350091449d5e5929cdac731c67d58f1039fab848e3aeda1851cec6b2cb8d1b4ffd906660d264f29a71 -AUX spectromatic-1.0-waveheaderstruct-amd64.patch 3821 BLAKE2B 57bfd4e9e20cd2532ba04eb173a1640615edd614d8ed84099fdce4ef92118e21718cdfb8b79ce930e1422d2222181c90613c92b2045cabf9b1694da3caeb34b0 SHA512 45f861395dbe03bfc61120388d833e9997afd14888d4ef3583660676384eacb53755bcd95e4b39150cce6df1f11952260e4460bc15862249af928784e4ddf115 -DIST spectromatic_1.0-1.tar.gz 13724 BLAKE2B 91fb44ccdd1b41eb99204f654a02e7cff8e1798916936507a41c6f6d3c5726fe3d1d838d782d21604fdf1e1bd67760336cf41b4e016b10849b9f4cffe405cdf7 SHA512 b83acaacd21f7eb12ee3fd955073e8f95c02649de833a6087cf62786b20d8d1bf9a5b62920c17435510237797c6bc3a378921c4c1c2c4e4f74acbca49becfd6c -EBUILD spectromatic-1.0-r3.ebuild 765 BLAKE2B 37128434a379953399ff2cd2e2a2de95f5994632810dc699dfb5d3a8171495d674e3ed1f99f71be8b057b46f116cb506ea64e5fb7cb182ffe5e796786c376326 SHA512 7075dd46c428f36cf384752ce200077e80779dcd23e5b9250129a439e5b0b1c07bdb4d2dacb7624ffad58d790683fb14cad20924865fc628cf16377b503c7390 -MISC metadata.xml 890 BLAKE2B 5f66c892a882be8edcd6ec1554b8f2d8e447b2c135ab7c91a8a1e1f170e3f81ffceb7836f3f35f5179cfa0c8b0d104c84d9bc6afdede97cc4a224dd906a5e138 SHA512 45d26fa1cd1163843329305daff4d762c5450ab4b45acf52e5e03f9e4a82103acae93f01da73cc899f371e9432cd0f2eaff69a712ba2a526ff5bf6c5553c0080 diff --git a/sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch b/sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch deleted file mode 100644 index ea1fa0a70eec..000000000000 --- a/sci-visualization/spectromatic/files/spectromatic-1.0-makefile.patch +++ /dev/null @@ -1,49 +0,0 @@ -Respect LDFLAGS, CFLAGS, CC #334715 -Fix install paths - ---- a/Makefile -+++ b/Makefile -@@ -1,33 +1,29 @@ - # Makefile for spectromatic - --CFLAGS = -O2 -Wall --LIBS = -lgsl -lgslcblas -lpng -lm -+LIBS = -lpng `${PKG_CONFIG} --libs gsl` - DESTDIR = --TOPLEVEL_HOME = /usr -+TOPLEVEL_HOME ?= /usr - --CC = gcc -I. -- - SRC = spectromatic.c wave.c - - OBJ = $(SRC:.c=.o) - - TARGET = spectromatic - --install: all -- 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) -+ $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o $(TARGET) -+ -+install: $(TARGET) -+ mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/bin -+ mkdir -p $(DESTDIR)$(TOPLEVEL_HOME)/share/man/man1 -+ install -m 0755 spectromatic $(DESTDIR)$(TOPLEVEL_HOME)/bin -+ install -m 0644 man/spectromatic.1 $(DESTDIR)$(TOPLEVEL_HOME)/share/man/man1 - - clean: - $(RM) $(TARGET) $(OBJ) - - .c.o: -- $(CC) $(CFLAGS) -c $< -+ $(CC) $(CFLAGS) -I. -c $< - - .o: - $(CC) $< $(LIBS) -o $@ diff --git a/sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch b/sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch deleted file mode 100644 index d7233c1aab81..000000000000 --- a/sci-visualization/spectromatic/files/spectromatic-1.0-stringliteral.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff -ru spectromatic-1.0/spectromatic.c spectromatic-1.0-new/spectromatic.c ---- a/spectromatic.c -+++ b/spectromatic.c -@@ -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/files/spectromatic-1.0-waveheaderstruct-amd64.patch b/sci-visualization/spectromatic/files/spectromatic-1.0-waveheaderstruct-amd64.patch deleted file mode 100644 index 0c4253e7e765..000000000000 --- a/sci-visualization/spectromatic/files/spectromatic-1.0-waveheaderstruct-amd64.patch +++ /dev/null @@ -1,103 +0,0 @@ ---- a/wave.c -+++ b/wave.c -@@ -1,11 +1,26 @@ - #include - #include -+#include - #include "wave.h" - - int read_header (FILE *f, waveheaderstruct *header) - { -+ waveheaderstruct h; - fseek (f, 0, SEEK_SET); -- return fread (header, 1, sizeof (waveheaderstruct), f); -+ size_t red = fread (&h, 1, sizeof (waveheaderstruct), f); -+ -+ h.length = le32toh(h.length); -+ h.length_chunk = le32toh(h.length_chunk); -+ h.format = le16toh(h.format); -+ h.modus = le16toh(h.modus); -+ h.sample_fq = le32toh(h.sample_fq); -+ h.byte_p_sec = le32toh(h.byte_p_sec); -+ h.byte_p_spl = le16toh(h.byte_p_spl); -+ h.bit_p_spl = le16toh(h.bit_p_spl); -+ h.data_length = le32toh(h.data_length); -+ -+ *header = h; -+ return red; - } - - int read_frames (FILE *f, int start, int length, char *data) -@@ -52,12 +67,12 @@ - - read_header (f, &header); - -- printf ("Length: %lu\n", header.length); -- printf ("Length Chunk: %lu\n", header.length_chunk); -+ printf ("Length: %lu\n", (unsigned long)header.length); -+ printf ("Length Chunk: %lu\n", (unsigned long)header.length_chunk); - printf ("Format: %u\n", header.format); - printf ("Modus: %u\n", header.modus); -- printf ("Sample Frequency: %lu\n", header.sample_fq); -- printf ("Bytes per Second: %lu\n", header.byte_p_sec); -+ printf ("Sample Frequency: %lu\n", (unsigned long)header.sample_fq); -+ printf ("Bytes per Second: %lu\n", (unsigned long)header.byte_p_sec); - printf ("Bytes per Sample: %u\n", header.byte_p_spl); -- printf ("Data Length: %lu\n", header.data_length); -+ printf ("Data Length: %lu\n", (unsigned long)header.data_length); - } ---- a/wave.h -+++ b/wave.h -@@ -22,24 +22,25 @@ - #ifndef WAVE_H - #define WAVE_H - --typedef unsigned long ulongT; --typedef unsigned short ushortT; -+#include - -+#pragma pack(push,1) - typedef struct { /* header for WAV-Files */ -- char main_chunk[4]; /* 'RIFF' */ -- unsigned long length; /* length of file */ -- char chunk_type[4]; /* 'WAVE' */ -- char sub_chunk[4]; /* 'fmt' */ -- unsigned long length_chunk; /* length sub_chunk, always 16 bytes */ -- unsigned short format; /* always 1 = PCM-Code */ -- unsigned short modus; /* 1 = Mono, 2 = Stereo */ -- unsigned long sample_fq; /* Sample Freq */ -- unsigned long byte_p_sec; /* Data per sec */ -- unsigned short byte_p_spl; /* Bytes per sample */ -- unsigned short bit_p_spl; /* bits per sample, 8, 12, 16 */ -- char data_chunk[4]; /* 'data' */ -- unsigned long data_length; /* length of data */ --} waveheaderstruct; -+ uint8_t main_chunk[4]; /* 'RIFF' */ -+ uint32_t length; /* length of file */ -+ uint8_t chunk_type[4]; /* 'WAVE' */ -+ uint8_t sub_chunk[4]; /* 'fmt' */ -+ uint32_t length_chunk; /* length sub_chunk, always 16 bytes */ -+ uint16_t format; /* always 1 = PCM-Code */ -+ uint16_t modus; /* 1 = Mono, 2 = Stereo */ -+ uint32_t sample_fq; /* Sample Freq */ -+ uint32_t byte_p_sec; /* Data per sec */ -+ uint16_t byte_p_spl; /* Bytes per sample */ -+ uint16_t bit_p_spl; /* bits per sample, 8, 12, 16 */ -+ uint8_t data_chunk[4]; /* 'data' */ -+ uint32_t data_length; /* length of data */ -+} __attribute__ ((__packed__)) waveheaderstruct; -+#pragma pack(pop) - - int read_header (FILE *f, waveheaderstruct *header); - int read_frames (FILE *f, int start, int length, char *data); ---- a/spectromatic.c -+++ b/spectromatic.c -@@ -217,7 +217,7 @@ - if (header.modus == 2) - ch2 = (double*) malloc (window_size * sizeof (double)); - -- fprintf (stderr, "samples = %li, step_size = %i, window_size = %i\n", header.data_length / header.byte_p_spl, step_size, window_size); -+ fprintf (stderr, "samples = %lu, step_size = %i, window_size = %i\n", (unsigned long)header.data_length / header.byte_p_spl, step_size, window_size); - - for (i = -window_size; i < window_size + (int)(header.data_length / header.byte_p_spl); i += step_size) { - read_frames (f, i, window_size, data); diff --git a/sci-visualization/spectromatic/metadata.xml b/sci-visualization/spectromatic/metadata.xml deleted file mode 100644 index 42e957230fc5..000000000000 --- a/sci-visualization/spectromatic/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - sci@gentoo.org - Gentoo Science Project - - - Spectromatic is a program for generating spectrograms from audio - files. Spectrograms are a form of simple time-frequency analysis which - lets you see how the distribution of energy at different frequencies - in an audio stream change over time. For example, if you play a scale - on a musical instrument, you will see a climbing and/or descending - pattern of blobs as you move from left to right. - Spectromatic reads its input as mono or stereo 16-bit wave files, and - writes the output image to an elongated PNG image (colour for stereo, - grayscale for mono audio). - - diff --git a/sci-visualization/spectromatic/spectromatic-1.0-r3.ebuild b/sci-visualization/spectromatic/spectromatic-1.0-r3.ebuild deleted file mode 100644 index b9337658357c..000000000000 --- a/sci-visualization/spectromatic/spectromatic-1.0-r3.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs - -MY_P=${PN}_${PV}-1 - -DESCRIPTION="Generates time-frequency analysis images from wav 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="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - media-libs/libpng:0= - sci-libs/gsl:=" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${P}-makefile.patch - "${FILESDIR}"/${P}-stringliteral.patch - "${FILESDIR}"/${P}-waveheaderstruct-amd64.patch -) - -src_configure() { - tc-export CC PKG_CONFIG - export TOPLEVEL_HOME="${EPREFIX}/usr" -} -- cgit v1.2.3