summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/flac-image/ChangeLog10
-rw-r--r--media-sound/flac-image/Manifest4
-rw-r--r--media-sound/flac-image/flac-image-1.00.ebuild45
-rw-r--r--media-sound/flac-image/metadata.xml14
4 files changed, 73 insertions, 0 deletions
diff --git a/media-sound/flac-image/ChangeLog b/media-sound/flac-image/ChangeLog
new file mode 100644
index 000000000000..d6d4ca1666c4
--- /dev/null
+++ b/media-sound/flac-image/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-sound/flac-image
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/flac-image/ChangeLog,v 1.1 2011/10/23 17:36:16 sbriesen Exp $
+
+*flac-image-1.00 (23 Oct 2011)
+
+ 23 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org> +flac-image-1.00.ebuild,
+ +metadata.xml:
+ initial commit
+
diff --git a/media-sound/flac-image/Manifest b/media-sound/flac-image/Manifest
new file mode 100644
index 000000000000..751b69808da5
--- /dev/null
+++ b/media-sound/flac-image/Manifest
@@ -0,0 +1,4 @@
+DIST flac-image-1.00.tar.gz 13948 RMD160 e365ff38dd5f94e5bc8bc4c11fa5ca36f40f45db SHA1 724bd86d9de0a8efa83c3636b0cdabe832737995 SHA256 c4ee58d7f447a2a48b12b338682ddca4d9e7630e1dd04cc5e6e190b8a5ce7109
+EBUILD flac-image-1.00.ebuild 1057 RMD160 c1c4baf95c2b29e0c79b819d56335aadb0dce05d SHA1 6ae452fc99220e7961de720eb8cfef34fdb8759e SHA256 6c3fcae18cdbf7022dd58a4ebda6054365d43b9ce1cf4ea9e75b607afbe4b3e9
+MISC ChangeLog 270 RMD160 5c7e1b3b51a45b1a4c4639aafc59cf8d9510cf32 SHA1 63691ef0a20381b4ae1e2b07bedd12dbf0753c67 SHA256 aacec3defb6cdedc4d5d021832d0a047cce51d8f85cd19b50d647b6ed86f770b
+MISC metadata.xml 508 RMD160 a325d2e41e810cfda874c193b3eae8bb422ceb15 SHA1 af633dd039852b44fd5e74fa7fd6fd97d10636e3 SHA256 03a5099c21271930087a4eb405a3ef4552fc2d8fdf5d6af14f616946e6262a91
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..e6eeab016f20
--- /dev/null
+++ b/media-sound/flac-image/flac-image-1.00.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/flac-image/flac-image-1.00.ebuild,v 1.1 2011/10/23 17:36:16 sbriesen Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Utility for stuffing image files (e.g. album cover art) into metadata blocks in 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}"
+
+# compile helper
+_compile() {
+ local CC="$(tc-getCC)"
+ echo "${CC} ${@}" && "${CC}" "${@}"
+}
+
+src_prepare() {
+ sed -i -e "s:^\(#include <stdio.h>\):\1\n#include <string.h>:g" "${PN}.c"
+ rm -f -- "${PN}" # remove pre-compiled binary
+}
+
+src_compile() {
+ # Makefile is both simple and broken, so we compile the binary ourself.
+ _compile ${CFLAGS} -lFLAC ${LDFLAGS} -o "${PN}" "${PN}.c" \
+ || die "compile failed"
+}
+
+src_install() {
+ insinto /usr/include
+ doins "${PN}.h"
+ dobin "${PN}"
+}
diff --git a/media-sound/flac-image/metadata.xml b/media-sound/flac-image/metadata.xml
new file mode 100644
index 000000000000..2796227cb74e
--- /dev/null
+++ b/media-sound/flac-image/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sound</herd>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</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>