public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/
Date: Thu,  5 Apr 2018 21:33:24 +0000 (UTC)	[thread overview]
Message-ID: <1522963996.25a9fbe606cd62cb9bcfca99669702940fb1b010.mgorny@gentoo> (raw)

commit:     25a9fbe606cd62cb9bcfca99669702940fb1b010
Author:     M. J. Everitt <m.j.everitt <AT> iee <DOT> org>
AuthorDate: Sun Apr  1 04:07:04 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr  5 21:33:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25a9fbe6

sys-apps/etckeeper: Update SRC_URI, inherit, fix misc items

SRC_URI moved from github to self-hosted
Missing ${PYTHON_USEDEPS} on bzr dep
Replace ${PYTHON} with "${EPYTHON}"
Reinstate bash-completion

Closes: https://bugs.gentoo.org/620042
Package-Manager: Portage-2.3.13, Repoman-2.3.3

 sys-apps/etckeeper/etckeeper-1.18.6-r1.ebuild | 71 +++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

diff --git a/sys-apps/etckeeper/etckeeper-1.18.6-r1.ebuild b/sys-apps/etckeeper/etckeeper-1.18.6-r1.ebuild
new file mode 100644
index 00000000000..3f0dd55eb8f
--- /dev/null
+++ b/sys-apps/etckeeper/etckeeper-1.18.6-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit bash-completion-r1 prefix python-r1
+
+DESCRIPTION="A collection of tools to let /etc be stored in a repository"
+HOMEPAGE="https://etckeeper.branchable.com/"
+SRC_URI="https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~x86"
+SLOT="0"
+IUSE="bazaar cron"
+REQUIRED_USE="bazaar? ( ${PYTHON_REQUIRED_USE} )"
+
+VCS_DEPEND="dev-vcs/git
+	dev-vcs/mercurial
+	dev-vcs/darcs"
+DEPEND="bazaar? ( dev-vcs/bzr[${PYTHON_USEDEP}] )"
+RDEPEND="${DEPEND}
+	app-portage/portage-utils
+	cron? ( virtual/cron )
+	bazaar? ( ${PYTHON_DEPS} )
+	!bazaar? ( || ( ${VCS_DEPEND} ) )"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+	:
+}
+
+src_install(){
+	emake DESTDIR="${ED}" install
+
+	bzr_install() {
+		"${EPYTHON}" ./${PN}-bzr/__init__.py install --root="${ED}" ||
+			die "bzr support installation failed!"
+	}
+	use bazaar && python_foreach_impl bzr_install
+
+	if use prefix; then
+		doenvd "${FILESDIR}"/99${PN}
+		eprefixify "${ED%/}"/etc/env.d/99${PN}
+	fi
+
+	newbashcomp bash_completion ${PN}
+	dodoc doc/README.mdwn
+	newdoc "${FILESDIR}"/bashrc-r1 bashrc.example
+
+	if use cron ; then
+		exeinto /etc/cron.daily
+		newexe debian/cron.daily etckeeper
+	fi
+}
+
+pkg_postinst(){
+	elog "${PN} supports the following VCS: ${VCS_DEPEND}"
+	elog "	dev-vcs/bzr"
+	elog "This ebuild just ensures at least one is installed!"
+	elog "For dev-vcs/bzr you need to enable 'bazaar' useflag."
+	elog
+	elog "You may want to adjust your /etc/portage/bashrc"
+	elog "see the example file in /usr/share/doc/${PF}/examples"
+	elog
+	elog "To initialise your etc-dir as a repository run:"
+	elog "${PN} init -d /etc"
+}


             reply	other threads:[~2018-04-05 21:50 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 21:33 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-14  7:11 [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/ Petr Vaněk
2025-04-13 21:22 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:03 Sam James
2025-02-24 11:21 Petr Vaněk
2024-12-13  5:07 Sam James
2024-12-13  5:07 Sam James
2024-06-04 17:49 Viorel Munteanu
2024-05-19 17:49 Arthur Zamarin
2024-05-19 17:09 Sam James
2024-05-19 17:09 Sam James
2024-05-19 17:06 Arthur Zamarin
2024-05-19 17:02 Arthur Zamarin
2023-11-30  3:07 Sam James
2023-07-08  3:39 Sam James
2023-07-07 10:14 Sam James
2023-07-07  4:40 Sam James
2023-07-07  4:40 Sam James
2023-07-07  4:40 Sam James
2023-07-07  3:36 Sam James
2022-11-01 15:47 Arthur Zamarin
2022-11-01  8:44 Agostino Sarubbo
2022-11-01  8:29 Agostino Sarubbo
2022-11-01  8:28 Agostino Sarubbo
2022-11-01  8:26 Agostino Sarubbo
2022-11-01  6:51 Georgy Yakovlev
2022-10-01  5:36 Sam James
2022-06-05 23:03 Conrad Kostecki
2022-05-20  4:01 Georgy Yakovlev
2022-05-05 12:01 Jakov Smolić
2022-03-27  2:33 Sam James
2022-03-18 12:26 Arthur Zamarin
2022-03-15 16:27 Sam James
2021-11-20  7:32 Georgy Yakovlev
2021-11-20  7:28 Agostino Sarubbo
2021-11-19  8:10 Agostino Sarubbo
2021-11-19  6:18 Arthur Zamarin
2021-11-19  2:43 Sam James
2021-07-22 22:25 Marek Szuba
2021-07-10  2:12 Georgy Yakovlev
2020-11-24  6:06 Georgy Yakovlev
2020-03-31 10:01 Agostino Sarubbo
2020-03-31  7:23 Georgy Yakovlev
2020-03-31  7:18 Agostino Sarubbo
2020-01-08 11:27 Georgy Yakovlev
2018-10-13 22:02 Patrice Clement
2018-10-03  5:15 Georgy Yakovlev
2018-10-01  3:54 Benda XU
2018-09-24 18:48 Mikle Kolyada
2018-04-23 14:50 Aaron Bauman
2018-04-05 21:33 Michał Górny
2018-04-05 21:33 Michał Górny
2017-11-21 18:00 Manuel Rüger
2017-05-28 21:18 Manuel Rüger
2016-08-06 13:34 Manuel Rüger
2016-08-06 13:27 Manuel Rüger
2016-07-16 22:31 Manuel Rüger
2016-03-15 15:27 Agostino Sarubbo
2016-03-06 12:58 Agostino Sarubbo
2016-02-15 23:22 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522963996.25a9fbe606cd62cb9bcfca99669702940fb1b010.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox