summaryrefslogtreecommitdiff
path: root/media-sound/tagtool
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/tagtool
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/tagtool')
-rw-r--r--media-sound/tagtool/Manifest6
-rw-r--r--media-sound/tagtool/files/tagtool-0.12.3-underlinking.patch80
-rw-r--r--media-sound/tagtool/metadata.xml11
-rw-r--r--media-sound/tagtool/tagtool-0.12.3-r1.ebuild51
4 files changed, 148 insertions, 0 deletions
diff --git a/media-sound/tagtool/Manifest b/media-sound/tagtool/Manifest
new file mode 100644
index 000000000000..e08864106490
--- /dev/null
+++ b/media-sound/tagtool/Manifest
@@ -0,0 +1,6 @@
+AUX tagtool-0.12.3-underlinking.patch 2714 SHA256 046da48a83bce6c77f3bc7269446678bfc1d4466cba876449a762e3c33ee25d2 SHA512 679754976a0bd4f8e64bce1363d74bb783265718ba7d76f5d4101df72214e740ca5e50af9bd0798230e57ec8647bb5c10f8a39b86bd57df4df52276cb59053f0 WHIRLPOOL 1d0ba948d367deadd9aa2327a8cfe04ae4841d3bb556735f02468dc23e83dd374f3adc53cada5057817a0d472a09a3585e6fcbca4501127bd4d545e31f5855de
+DIST tagtool-0.12.3.tar.bz2 303743 SHA256 273f41031dd2ad80c09d1865fdc71d9052831a5ce9cd8c53705cc518a9d3d411 SHA512 f32cf8ab072b9e8f52c5afd27e93f348a6d573085f71efedf81764a2d20941e580583c6536d420f25956eae84dcb6d1930229e60bc068ec7948247cfa64ff385 WHIRLPOOL 10664ec0ef45bc178ed02993162cc3a0986d3e8277888e7b65072122c32467247f2da10bba74ab808383ea1feedd51539a61f03f2743e4f78b83e67078c2e12a
+EBUILD tagtool-0.12.3-r1.ebuild 1050 SHA256 0e656495bcb3a22cf94e4fe3b51ce551e588a4e28c35e09ce25fd3f01c0758fe SHA512 26c3af16b805fd21a7231bd943d8861cc3eb5053f144456a8f6859f0660a7cdea2256000e21dfe1526f2e2d474fb488666bbd5e6db6936b833c17416be565b78 WHIRLPOOL 6b1b06ce6cca8032471a364b56c01da01a05690ae558f58a375de7b516c74dd2b66fdcce934d8a894494fc175a3fdfefe560049f0f9845287edd3cd5d8146709
+MISC ChangeLog 3920 SHA256 124113bb7c2cf2582673b85c5f8f4524bc5c26849d8a8782fa08f450c7cc732c SHA512 6e7c834db55984c7d6c083b4b31da1665e608398cb30a0b80fc775e4d48309b16c156acd2f8132266bcbe02e291ad6267819c065790b6da9073c172cf147a8e0 WHIRLPOOL b578c66eb2a5442fbb61b56e30d2af3bb95a5f2bfc56c3ef9f629ff1110b924cfe75fef898d503889a257191e22064c3520ba89afd07ba00918f124ee7d05743
+MISC ChangeLog-2015 4285 SHA256 5e324f0bc9191141ee1dd6f8d2cebb5c86aef91564341a25f33d133096eb67ba SHA512 a11c9ceabb8b1b0d393413167a4484b4f29204799cc1b2e0a32473d55a0654c0b8d22ab18773f1cff3a3c9b1d523c90df060af2eb8e28e57df6fa47ddfd16752 WHIRLPOOL 986db8cd1c9dd0636176997c514e9ef5d5b5ca55780b783a1a91170c9cd9a8b19344546b069a980e2ea7fe65dfa0d723bb4305b0b3034945fffa66c5b17ecd6b
+MISC metadata.xml 330 SHA256 b270a7552c99357dba579c31ee82d56461b9a9a9b47e4ccc4a1b470365e8a59a SHA512 2d15ce3d2800b1b4283be20f16d93d1a733ad4bc63e3f0338e2fb3f96e1a03c83c6a5fc9acb91b22f3c849ab65cb046a9d69032b04d916f9f2a1f56fb1da712b WHIRLPOOL 511f42f9d8d06c0f0137652b75ab2715cf2fa0fc61de47b55ab476a061dfda077e60b876b0efb6e8badf67132a3c4625ef95cb6e4e12f5a6f34f752be351a904
diff --git a/media-sound/tagtool/files/tagtool-0.12.3-underlinking.patch b/media-sound/tagtool/files/tagtool-0.12.3-underlinking.patch
new file mode 100644
index 000000000000..9569ad2fbaf5
--- /dev/null
+++ b/media-sound/tagtool/files/tagtool-0.12.3-underlinking.patch
@@ -0,0 +1,80 @@
+Fix underlinking issues caused by missing libm and libogg linking
+Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=513012
+
+In addition, fix nonidiomatic AC_ARG_ENABLE option handling.
+
+--- tagtool-0.12.3/configure.ac
++++ tagtool-0.12.3/configure.ac
+@@ -13,20 +13,16 @@
+
+
+ dnl Command line options
+-AC_ARG_ENABLE(mp3,
+- AC_HELP_STRING([--disable-mp3], [Disable MP3 support (if enabled, id3lib is required)]),
+- [enable_mp3=no; disable_mp3_reason="(disabled)"],
+- [enable_mp3=yes])
+-
+-AC_ARG_ENABLE(vorbis,
+- AC_HELP_STRING([--disable-vorbis], [Disable Ogg Vorbis support (if enabled, libvorbis is required)]),
+- [enable_vorbis=no; disable_vorbis_reason="(disabled)"],
+- [enable_vorbis=yes])
++AC_ARG_ENABLE([mp3],
++ AS_HELP_STRING([--disable-mp3], [Disable MP3 support (if enabled, id3lib is required)]))
+
+-if test "$enable_mp3" = "no" && test "$enable_vorbis" = "no"; then
+- AC_MSG_ERROR([At least one of 'mp3' or 'vorbis' must be enabled. Try './configure --help' for a list of options.])
+-fi;
++AC_ARG_ENABLE([vorbis],
++ AS_HELP_STRING([--disable-vorbis], [Disable Ogg Vorbis support (if enabled, libvorbis is required)]))
+
++dnl Test for no flags being enabled
++AS_IF([test "x$enable_mp3" != "xyes" && test "x$enable_vorbis" != "xyes" ], [
++ AC_MSG_ERROR([At least one of 'mp3' or 'vorbis' must be enabled. Try './configure --help' for a list of options.])
++])
+
+ dnl Checks for programs.
+ AC_PROG_CC
+@@ -50,6 +46,12 @@
+ fi;
+
+
++dnl Check for libm for ceil()
++AC_SEARCH_LIBS([ceil], [m], [], [
++ AC_MSG_ERROR([unable to find the ceil() function])
++])
++
++
+ dnl Check for gtk and related libraries
+ PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.12.0
+ gtk+-2.0 >= 2.8.0
+@@ -91,6 +93,9 @@
+ AC_CHECK_LIB(vorbisfile, main,,
+ [enable_vorbis=no; disable_vorbis_reason="(missing vorbisfile library)"])
+ fi;
++if test "$enable_vorbis" = "yes"; then
++ PKG_CHECK_MODULES([OGG], [ogg])
++fi;
+
+ AM_CONDITIONAL(ENABLE_MP3, test "$enable_mp3" = "yes")
+ AM_CONDITIONAL(ENABLE_VORBIS, test "$enable_vorbis" = "yes")
+--- tagtool-0.12.3/src/Makefile.am
++++ tagtool-0.12.3/src/Makefile.am
+@@ -28,7 +28,8 @@
+ vorbis_sources = vorbis_file.c vorbis_file.h vorbis_edit.c \
+ vorbis_edit.h vorbis_edit_field.c vorbis_edit_field.h vcedit.c \
+ vcedit.h
+-vorbis_cflags = -DENABLE_VORBIS
++vorbis_cflags = $(OGG_CFLAGS) -DENABLE_VORBIS
++vorbis_libs = $(OGG_LIBS)
+ else
+ vorbis_sources =
+ vorbis_cflags =
+@@ -39,7 +40,7 @@
+ ${vorbis_cflags} -DDATADIR='"$(datadir)/${PACKAGE_NAME}"'
+
+ tagtool_LDFLAGS = -export-dynamic
+-tagtool_LDADD = $(GTK_LIBS)
++tagtool_LDADD = $(GTK_LIBS) ${vorbis_libs}
+
+ tagtool_SOURCES = file_list.c file_list.h file_util.c file_util.h \
+ edit_tab.c edit_tab.h elist.c elist.h main.c math_util.c \
diff --git a/media-sound/tagtool/metadata.xml b/media-sound/tagtool/metadata.xml
new file mode 100644
index 000000000000..12eb820c0950
--- /dev/null
+++ b/media-sound/tagtool/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">tagtool</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/tagtool/tagtool-0.12.3-r1.ebuild b/media-sound/tagtool/tagtool-0.12.3-r1.ebuild
new file mode 100644
index 000000000000..be7039a613eb
--- /dev/null
+++ b/media-sound/tagtool/tagtool-0.12.3-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Audio Tag Tool Ogg/Mp3 Tagger"
+HOMEPAGE="https://sourceforge.net/projects/tagtool/"
+SRC_URI="https://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE="mp3 +vorbis"
+REQUIRED_USE="|| ( mp3 vorbis )"
+
+RDEPEND="x11-libs/gtk+:2
+ >=gnome-base/libglade-2.6
+ mp3? ( >=media-libs/id3lib-3.8.3-r6 )
+ vorbis? ( >=media-libs/libvorbis-1 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-underlinking.patch
+)
+
+src_prepare() {
+ # QA fix for wrong boolean value
+ sed -i -e 's/Terminal=False/Terminal=false/' data/tagtool.desktop.in || die
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable mp3) \
+ $(use_enable vorbis)
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ GNOME_SYSCONFDIR="${D}/etc" \
+ sysdir="${D}/usr/share/applets/Multimedia" \
+ install
+
+ dodoc ChangeLog NEWS README TODO THANKS
+}