1 |
commit: 1d923862d3785cf08d5b2e6f5b67043f59e77ff1 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 17 19:04:05 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 17 19:04:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d923862 |
7 |
|
8 |
app-admin/pass: fix emacs dependencies |
9 |
|
10 |
Add dependencies for emacs and compile the emacs code. |
11 |
This drops arm x86 x86-macos keywords, see bug 661432 |
12 |
|
13 |
Closes: https://bugs.gentoo.org/509914 |
14 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
15 |
|
16 |
app-admin/pass/pass-1.7.2-r1.ebuild | 78 +++++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 78 insertions(+) |
18 |
|
19 |
diff --git a/app-admin/pass/pass-1.7.2-r1.ebuild b/app-admin/pass/pass-1.7.2-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..370114ac631 |
22 |
--- /dev/null |
23 |
+++ b/app-admin/pass/pass-1.7.2-r1.ebuild |
24 |
@@ -0,0 +1,78 @@ |
25 |
+# Copyright 1999-2018 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit bash-completion-r1 elisp-common |
31 |
+ |
32 |
+DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely" |
33 |
+HOMEPAGE="https://www.passwordstore.org/" |
34 |
+SRC_URI="https://git.zx2c4.com/password-store/snapshot/password-store-${PV}.tar.xz" |
35 |
+ |
36 |
+SLOT="0" |
37 |
+LICENSE="GPL-2" |
38 |
+KEYWORDS="~amd64" |
39 |
+IUSE="+git X zsh-completion fish-completion emacs dmenu importers elibc_Darwin" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ app-crypt/gnupg |
43 |
+ media-gfx/qrencode |
44 |
+ >=app-text/tree-1.7.0 |
45 |
+ git? ( dev-vcs/git ) |
46 |
+ X? ( x11-misc/xclip ) |
47 |
+ elibc_Darwin? ( app-misc/getopt ) |
48 |
+ zsh-completion? ( app-shells/gentoo-zsh-completions ) |
49 |
+ fish-completion? ( app-shells/fish ) |
50 |
+ dmenu? ( x11-misc/dmenu x11-misc/xdotool ) |
51 |
+ emacs? ( virtual/emacs >=app-emacs/f-0.11.0 >=app-emacs/s-1.9.0 >=app-emacs/with-editor-2.5.11 ) |
52 |
+" |
53 |
+ |
54 |
+S="${WORKDIR}/password-store-${PV}" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ use elibc_Darwin || return |
60 |
+ # use coreutils' |
61 |
+ sed -i -e 's/openssl base64/base64/g' src/platform/darwin.sh || die |
62 |
+ # host getopt isn't cool, and we aren't brew (rip out brew reference) |
63 |
+ sed -i -e '/^GETOPT=/s/=.*$/=getopt-long/' src/platform/darwin.sh || die |
64 |
+ # make sure we can find "mount" |
65 |
+ sed -i -e 's:mount -t:/sbin/mount -t:' src/platform/darwin.sh || die |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ use emacs && elisp-compile contrib/emacs/*.el |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ emake install \ |
74 |
+ DESTDIR="${D}" \ |
75 |
+ PREFIX="${EPREFIX}/usr" \ |
76 |
+ BASHCOMPDIR="$(get_bashcompdir)" \ |
77 |
+ WITH_BASHCOMP=yes \ |
78 |
+ WITH_ZSHCOMP=$(usex zsh-completion) \ |
79 |
+ WITH_FISHCOMP=$(usex fish-completion) |
80 |
+ use dmenu && dobin contrib/dmenu/passmenu |
81 |
+ if use emacs; then |
82 |
+ elisp-install ${PN} contrib/emacs/*.{el,elc} |
83 |
+ elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" |
84 |
+ fi |
85 |
+ if use importers; then |
86 |
+ exeinto /usr/share/${PN}/importers |
87 |
+ doexe contrib/importers/* |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ use emacs && elisp-site-regen |
93 |
+ if use importers; then |
94 |
+ einfo "To import passwords from other password managers, you may use the" |
95 |
+ einfo "various importer scripts found in:" |
96 |
+ einfo " ${EROOT%/}/usr/share/${PN}/importers/" |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+pkg_postrm() { |
101 |
+ use emacs && elisp-site-regen |
102 |
+} |