2007-10-21 17:13:51 +02:00
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
2007-10-21 16:14:51 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2007-10-21 17:13:51 +02:00
|
|
|
inherit eutils rpm multilib
|
2007-10-21 16:14:51 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Binary only GIU for LightScribe"
|
|
|
|
HOMEPAGE="http://www.lightscribe.com/"
|
|
|
|
SRC_URI="http://download.lightscribe.com/ls/lightScribeSimpleLabeler-${PV}-linux-2.6-intel.rpm"
|
|
|
|
|
|
|
|
LICENSE="HP-LightScribe"
|
|
|
|
SLOT="0"
|
2007-10-21 17:13:51 +02:00
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE="multilib"
|
2007-10-21 16:14:51 +02:00
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
|
|
|
|
RDEPEND="virtual/libc
|
|
|
|
sys-libs/libstdc++-v3
|
|
|
|
>=app-cdr/liblightscribe-1.4.113.1
|
2007-10-21 17:13:51 +02:00
|
|
|
x86? ( >=media-libs/fontconfig-2.3.2
|
|
|
|
>=media-libs/freetype-2.1.10
|
|
|
|
>=media-libs/libpng-1.2.8
|
2007-10-21 19:47:40 +02:00
|
|
|
>=x11-libs/qt-4.2.2
|
2007-10-21 17:13:51 +02:00
|
|
|
x11-libs/libICE
|
|
|
|
x11-libs/libSM
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXcursor
|
|
|
|
x11-libs/libXext )
|
2007-10-21 17:29:49 +02:00
|
|
|
amd64? ( app-emulation/emul-linux-x86-xlibs
|
|
|
|
app-emulation/emul-linux-x86-compat )
|
2007-10-21 16:14:51 +02:00
|
|
|
sys-devel/gcc
|
|
|
|
sys-libs/zlib"
|
|
|
|
|
|
|
|
RESTRICT="mirror strip"
|
|
|
|
|
2007-10-21 19:47:40 +02:00
|
|
|
pkg_setup() {
|
|
|
|
if use x86; then
|
|
|
|
if has_version ">=x11-libs/qt-4.2.2" && ! built_with_use x11-libs/qt qt3support; then
|
|
|
|
eerror
|
|
|
|
eerror "You need to rebuild x11-libs/qt with USE=qt3support enabled"
|
|
|
|
eerror
|
|
|
|
die "please rebuild x11-libs/qt with USE=qt3support"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-10-21 16:14:51 +02:00
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() { :; }
|
|
|
|
|
|
|
|
src_install() {
|
2007-10-21 17:13:51 +02:00
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
|
2007-10-21 16:14:51 +02:00
|
|
|
into /opt/lightscribe/SimpleLabeler
|
|
|
|
dobin ${WORKDIR}/opt/lightscribeApplications/SimpleLabeler/SimpleLabeler
|
|
|
|
dobin ${WORKDIR}/opt/lightscribeApplications/SimpleLabeler/*.*
|
2007-10-21 17:22:08 +02:00
|
|
|
exeinto /opt/lightscribe/SimpleLabeler/bin/plugins/accessible
|
|
|
|
doexe ${WORKDIR}/opt/lightscribeApplications/SimpleLabeler/plugins/accessible/*.so
|
2007-10-21 16:14:51 +02:00
|
|
|
insinto /opt/lightscribe/SimpleLabeler/bin/content
|
|
|
|
doins -r ${WORKDIR}/opt/lightscribeApplications/SimpleLabeler/content/*
|
2007-10-21 17:13:51 +02:00
|
|
|
use amd64 && dolib.so ${WORKDIR}/opt/lightscribeApplications/common/Qt/*
|
2007-10-21 16:14:51 +02:00
|
|
|
dodoc ${WORKDIR}/opt/lightscribeApplications/*.*
|
|
|
|
|
2007-10-21 20:07:20 +02:00
|
|
|
# cope with libraries being in /opt/lightscribe/SimpleLabeler/lib
|
2007-10-21 17:17:29 +02:00
|
|
|
use amd64 && dodir /etc/env.d
|
|
|
|
use amd64 && echo "LDPATH=/opt/lightscribe/SimpleLabeler/$(get_libdir)" > ${D}/etc/env.d/80lightscribe-simplelabeler
|
|
|
|
|
|
|
|
|
2007-10-21 16:14:51 +02:00
|
|
|
newicon ${WORKDIR}/opt/lightscribeApplications/SimpleLabeler/content/images/LabelWizardIcon.png ${PN}.png
|
2007-10-21 19:51:41 +02:00
|
|
|
make_desktop_entry /opt/lightscribe/SimpleLabeler/bin/SimpleLabeler "LightScribe Simple Labeler" ${PN}.png AudioVideo /opt/lightscribe/SimpleLabeler/bin
|
2007-10-21 16:14:51 +02:00
|
|
|
}
|