/[gentoo-x86]/app-backup/spideroak-bin/spideroak-bin-4.1.9860.ebuild
Gentoo

Contents of /app-backup/spideroak-bin/spideroak-bin-4.1.9860.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 10 01:30:10 2011 UTC (2 years, 11 months ago) by naota
Branch: MAIN
Changes since 1.1: +2 -2 lines
Fix typo. wrt bug #393407

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-4.1.9860.ebuild,v 1.1 2011/11/01 07:03:34 naota Exp $
4
5 EAPI=4
6
7 inherit eutils versionator
8
9 REV=$(get_version_component_range 3)
10 SRC_URI_BASE="https://spideroak.com/directdownload?platform=ubuntulucid"
11
12 DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system."
13 HOMEPAGE="https://spideroak.com"
14 SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&revision=${REV} -> ${P}_x86.deb )
15 amd64? ( ${SRC_URI_BASE}&arch=x86_64&revision=${REV} -> ${P}_amd64.deb )"
16 RESTRICT="mirror strip"
17
18 LICENSE="spideroak"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="dbus headless qt-bundled"
22
23 RDEPEND=">=dev-libs/glib-2.12.0
24 dbus? ( sys-apps/dbus )
25 >=sys-devel/gcc-4
26 >=sys-libs/glibc-2.7
27 !headless? (
28 >=media-libs/fontconfig-2.4.0
29 >=media-libs/freetype-2.3.5
30 >=x11-libs/libICE-1.0.0
31 x11-libs/libSM
32 x11-libs/libX11
33 x11-libs/libXext
34 x11-libs/libXrender
35 !qt-bundled? ( x11-libs/qt-gui:4[accessibility,dbus] )
36 )"
37 DEPEND="${RDEPEND}"
38
39 S=${WORKDIR}
40
41 src_unpack() {
42 unpack ${A}
43 unpack ./data.tar.gz
44 rm -f control.tar.gz data.tar.gz debian-binary
45 }
46
47 src_prepare() {
48 # change /usr/ to /opt/SpiderOak/ in start script
49 sed -i 's:/usr/lib:/opt:g' usr/bin/SpiderOak || die "sed failed"
50 # change /usr/ to /opt/ in .desktop file
51 sed -i 's:/usr/bin/SpiderOak:/opt/bin/SpiderOak:g' usr/share/applications/spideroak.desktop || die "sed failed"
52
53 # disable GUI if headless useflag is enabled
54 if use headless; then
55 sed -i 's:"$@":--headless "$@":' usr/bin/SpiderOak || die "sed failed"
56 fi
57
58 # remove shipped libstdc++.so.6 as it does not provide LIBCXX_3.4.11
59 # and it seems to work alright with the one from >=gcc-4
60 rm usr/lib/SpiderOak/libstdc++.so.6 || die "rm libstdc++.so.6 failed"
61
62 if ! use qt-bundled || use headless; then
63 # rm precompiled and bundled qt libs
64 rm usr/lib/SpiderOak/libQt*.so.4 || die "rm libQt*.so.4 failed"
65 fi
66 }
67
68 src_install() {
69 insinto /opt/SpiderOak
70 doins -r usr/lib/SpiderOak/*
71
72 exeinto /opt/SpiderOak
73 doexe usr/lib/SpiderOak/SpiderOak
74
75 exeinto /opt/bin
76 doexe usr/bin/SpiderOak
77
78 if use dbus; then
79 insinto /etc/dbus-1
80 doins -r etc/dbus-1/*
81 fi
82
83 if ! use headless; then
84 domenu usr/share/applications/spideroak.desktop
85 doicon usr/share/pixmaps/spideroak.png
86 fi
87 }
88
89 pkg_postinst() {
90 if use headless ; then
91 einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
92 einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
93 einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
94 fi
95 }

  ViewVC Help
Powered by ViewVC 1.1.20