Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 398317
Collapse All | Expand All

(-)spideroak-bin-4.2.9913.ebuild (-21 / +16 lines)
Lines 18-29 Link Here
18
LICENSE="spideroak"
18
LICENSE="spideroak"
19
SLOT="0"
19
SLOT="0"
20
KEYWORDS="~amd64 ~x86"
20
KEYWORDS="~amd64 ~x86"
21
IUSE="dbus headless pycurl-bundled qt-bundled"
21
IUSE="dbus headless"
22
RESTRICT="strip"
22
RESTRICT="strip"
23
23
24
RDEPEND="dev-db/sqlite:3
24
RDEPEND="dev-db/sqlite:3
25
	>=dev-libs/glib-2.22.0
25
	>=dev-libs/glib-2.22.0
26
	dev-lang/python:2.7
26
	dev-libs/openssl:0.9.8
27
	dev-libs/openssl:0.9.8
28
	dev-python/pycurl
27
	media-libs/libpng:1.2
29
	media-libs/libpng:1.2
28
	>=sys-devel/gcc-4
30
	>=sys-devel/gcc-4
29
	>=sys-libs/glibc-2.7
31
	>=sys-libs/glibc-2.7
Lines 37-55 Link Here
37
		x11-libs/libX11
39
		x11-libs/libX11
38
		x11-libs/libXext
40
		x11-libs/libXext
39
		x11-libs/libXrender
41
		x11-libs/libXrender
40
		!qt-bundled? ( x11-libs/qt-gui:4[accessibility,dbus] )
42
		x11-libs/qt-gui:4[accessibility,dbus]
41
	)
43
	)"
42
	pycurl-bundled? (
43
		net-libs/libssh2
44
		net-misc/curl
45
	)
46
	!pycurl-bundled? ( dev-python/pycurl )"
47
DEPEND="${RDEPEND}"
44
DEPEND="${RDEPEND}"
48
45
49
S=${WORKDIR}
46
S=${WORKDIR}
50
47
51
QA_PREBUILT="*"
48
QA_PREBUILT="*"
52
49
53
src_unpack() {
50
src_unpack() {
54
	unpack ${A}
51
	unpack ${A}
55
	unpack ./data.tar.gz
52
	unpack ./data.tar.gz
Lines 67-85 Link Here
67
		sed -i 's:"$@":--headless "$@":' usr/bin/SpiderOak || die "sed failed"
64
		sed -i 's:"$@":--headless "$@":' usr/bin/SpiderOak || die "sed failed"
68
	fi
65
	fi
69
66
70
	# remove shipped libstdc++.so.6 as it does not provide LIBCXX_3.4.11
67
	# rm python interpreter
71
	# and it seems to work alright with the one from >=gcc-4
68
	rm usr/lib/SpiderOak/py || die "rm py failed"
72
	rm usr/lib/SpiderOak/libstdc++.so.6 || die "rm libstdc++.so.6 failed"
73
74
	if ! use qt-bundled || use headless ; then
75
		# rm precompiled and bundled qt libs
76
		rm usr/lib/SpiderOak/libQt*.so.4 || die "rm libQt*.so.4 failed"
77
	fi
78
69
79
	if ! use pycurl-bundled ; then
70
	# rm precompiled and bundled libs
80
		# rm precompiled and bundled pycurl
71
	# WARNING: libpcre.so.3: Gentoo ships incompatible SOVERSION 0, but the library seems unused anyway
81
		rm usr/lib/SpiderOak/pycurl.so
72
	for lib in libcrypto.so.0.9.8 libcurl.so.4 libexpat.so.1 libgcc_s.so.1 libpcre.so.3 libpng12.so.0 libQt*.so.4 libsqlite3.so.0 libssh2.so.1 libssl.so.0.9.8 libstdc++.so.6 libz.so.1 ; do
82
	fi
73
		rm usr/lib/SpiderOak/$lib || die "rm $lib failed"
74
	done
75
	# rm precompiled and bundled python modules
76
	for pymod in pycurl.so pyexpat.so ; do
77
		rm usr/lib/SpiderOak/$pymod || die "rm $pymod failed"
78
	done
83
}
79
}
84
80
85
src_install() {
81
src_install() {
Lines 88-96 Link Here
88
84
89
	exeinto /opt/SpiderOak
85
	exeinto /opt/SpiderOak
90
	doexe usr/lib/SpiderOak/SpiderOak
86
	doexe usr/lib/SpiderOak/SpiderOak
91
	doexe usr/lib/SpiderOak/inotify_dir_watcher
87
	doexe usr/lib/SpiderOak/inotify_dir_watcher
92
	doexe usr/lib/SpiderOak/py
93
88
94
	exeinto /opt/bin
89
	exeinto /opt/bin
95
	doexe usr/bin/SpiderOak
90
	doexe usr/bin/SpiderOak
96
91

Return to bug 398317