2008-11-01 14:23:02 +01:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit eutils rpm multilib flag-o-matic toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="LightScribe System Software (binary only library)."
|
2008-11-14 18:33:37 +01:00
|
|
|
HOMEPAGE="http://www.lightscribe.com/downloadSection/linux/index.aspx"
|
2008-11-01 14:23:02 +01:00
|
|
|
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="lightscribe lightscribeSDK"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE="multilib"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
|
|
|
|
RDEPEND="virtual/libc
|
|
|
|
x86? ( sys-libs/libstdc++-v3 )
|
|
|
|
amd64? ( multilib? ( app-emulation/emul-linux-x86-compat ) )"
|
|
|
|
|
2008-11-14 18:33:37 +01:00
|
|
|
RESTRICT="mirror strip fetch"
|
2008-11-01 14:23:02 +01:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
|
|
|
}
|
|
|
|
|
2008-11-14 19:04:27 +01:00
|
|
|
src_compile() { :; }
|
2008-11-01 14:23:02 +01:00
|
|
|
|
|
|
|
src_install() {
|
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
|
|
|
|
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
|
|
|
|
into /opt/liblightscribe
|
|
|
|
dolib.so "${WORKDIR}"/usr/lib/liblightscribe.so.*
|
|
|
|
dosym liblightscribe.so.1 /opt/liblightscribe/$(get_libdir)/liblightscribe.so
|
|
|
|
insinto /usr/include/lightsribe
|
|
|
|
doins -r "${WORKDIR}"/usr/include/*
|
|
|
|
insinto /etc
|
|
|
|
doins -r "${WORKDIR}"/etc/*
|
|
|
|
dosed "s%/usr/lib%/opt/liblightscribe/$(get_libdir)%" /etc/lightscribe.rc
|
|
|
|
dodoc "${WORKDIR}"/usr/share/doc/*.*
|
|
|
|
dodoc "${WORKDIR}"/usr/share/doc/lightscribe-sdk/*.*
|
|
|
|
dodoc "${WORKDIR}"/usr/share/doc/lightscribe-sdk/docs/*
|
|
|
|
docinto sample/lsprint
|
|
|
|
dodoc "${WORKDIR}"/usr/share/doc/lightscribe-sdk/sample/lsprint/*
|
|
|
|
dodir /etc/env.d
|
|
|
|
echo "LDPATH=/opt/liblightscribe/$(get_libdir)" > "${D}"/etc/env.d/80liblightscribe
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
einfo
|
|
|
|
einfo "This version also support Enhanced Contrast"
|
|
|
|
einfo "You can activate it by running:"
|
|
|
|
einfo "/opt/liblightscribe/$(get_libdir)/lightscribe/elcu.sh"
|
|
|
|
einfo
|
|
|
|
}
|
2008-11-14 18:33:37 +01:00
|
|
|
|
|
|
|
pkg_nofetch() {
|
|
|
|
einfo "Please download the appropriate Lightscribe System Software & Linux Public SDK archive's"
|
|
|
|
einfo "( lightscribe-${PV}-linux-2.6-intel.rpm"
|
|
|
|
einfo " lightscribePublicSDK-${PV}-linux-2.6-intel.rpm )"
|
|
|
|
einfo "from ${HOMEPAGE} (requires to accept license)"
|
|
|
|
einfo
|
|
|
|
einfo "Then put the file in ${DISTDIR}"
|
|
|
|
}
|