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