blob: 272b35e945f5b8482eab423a639a44e205ce5812 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
inherit eutils autotools
MY_PV=${PV}
MY_RC=${PV}
S=${WORKDIR}/${PN}-${MY_PV}
DESCRIPTION="Sender Rewriting Scheme library"
HOMEPAGE="http://opsec.eu/src/srs/"
SRC_URI="http://srs.mirtol.com/libsrs_alt-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND="!dev-perl/Mail-SRS"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-ftime.patch
eautoreconf
}
src_compile() {
# add missing header
sed -i -e '/timeb.h>/ a #include <stdlib.h>' test.c
# Since the primary intended consumers of this library are MTAs,
# use non-standard separator characters (--with-base64compat).
# This breaks "SRS Compliancy", which is a rough standard at
# best.
econf --with-base64compat || die "econf failed"
emake -j1 || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "make install failed"
dodoc "${S}"/MTAs/README.EXIM
}
|