Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/
Date: Thu, 05 Apr 2018 21:50:56
Message-Id: 1522963997.1253532b83e2274b59ce1c5d00e59eaa83344cc0.mgorny@gentoo
1 commit: 1253532b83e2274b59ce1c5d00e59eaa83344cc0
2 Author: M. J. Everitt <m.j.everitt <AT> iee <DOT> org>
3 AuthorDate: Sun Apr 1 04:07:23 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 5 21:33:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1253532b
7
8 sys-apps/etckeeper: Bump to v1.18.7
9
10 Closes: https://github.com/gentoo/gentoo/pull/6259
11 Package-Manager: Portage-2.3.13, Repoman-2.3.3
12
13 sys-apps/etckeeper/Manifest | 1 +
14 sys-apps/etckeeper/etckeeper-1.18.7.ebuild | 74 ++++++++++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/sys-apps/etckeeper/Manifest b/sys-apps/etckeeper/Manifest
18 index b8d805cf951..4643b0b07fa 100644
19 --- a/sys-apps/etckeeper/Manifest
20 +++ b/sys-apps/etckeeper/Manifest
21 @@ -1 +1,2 @@
22 DIST etckeeper-1.18.6.tar.gz 73487 BLAKE2B 2ec0a0ff2d87879586328de638212cbbf3bc0c87d9b1869beb6509f6b445996411d0116ecb2c4d407b3329a7b1a555f00077d20630fbbd45b2d75527d9d4c6ca SHA512 a5a3a4677f31cf1d010ab40ed37ce602c71c2e8ebf2273bf8be6dc8209f603ae0fc6a2c0d5d60d9a9d9aa4f3e7b7c0037534890cbc67b38132e5f654abcda04c
23 +DIST etckeeper-1.18.7.tar.gz 77568 BLAKE2B 168b5b683c25a60c6626a678aed2f650106d4db554acbc239a2cd3c937f4b399ccca4f28fded30175c5787d8bd0907a25d62e6566e7902a2e914cd01513a8c2e SHA512 44b8f66b95663da1370943128bb5673e57bd7b9df7e727c93baea5dfc79852ebba9d0834827fed19722668849d3ed18b045db5cb42135e198576a2b839523d1a
24
25 diff --git a/sys-apps/etckeeper/etckeeper-1.18.7.ebuild b/sys-apps/etckeeper/etckeeper-1.18.7.ebuild
26 new file mode 100644
27 index 00000000000..f18078fe62d
28 --- /dev/null
29 +++ b/sys-apps/etckeeper/etckeeper-1.18.7.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 )
37 +
38 +inherit bash-completion-r1 prefix python-r1
39 +
40 +DESCRIPTION="A collection of tools to let /etc be stored in a repository"
41 +HOMEPAGE="https://etckeeper.branchable.com/"
42 +SRC_URI="https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +KEYWORDS="~amd64 ~arm ~x86"
46 +SLOT="0"
47 +IUSE="bazaar cron test"
48 +REQUIRED_USE="bazaar? ( ${PYTHON_REQUIRED_USE} )"
49 +
50 +VCS_DEPEND="dev-vcs/git
51 + dev-vcs/mercurial
52 + dev-vcs/darcs"
53 +DEPEND="bazaar? ( dev-vcs/bzr[${PYTHON_USEDEP}] )"
54 +RDEPEND="${DEPEND}
55 + app-portage/portage-utils
56 + cron? ( virtual/cron )
57 + bazaar? ( ${PYTHON_DEPS} )
58 + !bazaar? ( || ( ${VCS_DEPEND} ) )"
59 +DEPEND="${DEPEND}
60 + test? ( dev-util/bats )"
61 +RESTRICT="!test? ( test )"
62 +
63 +PATCHES=( "${FILESDIR}"/${PN}-1.18.6-gentoo.patch )
64 +
65 +src_compile() {
66 + :
67 +}
68 +
69 +src_install(){
70 + emake DESTDIR="${ED}" install
71 +
72 + bzr_install() {
73 + "${EPYTHON}" ./${PN}-bzr/__init__.py install --root="${ED}" ||
74 + die "bzr support installation failed!"
75 + }
76 + use bazaar && python_foreach_impl bzr_install
77 +
78 + if use prefix; then
79 + doenvd "${FILESDIR}"/99${PN}
80 + eprefixify "${ED%/}"/etc/env.d/99${PN}
81 + fi
82 +
83 + newbashcomp bash_completion ${PN}
84 + dodoc doc/README.mdwn
85 + newdoc "${FILESDIR}"/bashrc-r1 bashrc.example
86 +
87 + if use cron ; then
88 + exeinto /etc/cron.daily
89 + newexe debian/cron.daily etckeeper
90 + fi
91 +}
92 +
93 +pkg_postinst(){
94 + elog "${PN} supports the following VCS: ${VCS_DEPEND}"
95 + elog " dev-vcs/bzr"
96 + elog "This ebuild just ensures at least one is installed!"
97 + elog "For dev-vcs/bzr you need to enable 'bazaar' useflag."
98 + elog
99 + elog "You may want to adjust your /etc/portage/bashrc"
100 + elog "see the example file in /usr/share/doc/${PF}/examples"
101 + elog
102 + elog "To initialise your etc-dir as a repository run:"
103 + elog "${PN} init -d /etc"
104 +}