diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-19 22:16:26 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-19 22:16:26 +0100 |
commit | 89da5c5ac79849bb6d8b087cb9c1e554187bd59c (patch) | |
tree | fee4ba4c066d3876ecba220ec9e29051ca9e1ba3 /net-mail/courier-common/courier-common-3.1.5.ebuild | |
parent | ac616584d4bcb8e2a2defb591e3b0643054fda5d (diff) |
gentoo auto-resync : 19:05:2023 - 22:16:25
Diffstat (limited to 'net-mail/courier-common/courier-common-3.1.5.ebuild')
-rw-r--r-- | net-mail/courier-common/courier-common-3.1.5.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/net-mail/courier-common/courier-common-3.1.5.ebuild b/net-mail/courier-common/courier-common-3.1.5.ebuild new file mode 100644 index 000000000000..f6c77def74b2 --- /dev/null +++ b/net-mail/courier-common/courier-common-3.1.5.ebuild @@ -0,0 +1,54 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools + +MYP=maildrop-${PV} + +DESCRIPTION="Mail delivery agent/filter" +HOMEPAGE="https://www.courier-mta.org/maildrop/" +SRC_URI="mirror://sourceforge/courier/${MYP}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="berkdb +gdbm" + +RDEPEND="!mail-mta/courier + !<=net-mail/courier-imap-5.2.3 + !<=mail-filter/maildrop-3.1.4 + !net-mail/courier-makedat + gdbm? ( >=sys-libs/gdbm-1.8.0:= ) + !gdbm? ( berkdb? ( >=sys-libs/db-3:= ) )" +DEPEND="${RDEPEND}" + +REQUIRED_USE="|| ( berkdb gdbm )" + +S=${WORKDIR}/${MYP} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + # Prefer gdbm over berkdb + if use gdbm ; then + use berkdb && elog "Both gdbm and berkdb selected. Using gdbm." + fi + + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --without-devel + ) + + if use gdbm ; then + myeconfargs+=( --with-db=gdbm ) + else + myeconfargs+=( --with-db=db ) + fi + + econf "${myeconfargs[@]}" +} |