blob: b69256d23e50c8a9a10dd203c05e5da10a76c138 (
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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/llpp/llpp-0_p20110202.ebuild,v 1.2 2011/02/17 14:08:38 xmw Exp $
EAPI=3
inherit toolchain-funcs
DESCRIPTION="a graphical PDF viewer which aims to superficially resemble less(1)"
HOMEPAGE="http://repo.or.cz/w/llpp.git"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-text/mupdf-0.7_p20110212
dev-ml/lablgl[glut]
media-libs/jbig2dec
media-libs/openjpeg
x11-misc/xsel"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}
src_compile() {
ocamlopt -c -o link.o -ccopt -O link.c || die
ocamlopt -c -o main.cmo -I +lablGL main.ml || die
ocamlopt -o llpp \
-I +lablGL str.cmxa unix.cmxa lablgl.cmxa lablglut.cmxa link.o \
-cclib "-lmupdf -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype -lpthread" \
main.cmx || die
}
src_install() {
dobin ${PN} || die
dodoc KEYS Thanks fixme || die
}
|