2007-10-06 00:35:32 +02:00
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit eutils rpm multilib
|
|
|
|
|
|
|
|
DESCRIPTION="Binary only Library for LightScribe"
|
|
|
|
HOMEPAGE="http://www.lightscribe.com/"
|
|
|
|
SRC_URI="http://download.lightscribe.com/ls/lightscribe-${PV}-linux-2.6-intel.rpm
|
|
|
|
http://download.lightscribe.com/ls/lightscribePublicSDK-${PV}-linux-2.6-intel.rpm"
|
|
|
|
|
|
|
|
LICENSE="HP-LightScribe"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE="multilib"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
|
|
|
|
RDEPEND="virtual/libc
|
|
|
|
sys-libs/libstdc++-v3"
|
|
|
|
|
|
|
|
RESTRICT="mirror strip"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() { :; }
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
|
2007-10-21 14:32:49 +02:00
|
|
|
insinto /opt/liblightscribe/$(get_libdir)/lightscribe/xres
|
|
|
|
doins ${WORKDIR}/usr/lib/lightscribe/xres/*
|
|
|
|
insinto /opt/liblightscribe/$(get_libdir)/lightscribe/sres
|
|
|
|
doins ${WORKDIR}/usr/lib/lightscribe/res/*
|
|
|
|
dosym sres /opt/liblightscribe/$(get_libdir)/lightscribe/res
|
|
|
|
exeinto /opt/liblightscribe/$(get_libdir)/lightscribe/updates
|
|
|
|
doexe ${WORKDIR}/usr/lib/lightscribe/updates/fallback.sh
|
|
|
|
exeinto /opt/liblightscribe/$(get_libdir)/lightscribe
|
|
|
|
doexe ${WORKDIR}/usr/lib/lightscribe/elcu.sh
|
2007-10-21 14:22:10 +02:00
|
|
|
dosed "s%/usr/lib%/opt/liblightscribe/$(get_libdir)%" /opt/liblightscribe/$(get_libdir)/lightscribe/elcu.sh
|
2007-10-06 00:35:32 +02:00
|
|
|
into /opt/liblightscribe
|
2007-10-21 13:09:38 +02:00
|
|
|
dolib.so ${WORKDIR}/usr/lib/liblightscribe.so.*
|
2007-10-06 00:35:32 +02:00
|
|
|
dosym liblightscribe.so.1 /opt/liblightscribe/$(get_libdir)/liblightscribe.so
|
2007-10-21 13:29:35 +02:00
|
|
|
insinto /usr/include/lightsribe
|
2007-10-06 00:35:32 +02:00
|
|
|
doins -r ${WORKDIR}/usr/include/*
|
|
|
|
insinto /etc
|
|
|
|
doins -r ${WORKDIR}/etc/*
|
2007-10-21 13:09:38 +02:00
|
|
|
dosed "s%/usr/lib%/opt/liblightscribe/$(get_libdir)%" /etc/lightscribe.rc
|
|
|
|
dodoc ${WORKDIR}/usr/share/doc/*.*
|
|
|
|
dodoc ${WORKDIR}/usr/share/doc/lightscribe-sdk/*.*
|
2007-10-06 00:35:32 +02:00
|
|
|
dodoc ${WORKDIR}/usr/share/doc/lightscribe-sdk/docs/*
|
2007-10-21 13:13:04 +02:00
|
|
|
docinto sample/lsprint
|
2007-10-21 13:29:35 +02:00
|
|
|
dodoc ${WORKDIR}/usr/share/doc/lightscribe-sdk/sample/lsprint/*
|
2007-10-21 16:12:48 +02:00
|
|
|
# cope with libraries being in /opt/liblightscribe/lib
|
|
|
|
dodir /etc/env.d
|
|
|
|
echo "LDPATH=/opt/liblightscribe/$(get_libdir)" > ${D}/etc/env.d/80liblightscribe
|
|
|
|
|
2007-10-06 00:35:32 +02:00
|
|
|
}
|