Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/sigh/files/, mail-filter/sigh/
Date: Mon, 28 Dec 2020 14:48:32
Message-Id: 1609166874.25f97ee3dd1be9dce10b20184754fcc25c2f4982.soap@gentoo
1 commit: 25f97ee3dd1be9dce10b20184754fcc25c2f4982
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Dec 28 14:47:54 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 14:47:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25f97ee3
7
8 mail-filter/sigh: Port to EAPI 7 and GLEP 81
9
10 Closes: https://bugs.gentoo.org/721996
11 Package-Manager: Portage-3.0.9, Repoman-3.0.1
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 .../sigh/files/sigh-1607.1.6-fno-common.patch | 19 +++++++++
16 mail-filter/sigh/sigh-1607.1.6-r1.ebuild | 30 ++++++++++++++
17 mail-filter/sigh/sigh-1607.1.6.ebuild | 47 ----------------------
18 3 files changed, 49 insertions(+), 47 deletions(-)
19
20 diff --git a/mail-filter/sigh/files/sigh-1607.1.6-fno-common.patch b/mail-filter/sigh/files/sigh-1607.1.6-fno-common.patch
21 new file mode 100644
22 index 00000000000..a76b102be14
23 --- /dev/null
24 +++ b/mail-filter/sigh/files/sigh-1607.1.6-fno-common.patch
25 @@ -0,0 +1,19 @@
26 +--- a/src/common.h
27 ++++ b/src/common.h
28 +@@ -28,14 +28,14 @@ namespace util {
29 + * @param x A string literal
30 + * @return A pointer to char
31 + */
32 +- auto ccp = [](const std::string &str) {
33 ++ inline auto ccp = [](const std::string &str) {
34 + return const_cast<char *> (str.c_str());
35 + };
36 +
37 + /*!
38 + * @brief Data structure for each client connection
39 + */
40 +- auto mlfipriv = [](SMFICTX *ctx) {
41 ++ inline auto mlfipriv = [](SMFICTX *ctx) {
42 + return static_cast<mlt::Client *> (smfi_getpriv(ctx));
43 + };
44 + } // namespace util
45
46 diff --git a/mail-filter/sigh/sigh-1607.1.6-r1.ebuild b/mail-filter/sigh/sigh-1607.1.6-r1.ebuild
47 new file mode 100644
48 index 00000000000..43bef3b3b13
49 --- /dev/null
50 +++ b/mail-filter/sigh/sigh-1607.1.6-r1.ebuild
51 @@ -0,0 +1,30 @@
52 +# Copyright 1999-2020 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +CMAKE_IN_SOURCE_BUILD=1
58 +inherit cmake
59 +
60 +DESCRIPTION="S/MIME signing milter"
61 +HOMEPAGE="https://signing-milter.org/"
62 +SRC_URI="https://github.com/croessner/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
63 +
64 +LICENSE="GPL-3"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~x86"
67 +
68 +RDEPEND="
69 + acct-group/sigh
70 + acct-user/sigh
71 + dev-libs/boost
72 + dev-libs/openssl:0=
73 + mail-filter/libmilter"
74 +DEPEND="${RDEPEND}"
75 +
76 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
77 +
78 +src_install() {
79 + cmake_src_install
80 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
81 +}
82
83 diff --git a/mail-filter/sigh/sigh-1607.1.6.ebuild b/mail-filter/sigh/sigh-1607.1.6.ebuild
84 deleted file mode 100644
85 index b0d0ac05592..00000000000
86 --- a/mail-filter/sigh/sigh-1607.1.6.ebuild
87 +++ /dev/null
88 @@ -1,47 +0,0 @@
89 -# Copyright 1999-2018 Gentoo Foundation
90 -# Distributed under the terms of the GNU General Public License v2
91 -
92 -EAPI=6
93 -
94 -inherit cmake-utils user
95 -
96 -DESCRIPTION="S/MIME signing milter"
97 -HOMEPAGE="https://signing-milter.org/"
98 -SRC_URI="https://github.com/croessner/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
99 -
100 -LICENSE="GPL-3"
101 -SLOT="0"
102 -KEYWORDS="~amd64 ~x86"
103 -
104 -RDEPEND="mail-filter/libmilter
105 - dev-libs/boost
106 - dev-libs/openssl:0"
107 -DEPEND="${RDEPEND}"
108 -
109 -DOCS=( README README.build AUTHORS LICENSE )
110 -CMAKE_IN_SOURCE_BUILD=1
111 -
112 -pkg_setup() {
113 - enewgroup sigh
114 - enewuser sigh -1 -1 /var/lib/sigh sigh
115 -}
116 -
117 -src_prepare() {
118 - cmake-utils_src_prepare
119 -}
120 -
121 -src_configure() {
122 - cmake-utils_src_configure
123 -}
124 -
125 -src_compile() {
126 - cmake-utils_src_compile
127 -}
128 -
129 -src_install() {
130 - cmake-utils_src_install
131 -
132 - dodoc "${DOCS[@]}"
133 -
134 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
135 -}