logo

overlay

My (experimental) gentoo overlay
commit: 876971c8223af651ea73ca433b4e3c5bad959ad7
parent: a52afe2ba631bb06bb0f1c08b0b1b97a13bb6c78
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 24 Jun 2019 04:44:53 +0200

mail-mta/opensmtpd: Correct mdoc USE flags

- Remove hard-dep on mandoc
- rename mdoc to mandoc
- change mantype depending on USE=mdoc instead or hardcoding to mdoc

Diffstat:

Mmail-mta/opensmtpd/metadata.xml1+
Mmail-mta/opensmtpd/opensmtpd-6.4.0_p2.ebuild5++---
Mmail-mta/opensmtpd/opensmtpd-6.4.1_p2.ebuild5++---
3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/mail-mta/opensmtpd/metadata.xml b/mail-mta/opensmtpd/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <use> <flag name="mta">Enable this to install as system-wide MTA</flag> + <flag name="mdoc">Use mdoc format for manpages</flag> </use> </pkgmetadata> diff --git a/mail-mta/opensmtpd/opensmtpd-6.4.0_p2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.4.0_p2.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz" LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" SLOT="0" KEYWORDS="~amd64" -IUSE="libressl pam mandoc +mta" +IUSE="libressl pam mdoc +mta" DEPEND=" !libressl? ( dev-libs/openssl:0 ) @@ -24,7 +24,6 @@ DEPEND=" sys-libs/zlib pam? ( virtual/pam ) elibc_musl? ( sys-libs/fts-standalone ) - mandoc? ( app-text/mandoc ) sys-libs/db:= dev-libs/libevent app-misc/ca-certificates @@ -67,7 +66,7 @@ src_configure() { --with-path-socket=/run \ --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ --sysconfdir=/etc/opensmtpd \ - --with-mantype=doc \ + --with-mantype=$(usex mdoc doc man) \ $(use_with pam auth-pam) } diff --git a/mail-mta/opensmtpd/opensmtpd-6.4.1_p2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.4.1_p2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" SLOT="0" KEYWORDS="~amd64" -IUSE="libressl pam mandoc +mta" +IUSE="libressl pam mdoc +mta" DEPEND=" !libressl? ( dev-libs/openssl:0 ) @@ -21,7 +21,6 @@ DEPEND=" sys-libs/zlib pam? ( virtual/pam ) elibc_musl? ( sys-libs/fts-standalone ) - mandoc? ( app-text/mandoc ) sys-libs/db:= dev-libs/libevent app-misc/ca-certificates @@ -68,7 +67,7 @@ src_configure() { --with-path-socket=/run \ --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ --sysconfdir=/etc/opensmtpd \ - --with-mantype=doc \ + --with-mantype=$(usex mdoc doc man) \ $(use_with pam auth-pam) }