2013-04-17 10:52:16 +02:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2010-10-08 06:15:04 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2021-07-02 02:10:05 +02:00
|
|
|
EAPI=5
|
2010-10-08 06:15:04 +02:00
|
|
|
|
|
|
|
inherit eutils rpm multilib
|
|
|
|
|
|
|
|
MY_PV="${PV/_p/-r}"
|
|
|
|
|
|
|
|
DESCRIPTION="LaCie LightScribe Labeler 4L (binary only GUI)"
|
|
|
|
HOMEPAGE="http://www.lacie.com/products/product.htm?pid=10803"
|
|
|
|
SRC_URI="http://www.lacie.com/download/drivers/4L-${MY_PV}.i586.rpm
|
2021-07-02 02:10:05 +02:00
|
|
|
http://www.yardbird.net/lightscribe/4L/4L-${MY_PV}.i586.rpm
|
|
|
|
http://web.archive.org/web/20071020084947if_/http://www.lacie.com/download/images/LaCie-logo_2758.zip"
|
2010-10-08 06:15:04 +02:00
|
|
|
|
2021-07-02 02:10:05 +02:00
|
|
|
# http://www.lacie.com/download/images/LaCie-logo_2758.zip
|
2010-10-08 06:15:04 +02:00
|
|
|
# The official license of the rpm tag states "Commercial"
|
|
|
|
# such a license don't exist in gentoo so as-is was chosen
|
|
|
|
# also on Lacie's website aren't more information then
|
|
|
|
# Free To Use But Restricted
|
|
|
|
LICENSE="as-is"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="multilib linguas_ja linguas_it linguas_fr linguas_es linguas_de"
|
2010-10-08 06:51:20 +02:00
|
|
|
RESTRICT="mirror"
|
2010-10-08 06:15:04 +02:00
|
|
|
|
2010-11-06 21:12:46 +01:00
|
|
|
DEPEND="media-gfx/imagemagick"
|
|
|
|
|
2021-07-02 02:10:05 +02:00
|
|
|
RDEPEND="
|
|
|
|
media-libs/fontconfig
|
|
|
|
media-libs/freetype
|
|
|
|
x11-libs/libX11
|
|
|
|
|| ( sys-devel/base-gcc sys-devel/gcc )
|
|
|
|
x11-libs/libXcursor
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXi
|
|
|
|
x11-libs/libXinerama
|
|
|
|
x11-libs/libXrandr
|
|
|
|
x11-libs/libXrender
|
2010-10-08 06:15:04 +02:00
|
|
|
dev-libs/liblightscribe
|
2021-07-02 02:10:05 +02:00
|
|
|
sys-libs/glibc
|
|
|
|
"
|
2010-10-08 06:15:04 +02:00
|
|
|
|
|
|
|
QA_PRESTRIPPED="
|
|
|
|
opt/lightscribe/4L/4L-gui
|
|
|
|
opt/lightscribe/4L/4L-cli"
|
|
|
|
|
|
|
|
QA_DT_HASH="
|
|
|
|
opt/lightscribe/4L/4L-gui
|
|
|
|
opt/lightscribe/4L/4L-cli"
|
|
|
|
|
|
|
|
S="${WORKDIR}"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
|
|
|
}
|
|
|
|
|
2010-11-06 21:12:46 +01:00
|
|
|
src_prepare() {
|
2010-11-09 21:40:55 +01:00
|
|
|
convert -colorspace rgb "${WORKDIR}"/LaCie-logo_2758.eps -background transparent -resize 128x128\> \
|
|
|
|
-size 128x128 xc:transparent +swap -gravity center -composite "${WORKDIR}"/${PN}.png
|
2010-11-06 21:12:46 +01:00
|
|
|
}
|
|
|
|
|
2010-10-08 06:15:04 +02:00
|
|
|
src_install() {
|
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
|
|
|
|
exeinto /opt/lightscribe/4L
|
|
|
|
doexe usr/4L/4L-* || die "4L-* install failed"
|
|
|
|
doexe usr/4L/lacie* || die "lacie* install failed"
|
|
|
|
insinto /opt/lightscribe/4L/translations
|
|
|
|
for x in ja it fr es de
|
|
|
|
do
|
|
|
|
if use linguas_${x}
|
|
|
|
then
|
|
|
|
doins usr/4L/translations/4L-gui_${x}.qm || die "translation install failed"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
dodoc usr/4L/doc/* || die "doc install failed"
|
|
|
|
insinto /opt/lightscribe/template/Lacie
|
|
|
|
doins usr/4L/templates/* || die "template install failed"
|
2010-11-10 21:24:25 +01:00
|
|
|
# create a compatibility symlink
|
|
|
|
dosym ../template/ /opt/lightscribe/4L/templates
|
2010-10-08 06:15:04 +02:00
|
|
|
into /opt
|
|
|
|
# Buggy binary software
|
|
|
|
# first run from the install dir otherwise it would not find the translations
|
|
|
|
# second change the binaries suexec bit (big security hole)
|
|
|
|
# yes they are written to only run with root rights
|
|
|
|
# http://www.lightscribe.com/discussionBoards/index.aspx?g=posts&t=4056
|
|
|
|
make_wrapper 4L-gui "./4L-gui" /opt/lightscribe/4L /usr/$(get_libdir)/libstdc++-v3
|
|
|
|
make_wrapper 4L-cli "./4L-cli" /opt/lightscribe/4L /usr/$(get_libdir)/libstdc++-v3
|
|
|
|
fperms u+s /opt/lightscribe/4L/4L-gui
|
|
|
|
fperms u+s /opt/lightscribe/4L/4L-cli
|
|
|
|
|
2010-11-06 21:12:46 +01:00
|
|
|
doicon "${WORKDIR}"/${PN}.png || die "icon install failed"
|
2013-04-17 10:52:16 +02:00
|
|
|
make_desktop_entry 4L-gui "LightScribe Lacie Labeler" ${PN} "AudioVideo;DiscBurning;Recorder;"
|
2010-10-08 06:15:04 +02:00
|
|
|
}
|