forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
epstool-3.08-r1.ebuild
44 lines (33 loc) · 930 Bytes
/
epstool-3.08-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils toolchain-funcs
DESCRIPTION="Creates or extracts preview images in EPS files, fixes bounding boxes,converts to bitmaps"
HOMEPAGE="http://www.cs.wisc.edu/~ghost/gsview/epstool.htm"
SRC_URI="ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
DEPEND="app-text/ghostscript-gpl"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/gcc43.patch
sed -i \
-e '/^CC/s/=/?=/' \
-e '/^CLINK/s/gcc/$(CC)/' \
src/unixcom.mak || die
tc-export CC
epatch_user
# parallel make issue (bug #506978)
mkdir bin || die
mkdir epsobj || die
}
src_compile() {
emake epstool
}
src_install() {
dobin bin/epstool
doman doc/epstool.1
dohtml doc/epstool.htm doc/gsview.css
}