You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-mail/altermime/altermime-0.3.7.ebuild

31 lines
770 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit 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"
KEYWORDS="amd64 ppc x86"
IUSE=""
SLOT="0"
src_unpack() {
unpack ${A}
sed -i -e "/^CFLAGS[[:space:]]*=/ s/-O2/${CFLAGS}/" \
-e 's/${CFLAGS} altermime.c/${CFLAGS} ${LDFLAGS} altermime.c/' \
"${S}"/Makefile || die "sed failed."
}
src_compile() {
emake CC="$(tc-getCC)" || die "emake failed."
}
src_install () {
dobin altermime || die "dobin failed."
dodoc CHANGELOG LICENCE README || die "dodoc failed."
}