diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2020-12-28 15:47:54 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-12-28 15:47:54 +0100 |
commit | 25f97ee3dd1be9dce10b20184754fcc25c2f4982 (patch) | |
tree | e0a55624ddfe64786d4cbbff0773c37cd0ba3d2d /mail-filter | |
parent | app-text/rman: Port to EAPI 7 (diff) | |
download | gentoo-25f97ee3dd1be9dce10b20184754fcc25c2f4982.tar.gz gentoo-25f97ee3dd1be9dce10b20184754fcc25c2f4982.tar.bz2 gentoo-25f97ee3dd1be9dce10b20184754fcc25c2f4982.zip |
mail-filter/sigh: Port to EAPI 7 and GLEP 81
Closes: https://bugs.gentoo.org/721996
Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/sigh/files/sigh-1607.1.6-fno-common.patch | 19 | ||||
-rw-r--r-- | mail-filter/sigh/sigh-1607.1.6-r1.ebuild | 30 | ||||
-rw-r--r-- | mail-filter/sigh/sigh-1607.1.6.ebuild | 47 |
3 files changed, 49 insertions, 47 deletions
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 new file mode 100644 index 000000000000..a76b102be147 --- /dev/null +++ b/mail-filter/sigh/files/sigh-1607.1.6-fno-common.patch @@ -0,0 +1,19 @@ +--- a/src/common.h ++++ b/src/common.h +@@ -28,14 +28,14 @@ namespace util { + * @param x A string literal + * @return A pointer to char + */ +- auto ccp = [](const std::string &str) { ++ inline auto ccp = [](const std::string &str) { + return const_cast<char *> (str.c_str()); + }; + + /*! + * @brief Data structure for each client connection + */ +- auto mlfipriv = [](SMFICTX *ctx) { ++ inline auto mlfipriv = [](SMFICTX *ctx) { + return static_cast<mlt::Client *> (smfi_getpriv(ctx)); + }; + } // namespace util diff --git a/mail-filter/sigh/sigh-1607.1.6-r1.ebuild b/mail-filter/sigh/sigh-1607.1.6-r1.ebuild new file mode 100644 index 000000000000..43bef3b3b138 --- /dev/null +++ b/mail-filter/sigh/sigh-1607.1.6-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_IN_SOURCE_BUILD=1 +inherit cmake + +DESCRIPTION="S/MIME signing milter" +HOMEPAGE="https://signing-milter.org/" +SRC_URI="https://github.com/croessner/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + acct-group/sigh + acct-user/sigh + dev-libs/boost + dev-libs/openssl:0= + mail-filter/libmilter" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) + +src_install() { + cmake_src_install + newinitd "${FILESDIR}"/${PN}.initd ${PN} +} diff --git a/mail-filter/sigh/sigh-1607.1.6.ebuild b/mail-filter/sigh/sigh-1607.1.6.ebuild deleted file mode 100644 index b0d0ac055922..000000000000 --- a/mail-filter/sigh/sigh-1607.1.6.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils user - -DESCRIPTION="S/MIME signing milter" -HOMEPAGE="https://signing-milter.org/" -SRC_URI="https://github.com/croessner/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND="mail-filter/libmilter - dev-libs/boost - dev-libs/openssl:0" -DEPEND="${RDEPEND}" - -DOCS=( README README.build AUTHORS LICENSE ) -CMAKE_IN_SOURCE_BUILD=1 - -pkg_setup() { - enewgroup sigh - enewuser sigh -1 -1 /var/lib/sigh sigh -} - -src_prepare() { - cmake-utils_src_prepare -} - -src_configure() { - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - cmake-utils_src_install - - dodoc "${DOCS[@]}" - - newinitd "${FILESDIR}"/${PN}.initd ${PN} -} |