Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/xkcdpass/files/, app-admin/xkcdpass/
Date: Fri, 26 Feb 2021 19:20:01
Message-Id: 1614367191.2aa05cb2e17a1c9a6131a6e95955be999446f263.bkohler@gentoo
1 commit: 2aa05cb2e17a1c9a6131a6e95955be999446f263
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 26 19:19:38 2021 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 26 19:19:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2aa05cb2
7
8 app-admin/xkcdpass: fix up manpage a bit
9
10 Package-Manager: Portage-3.0.15, Repoman-3.0.2
11 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
12
13 .../xkcdpass/files/xkcdpass-manpage-fix.patch | 89 ++++++++++++++++++++++
14 app-admin/xkcdpass/xkcdpass-1.17.6-r1.ebuild | 40 ++++++++++
15 2 files changed, 129 insertions(+)
16
17 diff --git a/app-admin/xkcdpass/files/xkcdpass-manpage-fix.patch b/app-admin/xkcdpass/files/xkcdpass-manpage-fix.patch
18 new file mode 100644
19 index 00000000000..a4d9e3464ce
20 --- /dev/null
21 +++ b/app-admin/xkcdpass/files/xkcdpass-manpage-fix.patch
22 @@ -0,0 +1,89 @@
23 +diff -ur xkcdpass-1.17.6/xkcdpass.1 xkcdpass-1.17.6.new/xkcdpass.1
24 +--- xkcdpass-1.17.6/xkcdpass.1 2021-02-26 12:58:59.441739487 -0600
25 ++++ xkcdpass-1.17.6.new/xkcdpass.1 2021-02-26 13:11:21.195161091 -0600
26 +@@ -1,40 +1,14 @@
27 +-.SH xkcdpass
28 +-.SS generate memorable, secure multiword passphrases
29 +-.TP
30 +-.B Author
31 +-|authorname| |authoremail|
32 +-.RS
33 +-.RE
34 +-.TP
35 +-.B Date
36 +-2015\-01\-17
37 +-.RS
38 +-.RE
39 +-.TP
40 +-.B Copyright
41 +-BSD license, attribution and disclaimer required, no endorsement
42 +-allowed.
43 +-.RS
44 +-.RE
45 +-.TP
46 +-.B Manual section
47 +-1
48 +-.RS
49 +-.RE
50 +-.TP
51 +-.B Manual group
52 +-Admin
53 +-.RS
54 +-.RE
55 +-.SS SYNOPSIS
56 +-.PP
57 +-\f[B]xkcdpass\f[] [ option ...
58 +-]
59 +-.PD 0
60 +-.P
61 +-.PD
62 +-\f[B]xkcdpass\f[] \f[B]\-\-help\f[]
63 +-.SS DESCRIPTION
64 ++.TH xkcdpass 1
65 ++.SH NAME
66 ++xkcdpass - generate memorable, secure multiword passphrases
67 ++.SH SYNOPSIS
68 ++.PP
69 ++.B xkcdpass
70 ++[ options ]
71 ++.br
72 ++.B xkcdpass
73 ++--help
74 ++.SH DESCRIPTION
75 + .PP
76 + A flexible and scriptable password generator which generates strong
77 + passphrases, inspired by XKCD 936:
78 +@@ -45,7 +19,7 @@
79 + >\ correct\ horse\ battery\ staple
80 + \f[]
81 + .fi
82 +-.SS OPTIONS
83 ++.SH OPTIONS
84 + .PP
85 + \f[B]\-\-help\f[]
86 + .RS
87 +@@ -156,22 +130,14 @@
88 + \f[]
89 + .fi
90 + .RE
91 +-.SS HISTORY
92 ++.SH HISTORY
93 + .PP
94 + The \f[B]xkcdpass\f[] command invokes the Python program
95 + \f[C]xkcd_password.py\f[].
96 + .PP
97 +-The inspiration for the program\[aq]s purpose is the XKCD 936_ “Password
98 ++The inspiration for the program\[aq]s purpose is the XKCD 936 “Password
99 + Strength” cartoon.
100 + .PP
101 + The application is maintained by Steven Tobin <<steven@×××××××××.in>>.
102 + .PP
103 + This manual page was written by |authorname| |authoremail|.
104 +-.SS
105 +-.RS
106 +-.PP
107 +-Local variables: mode: rst coding: utf\-8 time\-stamp\-format:
108 +-"%:y\-%02m\-%02d" time\-stamp\-start: "^:Date:[ ]+" time\-stamp\-end:
109 +-"$" time\-stamp\-line\-limit: 20 End: vim: filetype=rst
110 +-fileencoding=utf\-8 :
111 +-.RE
112
113 diff --git a/app-admin/xkcdpass/xkcdpass-1.17.6-r1.ebuild b/app-admin/xkcdpass/xkcdpass-1.17.6-r1.ebuild
114 new file mode 100644
115 index 00000000000..ee512ef6032
116 --- /dev/null
117 +++ b/app-admin/xkcdpass/xkcdpass-1.17.6-r1.ebuild
118 @@ -0,0 +1,40 @@
119 +# Copyright 2020-2021 Gentoo Authors
120 +# Distributed under the terms of the GNU General Public License v2
121 +
122 +EAPI=7
123 +
124 +PYTHON_COMPAT=( python3_{7,8,9} )
125 +DISTUTILS_USE_SETUPTOOLS=rdepend
126 +inherit distutils-r1
127 +
128 +DESCRIPTION="Password generator inspired by XKCD 936"
129 +HOMEPAGE="https://github.com/redacted/XKCD-password-generator"
130 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
131 +
132 +LICENSE="BSD CC-BY-3.0
133 + l10n_de? ( GPL-3 )
134 + l10n_it? ( CC-BY-SA-3.0 )
135 + l10n_no? ( CC-BY-4.0 )"
136 +SLOT="0"
137 +KEYWORDS="~amd64 ~x86"
138 +IUSE="l10n_de l10n_en l10n_es l10n_fi l10n_fr l10n_it l10n_no l10n_pt"
139 +
140 +PATCHES=( "${FILESDIR}"/xkcdpass-manpage-fix.patch )
141 +
142 +src_prepare() {
143 + default
144 +
145 + use l10n_de || rm ${PN}/static/ger-anlx
146 + use l10n_en || rm ${PN}/static/{eff-short,eff-special,legacy}
147 + use l10n_es || rm ${PN}/static/spa-mich
148 + use l10n_fi || rm ${PN}/static/fin-kotus
149 + use l10n_fr || rm ${PN}/static/fr-*
150 + use l10n_it || rm ${PN}/static/ita-wiki
151 + use l10n_no || rm ${PN}/static/nor-nb
152 + use l10n_pt || rm ${PN}/static/pt-*
153 +}
154 +
155 +python_install_all() {
156 + distutils-r1_python_install_all
157 + doman ${PN}.1
158 +}