summaryrefslogtreecommitdiff
blob: ccc7d20a5ac44e172f12967fb6f7b9530f3302ae (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/clibpdf/clibpdf-202_p1.ebuild,v 1.3 2004/11/01 19:31:09 pylon Exp $

inherit flag-o-matic eutils

DESCRIPTION="ANSI C Library for Direct PDF Generation"
HOMEPAGE="http://www.fastio.com/"
SRC_URI_FN="clibpdf${PV/_p/r}.tar.gz"
SRC_URI="http://www.fastio.com/${SRC_URI_FN}
		mirror://gentoo/${P}-buildfix.patch.gz
		http://dev.gentoo.org/~robbat2/distfiles/${P}-buildfix.patch.gz"
LICENSE="clibpdf"
SLOT="0"
KEYWORDS="~x86 ppc"
IUSE=""
DEPEND="virtual/libc sys-devel/gcc"
MY_PN="ClibPDF"
S=${WORKDIR}/${MY_PN}

src_unpack() {
	unpack ${SRC_URI_FN}
	epatch ${DISTDIR}/${P}-buildfix.patch.gz
}

src_compile() {
	append-flags -Wall -DLinux
	use ppc && append-flags -fPIC
	cd ${S}/source
	emake -f Makefile.Linux lib shlib || die "emake failed"
}

src_install() {
	dodoc ${S}/doc/* ${S}/LICENSE.pdf
	insinto /usr/share/${PN}/fonts
	doins ${S}/fonts/*
	dodir /usr/lib /usr/include
	cd ${S}/source
	make -f Makefile.Linux LIB_DIR="${D}/usr/lib" INCLUDE_DIR="${D}/usr/include" install shinstall
}