Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/note/
Date: Tue, 05 Feb 2019 16:24:45
Message-Id: 1549383853.a36e6460f1fa1464b82ef2c8673f995bd8d835d2.grknight@gentoo
1 commit: a36e6460f1fa1464b82ef2c8673f995bd8d835d2
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 5 16:24:13 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 5 16:24:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a36e6460
7
8 app-misc/note: EAPI bump, fix deps, general cleanup
9
10 Bug 665824 is forcing a dependency review as virtual/mysql is incorrect
11 This package simply will need DBD-mysql
12
13 While at it, remove the dodir/cp pairs for into{ins,exe}/do{ins,exe} pairs
14
15 This remains maintainer-needed as no real testing was done
16
17 Bug: https://bugs.gentoo.org/665824
18 Package-Manager: Portage-2.3.59, Repoman-2.3.12
19 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
20
21 app-misc/note/note-1.3.3-r2.ebuild | 61 ++++++++++++++++++++++++++++++++++++++
22 1 file changed, 61 insertions(+)
23
24 diff --git a/app-misc/note/note-1.3.3-r2.ebuild b/app-misc/note/note-1.3.3-r2.ebuild
25 new file mode 100644
26 index 00000000000..fc0e6b7a020
27 --- /dev/null
28 +++ b/app-misc/note/note-1.3.3-r2.ebuild
29 @@ -0,0 +1,61 @@
30 +# Copyright 1999-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit perl-module
36 +
37 +DESCRIPTION="A note taking perl program"
38 +HOMEPAGE="https://www.daemon.de/NOTE"
39 +SRC_URI="https://www.daemon.de/idisk/Apps/note/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~x86"
44 +IUSE="crypt dbm general mysql text"
45 +
46 +DEPEND="dev-perl/TermReadKey
47 + dev-perl/Term-ReadLine-Perl
48 + virtual/perl-Storable
49 + dev-perl/Config-General
50 + crypt? ( dev-perl/Crypt-CBC
51 + dev-perl/Crypt-Blowfish
52 + dev-perl/Crypt-DES )
53 + mysql? ( dev-perl/DBD-mysql )"
54 +RDEPEND="${DEPEND}"
55 +
56 +# extraneous README that gets installed into the perl module
57 +PERL_RM_FILES=( NOTEDB/README )
58 +
59 +src_prepare() {
60 + # Supressing file not needed
61 + local v
62 + for v in mysql text dbm general; do
63 + if ! use ${v}; then
64 + PERL_RM_FILES+=( NOTEDB/${v}.pm )
65 + fi
66 + done
67 + perl-module_src_prepare
68 +}
69 +
70 +src_install() {
71 + perl-module_src_install
72 +
73 + # Adding some basic utitily for testing note
74 + exeinto /usr/share/${PN}
75 + doexe bin/stresstest.sh
76 +
77 + # Adding some help for mysql backend driver
78 + if use mysql; then
79 + insinto /usr/share/${PN}/mysql
80 + exeinto /usr/share/${PN}/mysql
81 + doins mysql/{README,sql,permissions}
82 + doexe mysql/install.sh
83 + fi
84 +
85 + # Adding a sample configuration file
86 + insinto /etc
87 + doins config/noterc
88 +
89 + dodoc UPGRADE VERSION
90 +}