diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-08-26 22:05:21 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-08-26 22:05:21 +0000 |
commit | f0e3186f9d72c5290c35a0d289afd35ab5a34de0 (patch) | |
tree | 9a3894f7e978e14d1947c3f106a97206656d7336 /app-text/pep/pep-2.8-r1.ebuild | |
parent | Clean up patch. Respect LDFLAGS (bug #334589). (diff) | |
download | historical-f0e3186f9d72c5290c35a0d289afd35ab5a34de0.tar.gz historical-f0e3186f9d72c5290c35a0d289afd35ab5a34de0.tar.bz2 historical-f0e3186f9d72c5290c35a0d289afd35ab5a34de0.zip |
Fix missing include. Respect LDFLAGS (bug #334607).
Package-Manager: portage-2.2_rc69/cvs/Linux i686
Diffstat (limited to 'app-text/pep/pep-2.8-r1.ebuild')
-rw-r--r-- | app-text/pep/pep-2.8-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-text/pep/pep-2.8-r1.ebuild b/app-text/pep/pep-2.8-r1.ebuild new file mode 100644 index 000000000000..10e02c3f4212 --- /dev/null +++ b/app-text/pep/pep-2.8-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/pep/pep-2.8-r1.ebuild,v 1.1 2010/08/26 22:05:21 jer Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="General purpose filter and file cleaning program" +HOMEPAGE="http://hannemyr.com/enjoy/pep.html" +SRC_URI="http://hannemyr.com/enjoy/${PN}${PV//./}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~mips ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S=${WORKDIR} + +src_prepare() { + # pep does not come with autconf so here's a patch to configure + # Makefile with the correct path + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-include.patch + # Darwin lacks stricmp + [[ ${CHOST} == *-darwin* ]] && \ + sed -i -e '/^OBJS/s/^\(.*\)$/\1 bdmg.o/' Makefile +} + +src_compile() { + [[ ${CHOST} == *-darwin* ]] && \ + append-flags "-DDIRCHAR=\\'/\\'" -DSTRICMP + # make man page too + make Doc/pep.1 || die "make man page failed" + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + dobin pep || die "dobin failed" + doman Doc/pep.1 || die "doman failed" + + insinto /usr/share/pep + doins Filters/* || die "doins failed" + + dodoc aareadme.txt file_id.diz +} |