blob: 0c3264f456f0b86d2da7f34047de8d04d8e37551 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="A program to convert plain text into PNG images"
HOMEPAGE="http://csl.sublevel3.org/a2png/"
SRC_URI="mirror://sourceforge/a2png/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="cairo"
DEPEND="cairo? ( media-libs/cairo )
!cairo? ( media-libs/gd )"
RDEPEND="$DEPEND"
src_compile() {
if use cairo; then
my_conf="--enable-cairo"
else
my_conf="--enable-gd"
fi
econf ${my_conf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake install DESTDIR="$D"|| die "emake install failed"
}
|