diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-12-16 22:03:13 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-12-16 22:03:13 +0000 |
commit | fc2887fa1543ab0a9cdfc56827d1b6bd92af60c5 (patch) | |
tree | 9476a34a035814ddd0383346870cedc35bdaaeb7 /app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild | |
parent | Add '-gentoo' to version, so that k3b, etc can detect that we have a special (diff) | |
download | gentoo-2-fc2887fa1543ab0a9cdfc56827d1b6bd92af60c5.tar.gz gentoo-2-fc2887fa1543ab0a9cdfc56827d1b6bd92af60c5.tar.bz2 gentoo-2-fc2887fa1543ab0a9cdfc56827d1b6bd92af60c5.zip |
Add '-gentoo' to version, so that k3b, etc can detect that we have a special
version that includes scglib support.
Diffstat (limited to 'app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild')
-rw-r--r-- | app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild b/app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild new file mode 100644 index 000000000000..1b3a62dbaab7 --- /dev/null +++ b/app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrdao/cdrdao-1.1.7-r3.ebuild,v 1.1 2003/12/16 22:03:01 azarah Exp $ + +inherit flag-o-matic eutils + +DESCRIPTION="Burn CDs in disk-at-once mode -- with optional GUI frontend" +HOMEPAGE="http://cdrdao.sourceforge.net/" +SRC_URI="mirror://sourceforge/cdrdao/${P}.src.tar.gz" +RESTRICT="nomirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64" +IUSE="gnome oggvorbis perl" + +RDEPEND="gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1 + >=dev-cpp/gnomemm-1.2.2 ) + x86? ( perl? ( oggvorbis? ( dev-perl/libvorbis-perl ) ) ) + dev-perl/MP3-Info + dev-perl/Audio-Wav + dev-perl/Audio-Tools + virtual/cdrtools + >=sys-apps/sed-4" +DEPEND=">=dev-util/pccts-1.33.24-r1 + ${RDEPEND}" + +src_unpack() { + unpack ${A} + + cd ${S} + + epatch ${FILESDIR}/${P}-r2-mp32dao-gentoo.diff + + if [ ! "`use oggvorbis`" ]; then + cd ${S}/contrib/mp32dao + sed -i '22s/^/#/' MediaHandler.pm + fi + + if [ "${ARCH}" = "hppa" ] + then + cd ${S}/scsilib/RULES + for i in parisc parisc64 + do + cp i386-linux-cc.rul $i-linux-cc.rul + cp i386-linux-gcc.rul $i-linux-gcc.rul + done + fi + + # Add '-gentoo' to version, so that k3b, etc can detect that we have + # a special version that includes scglib support. + epatch ${FILESDIR}/${P}-gentoo-version.patch +} + +src_compile() { + local mygnome= + + if [ "`use gnome`" ] ; then + mygnome=" --with-gnome" + append-flags "$( /usr/bin/gtkmm-config --cflags ) -fno-exceptions" + fi + # -funroll-loops do not work + filter-flags "-funroll-loops" + + ./configure "${mygnome}" \ + --prefix=/usr \ + --build="${CHOST}"\ + --host="${CHOST}" \ + --with-scglib-inc=/usr/include/scsilib \ + --with-scglib-lib=/usr/lib \ + || die "configure failed" + emake || die +} + +src_install() { + # mp32dao.pl + dobin contrib/mp32dao/mp32dao.pl + insinto /usr/share/cdrdao/mp32dao + doins contrib/mp32dao/MediaHandler.pm contrib/mp32dao/mp3handler.pm \ + contrib/mp32dao/BaseInfo.pm + use oggvorbis && doins contrib/mp32dao/ogghandler.pm + + # cdrdao gets definitely installed + # binary + dobin dao/cdrdao + + # data of cdrdao in /usr/share/cdrdao/ + # (right now only driverlist) + insinto /usr/share/cdrdao + newins dao/cdrdao.drivers drivers + + # man page + into /usr + newman dao/cdrdao.man cdrdao.1 + + # documentation + docinto "" + dodoc COPYING CREDITS INSTALL README* Release* + + # and now the optional GNOME frontend + if [ "`use gnome`" ] ; then + # binary + into /usr + dobin xdao/gcdmaster + + # pixmaps for gcdmaster in /usr/share/pixmaps/gcdmaster + insinto /usr/share/pixmaps/gcdmaster + doins xdao/*.png xdao/*.xpm + + # application links + # gcdmaster.desktop in /usr/share/gnome/apps/Applications + insinto /usr/share/gnome/apps/Applications + doins xdao/gcdmaster.desktop + + # xcdrdao.1 renamed to gcdmaster.1 in /usr/share/man/man1/ + into /usr + newman xdao/xcdrdao.man gcdmaster.1 + fi +} |