Line
Link Here
|
0 |
-- jpeg2ps-1.9-r1.ebuild |
0 |
++ jpeg2ps-1.9-r1.ebuild |
Lines 1-7
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild,v 1.18 2010/01/07 22:11:46 fauli Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild,v 1.18 2010/01/07 22:11:46 fauli Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=4 |
6 |
|
5 |
inherit eutils toolchain-funcs |
7 |
inherit eutils toolchain-funcs |
6 |
|
8 |
|
7 |
DESCRIPTION="Converts JPEG images to Postscript using a wrapper" |
9 |
DESCRIPTION="Converts JPEG images to Postscript using a wrapper" |
Lines 16-40
Link Here
|
16 |
DEPEND="sys-apps/sed" |
18 |
DEPEND="sys-apps/sed" |
17 |
RDEPEND="" |
19 |
RDEPEND="" |
18 |
|
20 |
|
19 |
src_unpack() { |
21 |
src_prepare() { |
20 |
unpack ${A} |
|
|
21 |
|
22 |
#bug 105561 |
22 |
#bug 105561 |
23 |
epatch "${FILESDIR}"/${P}-include.diff |
23 |
epatch "${FILESDIR}"/${P}-include.diff |
|
|
24 |
sed -i -e "/^LDFLAGS/d" Makefile || die "sed Makefile failed" |
24 |
} |
25 |
} |
25 |
|
26 |
|
26 |
src_compile() { |
27 |
src_compile() { |
27 |
pagesize="" |
28 |
pagesize="" |
28 |
use metric && pagesize="-DA4" |
29 |
use metric && pagesize="-DA4" |
29 |
emake CFLAGS="-c ${CFLAGS} ${pagesize}" CC="$(tc-getCC)" || die "emake failed" |
30 |
# LD=$(tc-getCC) is not a typo - broken Makefile |
|
|
31 |
emake CFLAGS="-c ${CFLAGS} ${pagesize}" CC="$(tc-getCC)" LD="$(tc-getCC)" |
30 |
} |
32 |
} |
31 |
|
33 |
|
32 |
src_install() { |
34 |
src_install() { |
33 |
# The Makefile is hard-coded to install to /usr/local/ so we |
35 |
# The Makefile is hard-coded to install to /usr/local/ so we |
34 |
# simply copy the files manually |
36 |
# simply copy the files manually |
35 |
dobin jpeg2ps || die "dobin failed" |
37 |
dobin jpeg2ps |
36 |
doman jpeg2ps.1 || die "doman failed" |
38 |
doman jpeg2ps.1 |
37 |
dodoc jpeg2ps.txt || die "dodoc failed" |
39 |
dodoc jpeg2ps.txt |
38 |
} |
40 |
} |
39 |
|
41 |
|
40 |
pkg_postinst() { |
42 |
pkg_postinst() { |