2010-01-05 07:17:14 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit eutils rpm multilib
|
|
|
|
|
|
|
|
SDK_PV=1.18.6.1
|
|
|
|
|
2010-01-22 21:48:15 +01:00
|
|
|
DESCRIPTION="LightScribe System Software (binary only library)"
|
2010-01-05 07:17:14 +01:00
|
|
|
HOMEPAGE="http://www.lightscribe.com/downloadSection/linux/index.aspx"
|
|
|
|
SRC_URI="http://download.lightscribe.com/ls/lightscribe-${PV}-linux-2.6-intel.rpm
|
|
|
|
http://download.lightscribe.com/ls/lightscribePublicSDK-${SDK_PV}-linux-2.6-intel.rpm"
|
|
|
|
|
|
|
|
LICENSE="lightscribe lightscribeSDK"
|
|
|
|
SLOT="0"
|
2010-01-22 21:48:15 +01:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="multilib"
|
2010-01-05 07:17:14 +01:00
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
|
2010-01-22 21:48:15 +01:00
|
|
|
RDEPEND="x86? ( sys-libs/libstdc++-v3 )
|
2010-01-05 07:17:14 +01:00
|
|
|
amd64? ( sys-libs/libstdc++-v3[multilib] )
|
|
|
|
!app-cdr/lightscribe"
|
|
|
|
|
2010-01-22 21:48:15 +01:00
|
|
|
RESTRICT="mirror fetch"
|
2010-01-05 07:17:14 +01:00
|
|
|
|
2010-01-22 21:48:15 +01:00
|
|
|
S="${WORKDIR}"
|
|
|
|
|
|
|
|
QA_PRESTRIPPED="
|
2010-02-01 20:22:40 +01:00
|
|
|
opt/lightscribe/lib32/liblightscribe.so.0.0.1
|
|
|
|
opt/lightscribe/lib32/libstdcv3.so.5.0.7
|
|
|
|
opt/lightscribe/lib/liblightscribe.so.0.0.1
|
|
|
|
opt/lightscribe/lib/libstdcv3.so.5.0.7"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
# This is a binary x86 package => ABI=x86
|
|
|
|
# Please keep this in future versions
|
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
}
|
2010-01-05 07:17:14 +01:00
|
|
|
|
|
|
|
src_prepare() {
|
2010-01-22 21:48:15 +01:00
|
|
|
# make revdep-rebuild happy Bug 152031 comment 74
|
|
|
|
mv usr/lib/liblightscribe.so.1 usr/lib/liblightscribe.so.0.0.1
|
2010-01-05 07:17:14 +01:00
|
|
|
|
|
|
|
# hack in to use provided libstdc++ rename it to libstdcv3
|
2010-01-22 21:48:15 +01:00
|
|
|
# can't add an rpath or a LD_PRELOAD to a already build lib to work around
|
|
|
|
# the libstdc++ "no version information available" problem Bug 152031 comment 66
|
|
|
|
mv usr/lib/lightscribe/libstdc++.so.5.0.7 usr/lib/lightscribe/libstdcv3.so.5.0.7
|
|
|
|
sed -i "s/libstdc++.so.5/libstdcv3.so.5/g" usr/lib/liblightscribe.so.0.0.1
|
|
|
|
sed -i "s/libstdc++.so.5/libstdcv3.so.5/g" usr/lib/lightscribe/libstdcv3.so.5.0.7
|
2010-01-05 07:17:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2010-02-01 20:22:40 +01:00
|
|
|
declare LSDIR="opt/lightscribe/$(get_libdir)"
|
|
|
|
|
2010-01-22 21:48:15 +01:00
|
|
|
exeinto /${LSDIR}/lightscribe/updates
|
|
|
|
doexe usr/lib/lightscribe/updates/fallback.sh || die "fallback.sh install failed"
|
|
|
|
exeinto /${LSDIR}/lightscribe
|
|
|
|
doexe usr/lib/lightscribe/elcu.sh || die "elcu.sh install failed"
|
2010-01-05 07:17:14 +01:00
|
|
|
into /opt/lightscribe
|
2010-01-22 21:48:15 +01:00
|
|
|
dolib.so usr/lib/liblightscribe.so.* || die "liblightscribe.so.* install failed"
|
|
|
|
dolib.so usr/lib/lightscribe/libstdcv3.so.* || die "libstdcv3.so.* install failed"
|
2010-02-01 20:22:40 +01:00
|
|
|
dosym liblightscribe.so.0.0.1 /${LSDIR}/liblightscribe.so
|
2010-01-05 07:17:14 +01:00
|
|
|
insinto /usr/include/lightscribe
|
2010-01-22 21:48:15 +01:00
|
|
|
doins -r usr/include/* || die "includes install failed"
|
2010-01-05 07:17:14 +01:00
|
|
|
insinto /etc
|
2010-01-22 21:48:15 +01:00
|
|
|
doins -r etc/* || die "config install failed"
|
|
|
|
sed -i "s%/usr/lib%${ROOT}${LSDIR}%" "${D}"/etc/lightscribe.rc
|
|
|
|
dodoc usr/share/doc/*.* \
|
|
|
|
usr/share/doc/lightscribe-sdk/*.* \
|
|
|
|
usr/share/doc/lightscribe-sdk/docs/* || die "doc install failed"
|
2010-01-05 07:17:14 +01:00
|
|
|
docinto sample/lsprint
|
2010-01-22 21:48:15 +01:00
|
|
|
dodoc usr/share/doc/lightscribe-sdk/sample/lsprint/* || die "lsprint sample install failed"
|
2010-01-05 07:17:14 +01:00
|
|
|
dodir /etc/env.d
|
2010-01-22 21:48:15 +01:00
|
|
|
echo "LDPATH=${ROOT}${LSDIR}" > "${D}"/etc/env.d/80lightscribe
|
2010-01-05 07:17:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2010-01-22 21:48:15 +01:00
|
|
|
elog "This version also support Enhanced Contrast"
|
|
|
|
elog "You can activate it by running:"
|
2010-02-01 20:22:40 +01:00
|
|
|
elog "${ROOT}opt/lightscribe/$(get_libdir)/lightscribe/elcu.sh"
|
2010-01-05 07:17:14 +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-${SDK_PV}-linux-2.6-intel.rpm )"
|
|
|
|
einfo "from ${HOMEPAGE} (requires to accept license)"
|
|
|
|
einfo
|
2010-01-22 21:48:15 +01:00
|
|
|
einfo "Then put the files in ${DISTDIR}"
|
2010-01-05 07:17:14 +01:00
|
|
|
}
|