diff options
Diffstat (limited to 'net-mail/ripmime/ripmime-1.4.0.10.ebuild')
-rw-r--r-- | net-mail/ripmime/ripmime-1.4.0.10.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-mail/ripmime/ripmime-1.4.0.10.ebuild b/net-mail/ripmime/ripmime-1.4.0.10.ebuild new file mode 100644 index 000000000000..517f67dc46e2 --- /dev/null +++ b/net-mail/ripmime/ripmime-1.4.0.10.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="extract attachment files out of a MIME-encoded email pack" +HOMEPAGE="http://pldaniels.com/ripmime/" +SRC_URI="http://www.pldaniels.com/ripmime/${P}.tar.gz" + +LICENSE="Sendmail" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="static-libs" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.4.0.9-makefile.patch \ + "${FILESDIR}"/${PN}-1.4.0.9-buffer-overflow.patch +} + +src_compile() { + local maketargets="default solib" + use static-libs && maketargets="${maketargets} libripmime.a" + + emake CC="$(tc-getCC)" AR="$(tc-getAR)" CFLAGS="${CFLAGS}" ${maketargets} +} + +src_install() { + dobin ripmime + doman ripmime.1 + dodoc CHANGELOG INSTALL README TODO + + insinto /usr/include/ripmime + doins mime.h ripmime-api.h + + dolib.so libripmime.so.1.4.0 + dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so + dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so.1 + + if use static-libs ; then + dolib.a libripmime.a + fi +} |