mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
net-libs/libetpan: add 1.10.1
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST libetpan-1.10.1.tar.gz 8878422 BLAKE2B 37b42b0d9bdb44254a6cfb8f03dd8101b885d1fa2b887f4547ed9445557a90a2381dd8d81d1ef1afcf80773c386236f3aee4afc2f3d52a927f7e60b323cedd1e SHA512 0be1958c5ca26d57e0187000e09a33929136c08e20bd0c12571d77a7ab2572c43f56710b4d65812fe6f74a33c528e821c6e2685f5bab6923d6fd5ff872286d56
|
||||
DIST libetpan-1.10.tar.gz 8878402 BLAKE2B 408ac8b34ac5a13a1080397961209ccbd88df5537629c91280ec80dc38ff4b5ca5166b18b551f67c0c225ae6152057b103577084ad4e172113cca4f41865f722 SHA512 64e6d5c160700053833e626da3b63a69a83b98a7879b7d879e2c343dd84aade6791c6becbce48a9c30156ce42b0fda5d8c56d67573833390224650a9e9eed517
|
||||
DIST libetpan-1.9.4.tar.gz 5000025 BLAKE2B dd98169134b7448d3dd129814d8011a3fa915b16f4763344230a89d02626b64ddea57495b4c21fd8f651164c36c95ad98ee9db073273b230e6af403b845aa681 SHA512 7b7047d084fb4ce0c91821c2ad78e921d6d009106851afb7f5b068713c84ebe6926f6bf7a7423f263eeebef617511e44f6b65448d892bbc058c447235fd55c0f
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A portable, efficient middleware for different kinds of mail access"
|
||||
HOMEPAGE="https://libetpan.sourceforge.net/"
|
||||
SRC_URI="https://github.com/dinhviethoa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="berkdb gnutls liblockfile lmdb sasl ssl static-libs"
|
||||
|
||||
# BerkDB is only supported up to version 6.0
|
||||
DEPEND="virtual/zlib:=
|
||||
!lmdb? ( berkdb? ( sys-libs/db:= ) )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
ssl? (
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
!gnutls? (
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
)
|
||||
sasl? ( dev-libs/cyrus-sasl:2 )
|
||||
liblockfile? ( net-libs/liblockfile )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.0-nonnull.patch
|
||||
"${FILESDIR}"/${PN}-1.9.4-berkdb_lookup.patch #519846
|
||||
"${FILESDIR}"/${PN}-1.10-fix-implicit-func-decl.patch #965123
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
if use gnutls && ! use ssl ; then
|
||||
ewarn "You have \"gnutls\" USE flag enabled but \"ssl\" USE flag disabled!"
|
||||
ewarn "No ssl support will be available in ${PN}."
|
||||
fi
|
||||
|
||||
if use berkdb && use lmdb ; then
|
||||
ewarn "You have \"berkdb\" _and_ \"lmdb\" USE flags enabled."
|
||||
ewarn "Using lmdb as cache DB!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so
|
||||
# libtool recognises it as valid shell (bug #300211)
|
||||
use prefix && export CONFIG_SHELL=${BASH}
|
||||
local myeconfargs=(
|
||||
# --enable-debug simply injects "-O2 -g" into CFLAGS
|
||||
--disable-debug
|
||||
--enable-ipv6
|
||||
$(use_enable liblockfile lockfile)
|
||||
$(use_enable static-libs static)
|
||||
$(use_with sasl)
|
||||
$(usex lmdb '--enable-lmdb --disable-db' "$(use_enable berkdb db) --disable-lmdb")
|
||||
$(usex ssl "$(use_with gnutls) $(use_with !gnutls openssl)" '--without-gnutls --without-openssl')
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name "*.a" -delete || die
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user