From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3ADD61382C5 for ; Thu, 5 Apr 2018 21:50:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E88DE0AB7; Thu, 5 Apr 2018 21:33:28 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 567E6E0AB4 for ; Thu, 5 Apr 2018 21:33:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF87033BF54 for ; Thu, 5 Apr 2018 21:33:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9ADC2279 for ; Thu, 5 Apr 2018 21:33:24 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1522963996.25a9fbe606cd62cb9bcfca99669702940fb1b010.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/etckeeper/etckeeper-1.18.6-r1.ebuild X-VCS-Directories: sys-apps/etckeeper/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 25a9fbe606cd62cb9bcfca99669702940fb1b010 X-VCS-Branch: master Date: Thu, 5 Apr 2018 21:33:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1951f293-ad3e-458e-9070-ef9065ebe216 X-Archives-Hash: 6f6aee9027ff249a9f80f3a5a28b5f15 commit: 25a9fbe606cd62cb9bcfca99669702940fb1b010 Author: M. J. Everitt iee org> AuthorDate: Sun Apr 1 04:07:04 2018 +0000 Commit: Michał Górny gentoo 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" +}