Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/llpp: llpp-21.ebuild ChangeLog
Date: Thu, 26 Feb 2015 14:31:39
Message-Id: 20150226143134.2BACE12992@oystercatcher.gentoo.org
1 xmw 15/02/26 14:31:34
2
3 Modified: ChangeLog
4 Added: llpp-21.ebuild
5 Log:
6 Version bump (bug 537404, thanks radhermit)
7
8 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
9
10 Revision Changes Path
11 1.65 app-text/llpp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/llpp/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 9 Dec 2014 05:48:22 -0000 1.64
24 +++ ChangeLog 26 Feb 2015 14:31:34 -0000 1.65
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-text/llpp
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/llpp/ChangeLog,v 1.64 2014/12/09 05:48:22 zlogene Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/llpp/ChangeLog,v 1.65 2015/02/26 14:31:34 xmw Exp $
31 +
32 +*llpp-21 (26 Feb 2015)
33 +
34 + 26 Feb 2015; Michael Weber <xmw@g.o> +llpp-21.ebuild:
35 + Version bump (bug 537404, thanks radhermit)
36
37 09 Dec 2014; Mikle Kolyada <zlogene@g.o> llpp-17_p20140112.ebuild:
38 x86 stable wrt bug #472532
39
40
41
42 1.1 app-text/llpp/llpp-21.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/llpp-21.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/llpp-21.ebuild?rev=1.1&content-type=text/plain
46
47 Index: llpp-21.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-text/llpp/llpp-21.ebuild,v 1.1 2015/02/26 14:31:34 xmw Exp $
52
53 EAPI=5
54
55 inherit eutils multilib toolchain-funcs vcs-snapshot
56
57 DESCRIPTION="graphical PDF viewer which aims to superficially resemble less(1)"
58 HOMEPAGE="http://repo.or.cz/w/llpp.git"
59 SRC_URI="http://repo.or.cz/w/llpp.git/snapshot/973e613ec9062e5c41323fc58fa3435fc6c45551.tar.gz -> ${P}.tar.gz"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="+ocamlopt static"
65 #IUSE="egl +ocamlopt static"
66
67 LIB_DEPEND=">=app-text/mupdf-1.5:0=[static-libs]
68 media-libs/openjpeg:2[static-libs]
69 media-libs/fontconfig:1.0[static-libs]
70 media-libs/freetype:2[static-libs]
71 media-libs/jbig2dec[static-libs]
72 sys-libs/zlib[static-libs]
73 virtual/jpeg:0[static-libs]
74 x11-libs/libX11[static-libs]"
75 # egl? ( media-libs/mesa[static-libs] )
76 RDEPEND="x11-misc/xsel
77 !static? ( ${LIB_DEPEND//\[static-libs]} )"
78 DEPEND="${RDEPEND}
79 static? ( ${LIB_DEPEND}
80 app-arch/bzip2[static-libs]
81 media-libs/libXcm[static-libs]
82 x11-libs/libXau[static-libs]
83 x11-libs/libXdmcp[static-libs]
84 x11-libs/libXmu[static-libs] )
85 dev-lang/ocaml[ocamlopt?]
86 dev-ml/lablgl[glut,ocamlopt?]"
87
88 RESTRICT="!ocamlopt? ( strip )"
89
90 src_prepare() {
91 epatch "${FILESDIR}"/${PN}-20-WM_CLASS.patch
92 }
93
94 src_compile() {
95 local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
96 local cmo=$(usex ocamlopt cmx cmo)
97 local cma=$(usex ocamlopt cmxa cma)
98 local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG"
99 #if use egl ; then
100 # ccopt+=" -DUSE_EGL $(pkg-config --cflags egl)"
101 # local egl="egl"
102 #fi
103 if use static ; then
104 local cclib=""
105 local slib=""
106 local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 ${egl} | sed 's:-L::g') )
107 ewarn ${spath}
108 for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11 ${egl} fontconfig) -ljpeg -ljbig2dec ; do
109 case ${slib} in
110 -lm|-ldl|-lpthread)
111 einfo "${slib}: shared"
112 cclib+="${slib} " ;;
113 *)
114 local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
115 einfo "${slib}: use ${ccnew}"
116 cclib+="${ccnew} " ;;
117 esac
118 done
119 else
120 local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11 ${egl} fontconfig) -lpthread"
121 fi
122
123 verbose() { echo "$@" >&2 ; "$@" || die ; }
124 verbose ocaml str.cma keystoml.ml < KEYS > help.ml
125 verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
126 verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
127 verbose ${ocaml} -c -o bo.${cmo} le/bo.ml
128 verbose ${ocaml} -c -o help.${cmo} help.ml
129 verbose ${ocaml} -c -o utils.${cmo} utils.ml
130 verbose ${ocaml} -c -o wsi.cmi wsi.mli
131 verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
132 verbose ${ocaml} -c -o parser.${cmo} parser.ml
133 verbose ${ocaml} -c -o config.${cmo} -I +lablGL config.ml
134 verbose ${ocaml} -c -pp "sed -f pp.sed" -o main.${cmo} -I +lablGL main.ml
135 verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
136 str.${cma} unix.${cma} lablgl.${cma} link.o \
137 -cclib "${cclib}" \
138 bo.${cmo} help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} config.${cmo} main.${cmo}
139 }
140
141 src_install() {
142 dobin ${PN} misc/${PN}ac
143 dodoc KEYS README Thanks fixme
144 }