blob: fcd858fd00966c94dd6bd27f850ca6f4fd9b747f (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/altermime/altermime-0.3.10.ebuild,v 1.4 2012/08/26 18:51:05 armin76 Exp $
EAPI=2
inherit eutils toolchain-funcs
DESCRIPTION=" alterMIME is a small program which is used to alter your mime-encoded mailpacks"
SRC_URI="http://www.pldaniels.com/altermime/${P}.tar.gz"
HOMEPAGE="http://pldaniels.com/altermime/"
LICENSE="Sendmail"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
src_prepare() {
sed -i \
-e 's:-Werror::' \
-e "/^CFLAGS[[:space:]]*=/ s/-O2/${CFLAGS}/" \
-e 's/${CFLAGS} altermime.c/${CFLAGS} ${LDFLAGS} altermime.c/' \
Makefile || die
epatch "${FILESDIR}"/${P}-fprintf-fixes.patch \
"${FILESDIR}"/${P}-MIME_headers-overflow.patch
}
src_compile() {
emake CC="$(tc-getCC)" || die
}
src_install () {
dobin altermime || die
dodoc CHANGELOG README || die
}
|