Gentoo Archives: gentoo-commits

From: Adam Feldman <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mate-extra/caja-dropbox/
Date: Fri, 25 Sep 2020 20:32:55
Message-Id: 1601065940.85de3c6f2da46d605d290601e3e59983ee550391.np-hardass@gentoo
1 commit: 85de3c6f2da46d605d290601e3e59983ee550391
2 Author: Adam Feldman <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 6 20:14:08 2020 +0000
4 Commit: Adam Feldman <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 20:32:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85de3c6f
7
8 mate-extra/caja-dropbox: Drop 'dropbox' group, GLEP 81 compliance
9
10 Bug:https://bugs.gentoo.org/735972
11
12 Package-Manager: Portage-2.3.103, Repoman-2.3.23
13 Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org>
14
15 .../caja-dropbox/caja-dropbox-1.24.0-r1.ebuild | 89 ++++++++++++++++++++++
16 1 file changed, 89 insertions(+)
17
18 diff --git a/mate-extra/caja-dropbox/caja-dropbox-1.24.0-r1.ebuild b/mate-extra/caja-dropbox/caja-dropbox-1.24.0-r1.ebuild
19 new file mode 100644
20 index 00000000000..6632e04a229
21 --- /dev/null
22 +++ b/mate-extra/caja-dropbox/caja-dropbox-1.24.0-r1.ebuild
23 @@ -0,0 +1,89 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +PYTHON_COMPAT=( python3_{6,7,8} )
30 +MATE_LA_PUNT="yes"
31 +
32 +inherit eapi7-ver mate python-single-r1 linux-info
33 +
34 +if [[ ${PV} != 9999 ]]; then
35 + KEYWORDS="~amd64 ~x86"
36 +fi
37 +
38 +DESCRIPTION="Store, Sync and Share Files Online"
39 +LICENSE="CC-BY-ND-3.0 GPL-3+ public-domain"
40 +SLOT="0"
41 +
42 +IUSE="debug"
43 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
44 +
45 +COMMON_DEPEND="${PYTHON_DEPS}
46 + dev-libs/atk
47 + >=dev-libs/glib-2.50:2
48 + $(python_gen_cond_dep '
49 + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
50 + ')
51 + >=mate-base/caja-1.19.1
52 + mate-extra/caja-extensions
53 + media-libs/fontconfig:1.0
54 + media-libs/freetype:2
55 + x11-libs/cairo
56 + x11-libs/gdk-pixbuf:2
57 + >=x11-libs/gtk+-3.22:3
58 + x11-libs/libXinerama
59 + x11-libs/pango
60 +"
61 +
62 +RDEPEND="${COMMON_DEPEND}
63 + net-misc/dropbox
64 +"
65 +
66 +DEPEND="${COMMON_DEPEND}
67 + dev-python/docutils
68 + virtual/pkgconfig
69 +"
70 +
71 +CONFIG_CHECK="~INOTIFY_USER"
72 +
73 +pkg_setup() {
74 + python-single-r1_pkg_setup
75 + check_extra_config
76 +}
77 +
78 +MATE_FORCE_AUTORECONF=true
79 +
80 +src_prepare() {
81 + # Use system dropbox.
82 + sed -e "s|~/[.]dropbox-dist|/opt/dropbox|" \
83 + -e 's|\(DROPBOXD_PATH = \).*|\1"/opt/dropbox/dropboxd"|' \
84 + -i caja-dropbox.in || die
85 +
86 + sed -e 's|\[rst2man\]|\[rst2man\.py\]|' -i configure.ac || die
87 +
88 + mate_src_prepare
89 +}
90 +
91 +src_configure() {
92 + mate_src_configure \
93 + $(use_enable debug)
94 +}
95 +
96 +src_install() {
97 + python_fix_shebang caja-dropbox.in
98 +
99 + mate_src_install
100 +}
101 +
102 +pkg_postinst() {
103 + mate_pkg_postinst
104 +
105 + for v in ${REPLACING_VERSIONS}; do
106 + if ver_test "${v}" "-lt" "1.24.0-r1" || ver_test "${v}" "-eq" "9999"; then
107 + ewarn "Starting with ${CATEGORY}/${PN}-1.24.0-r1, ${PN} now no longer"
108 + ewarn "configures caja-dropbox to use its own group. This brings caja-dropbox in line"
109 + ewarn "with nautilus-dropbox and dolphin-plugins-dropbox. You may remove the 'dropbox' group."
110 + fi
111 + done
112 +}