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