summaryrefslogtreecommitdiff
path: root/mail-filter/libopensmtpd/libopensmtpd-1.0.ebuild
blob: 75f57aa7bd33d4ade780d21dc6dc290174fda395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2024-2025 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="https://src.imperialat.at/?action=summary&path=libopensmtpd.git"
SRC_URI="https://src.imperialat.at/releases/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="dev-libs/libevent"
RDEPEND="${DEPEND}"

src_prepare() {
	mv -f Makefile.gnu Makefile
	eapply_user
}

src_compile() {
	emake CC="$(tc-getCC)" MANFORMAT="man"
}

src_install() {
	emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" MANFORMAT="man" install
}