1 |
commit: f34e6970b60ad53341d56481c7a530689d4cd5b8 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 8 18:54:25 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 18:54:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f34e6970 |
7 |
|
8 |
app-backup/timeshift-autosnap: use readme.gentoo for better output handling |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
.../timeshift-autosnap/timeshift-autosnap-0.9.ebuild | 18 +++++++++++------- |
13 |
1 file changed, 11 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild |
16 |
index 495c14e15..2ead2e4c1 100644 |
17 |
--- a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild |
18 |
+++ b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild |
19 |
@@ -3,6 +3,8 @@ |
20 |
|
21 |
EAPI=8 |
22 |
|
23 |
+inherit readme.gentoo-r1 |
24 |
+ |
25 |
DESCRIPTION="Automatically creates a timeshift-snapshot when executed" |
26 |
HOMEPAGE="https://gitlab.com/gobonja/timeshift-autosnap" |
27 |
SRC_URI="https://gitlab.com/gobonja/timeshift-autosnap/-/archive/${PV}/{$P}.tar.gz -> ${P}.tar.gz" |
28 |
@@ -10,35 +12,37 @@ SRC_URI="https://gitlab.com/gobonja/timeshift-autosnap/-/archive/${PV}/{$P}.tar. |
29 |
LICENSE="MIT" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
-IUSE="" |
33 |
|
34 |
DEPEND=" |
35 |
app-backup/timeshift |
36 |
>=sys-apps/portage-2.1 |
37 |
" |
38 |
RDEPEND="${DEPEND}" |
39 |
-BDEPEND="" |
40 |
|
41 |
PATCHES=( "${FILESDIR}/${PN}-remove-arch-specific.patch" ) |
42 |
|
43 |
+DISABLE_AUTOFORMATTING=1 |
44 |
+DOC_CONTENTS='to run timeshift-autosnap everytime you emerge a package run: |
45 |
+$ touch /etc/portage/bashrc |
46 |
+$ grep -q "#!/bin/" /etc/portage/bashrc || awk -i inplace "BEGINFILE{print "#!/bin/sh"}{print}" /etc/portage/bashrc |
47 |
+$ grep -q timeshift-autosnap /etc/portage/bashrc || echo "function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }" >> /etc/portage/bashrc' |
48 |
+ |
49 |
src_unpack() { |
50 |
default |
51 |
mv ${WORKDIR}/timeshift-autosnap-${PV}* ${WORKDIR}/timeshift-autosnap-${PV} |
52 |
} |
53 |
|
54 |
src_compile(){ |
55 |
- true |
56 |
+ : |
57 |
} |
58 |
|
59 |
src_install(){ |
60 |
dobin timeshift-autosnap |
61 |
insinto /etc |
62 |
doins timeshift-autosnap.conf |
63 |
+ readme.gentoo_create_doc |
64 |
} |
65 |
|
66 |
pkg_postinst() { |
67 |
- elog "to run timeshift-autosnap everytime you emerge a package run: |
68 |
-'touch /etc/portage/bashrc' |
69 |
-'grep -q '#!/bin/' /etc/portage/bashrc || awk -i inplace 'BEGINFILE{print "#!/bin/sh"}{print}' /etc/portage/bashrc |
70 |
-'grep -q 'timeshift-autosnap' /etc/portage/bashrc || echo 'function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }' >> /etc/portage/bashrc'" |
71 |
+ readme.gentoo_print_elog |
72 |
} |