Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/llpp/
Date: Mon, 23 Jan 2017 01:26:03
Message-Id: 1485133968.c13b35a0c103bee59fa5cb8adcb36775fc6eeac5.xmw@gentoo
1 commit: c13b35a0c103bee59fa5cb8adcb36775fc6eeac5
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 23 01:12:48 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 23 01:12:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c13b35a0
7
8 app-text/llpp: Drop live ebuild.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-text/llpp/llpp-9999.ebuild | 92 ------------------------------------------
13 1 file changed, 92 deletions(-)
14
15 diff --git a/app-text/llpp/llpp-9999.ebuild b/app-text/llpp/llpp-9999.ebuild
16 deleted file mode 100644
17 index 46ef4c6..00000000
18 --- a/app-text/llpp/llpp-9999.ebuild
19 +++ /dev/null
20 @@ -1,92 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -inherit eutils git-2 multilib toolchain-funcs
28 -
29 -DESCRIPTION="a graphical PDF viewer which aims to superficially resemble less(1)"
30 -HOMEPAGE="http://repo.or.cz/w/llpp.git"
31 -EGIT_REPO_URI="git://repo.or.cz/llpp.git"
32 -
33 -LICENSE="GPL-3"
34 -SLOT="0"
35 -KEYWORDS=""
36 -IUSE="+ocamlopt static"
37 -
38 -LIB_DEPEND=">=app-text/mupdf-1.9a:0=[static-libs]
39 - media-libs/openjpeg:2[static-libs]
40 - media-libs/fontconfig:1.0[static-libs]
41 - media-libs/freetype:2[static-libs]
42 - media-libs/jbig2dec[static-libs]
43 - sys-libs/zlib[static-libs]
44 - virtual/jpeg:0[static-libs]
45 - x11-libs/libX11[static-libs]"
46 -RDEPEND="x11-misc/xsel
47 - !static? ( ${LIB_DEPEND//\[static-libs]} )"
48 -DEPEND="${RDEPEND}
49 - static? ( ${LIB_DEPEND}
50 - app-arch/bzip2[static-libs]
51 - media-libs/libXcm[static-libs]
52 - x11-libs/libXau[static-libs]
53 - x11-libs/libXdmcp[static-libs]
54 - x11-libs/libXmu[static-libs] )
55 - >=dev-lang/ocaml-4.02[ocamlopt?]
56 - dev-ml/lablgl[glut,ocamlopt?]"
57 -
58 -RESTRICT="!ocamlopt? ( strip )"
59 -
60 -src_prepare() {
61 - epatch "${FILESDIR}"/${PN}-20-WM_CLASS.patch
62 -}
63 -
64 -src_compile() {
65 - local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
66 - local cmo=$(usex ocamlopt cmx cmo)
67 - local cma=$(usex ocamlopt cmxa cma)
68 - local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG -std=c99 -Wextra -Wall -pedantic-errors -Wunused-parameter -Wsign-compare -Wshadow"
69 - #if use egl ; then
70 - # ccopt+=" -DUSE_EGL $(pkg-config --cflags egl)"
71 - # local egl="egl"
72 - #fi
73 - if use static ; then
74 - local cclib=""
75 - local slib=""
76 - local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 ${egl} | sed 's:-L::g') )
77 - for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11 ${egl} fontconfig) -ljpeg -ljbig2dec ; do
78 - case ${slib} in
79 - -lm|-ldl|-lpthread)
80 - einfo "${slib}: shared"
81 - cclib+="${slib} " ;;
82 - *)
83 - local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
84 - einfo "${slib}: use ${ccnew}"
85 - cclib+="${ccnew} " ;;
86 - esac
87 - done
88 - else
89 - local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11 ${egl} fontconfig) -lpthread"
90 - fi
91 -
92 - verbose() { echo "$@" >&2 ; "$@" || die ; }
93 - verbose sh mkhelp.sh KEYS ${PV} > help.ml
94 - verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
95 - verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
96 - verbose ${ocaml} -c -o help.${cmo} help.ml
97 - verbose ${ocaml} -c -o utils.${cmo} utils.ml
98 - verbose ${ocaml} -c -o wsi.cmi wsi.mli
99 - verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
100 - verbose ${ocaml} -c -o parser.${cmo} parser.ml
101 - verbose ${ocaml} -c -o config.${cmo} -I +lablGL config.ml
102 - verbose ${ocaml} -c -pp "sed -f pp.sed" -o main.${cmo} -I +lablGL main.ml
103 - verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
104 - str.${cma} unix.${cma} lablgl.${cma} link.o \
105 - -cclib "${cclib}" \
106 - help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} config.${cmo} main.${cmo}
107 -}
108 -
109 -src_install() {
110 - dobin ${PN} misc/${PN}ac
111 - dodoc KEYS README Thanks fixme
112 -}