Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/goobook/, profiles/, app-misc/goobook/files/
Date: Sat, 18 Mar 2023 16:45:30
Message-Id: 1679157766.09d570d51ada6ebee46c441b9516258a99701719.soap@gentoo
1 commit: 09d570d51ada6ebee46c441b9516258a99701719
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 18 16:42:46 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 18 16:42:46 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d570d5
7
8 app-misc/goobook: treeclean
9
10 Closes: https://bugs.gentoo.org/718974
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 app-misc/goobook/Manifest | 1 -
14 app-misc/goobook/files/goobook-3.5.1-pyxdg.patch | 105 -----------------------
15 app-misc/goobook/goobook-3.5.1-r3.ebuild | 48 -----------
16 app-misc/goobook/metadata.xml | 16 ----
17 profiles/package.mask | 1 -
18 5 files changed, 171 deletions(-)
19
20 diff --git a/app-misc/goobook/Manifest b/app-misc/goobook/Manifest
21 deleted file mode 100644
22 index dd48ed764e9f..000000000000
23 --- a/app-misc/goobook/Manifest
24 +++ /dev/null
25 @@ -1 +0,0 @@
26 -DIST goobook-3.5.1.tar.gz 38176 BLAKE2B 99a068256ca83e800a2d2e82c88adba85797107dc72edde9fbb3c9790ef38fff627b4db64c21baff14aa8a4c69788c29aeb01dae60533c7f389352aee9401e9c SHA512 58d056d7d76843bc874e55424912bb00068541e674b780511b7753da31f2df9514baa188017dd0a7479b5527cd50c47e35f37afc493bdc973e0eb1624998a611
27
28 diff --git a/app-misc/goobook/files/goobook-3.5.1-pyxdg.patch b/app-misc/goobook/files/goobook-3.5.1-pyxdg.patch
29 deleted file mode 100644
30 index e40bc051295f..000000000000
31 --- a/app-misc/goobook/files/goobook-3.5.1-pyxdg.patch
32 +++ /dev/null
33 @@ -1,105 +0,0 @@
34 -From 391c081199f9cba5026460fbffba43c03602fa13 Mon Sep 17 00:00:00 2001
35 -From: Jan Baier <jbaier@××××.cz>
36 -Date: Mon, 22 Mar 2021 15:04:38 +0100
37 -Subject: [PATCH] Switch from xdg to pyxdg
38 -
39 -As both of them provides the xdg and cannot be installed at the same
40 -time, pyxdg should be used as it is older, has more features (xdg is a
41 -subset of pyxdg) and is more used. This change should resolve conflicts
42 -like https://github.com/srstevenson/xdg/issues/35
43 -
44 -Fixes #96
45 ----
46 - CHANGES.rst | 6 ++++++
47 - Pipfile | 2 +-
48 - goobook/config.py | 16 ++++++++--------
49 - setup.py | 4 ++--
50 - 4 files changed, 17 insertions(+), 11 deletions(-)
51 -
52 -diff --git a/goobook/config.py b/goobook/config.py
53 -index c948469..05589b1 100644
54 ---- a/goobook/config.py
55 -+++ b/goobook/config.py
56 -@@ -10,7 +10,7 @@ import configparser
57 - import logging
58 -
59 - import oauth2client.client
60 --import xdg
61 -+from xdg import BaseDirectory
62 -
63 - from goobook.storage import Storage
64 -
65 -@@ -61,8 +61,8 @@ def read_config(config_file=None):
66 - if config_file: # config file explicitly given on the commandline
67 - config_file = os.path.expanduser(config_file)
68 - else: # search for goobookrc in XDG dirs and homedir
69 -- config_files = [dir_ / "goobookrc" for dir_ in [xdg.XDG_CONFIG_HOME] +
70 -- xdg.XDG_CONFIG_DIRS] + [LEGACY_CONFIG_FILE]
71 -+ config_files = [dir_ / "goobookrc" for dir_ in [pathlib.Path(BaseDirectory.xdg_config_home)] +
72 -+ [pathlib.Path(p) for p in BaseDirectory.xdg_config_dirs]] + [LEGACY_CONFIG_FILE]
73 - log.debug("config file search path: %s", config_files)
74 - for config_file_ in config_files:
75 - if config_file_.exists():
76 -@@ -93,7 +93,7 @@ def read_config(config_file=None):
77 - if config.cache_filename: # If explicitly specified in config file
78 - config.cache_filename = realpath(expanduser(config.cache_filename))
79 - else: # search for goobook_cache in XDG dirs and homedir
80 -- cache_files = [xdg.XDG_CACHE_HOME / "goobook_cache", LEGACY_CACHE_FILE]
81 -+ cache_files = [pathlib.Path(BaseDirectory.xdg_cache_home) / "goobook_cache", LEGACY_CACHE_FILE]
82 - log.debug("cache file search path: %s", cache_files)
83 - for cache_file in cache_files:
84 - cache_file = cache_file.resolve()
85 -@@ -101,7 +101,7 @@ def read_config(config_file=None):
86 - log.debug("found cache file: %s", cache_file)
87 - break
88 - else: # If there is none, create in XDG_CACHE_HOME
89 -- cache_file = xdg.XDG_CACHE_HOME / "goobook_cache"
90 -+ cache_file = pathlib.Path(BaseDirectory.xdg_cache_home) / "goobook_cache"
91 - log.debug("no cache file found, will use %s", cache_file)
92 - config.cache_filename = str(cache_file)
93 -
94 -@@ -110,8 +110,8 @@ def read_config(config_file=None):
95 - config.oauth_db_filename = realpath(expanduser(config.oauth_db_filename))
96 - auth_file = pathlib.Path(config.oauth_db_filename)
97 - else: # search for goobook_auth.json in XDG dirs and homedir
98 -- auth_files = [dir_ / "goobook_auth.json" for dir_ in [xdg.XDG_DATA_HOME] +
99 -- xdg.XDG_DATA_DIRS] + [LEGACY_AUTH_FILE]
100 -+ auth_files = [dir_ / "goobook_auth.json" for dir_ in [pathlib.Path(BaseDirectory.xdg_data_home)] +
101 -+ [pathlib.Path(p) for p in BaseDirectory.xdg_data_dirs]] + [LEGACY_AUTH_FILE]
102 - log.debug("auth file search path: %s", auth_files)
103 - for auth_file in auth_files:
104 - auth_file = auth_file.resolve()
105 -@@ -119,7 +119,7 @@ def read_config(config_file=None):
106 - log.debug("found auth file: %s", auth_file)
107 - break
108 - else: # If there is none, create in XDG_DATA_HOME
109 -- auth_file = xdg.XDG_DATA_HOME / "goobook_auth.json"
110 -+ auth_file = pathlib.Path(BaseDirectory.xdg_data_home) / "goobook_auth.json"
111 - log.debug("no auth file found, will use %s", auth_file)
112 - config.oauth_db_filename = str(auth_file)
113 -
114 -diff --git a/setup.py b/setup.py
115 -index e2bed5c..4a6c764 100755
116 ---- a/setup.py
117 -+++ b/setup.py
118 -@@ -12,7 +12,7 @@ NEWS = open(os.path.join(HERE, 'CHANGES.rst')).read()
119 -
120 - setuptools.setup(
121 - name='goobook',
122 -- version='3.5.1',
123 -+ version='3.6',
124 - description='Search your google contacts from the command-line or mutt.',
125 - long_description=README + '\n\n' + NEWS,
126 - long_description_content_type="text/x-rst",
127 -@@ -39,7 +39,7 @@ setuptools.setup(
128 - 'google-api-python-client>=1.7.12',
129 - 'simplejson>=3.16.0',
130 - 'oauth2client>=1.5.0,<5.0.0dev',
131 -- 'xdg>=4.0.1'
132 -+ 'pyxdg>=0.26'
133 - ],
134 - extras_require={
135 - },
136 ---
137 -GitLab
138 -
139
140 diff --git a/app-misc/goobook/goobook-3.5.1-r3.ebuild b/app-misc/goobook/goobook-3.5.1-r3.ebuild
141 deleted file mode 100644
142 index 1ddc2c09d924..000000000000
143 --- a/app-misc/goobook/goobook-3.5.1-r3.ebuild
144 +++ /dev/null
145 @@ -1,48 +0,0 @@
146 -# Copyright 1999-2023 Gentoo Authors
147 -# Distributed under the terms of the GNU General Public License v2
148 -
149 -EAPI=8
150 -
151 -PYTHON_COMPAT=( python3_10 )
152 -inherit distutils-r1 readme.gentoo-r1 pypi
153 -
154 -DESCRIPTION="Access your Google contacts from the command line"
155 -HOMEPAGE="https://gitlab.com/goobook/goobook"
156 -
157 -LICENSE="GPL-3"
158 -SLOT="0"
159 -KEYWORDS="~amd64 ~x86"
160 -
161 -RDEPEND="
162 - >=dev-python/google-api-python-client-1.7.12[${PYTHON_USEDEP}]
163 - >=dev-python/simplejson-3.16.0[${PYTHON_USEDEP}]
164 - >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}]
165 - <dev-python/oauth2client-5[${PYTHON_USEDEP}]
166 - dev-python/pyxdg[${PYTHON_USEDEP}]"
167 -
168 -PATCHES=(
169 - # https://gitlab.com/goobook/goobook/-/merge_requests/13
170 - "${FILESDIR}"/${P}-pyxdg.patch
171 -)
172 -
173 -DISABLE_AUTOFORMATTING=1
174 -DOC_CONTENTS="
175 -To setup initial authentication, execute:
176 -
177 -~ $ goobook authenticate
178 -
179 -If you want to use goobook from mutt, add this in your .muttrc file:
180 - set query_command=\"goobook query '%s'\"
181 -to query address book.
182 -
183 -You may find more information and advanced configuration tips at
184 -https://pypi.org/project/${PN}/${PV} in \"Configure/Mutt\" section"
185 -
186 -src_install() {
187 - distutils-r1_src_install
188 - readme.gentoo_create_doc
189 -}
190 -
191 -pkg_postinst() {
192 - readme.gentoo_print_elog
193 -}
194
195 diff --git a/app-misc/goobook/metadata.xml b/app-misc/goobook/metadata.xml
196 deleted file mode 100644
197 index cc7896d7b32b..000000000000
198 --- a/app-misc/goobook/metadata.xml
199 +++ /dev/null
200 @@ -1,16 +0,0 @@
201 -<?xml version="1.0" encoding="UTF-8"?>
202 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
203 -<pkgmetadata>
204 - <maintainer type="person" proxied="yes">
205 - <name>Kalin KOZHUHAROV</name>
206 - <email>kalin@××××××××.net</email>
207 - </maintainer>
208 - <maintainer type="project" proxied="proxy">
209 - <email>proxy-maint@g.o</email>
210 - <name>Proxy Maintainers</name>
211 - </maintainer>
212 - <stabilize-allarches/>
213 - <upstream>
214 - <remote-id type="pypi">goobook</remote-id>
215 - </upstream>
216 -</pkgmetadata>
217
218 diff --git a/profiles/package.mask b/profiles/package.mask
219 index fde141de635a..9a04601e3610 100644
220 --- a/profiles/package.mask
221 +++ b/profiles/package.mask
222 @@ -286,7 +286,6 @@ acct-group/jabber
223 # The other listed packages are its reverse dependencies.
224 # Removal on 2023-03-05. Bug #718972.
225 app-misc/gcalcli
226 -app-misc/goobook
227
228 # Michał Górny <mgorny@g.o> (2023-02-02)
229 # dev-python/citeproc-py requires dev-python/nose and is not maintained