blob: 78dc3a099424cb9d04abbd122216aef39f3a4f73 (
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
46
47
48
49
50
51
52
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="3"
inherit fixheadtails eutils toolchain-funcs flag-o-matic
DESCRIPTION="Safecat implements qmail's maildir algorithm, copying standard input safely to a specified directory"
HOMEPAGE="http://www.jeenyus.net/linux/software/safecat.html"
SRC_URI="http://www.jeenyus.net/linux/software/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~hppa ~mips ppc ~sparc x86"
IUSE=""
RESTRICT="test"
DEPEND="sys-apps/groff"
RDEPEND=""
src_prepare() {
# applying maildir-patch
epatch "${FILESDIR}"/safecat-1.11-gentoo.patch
# Fix parallel make errors
epatch "${FILESDIR}"/${P}-makefile.patch
ht_fix_file Makefile make-compile.sh
sed -ni '/man\|doc/!p' hier.c
# Fix implicit decleration
sed -i -e '/include <signal.h>/ a #include <stdlib.h>' \
safecat.c
}
src_configure() {
# safecat segfaults on gcc-4.0 x86 with -Os, seems to be okay with -O2
if [[ $(gcc-major-version).$(gcc-minor-version) == 4.0 ]]; then
replace-flags -Os -O2
fi
echo "${D}/usr" > conf-root
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
}
src_install() {
emake setup check || die
dodoc CHANGES README
doman maildir.1 safecat.1
}
|