commit: f34e6970b60ad53341d56481c7a530689d4cd5b8 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Oct 8 18:54:25 2021 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Oct 8 18:54:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f34e6970
app-backup/timeshift-autosnap: use readme.gentoo for better output handling Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .../timeshift-autosnap/timeshift-autosnap-0.9.ebuild | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild index 495c14e15..2ead2e4c1 100644 --- a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild +++ b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit readme.gentoo-r1 + DESCRIPTION="Automatically creates a timeshift-snapshot when executed" HOMEPAGE="https://gitlab.com/gobonja/timeshift-autosnap" SRC_URI="https://gitlab.com/gobonja/timeshift-autosnap/-/archive/${PV}/{$P}.tar.gz -> ${P}.tar.gz" @@ -10,35 +12,37 @@ SRC_URI="https://gitlab.com/gobonja/timeshift-autosnap/-/archive/${PV}/{$P}.tar. LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" DEPEND=" app-backup/timeshift >=sys-apps/portage-2.1 " RDEPEND="${DEPEND}" -BDEPEND="" PATCHES=( "${FILESDIR}/${PN}-remove-arch-specific.patch" ) +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS='to run timeshift-autosnap everytime you emerge a package run: +$ touch /etc/portage/bashrc +$ grep -q "#!/bin/" /etc/portage/bashrc || awk -i inplace "BEGINFILE{print "#!/bin/sh"}{print}" /etc/portage/bashrc +$ grep -q timeshift-autosnap /etc/portage/bashrc || echo "function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }" >> /etc/portage/bashrc' + src_unpack() { default mv ${WORKDIR}/timeshift-autosnap-${PV}* ${WORKDIR}/timeshift-autosnap-${PV} } src_compile(){ - true + : } src_install(){ dobin timeshift-autosnap insinto /etc doins timeshift-autosnap.conf + readme.gentoo_create_doc } pkg_postinst() { - elog "to run timeshift-autosnap everytime you emerge a package run: -'touch /etc/portage/bashrc' -'grep -q '#!/bin/' /etc/portage/bashrc || awk -i inplace 'BEGINFILE{print "#!/bin/sh"}{print}' /etc/portage/bashrc -'grep -q 'timeshift-autosnap' /etc/portage/bashrc || echo 'function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }' >> /etc/portage/bashrc'" + readme.gentoo_print_elog }