blob: 75504cf46085ac44d0b3250c852eba125677d664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit rpm
DESCRIPTION="LaCie LightScribe Labeler 4L"
HOMEPAGE="http://www.lacie.com/us/products/product.htm?pid=10803"
SRC_URI="http://www.lacie.com/files/lacie-content/download/drivers/LaCie%20LightScribe%20Labeler%201.0%20Linux.rpm -> ${P}.rpm
http://freenet.am/~v/distfiles/lacie-lightscribe-labeler-1.0.rpm"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"
DEPEND=""
RDEPEND="virtual/libc
=virtual/libstdc++-3*
sys-devel/gcc
dev-libs/libxml2
media-libs/freetype
media-libs/fontconfig
sys-libs/zlib
|| ( x11-libs/libX11 virtual/x11 )
x11-libs/libXau
x11-libs/libXcursor
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXinerama
x11-libs/libXrender
x11-libs/libXrandr
app-cdr/lightscribe
"
S="${WORKDIR}"
src_install() {
# we don't like /usr/4L, binary
# stuff shall go to /opt.
dodir /opt/${PN}
insinto /opt/${PN}
exeinto /opt/${PN}
doexe ./usr/4L/4L-cli
doexe ./usr/4L/4L-gui
# 4L-gui looks for translations in /usr/4L
# and the current directory, so we use a
# wrapper script for 4L-gui which changes
# to the installation directory first, so
# 4L-gui can find its translations
{
echo '#!/bin/sh';
echo "cd /opt/${PN} && exec ./4L-gui"
} >${T}/4L-gui-wrapper.sh
doexe ${T}/4L-gui-wrapper.sh
doexe ./usr/4L/lacie_website.sh
dodir /opt/${PN}/templates
insinto /opt/${PN}/templates
doins ./usr/4L/templates/*
dodir /opt/${PN}/translations
insinto /opt/${PN}/translations
doins ./usr/4L/translations/*
dodoc ./usr/4L/doc/4L_User_Manual.pdf
dosym /opt/${PN}/4L-cli /usr/bin/4L-cli
dosym /opt/${PN}/4L-gui-wrapper.sh /usr/bin/4L-gui
dodir /opt/${PN}/icons
insinto /opt/${PN}/icons
doins ${FILESDIR}/${PN}.png
insinto /usr/share/applications/
doins ${FILESDIR}/${PN}.desktop
}
|