/[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.7 - (show annotations) (download)
Sat Jan 4 15:01:28 2014 UTC (8 months, 1 week ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump, bug #496932

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 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.6 2013/03/23 19:44:29 vapier Exp $
4
5 EAPI=4
6
7 inherit eutils versionator unpacker
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? ( dev-qt/qtgui:4[accessibility,dbus] )
36 )"
37 DEPEND="${RDEPEND}"
38
39 S=${WORKDIR}
40
41 src_prepare() {
42 # change /usr/ to /opt/SpiderOak/ in start script
43 sed -i 's:/usr/lib:/opt:g' usr/bin/SpiderOak || die "sed failed"
44 # change /usr/ to /opt/ in .desktop file
45 sed -i 's:/usr/bin/SpiderOak:/opt/bin/SpiderOak:g' usr/share/applications/spideroak.desktop || die "sed failed"
46
47 # disable GUI if headless useflag is enabled
48 if use headless; then
49 sed -i 's:"$@":--headless "$@":' usr/bin/SpiderOak || die "sed failed"
50 fi
51
52 # remove shipped libstdc++.so.6 as it does not provide LIBCXX_3.4.11
53 # and it seems to work alright with the one from >=gcc-4
54 rm usr/lib/SpiderOak/libstdc++.so.6 || die "rm libstdc++.so.6 failed"
55
56 if ! use qt-bundled || use headless; then
57 # rm precompiled and bundled qt libs
58 rm usr/lib/SpiderOak/libQt*.so.4 || die "rm libQt*.so.4 failed"
59 fi
60 }
61
62 src_install() {
63 insinto /opt/SpiderOak
64 doins -r usr/lib/SpiderOak/*
65
66 exeinto /opt/SpiderOak
67 doexe usr/lib/SpiderOak/SpiderOak
68
69 exeinto /opt/bin
70 doexe usr/bin/SpiderOak
71
72 if use dbus; then
73 insinto /etc/dbus-1
74 doins -r etc/dbus-1/*
75 fi
76
77 if ! use headless; then
78 domenu usr/share/applications/spideroak.desktop
79 doicon usr/share/pixmaps/spideroak.png
80 fi
81 }
82
83 pkg_postinst() {
84 if use headless ; then
85 einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
86 einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
87 einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
88 fi
89 }

  ViewVC Help
Powered by ViewVC 1.1.20