initial commit
authorStefan Briesenick <sbriesen@gentoo.org>
Sun, 23 Oct 2011 17:36:16 +0000 (17:36 +0000)
committerStefan Briesenick <sbriesen@gentoo.org>
Sun, 23 Oct 2011 17:36:16 +0000 (17:36 +0000)
Package-Manager: portage-2.2.0_alpha70/cvs/Linux x86_64

media-sound/flac-image/ChangeLog [new file with mode: 0644]
media-sound/flac-image/Manifest [new file with mode: 0644]
media-sound/flac-image/flac-image-1.00.ebuild [new file with mode: 0644]
media-sound/flac-image/metadata.xml [new file with mode: 0644]

diff --git a/media-sound/flac-image/ChangeLog b/media-sound/flac-image/ChangeLog
new file mode 100644 (file)
index 0000000..d6d4ca1
--- /dev/null
@@ -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 (file)
index 0000000..0626e01
--- /dev/null
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST flac-image-1.00.tar.gz 13948 RMD160 e365ff38dd5f94e5bc8bc4c11fa5ca36f40f45db SHA1 724bd86d9de0a8efa83c3636b0cdabe832737995 SHA256 c4ee58d7f447a2a48b12b338682ddca4d9e7630e1dd04cc5e6e190b8a5ce7109
+EBUILD flac-image-1.00.ebuild 1166 RMD160 33a6c19654ca0a7f153d3afb4c94222f92ee3536 SHA1 ca4551883b30a7fcb8bb824e4168e920737d98a7 SHA256 09f59e3c0bde9f83360e152074b2109cc5a0636f2637ecb4b69941f1585cfee7
+MISC ChangeLog 366 RMD160 706186eefe15db252e9216c1a5a59d621f025fe4 SHA1 090c722f41896d4b2ccfc7535032ce53576b51e9 SHA256 78b4d66679e4d8767155d088315a9c6b97bfdfc7e0d44ea609e43557fbb3ded1
+MISC metadata.xml 508 RMD160 a325d2e41e810cfda874c193b3eae8bb422ceb15 SHA1 af633dd039852b44fd5e74fa7fd6fd97d10636e3 SHA256 03a5099c21271930087a4eb405a3ef4552fc2d8fdf5d6af14f616946e6262a91
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iJwEAQECAAYFAk6kUJoACgkQIaLonLtsQse+KQQA2r/VMngh2DSr77IX69IsBcbF
+kXLOkXtBiV/kTGGzF08+vML9ZwjrgePwO2e9QxFSCcasJrien6AuQ+isbvaQsOGb
+NKzFzY3zdC8qzhtU2gAmn2WXLFVyl91sgEud7o71b2hkCAS/IiTYmAbGEGf1uy6L
+zbzuK20d2cwd9B4MhQY=
+=06iY
+-----END PGP SIGNATURE-----
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 (file)
index 0000000..e6eeab0
--- /dev/null
@@ -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 (file)
index 0000000..2796227
--- /dev/null
@@ -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>