linamh/app-cdr/liblightscribe/liblightscribe-1.4.113.1.ebuild

40 lines
982 B
Bash
Raw Normal View History

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm
DESCRIPTION="Binary only Library for LightScribe"
HOMEPAGE="http://www.lacie.com/products/product.htm?pid=10803"
SRC_URI="http://www.lacie.com/download/drivers/lightscribe-${PV}-linux-2.6-intel.rpm"
LICENSE="HP-LightScribe"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/libc
sys-libs/libstdc++-v3"
RESTRICT="nomirror nostrip"
src_unpack() {
rpm_src_unpack
}
src_compile() { :; }
src_install() {
dodoc ${WORKDIR}/usr/share/doc/*
insinto /opt/lightscribe/lib/lightscribe
doins -r ${WORKDIR}/usr/lib/lightscribe/*
insinto /opt/lightscribe/lib
doins ${WORKDIR}/usr/lib/liblightscribe.so.*
dosym /opt/lightscribe/lib/liblightscribe.so.1 /opt/lightscribe/lib/liblightscribe.so
insinto /etc
doins -r ${WORKDIR}/etc/*
dosed "s%/usr/lib%/opt/lightscribe/lib%" /etc/lightscribe.rc
doenvd ${FILESDIR}/80liblightscribe
}