dev-libs/libopensmtpd: new package, add 0.7

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-11-04 23:26:08 +05:00
parent 1df1b29b50
commit 7b076a6ec8
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Library for creating OpenSMTPD filters"
HOMEPAGE="http://imperialat.at/dev/libopensmtpd/"
SRC_URI="http://imperialat.at/releases/${P}.tar.gz"
LICENSE="ISC"
SLOT="0/0.1"
KEYWORDS="~amd64"
DEPEND="dev-libs/libevent:="
RDEPEND="${DEPEND}"
src_configure() {
tc-export CC
}
src_compile() {
local myargs=(
MANFORMAT=mdoc
)
emake -f Makefile.gnu "${myargs[@]}"
}
src_install() {
local myargs=(
MANFORMAT=mdoc
DESTDIR="${D}"
LOCALBASE="${EPREFIX}"/usr
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
)
emake -f Makefile.gnu "${myargs[@]}" install
}