summaryrefslogtreecommitdiff
path: root/media-sound/flac-image
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/flac-image
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/flac-image')
-rw-r--r--media-sound/flac-image/Manifest7
-rw-r--r--media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch10
-rw-r--r--media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch18
-rw-r--r--media-sound/flac-image/flac-image-1.00.ebuild37
-rw-r--r--media-sound/flac-image/metadata.xml13
5 files changed, 85 insertions, 0 deletions
diff --git a/media-sound/flac-image/Manifest b/media-sound/flac-image/Manifest
new file mode 100644
index 000000000000..13a52792a0e2
--- /dev/null
+++ b/media-sound/flac-image/Manifest
@@ -0,0 +1,7 @@
+AUX flac-image-1.00-add-missing-string-include.patch 168 SHA256 a982bbfe6e2148dd9c0280a2545cbb9c611c7f9fd5d0aef410b26233258f7c6c SHA512 17045e55a0542399e2698c8c1311b9c6638755d8ec744871ba40e0164f5c062c75997c9d36c5720c64bafb8aab8acbdf763c2c443564504bebc0cc33b52509e4 WHIRLPOOL 018b60de7fdf878aa30b0a37759f5899d0ec5cbdefa9eb402a70a7ce134a8d8e5c42c095463f82ec964e8e0170d65f78efd068af5226ecc1a6d8e509cdab3119
+AUX flac-image-1.00-fix-build-system.patch 490 SHA256 d34a0ab51d630a6dea2110f3a42ffc2638be98e30fded1f11ecb6aebd9f4fb20 SHA512 e47597bb4abe8d1106e7e637979455243beddb816f2570719fe7d467be49d00d1b724db6434ca39f328a82db2f2822dfcc654e02a629d930b98501df6971ece6 WHIRLPOOL e92bdcaa7f738908ab63bb2eec2636eb64bf7f450b599a71430b62e34006544fd8854634501fe3b5769563f8d8e26cb1f72af5f72df417f3ccfd01530f94a0ce
+DIST flac-image-1.00.tar.gz 13948 SHA256 c4ee58d7f447a2a48b12b338682ddca4d9e7630e1dd04cc5e6e190b8a5ce7109 SHA512 71d72a240c0f156b546310bf356f3304bf04152317df683e30205ae79d8b97fe2a29d63e3fdea5b21d0a62390459527ecf33f6d509b36196a8dc0e28cd1a3e1d WHIRLPOOL 4b7f2e8fd42dcf6e7d38a5b4055f869078ce415065a7a297930dcecf0b9c1ea27638f4a49de9dde467854687b5595bb4f4d7a36f335a6894547a2b27d1c138f0
+EBUILD flac-image-1.00.ebuild 796 SHA256 04e7f1372acd87d2351817ac583c60fb04366d3f05e5d3ea19eb7a47d0472199 SHA512 fdecc920b4e0f9107ebcc407e7976deaabef74c841b59c84553d4a4d95f140765a8a82f07df8dfbc5113a66f7c89ea80f9b1111bd81c4c7a9a3a03e630228d86 WHIRLPOOL 3312b1df5659c7f09fb5968846f22f2835d7507ea24f78c000d7dde7d26c3a251c5277832974e918f0671569debb69329c2d7084d07a4da214e5f9682afa1b58
+MISC ChangeLog 2437 SHA256 b6a52df27e8f05abdaa74c9a9dff0c90d513f50fec9cea947b39d01784fd32b2 SHA512 d8d54362b33cd3e46665ba94c1b8ae51f2450ee6c60ded9fcece17b8f053598bad5893643282a5622aace35658bf9a86ed7ec4a94f3d5176488021df22fd090d WHIRLPOOL 1d2e204639d07d70770668a287f11063ae48662271bd0d96845a54624abb4e61f220d0b4a3ed64836770ef81fa4a33449a60d642c51a6de458dfa2abd51b31ea
+MISC ChangeLog-2015 629 SHA256 85218c4def458e159dfb67fdaac6247a65e2e4f0956fc0eaf1ad7be313f604a1 SHA512 0c8e8d191dfd32a451e602addfd6a5db4cfa53e612df2df7001d50b53e67a5fbe6b26edab93ff0ccaac8ffda0fab857c9da1540acc41eb3682aed8d543eadb22 WHIRLPOOL edf7b219da27e3f4e30533c2218795167efdcc2a370a04f004a5b901863772f280370451625a5834fca6c47d7326a1da966ddda9f1b9dec25fff4bc1d4e6b20e
+MISC metadata.xml 503 SHA256 f387e1efe3577542acc77e47715906fd510ac3113304b3dc98444e77f7002478 SHA512 91a737565ae9701d230252a1d182a9fb5056fbcbab5e47c41fb1d46eb34da56a61fd3133128bee83f20d08aefba7a9d55b69f9e2f57150d8cce0fe2f5450faff WHIRLPOOL f9d0d0efc73dc9ddec497c29a6654cbb1d6b3b1837d0c23f73e228b811904eb2ae282edfe81d6cbf72ffcb9e20dfba14c46231ed797eb2380c2f9111c2e94859
diff --git a/media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch b/media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch
new file mode 100644
index 000000000000..0ba842c7ee02
--- /dev/null
+++ b/media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch
@@ -0,0 +1,10 @@
+--- a/flac-image.c
++++ b/flac-image.c
+@@ -15,6 +15,7 @@
+ */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <unistd.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
diff --git a/media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch b/media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch
new file mode 100644
index 000000000000..2cd8c538b475
--- /dev/null
+++ b/media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch
@@ -0,0 +1,18 @@
+Fix Makefile to respect user variables
+
+--- a/Makefile
++++ b/Makefile
+@@ -3,9 +3,8 @@
+ # by default, you probably need to add -I/usr/whereever/flac to CFLAGS and
+ # -L/usr/lib/whereever to the link step.
+
+-CFLAGS="-Wall -g"
+-
+ flac-image: flac-image.o
+- gcc -o flac-image -lFLAC flac-image.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lFLAC
+
+-flac-image: flac-image.c flac-image.h
+\ No newline at end of file
++flac-image.o: flac-image.c flac-image.h
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
diff --git a/media-sound/flac-image/flac-image-1.00.ebuild b/media-sound/flac-image/flac-image-1.00.ebuild
new file mode 100644
index 000000000000..78ea6acddc74
--- /dev/null
+++ b/media-sound/flac-image/flac-image-1.00.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Utility for adding image files (e.g. album cover art) to metadata of FLAC files"
+HOMEPAGE="http://www.singingtree.com/software/"
+SRC_URI="http://www.singingtree.com/software/${PN}.tar.gz -> ${P}.tar.gz"
+# FIXME: no version in tarball, but also no updates for a long time. So it's ok.
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/flac"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.00-add-missing-string-include.patch
+ "${FILESDIR}"/${PN}-1.00-fix-build-system.patch
+)
+
+src_configure() {
+ # remove pre-compiled binary
+ rm -f "${PN}" || die
+
+ tc-export CC
+}
+
+src_install() {
+ dobin "${PN}"
+}
diff --git a/media-sound/flac-image/metadata.xml b/media-sound/flac-image/metadata.xml
new file mode 100644
index 000000000000..fedce680ca10
--- /dev/null
+++ b/media-sound/flac-image/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <longdescription lang="en">
+ A tiny utility for stuffing image files (e.g. album cover art) into
+ metadata blocks in FLAC files. Actually you could store and retrieve
+ any arbitrary file you wanted; this program doesn't care.
+ </longdescription>
+</pkgmetadata>