1 |
commit: 6b353f904c24387cfe9623b4f0a0193720d39f3f |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 29 00:30:09 2015 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 29 00:35:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b353f90 |
7 |
|
8 |
app-shells/z: Add new package |
9 |
|
10 |
Add initial ebuild for most recent release. |
11 |
|
12 |
app-shells/z/Manifest | 1 + |
13 |
app-shells/z/metadata.xml | 13 +++++++++++++ |
14 |
app-shells/z/z-1.9.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/app-shells/z/Manifest b/app-shells/z/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..4f551bd |
20 |
--- /dev/null |
21 |
+++ b/app-shells/z/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST z-1.9.tar.gz 5894 SHA256 28aaff75254c8914063ce2534a4b882845054701230475b11dba6d7a305d82c9 SHA512 8e22c04075d502dfbb0225518c923065347aa842d463237e927c2f9e4c6a2c5d211cd43c06a374f078090b4418849afdfabd6a3d249e9c35f9423dffe8078733 WHIRLPOOL 21a7d5e10b69b2f898254fd89f7be42aea1364fd81604d17bf58e244ce8a0a4b6cc92b41062eb008304522cf9623a50745dda7d9466a1a8a1fe3a8a8e5cac4f4 |
24 |
|
25 |
diff --git a/app-shells/z/metadata.xml b/app-shells/z/metadata.xml |
26 |
new file mode 100644 |
27 |
index 0000000..ad3df7c |
28 |
--- /dev/null |
29 |
+++ b/app-shells/z/metadata.xml |
30 |
@@ -0,0 +1,13 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer> |
35 |
+ <email>aidecoe@g.o</email> |
36 |
+ <name>Amadeusz Żołnowski</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription lang="en"> |
39 |
+ Tracks your most used directories, based on 'frecency'. After a short |
40 |
+ learning phase, z will take you to the most 'frecent' directory that |
41 |
+ matches ALL of the regexes given on the command line, in order. |
42 |
+ </longdescription> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/app-shells/z/z-1.9.ebuild b/app-shells/z/z-1.9.ebuild |
46 |
new file mode 100644 |
47 |
index 0000000..f107e3c |
48 |
--- /dev/null |
49 |
+++ b/app-shells/z/z-1.9.ebuild |
50 |
@@ -0,0 +1,41 @@ |
51 |
+# Copyright 1999-2015 Gentoo Foundation |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+# $Id$ |
54 |
+ |
55 |
+EAPI=5 |
56 |
+ |
57 |
+DESCRIPTION="Change directory command that learns visited paths" |
58 |
+HOMEPAGE="https://github.com/rupa/z/" |
59 |
+SRC_URI="https://github.com/rupa/${PN}/tarball/v${PV} -> ${P}.tar.gz" |
60 |
+ |
61 |
+LICENSE="WTFPL-2" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64 ~x86" |
64 |
+IUSE="" |
65 |
+ |
66 |
+DEPEND="" |
67 |
+RDEPEND="${DEPEND}" |
68 |
+ |
69 |
+S="${WORKDIR}/rupa-z-5dc2a86" |
70 |
+ |
71 |
+src_compile() { |
72 |
+ : |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ insinto "/usr/share/${PN}/" |
77 |
+ doins z.sh |
78 |
+ doman z.1 |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
83 |
+ elog "To enable 'z' command you need to source /usr/share/${PN}/z.sh." |
84 |
+ elog "Add following line to your ~/.bashrc, ~/.zshrc or equivalent" |
85 |
+ elog "in other shells:" |
86 |
+ elog "" |
87 |
+ elog " [ -r /usr/share/${PN}/z.sh ] && . /usr/share/${PN}/z.sh" |
88 |
+ elog "" |
89 |
+ elog "See z(1) man page for usage and configuration options." |
90 |
+ fi |
91 |
+} |