# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ KEYWORDS="~amd64 ~x86 ~sparc" x86_SUFFIX="-i686-pc-linux-gnu" amd64_SUFFIX="-i686-pc-linux-gnu" sparc_SUFFIX="-sparc-sunos5" DESCRIPTION="Tool for updating the firmware on Plextor CD/DVD drives" HOMEPAGE="ftp://ftp.berlios.de/pub/cdrecord/firmware/plextor/" LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" SLOT="0" SRC_URI=" x86? ( ftp://ftp.berlios.de/pub/cdrecord/firmware/plextor/${PF}${x86_SUFFIX} ) amd64? ( ftp://ftp.berlios.de/pub/cdrecord/firmware/plextor/${PF}${amd64_SUFFIX} ) sparc? ( ftp://ftp.berlios.de/pub/cdrecord/firmware/plextor/${PF}${sparc_SUFFIX} ) ftp://ftp.berlios.de/pub/cdrecord/firmware/plextor/PXUpdate.txt" src_install() { if use x86 ; then newsbin "${DISTDIR}/${PF}${x86_SUFFIX}" pxupdate || die "dosbin for x86 faild" elif use amd64 ; then newsbin "${DISTDIR}/${PF}${amd64_SUFFIX}" pxupdate || die "dosbin for amd64 faild" elif use sparc ; then newsbin "${DISTDIR}/${PF}${sparc_SUFFIX}" pxupdate || die "dosbin for sparc faild" else die "arch not supported" fi dodoc "${DISTDIR}/PXUpdate.txt" || die "dodoc faild" }