summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2011-12-10 00:34:07 +0000
committerNaohiro Aota <naota@gentoo.org>2011-12-10 00:34:07 +0000
commit1471b875b3e48e202a99a38e79cc1aab58f61080 (patch)
treed42bd919382a139a260e59d85bf6a2bed524c81b /app-backup/spideroak-bin
parentRemoved old alpha (diff)
downloadgentoo-2-1471b875b3e48e202a99a38e79cc1aab58f61080.tar.gz
gentoo-2-1471b875b3e48e202a99a38e79cc1aab58f61080.tar.bz2
gentoo-2-1471b875b3e48e202a99a38e79cc1aab58f61080.zip
Vesrion bump; New USE flag to unbundle pycurl. Bug #393367
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'app-backup/spideroak-bin')
-rw-r--r--app-backup/spideroak-bin/ChangeLog8
-rw-r--r--app-backup/spideroak-bin/metadata.xml3
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-4.2.9907.ebuild109
3 files changed, 118 insertions, 2 deletions
diff --git a/app-backup/spideroak-bin/ChangeLog b/app-backup/spideroak-bin/ChangeLog
index 7e476aeb7fbc..6ed99cd536f8 100644
--- a/app-backup/spideroak-bin/ChangeLog
+++ b/app-backup/spideroak-bin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-backup/spideroak-bin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/ChangeLog,v 1.7 2011/12/06 14:49:44 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/ChangeLog,v 1.8 2011/12/10 00:34:07 naota Exp $
+
+*spideroak-bin-4.2.9907 (10 Dec 2011)
+
+ 10 Dec 2011; Naohiro Aota <naota@gentoo.org> +spideroak-bin-4.2.9907.ebuild,
+ metadata.xml:
+ Vesrion bump; New USE flag to unbundle pycurl. Bug #393367
06 Dec 2011; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Fix maintainer tag order. Remove bug assignment order instructions since they
diff --git a/app-backup/spideroak-bin/metadata.xml b/app-backup/spideroak-bin/metadata.xml
index 38123f25e556..dbaa0e09c1d8 100644
--- a/app-backup/spideroak-bin/metadata.xml
+++ b/app-backup/spideroak-bin/metadata.xml
@@ -13,6 +13,7 @@
</maintainer>
<use>
<flag name='headless'>Build without graphic frontend</flag>
- <flag name='qt-bundled'>Use bundled Qt4 libraies</flag>
+ <flag name='pycurl-bundled'>Use bundled pycurl</flag>
+ <flag name='qt-bundled'>Use bundled Qt4 libraries</flag>
</use>
</pkgmetadata>
diff --git a/app-backup/spideroak-bin/spideroak-bin-4.2.9907.ebuild b/app-backup/spideroak-bin/spideroak-bin-4.2.9907.ebuild
new file mode 100644
index 000000000000..93b716e49bbf
--- /dev/null
+++ b/app-backup/spideroak-bin/spideroak-bin-4.2.9907.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-4.2.9907.ebuild,v 1.1 2011/12/10 00:34:07 naota Exp $
+
+EAPI=4
+
+inherit eutils versionator
+
+REV=$(get_version_component_range 3)
+SRC_URI_BASE="https://spideroak.com/directdownload?platform=ubuntulucid"
+
+DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system."
+HOMEPAGE="https://spideroak.com"
+SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&revision=${REV} -> ${P}_x86.deb )
+ amd64? ( ${SRC_URI_BASE}&arch=x86_64&revision=${REV} -> ${P}_amd64.deb )"
+RESTRICT="mirror strip"
+
+LICENSE="spideroak"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus headless pycurl-bundled qt-bundled"
+
+RDEPEND="dev-db/sqlite:3
+ >=dev-libs/glib-2.22.0
+ dev-libs/openssl:0.9.8
+ media-libs/libpng:1.2
+ >=sys-devel/gcc-4
+ >=sys-libs/glibc-2.7
+ sys-libs/zlib
+ dbus? ( sys-apps/dbus )
+ !headless? (
+ >=media-libs/fontconfig-2.8.0
+ >=media-libs/freetype-2.3.5
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ !qt-bundled? ( x11-libs/qt-gui:4[accessibility,dbus] )
+ )
+ pycurl-bundled? (
+ net-libs/libssh2
+ net-misc/curl
+ )
+ !pycurl-bundled? ( dev-python/pycurl )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ # change /usr/ to /opt/SpiderOak/ in start script
+ sed -i 's:/usr/lib:/opt:g' usr/bin/SpiderOak || die "sed failed"
+ # change /usr/ to /opt/ in .desktop file
+ sed -i 's:/usr/bin/SpiderOak:/opt/bin/SpiderOak:g' usr/share/applications/spideroak.desktop || die "sed failed"
+
+ # disable GUI if headless useflag is enabled
+ if use headless ; then
+ sed -i 's:"$@":--headless "$@":' usr/bin/SpiderOak || die "sed failed"
+ fi
+
+ # remove shipped libstdc++.so.6 as it does not provide LIBCXX_3.4.11
+ # and it seems to work alright with the one from >=gcc-4
+ rm usr/lib/SpiderOak/libstdc++.so.6 || die "rm libstdc++.so.6 failed"
+
+ if ! use qt-bundled || use headless ; then
+ # rm precompiled and bundled qt libs
+ rm usr/lib/SpiderOak/libQt*.so.4 || die "rm libQt*.so.4 failed"
+ fi
+
+ if ! use pycurl-bundled ; then
+ # rm precompiled and bundled pycurl
+ rm usr/lib/SpiderOak/pycurl.so
+ fi
+}
+
+src_install() {
+ insinto /opt/SpiderOak
+ doins -r usr/lib/SpiderOak/*
+
+ exeinto /opt/SpiderOak
+ doexe usr/lib/SpiderOak/SpiderOak
+
+ exeinto /opt/bin
+ doexe usr/bin/SpiderOak
+
+ if use dbus ; then
+ insinto /etc/dbus-1
+ doins -r etc/dbus-1/*
+ fi
+
+ if ! use headless ; then
+ domenu usr/share/applications/spideroak.desktop
+ doicon usr/share/pixmaps/spideroak.png
+ fi
+}
+
+pkg_postinst() {
+ if use headless ; then
+ einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
+ einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
+ einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
+ fi
+}