Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 22509 Details for
Bug 25113
Suggestion for new package: xmcd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
xmcd-3.2.1.ebuild
xmcd-3.2.1.ebuild (text/plain), 3.44 KB, created by
John Ross Hunt
on 2003-12-20 17:59:44 UTC
(
hide
)
Description:
xmcd-3.2.1.ebuild
Filename:
MIME Type:
Creator:
John Ross Hunt
Created:
2003-12-20 17:59:44 UTC
Size:
3.44 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >IUSE="alsa encode gracenote 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" > >DEPEND="virtual/x11 > virtual/motif > alsa? ( >=media-libs/alsa-lib-0.5.10b ) > 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 [ -n "`use gracenote`" ] > then > ebegin "Unpacking Gracenote CDDB² support package" > unpack ${SUPPLIB}.tar.gz > /dev/null > eend 0 > fi > > epatch ${FILESDIR}/${P}-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 > > # 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 [ -n "`use gracenote`" ] > 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 "" > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 25113
: 22509 |
22510