--- jpeg2ps-1.9-r1.ebuild +++ jpeg2ps-1.9-r1.ebuild @@ -1,7 +1,9 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild,v 1.18 2010/01/07 22:11:46 fauli Exp $ +EAPI=4 + inherit eutils toolchain-funcs DESCRIPTION="Converts JPEG images to Postscript using a wrapper" @@ -16,25 +18,25 @@ DEPEND="sys-apps/sed" RDEPEND="" -src_unpack() { - unpack ${A} - +src_prepare() { #bug 105561 epatch "${FILESDIR}"/${P}-include.diff + sed -i -e "/^LDFLAGS/d" Makefile || die "sed Makefile failed" } src_compile() { pagesize="" use metric && pagesize="-DA4" - emake CFLAGS="-c ${CFLAGS} ${pagesize}" CC="$(tc-getCC)" || die "emake failed" + # LD=$(tc-getCC) is not a typo - broken Makefile + emake CFLAGS="-c ${CFLAGS} ${pagesize}" CC="$(tc-getCC)" LD="$(tc-getCC)" } src_install() { # The Makefile is hard-coded to install to /usr/local/ so we # simply copy the files manually - dobin jpeg2ps || die "dobin failed" - doman jpeg2ps.1 || die "doman failed" - dodoc jpeg2ps.txt || die "dodoc failed" + dobin jpeg2ps + doman jpeg2ps.1 + dodoc jpeg2ps.txt } pkg_postinst() {