blob: adcc2ca8c46a112035577ebdc400fe67dc23a540 (
plain)
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/autotrace/autotrace-0.31.1-r2.ebuild,v 1.1 2007/01/20 14:18:14 vapier Exp $
inherit eutils autotools
DESCRIPTION="Converts Bitmaps to vector-graphics"
SRC_URI="mirror://sourceforge/autotrace/${P}.tar.gz"
HOMEPAGE="http://autotrace.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="flash imagemagick pdf png"
DEPEND="media-libs/libexif
pdf? ( media-gfx/pstoedit )
png? ( >=media-libs/libpng-1.2.5-r4 )
flash? ( >=media-libs/ming-0.2a )
imagemagick? ( >=media-gfx/imagemagick-5.5.6-r1 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-m4.patch
epatch "${FILESDIR}"/${P}-libs.patch
epatch "${FILESDIR}"/${PN}-imagemagick.patch
use pdf || echo 'AC_DEFUN([AM_PATH_PSTOEDIT],[$3])' > acinclude.m4
eautoreconf
}
src_compile() {
econf \
$(use_with imagemagick magick) \
$(use_with pdf pstoedit) \
|| die
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README
}
|