summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-05-02 19:34:31 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-05-02 19:34:31 +0000
commitcae28c19a8614d33712cbab7aa574e46c6f2b5fc (patch)
treeaba96500da529731724009420f3da9acd44112c3 /media-sound
parentStable on s390 (Manifest recommit) (diff)
downloadgentoo-2-cae28c19a8614d33712cbab7aa574e46c6f2b5fc.tar.gz
gentoo-2-cae28c19a8614d33712cbab7aa574e46c6f2b5fc.tar.bz2
gentoo-2-cae28c19a8614d33712cbab7aa574e46c6f2b5fc.zip
Version bump. Closes bug #43939.
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/xmcd/ChangeLog7
-rw-r--r--media-sound/xmcd/Manifest2
-rw-r--r--media-sound/xmcd/files/digest-xmcd-3.3.22
-rw-r--r--media-sound/xmcd/xmcd-3.3.2.ebuild140
4 files changed, 150 insertions, 1 deletions
diff --git a/media-sound/xmcd/ChangeLog b/media-sound/xmcd/ChangeLog
index 48b7e92daf27..ed5ee548a029 100644
--- a/media-sound/xmcd/ChangeLog
+++ b/media-sound/xmcd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/xmcd
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/xmcd/ChangeLog,v 1.4 2004/04/20 16:55:29 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/xmcd/ChangeLog,v 1.5 2004/05/02 19:34:31 eradicator Exp $
+
+*xmcd-3.3.2 (02 May 2004)
+
+ 02 May 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.3.2.ebuild:
+ Version bump. Closes bug #43939.
*xmcd-3.2.1-r1 (20 Apr 2004)
diff --git a/media-sound/xmcd/Manifest b/media-sound/xmcd/Manifest
index 2d7ab9507c8f..6296b90c145d 100644
--- a/media-sound/xmcd/Manifest
+++ b/media-sound/xmcd/Manifest
@@ -1,5 +1,7 @@
+MD5 5072852e97fde203dfb0576c2132c7bc xmcd-3.3.2.ebuild 3808
MD5 5072852e97fde203dfb0576c2132c7bc xmcd-3.2.1-r1.ebuild 3808
MD5 62414d677dcefe7f82beba1e20cd776f ChangeLog 839
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
MD5 992e090724bd232658de7b7dc6f87b33 files/xmcd-3.2.1-gentoo.patch 8830
MD5 fc905fdc8e827efddb8da8e4973914d2 files/digest-xmcd-3.2.1-r1 126
+MD5 b54e3803073e1e4f961bb0e66d322647 files/digest-xmcd-3.3.2 127
diff --git a/media-sound/xmcd/files/digest-xmcd-3.3.2 b/media-sound/xmcd/files/digest-xmcd-3.3.2
new file mode 100644
index 000000000000..ac0fa33dd763
--- /dev/null
+++ b/media-sound/xmcd/files/digest-xmcd-3.3.2
@@ -0,0 +1,2 @@
+MD5 8808c754db69b1d6eca060c2a6d1be99 xmcd-3.3.2.tar.gz 1062467
+MD5 10f1271014e547ffc26e356928b0b645 cddb2supplib.tar.gz 575319
diff --git a/media-sound/xmcd/xmcd-3.3.2.ebuild b/media-sound/xmcd/xmcd-3.3.2.ebuild
new file mode 100644
index 000000000000..2cbc59700ffb
--- /dev/null
+++ b/media-sound/xmcd/xmcd-3.3.2.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/xmcd/xmcd-3.3.2.ebuild,v 1.1 2004/05/02 19:34:31 eradicator Exp $
+
+inherit eutils
+
+IUSE="alsa encode oggvorbis"
+
+SUPPLIB="cddb2supplib"
+DESCRIPTION="Xmcd is a full-featured CD Player and Ripper software package."
+HOMEPAGE="http://www.ibiblio.org/tkan/xmcd/"
+SRC_URI="http://www.ibiblio.org/tkan/download/${PN}/${PV}/src/${P}.tar.gz
+ http://www.ibiblio.org/tkan/download/cddb2supp/${PV}/lib/linux-x86-libc6/${SUPPLIB}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+
+DEPEND="virtual/x11
+ x11-libs/openmotif
+ alsa? ( media-libs/alsa-lib )
+ encode? ( >=media-sound/lame-3.93.1 )
+ oggvorbis? ( >=media-libs/libvorbis-1.0 )"
+
+src_unpack() {
+
+ ebegin "Unpacking ${P} source tarball"
+ unpack ${P}.tar.gz > /dev/null
+ eend 0
+
+ if use x86
+ then
+ ebegin "Unpacking Gracenote CDDB² support package"
+ unpack ${SUPPLIB}.tar.gz > /dev/null
+ eend 0
+ fi
+
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-3.2.1-gentoo.patch || die
+}
+
+src_compile() {
+
+ einfo "Building xmcd..."
+ xmkmf -a || die
+ make CDEBUGFLAGS="${CDEBUGFLAGS} ${CFLAGS} -D_GNU_SOURCE" || die
+
+}
+
+src_install() {
+
+ # shamelessly culled from SuSE .spec file...
+ ebegin "Running install script"
+ BATCH_BINDIR=${D}/usr/X11R6/bin \
+ BATCH_LIBDIR=${D}/usr/X11R6/lib/X11 \
+ BATCH_XMCDLIB=${D}/usr/X11R6/lib/X11/xmcd \
+ BATCH_MANDIR=${D}/usr/X11R6/man/man1 \
+ BATCH_CDDBDIR=${D}/var/lib/xmcd/cddb \
+ BATCH_DISCOGDIR=${D}/var/lib/xmcd/discog \
+ sh install.sh -n -b
+ eend 0
+
+ dodir /usr/lib
+ for lib in libcddb.so.1 libcddb.a libcddbkey1.a libcddbkey2.a; do
+ cp ${S}/cddb_d/${lib} ${D}/usr/lib
+ done
+ dosym libcddbkey2.a /usr/lib/libcddbkey.a
+ dosym libcddb.so.1 /usr/lib/libcddb.so
+
+ # a small fixup...
+ rm -rf ${D}/usr/X11R6/lib/X11/xmcd/docs
+ dodir etc
+ dosym ../usr/X11R6/lib/X11/xmcd/config /etc/xmcd
+
+ # move binaries to correct place
+ ebegin "Moving binaries to target location"
+ (cd ${D}/usr/X11R6/lib/X11/xmcd/bin-*;
+ sed -e "s@${D}@@g" \
+ < ${D}/usr/X11R6/bin/.xmcd_start > start
+ cp start ${D}/usr/X11R6/bin/.xmcd_start
+ sed -e "s@${D}@@" < README > README.tmp
+ mv README.tmp README )
+ rm -f ${D}/usr/X11R6/bin/*
+ (cd ${D}/usr/X11R6/bin; \
+ ln -s ../lib/X11/xmcd/bin-*/start xmcd; \
+ ln -s ../lib/X11/xmcd/bin-*/start cda)
+ cp ${D}/usr/X11R6/lib/X11/xmcd/config/common.cfg \
+ ${D}/usr/X11R6/lib/X11/xmcd/config/cdrom
+ for i in config/config.sh scripts/genidx ; do
+ sed -e "s@${D}@@g" \
+ < ${D}/usr/X11R6/lib/X11/xmcd/$i \
+ > ${D}/usr/X11R6/lib/X11/xmcd/$i.tmp
+ mv ${D}/usr/X11R6/lib/X11/xmcd/$i.tmp \
+ ${D}/usr/X11R6/lib/X11/xmcd/$i
+ done
+ eend 0
+
+ ebegin "Fixing ownership and permissions"
+ # fix ownership
+ chown -R root:root ${D}
+ # remove setuid bit
+ chmod 0755 ${D}/usr/X11R6/lib/X11/xmcd/bin-*/{cda,xmcd,start,gobrowser}
+ chmod 0755 ${D}/usr/X11R6/lib/X11/xmcd/config/config.sh
+ chmod 0755 ${D}/usr/X11R6/lib/X11/xmcd/scripts/genidx
+ # change perms
+ chmod 0644 ${D}/var/lib/xmcd/discog/index.html
+ chmod 0644 ${D}/var/lib/xmcd/discog/*/*/index.html
+ eend 0
+
+ if use x86
+ then
+ ebegin "Adding Gracenote CDDB² support"
+ exeinto /usr/X11R6/lib/X11/xmcd/lib-Linux-i686
+ doexe ${WORKDIR}/${P}/cddb_d/libcddb.so.1
+ dosym libcddb.so.1 /usr/X11R6/lib/X11/xmcd/lib-Linux-i686/libcddb.so
+ eend 0
+ fi
+
+ # install documentation
+ dodoc docs_d/*
+ dosym ../../../../../usr/share/doc/${P} /usr/X11R6/lib/X11/xmcd/docs
+}
+
+pkg_postinst() {
+
+ einfo ""
+ einfo "Don't forget to run ${ROOT}etc/xmcd/config.sh"
+ einfo "as root to configure your CD devices!"
+ einfo ""
+
+}
+
+pkg_postrm() {
+
+ einfo ""
+ einfo "Old discographies found in ${ROOT}var/lib/xmcd can safely be deleted."
+ einfo "Old CD configurations in ${ROOT}etc/xmcd can safely be deleted."
+ einfo ""
+
+}