/[gentoo-x86]/net-misc/dropbox/dropbox-1.6.16.ebuild
Gentoo

Contents of /net-misc/dropbox/dropbox-1.6.16.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon May 12 02:51:28 2014 UTC (5 years, 7 months ago) by naota
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Clean up old ebuild

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8551514)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/dropbox-1.6.16.ebuild,v 1.4 2013/05/14 09:38:39 ago Exp $
4
5 EAPI=5
6 inherit eutils gnome2-utils pax-utils
7
8 DESCRIPTION="Dropbox daemon (pretends to be GUI-less)"
9 HOMEPAGE="http://dropbox.com/"
10 SRC_URI="x86? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86-${PV}.tar.gz )
11 amd64? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86_64-${PV}.tar.gz )"
12
13 LICENSE="CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox"
14 SLOT="0"
15 KEYWORDS="amd64 x86 ~x86-linux"
16 IUSE="+librsync-bundled X"
17 RESTRICT="mirror strip"
18
19 QA_FLAGS_IGNORED="opt/${PN}/.*"
20 QA_EXECSTACK="opt/dropbox/dropbox"
21
22 DEPEND="librsync-bundled? ( dev-util/patchelf )"
23
24 # Be sure to have GLIBCXX_3.4.9, #393125
25 # USE=X require wxGTK's dependencies. system-library cannot be used due to
26 # missing symbol (CtlColorEvent). #443686
27 RDEPEND="
28 X? (
29 dev-libs/glib:2
30 media-libs/libpng:1.2
31 sys-libs/zlib
32 virtual/jpeg
33 x11-libs/gtk+:2
34 x11-libs/libSM
35 x11-libs/libXinerama
36 x11-libs/libXxf86vm
37 x11-libs/pango[X]
38 x11-themes/hicolor-icon-theme
39 )
40 app-arch/bzip2
41 dev-libs/popt
42 !librsync-bundled? ( net-libs/librsync )
43 net-misc/wget
44 >=sys-devel/gcc-4.2.0
45 sys-libs/zlib
46 "
47
48 src_unpack() {
49 unpack ${A}
50 mkdir -p "${S}"
51 mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die
52 rmdir .dropbox-dist
53 }
54
55 src_prepare() {
56 rm -vf libbz2* libpopt.so.0 libpng12.so.0 || die
57 if use X ; then
58 mv images/hicolor/16x16/status "${T}" || die
59 else
60 rm -vrf *wx* images || die
61 fi
62 if use librsync-bundled ; then
63 patchelf --set-rpath '$ORIGIN' _librsync.so || die
64 else
65 rm -vf librsync.so.1 || die
66 fi
67 rm -rf *.egg library.zip || die
68 ln -s dropbox library.zip || die
69 pax-mark cm dropbox
70 mv README ACKNOWLEDGEMENTS "${T}" || die
71 }
72
73 src_install() {
74 local targetdir="/opt/dropbox"
75
76 insinto "${targetdir}"
77 doins -r *
78 fperms a+x "${targetdir}"/{dropbox,dropboxd}
79 dosym "${targetdir}/dropboxd" "/opt/bin/dropbox"
80
81 use X && doicon -s 16 -c status "${T}"/status
82
83 newinitd "${FILESDIR}"/dropbox.initd dropbox
84 newconfd "${FILESDIR}"/dropbox.conf dropbox
85
86 dodoc "${T}"/{README,ACKNOWLEDGEMENTS}
87 }
88
89 pkg_preinst() {
90 gnome2_icon_savelist
91 }
92
93 pkg_postinst() {
94 gnome2_icon_cache_update
95 }
96
97 pkg_postrm() {
98 gnome2_icon_cache_update
99 }

  ViewVC Help
Powered by ViewVC 1.1.20