Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/backintime/, app-backup/backintime/files/
Date: Wed, 01 Jan 2020 07:55:47
Message-Id: 1577865310.2d8b2bb2ee60846487964164b5fcda3ef4a49b09.asturm@gentoo
1 commit: 2d8b2bb2ee60846487964164b5fcda3ef4a49b09
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 20:58:01 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 1 07:55:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d8b2bb2
7
8 app-backup/backintime: EAPI-7, xdg, fix QA, add missing PyQt5 RDEPENDs
9
10 Drop cd
11 Drop LINGUAS hack
12
13 Package-Manager: Portage-2.3.84, Repoman-2.3.20
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 app-backup/backintime/backintime-9999.ebuild | 87 ++++++-------
17 ...ackintime-1.2.1-no-compress-docs-examples.patch | 142 +++++++++++++++++++++
18 2 files changed, 178 insertions(+), 51 deletions(-)
19
20 diff --git a/app-backup/backintime/backintime-9999.ebuild b/app-backup/backintime/backintime-9999.ebuild
21 index 91c3e3acf41..fc293b01096 100644
22 --- a/app-backup/backintime/backintime-9999.ebuild
23 +++ b/app-backup/backintime/backintime-9999.ebuild
24 @@ -1,87 +1,72 @@
25 # Copyright 1999-2019 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=6
29 +EAPI=7
30
31 -PYTHON_COMPAT=( python3_{5,6} )
32 +PYTHON_COMPAT=( python3_{6,7} )
33
34 -inherit python-single-r1 gnome2-utils git-r3
35 +inherit python-single-r1 git-r3 xdg
36
37 DESCRIPTION="Backup system inspired by TimeVault and FlyBack"
38 -HOMEPAGE="https://backintime.readthedocs.io/ https://github.com/bit-team/backintime/"
39 +HOMEPAGE="https://backintime.readthedocs.io/en/latest/ https://github.com/bit-team/backintime/"
40 EGIT_REPO_URI="https://github.com/bit-team/backintime/"
41
42 LICENSE="GPL-2"
43 SLOT="0"
44 KEYWORDS=""
45 -IUSE="qt5"
46 +IUSE="examples qt5"
47 +
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49
50 DEPEND="${PYTHON_DEPS}
51 dev-python/dbus-python[${PYTHON_USEDEP}]
52 dev-python/keyring[${PYTHON_USEDEP}]
53 net-misc/openssh
54 - net-misc/rsync[xattr,acl]"
55 + net-misc/rsync[xattr,acl]
56 +"
57 RDEPEND="${DEPEND}
58 - qt5? ( dev-python/PyQt5 )"
59 + qt5? ( dev-python/PyQt5[gui,widgets] )
60 +"
61
62 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
63 -
64 -src_prepare() {
65 - #fix doc install location
66 - sed -e "s:/doc/${PN}-common:/doc/${PF}:g" \
67 - -i common/configure || die
68 - sed -e "s:/doc/${PN}-qt:/doc/${PF}:g" \
69 - -i qt/configure || die
70 - sed -e "/addInstallFile \"..\/VERSION/d" \
71 - -e "/addInstallFile \"..\/LICENSE/d" \
72 - -e "/addInstallFile \"..\/debian\/copyright/d" \
73 - -i {qt,common}/configure || die
74 -
75 - if [ -n ${LINGUAS+x} ] ; then
76 - cd common/po || die
77 - for po in *.po ; do
78 - if ! has ${po/.po} ${LINGUAS} ; then
79 - rm ${po} || die
80 - fi
81 - done
82 - fi
83 -
84 - default
85 -}
86 +PATCHES=( "${FILESDIR}/${PN}-1.2.1-no-compress-docs-examples.patch" )
87
88 src_configure() {
89 - cd "${S}"/common || die
90 - ./configure --python3 --no-fuse-group || die
91 + pushd common > /dev/null || die
92 + ./configure --python3 --no-fuse-group || die
93 + popd > /dev/null || die
94 if use qt5 ; then
95 - cd "${S}"/qt || die
96 - ./configure --python3 || die
97 + pushd qt > /dev/null || die
98 + ./configure --python3 || die
99 + popd > /dev/null || die
100 fi
101 }
102
103 src_compile() {
104 - cd "${S}"/common || die
105 - emake
106 - if use qt5 ; then
107 - cd "${S}"/qt || die
108 + pushd common > /dev/null || die
109 emake
110 + popd > /dev/null || die
111 + if use qt5 ; then
112 + pushd qt > /dev/null || die
113 + emake
114 + popd > /dev/null || die
115 fi
116 }
117
118 src_install() {
119 - cd "${S}"/common || die
120 - emake DESTDIR="${D}" install
121 - if use qt5 ; then
122 - cd "${S}"/qt || die
123 + pushd common > /dev/null || die
124 emake DESTDIR="${D}" install
125 + popd > /dev/null || die
126 + if use qt5 ; then
127 + pushd qt > /dev/null || die
128 + emake DESTDIR="${D}" install
129 + popd > /dev/null || die
130 fi
131
132 - python_optimize "${D}"
133 -}
134 -
135 -pkg_postinst() {
136 - gnome2_icon_cache_update
137 -}
138 + einstalldocs
139 + if use examples ; then
140 + docinto examples
141 + dodoc common/{config-example-local,config-example-ssh}
142 + fi
143
144 -pkg_postrm() {
145 - gnome2_icon_cache_update
146 + python_optimize "${D}"
147 }
148
149 diff --git a/app-backup/backintime/files/backintime-1.2.1-no-compress-docs-examples.patch b/app-backup/backintime/files/backintime-1.2.1-no-compress-docs-examples.patch
150 new file mode 100644
151 index 00000000000..4a2fd840fda
152 --- /dev/null
153 +++ b/app-backup/backintime/files/backintime-1.2.1-no-compress-docs-examples.patch
154 @@ -0,0 +1,142 @@
155 +From 897f81aefa1dfcfb8c645375e0c4baeadd39c9c0 Mon Sep 17 00:00:00 2001
156 +From: Andreas Sturmlechner <asturm@g.o>
157 +Date: Tue, 31 Dec 2019 22:13:23 +0100
158 +Subject: [PATCH] No compress, no DOCS install, no examples install, fix
159 + docbook path
160 +
161 +---
162 + common/configure | 36 ++++--------------------------------
163 + qt/configure | 30 ++++++------------------------
164 + 2 files changed, 10 insertions(+), 56 deletions(-)
165 +
166 +diff --git a/common/configure b/common/configure
167 +index 87cdc48..c1dd1af 100755
168 +--- a/common/configure
169 ++++ b/common/configure
170 +@@ -166,7 +166,7 @@ printf "DEST=\$(DESTDIR)\$(PREFIX)\n\n" >> ${MAKEFILE}
171 +
172 + printf "all:\tbuild\n\n" >> ${MAKEFILE}
173 +
174 +-printf "build:\ttranslate compress\n\n" >> ${MAKEFILE}
175 ++printf "build:\ttranslate\n\n" >> ${MAKEFILE}
176 +
177 + printf "clean:\n" >> ${MAKEFILE}
178 + printf "\trm -f po/*.mo\n" >> ${MAKEFILE}
179 +@@ -191,30 +191,11 @@ addInstallFiles "plugins/*.py" "/share/backintime/plugins"
180 + addUninstallDir "/share/backintime"
181 + addNewline
182 +
183 +-addComment "documentation"
184 +-addInstallDir "/share/doc/backintime-common"
185 +-addInstallFile "../debian/copyright" "/share/doc/backintime-common"
186 +-addInstallFile "../AUTHORS" "/share/doc/backintime-common"
187 +-addInstallFile "../LICENSE" "/share/doc/backintime-common"
188 +-addInstallFile "../README.md" "/share/doc/backintime-common"
189 +-addInstallFile "../TRANSLATIONS" "/share/doc/backintime-common"
190 +-addInstallFile "../VERSION" "/share/doc/backintime-common"
191 +-addInstallFile "../CHANGES" "/share/doc/backintime-common"
192 +-addNewline
193 +-
194 +-addComment "config-examples"
195 +-addInstallDir "/share/doc/backintime-common/examples"
196 +-addInstallFile "config-example-local.gz" "/share/doc/backintime-common/examples"
197 +-addInstallFile "config-example-ssh.gz" "/share/doc/backintime-common/examples"
198 +-addUninstallDir "/share/doc/backintime-common"
199 +-addUninstallDir "/share/doc"
200 +-addNewline
201 +-
202 + addComment "man"
203 + addInstallDir "/share/man/man1"
204 +-addInstallFile "man/C/backintime.1.gz" "/share/man/man1"
205 +-addInstallFile "man/C/backintime-askpass.1.gz" "/share/man/man1"
206 +-addInstallFile "man/C/backintime-config.1.gz" "/share/man/man1"
207 ++addInstallFile "man/C/backintime.1" "/share/man/man1"
208 ++addInstallFile "man/C/backintime-askpass.1" "/share/man/man1"
209 ++addInstallFile "man/C/backintime-config.1" "/share/man/man1"
210 + addUninstallDir "/share/man"
211 + addNewline
212 +
213 +@@ -238,15 +219,6 @@ addSymlink "backintime" "/share/bash-completion/completions/backinti
214 + addUninstallDir "/share/bash-completion"
215 + addNewline
216 +
217 +-#compress
218 +-printf "compress:\n" >> ${MAKEFILE}
219 +-printf "\t#man pages\n" >> ${MAKEFILE}
220 +-printf "\tfor i in \$\$(ls -1 man/C/); do case \$\$i in *.gz|*~) continue;; *) gzip -n --best -c man/C/\$\$i > man/C/\$\${i}.gz;; esac; done\n\n" >> ${MAKEFILE}
221 +-
222 +-printf "\t#config-examples\n" >> ${MAKEFILE}
223 +-printf "\tgzip -n --best -c config-example-local > config-example-local.gz\n" >> ${MAKEFILE}
224 +-printf "\tgzip -n --best -c config-example-ssh > config-example-ssh.gz\n\n" >> ${MAKEFILE}
225 +-
226 + #translate
227 + printf "translate:\t$mos\n\n" >> ${MAKEFILE}
228 +
229 +diff --git a/qt/configure b/qt/configure
230 +index 4b56b70..8bbdfcb 100755
231 +--- a/qt/configure
232 ++++ b/qt/configure
233 +@@ -126,7 +126,7 @@ printf "DEST=\$(DESTDIR)\$(PREFIX)\n\n" >> ${MAKEFILE}
234 +
235 + printf "all:\tbuild\n\n" >> ${MAKEFILE}
236 +
237 +-printf "build:\tcompress\n\n" >> ${MAKEFILE}
238 ++printf "build:\t\n\n" >> ${MAKEFILE}
239 +
240 + printf "clean:\n" >> ${MAKEFILE}
241 + printf "\trm -f po/*.mo\n" >> ${MAKEFILE}
242 +@@ -174,34 +174,21 @@ addInstallFiles "net.launchpad.backintime*.policy" "/share/polkit-1/actions"
243 + addUninstallDir "/share/polkit-1"
244 + addNewline
245 +
246 +-addComment "documentation"
247 +-addInstallDir "/share/doc/backintime-qt"
248 +-addInstallFile "../debian/copyright" "/share/doc/backintime-qt"
249 +-addInstallFile "../AUTHORS" "/share/doc/backintime-qt"
250 +-addInstallFile "../LICENSE" "/share/doc/backintime-qt"
251 +-addInstallFile "../README.md" "/share/doc/backintime-qt"
252 +-addInstallFile "../TRANSLATIONS" "/share/doc/backintime-qt"
253 +-addInstallFile "../VERSION" "/share/doc/backintime-qt"
254 +-addInstallFile "../CHANGES" "/share/doc/backintime-qt"
255 +-addNewline
256 +-
257 + addComment ".desktop"
258 + addInstallDir "/share/applications"
259 + addInstallFiles "*.desktop" "/share/applications"
260 + addNewline
261 +
262 + addComment "docbook"
263 +-addInstallDir "/share/doc/qt/HTML/en/backintime"
264 +-addInstallFiles "docbook/en/*.docbook" "/share/doc/qt/HTML/en/backintime"
265 +-addUninstallDir "/share/doc/qt/HTML/en"
266 +-addUninstallDir "/share/doc/qt/HTML"
267 +-addUninstallDir "/share/doc/qt"
268 +-addUninstallDir "/share/doc"
269 ++addInstallDir "/share/help/en/backintime"
270 ++addInstallFiles "docbook/en/*.docbook" "/share/help/en/backintime"
271 ++addUninstallDir "/share/help/en"
272 ++addUninstallDir "/share/help"
273 + addNewline
274 +
275 + addComment "man"
276 + addInstallDir "/share/man/man1"
277 +-addInstallFile "man/C/backintime-qt.1.gz" "/share/man/man1"
278 ++addInstallFile "man/C/backintime-qt.1" "/share/man/man1"
279 + addUninstallDir "/share/man"
280 + addNewline
281 +
282 +@@ -216,11 +203,6 @@ addUninstallDir "/share/icons"
283 + addUninstallDir "/share"
284 + addNewline
285 +
286 +-#compress
287 +-printf "compress:\n" >> ${MAKEFILE}
288 +-printf "\t#man pages\n" >> ${MAKEFILE}
289 +-printf "\tfor i in \$\$(ls -1 man/C/); do case \$\$i in *.gz|*~) continue;; *) gzip -n --best -c man/C/\$\$i > man/C/\$\${i}.gz;; esac; done\n\n" >> ${MAKEFILE}
290 +-
291 + #uninstall
292 + printf "uninstall: uninstall_files uninstall_dirs\n\n" >> ${MAKEFILE}
293 + printf "uninstall_files:\n" >> ${MAKEFILE}
294 +--
295 +2.24.1
296 +