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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Mar 2 22:36:59 2014 UTC (5 years, 10 months ago) by pacho
Branch: MAIN
Changes since 1.1: +2 -2 lines
amd64 stable, bug #500080

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key A188FBD4)

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

  ViewVC Help
Powered by ViewVC 1.1.20