1 |
commit: cf4e368ab69e47943db9e7dc0e0237127ae3680e |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 1 18:00:52 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Fri May 1 18:14:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf4e368a |
7 |
|
8 |
app-shells/zsh-histdb: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
app-shells/zsh-histdb/Manifest | 1 + |
14 |
app-shells/zsh-histdb/metadata.xml | 23 ++++++++++++++ |
15 |
.../zsh-histdb/zsh-histdb-0_pre20200405.ebuild | 35 ++++++++++++++++++++++ |
16 |
3 files changed, 59 insertions(+) |
17 |
|
18 |
diff --git a/app-shells/zsh-histdb/Manifest b/app-shells/zsh-histdb/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..73d5187 |
21 |
--- /dev/null |
22 |
+++ b/app-shells/zsh-histdb/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST zsh-histdb-0_pre20200405.tar.gz 11227 BLAKE2B ac63958e910bae87a0cf81c31ca9bb84d5c51bb5ad94339498d05741a424d6410008a07f86da03847673af3cfc9750b03f126c3eb4a994c8ffbccf589849421f SHA512 ae2e31fc5c872c0dbc4615c8ba3d0935c57c3d24158baae1fdb935723859f62d529941b8b0112a28259629bf2f92e7f2a953f0880fbf3c7746a301aa70dd4f04 |
25 |
|
26 |
diff --git a/app-shells/zsh-histdb/metadata.xml b/app-shells/zsh-histdb/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..37a4c68 |
29 |
--- /dev/null |
30 |
+++ b/app-shells/zsh-histdb/metadata.xml |
31 |
@@ -0,0 +1,23 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>lssndrbarbieri@×××××.com</email> |
37 |
+ <name>Alessandro Barbieri</name> |
38 |
+ </maintainer> |
39 |
+ <upstream> |
40 |
+ <bugs-to>https://github.com/larkery/zsh-histdb/issues</bugs-to> |
41 |
+ <remote-id type="github">larkery/zsh-histdb</remote-id> |
42 |
+ </upstream> |
43 |
+ <longdescription lang="en"> |
44 |
+This is a small bit of zsh code that stores your history into a sqlite3 database. It improves on the normal history by storing, for each history command: |
45 |
+ |
46 |
+ The start and stop times of the command |
47 |
+ The working directory where the command was run |
48 |
+ The hostname of the machine |
49 |
+ A unique per-host session ID, so history from several sessions is not confused |
50 |
+ The exit status of the command |
51 |
+ |
52 |
+It is also possible to merge multiple history databases together without conflict, so long as all your machines have different hostnames. |
53 |
+ </longdescription> |
54 |
+</pkgmetadata> |
55 |
|
56 |
diff --git a/app-shells/zsh-histdb/zsh-histdb-0_pre20200405.ebuild b/app-shells/zsh-histdb/zsh-histdb-0_pre20200405.ebuild |
57 |
new file mode 100644 |
58 |
index 0000000..4335249 |
59 |
--- /dev/null |
60 |
+++ b/app-shells/zsh-histdb/zsh-histdb-0_pre20200405.ebuild |
61 |
@@ -0,0 +1,35 @@ |
62 |
+# Copyright 1999-2020 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI="7" |
66 |
+ |
67 |
+COMMIT="7c34b558cca374b6c8727fc08868f2bc044fd162" |
68 |
+ |
69 |
+DESCRIPTION="A slightly better history for zsh" |
70 |
+HOMEPAGE="https://github.com/larkery/zsh-histdb" |
71 |
+SRC_URI="https://github.com/larkery/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="MIT" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64" |
76 |
+DEPEND="" |
77 |
+RDEPEND=" |
78 |
+ app-shells/zsh |
79 |
+ dev-db/sqlite |
80 |
+" |
81 |
+ |
82 |
+DOCS=( README.org ) |
83 |
+ |
84 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
85 |
+ |
86 |
+src_install() { |
87 |
+ einstalldocs |
88 |
+ rm -rf "LICENSE" "${DOCS[@]}" || die |
89 |
+ dodir "/usr/share/zsh/plugins" |
90 |
+ insinto "/usr/share/zsh/plugins/${PN}" |
91 |
+ doins -r . |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ einfo "To use this module please read the README" |
96 |
+} |