From: Fabian Groffen Date: Tue, 27 Jun 2017 13:29:42 +0000 (+0200) Subject: mail-filter/opendmarc: add reports USE-flag to hide perl dependencies, bug #622612 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=20f1462f51def007b2a932a4488744e6b32cae12;p=gentoo.git mail-filter/opendmarc: add reports USE-flag to hide perl dependencies, bug #622612 Package-Manager: Portage-2.3.6, Repoman-2.3.1 --- diff --git a/mail-filter/opendmarc/metadata.xml b/mail-filter/opendmarc/metadata.xml index 833cd0fc6346..a2f23494aa42 100644 --- a/mail-filter/opendmarc/metadata.xml +++ b/mail-filter/opendmarc/metadata.xml @@ -14,5 +14,7 @@ Use the mail-filter/libspf2 for Sender Policy Framework checking + Install the reports binaries: expire, + import, reports, params diff --git a/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild b/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild index 50e8bb5bf2de..f701f5636acd 100644 --- a/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild +++ b/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild @@ -12,13 +12,16 @@ SRC_URI="mirror://sourceforge/opendmarc/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~x86 ~x86-fbsd" -IUSE="spf" +IUSE="spf +reports" -DEPEND="dev-perl/DBI +DEPEND="reports? ( dev-perl/DBI ) || ( mail-filter/libmilter mail-mta/sendmail )" RDEPEND="${DEPEND} - dev-perl/HTTP-Message - dev-perl/Switch + reports? ( + dev-perl/DBD-mysql + dev-perl/HTTP-Message + dev-perl/Switch + ) spf? ( mail-filter/libspf2 )" pkg_setup() { @@ -26,6 +29,13 @@ pkg_setup() { enewuser milter -1 -1 /var/lib/milter milter } +src_prepare() { + default + if use !reports ; then + sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die + fi +} + src_configure() { econf \ --docdir="${EPREFIX}"/usr/share/doc/${PF} \