summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2015-08-11 12:11:37 +0200
committerMichael Weber <xmw@gentoo.org>2015-08-11 12:11:37 +0200
commit12c61a248f47a9d53ac26cbe0f9afaca041515bb (patch)
tree14fefecfba20e17cf74c788ad50a7c591009d750 /app-text
parentpp-text/mupdf: x86 stable (bug 528680). (diff)
downloadgentoo-12c61a248f47a9d53ac26cbe0f9afaca041515bb.tar.gz
gentoo-12c61a248f47a9d53ac26cbe0f9afaca041515bb.tar.bz2
gentoo-12c61a248f47a9d53ac26cbe0f9afaca041515bb.zip
app-text/llpp: drop old.
Package-Manager: portage-2.2.20
Diffstat (limited to 'app-text')
-rw-r--r--app-text/llpp/Manifest5
-rw-r--r--app-text/llpp/files/llpp-11-WM_CLASS.patch42
-rw-r--r--app-text/llpp/llpp-13_p20121123.ebuild53
-rw-r--r--app-text/llpp/llpp-15.ebuild86
-rw-r--r--app-text/llpp/llpp-17_p20140112.ebuild87
-rw-r--r--app-text/llpp/llpp-18.ebuild87
-rw-r--r--app-text/llpp/llpp-19.ebuild89
7 files changed, 0 insertions, 449 deletions
diff --git a/app-text/llpp/Manifest b/app-text/llpp/Manifest
index 55aacfd72f83..ec7ef24bd766 100644
--- a/app-text/llpp/Manifest
+++ b/app-text/llpp/Manifest
@@ -1,8 +1,3 @@
-DIST llpp-13_p20121123.tar.gz 110436 SHA256 367c01e14478b18c39a34bc515f495b980789e536744e7b698d1639e6935eb35 SHA512 2c8f47adb619416743eb2ee9f43df38989af4e255626810bc9ac34020e37d5e6637589a4e20324184184c1da21d2ed9c3f6083d02cc98a8364946091831edc60 WHIRLPOOL e8ccfbf7a6c782913ea8ba4851b42f30eba171f0c03a14946697e0763f4b95c0f56e629d0d1747f169b6bb138cedbe0bb2487012d9e1b76a902722aaf6866c59
-DIST llpp-15.tar.gz 109546 SHA256 cc415775a62144f8e4185f5d550952b6d2d573072b5b7d91bc8c09c564ce156c SHA512 96f4720f2ee0d9d2d5903ed452e7314e08d14a5806b13d439e01bfd4121fe714f5146e0cb6b33bced3c9c4b652ed8c9334070643e66276f07ea9e9b50d8b5b93 WHIRLPOOL 097871bcb121807eb1d5211254e8670c0cc08eb79787d9255217d10841a0e2436ee50194f038023efa052a4db4e5ac251dd88215ef44ae966689ff03cf79252a
-DIST llpp-17_p20140112.tar.gz 118951 SHA256 7d1ae89762054d9cb4fc06af11f766ab1c638ed230213dbcf36837b9379cc612 SHA512 38249f67a7151622833cba7e19de218f43110724ca9a304f4b80ac95661c71d01a1024fac30cf66c5013669545fb08bf320225d9463d2c31844446dc3c99de0c WHIRLPOOL c67b3e60bce82dc142624d3183144230d5a42921a203f19337f0a14942aec6fb395c57edf123b1d8127ce92c90df142b3caa11b4c14ec986aa2ad6d2fae6a383
-DIST llpp-18.tar.gz 119085 SHA256 fd87f99198c26071e898e65f9d7ee2b698a8a39768a44d740733ba935fb9fe4f SHA512 994d48fe690514078a708b9a52d94f96506693863ec0c277014fc2ab5b3aa831254a3b6e227524eb46d094bb06cfe3c51ec0f2dfe50cf83d6e97198e43e9cd1c WHIRLPOOL 51862737ca0144d09db19a46a456b808a9db9d2a78a637118dc4277170f43a287e1396d0634b9d90565de120bdf86a6b625c41e27b78f7fd534ca8504e380011
-DIST llpp-19.tar.gz 122875 SHA256 a050d78ac9e3ea7b3ae285e5c860a2e52b35c3533b3c705787350ad80992c64c SHA512 997f067fc8836869657db709255e7973b4b0510a1bf7e5daef4ede524d9f60921bbc3d19cf650b7554c88781da29898d2e014b3f0c4ed4f50a97277c2d828956 WHIRLPOOL 683df1615b31a416725f38763659c0dba7755bd64aab459842bfc48fe98130b834e0e219565e0ae699595100e0e577b94204721b7e33960c99fe6c4a6e1db672
DIST llpp-20_p20140818.tar.gz 127805 SHA256 959862916f6ee4261903bd8192dd7b6203cf9b5fa989b4bb3c19377e61fe23ea SHA512 f529414ce1731f2f155e80615792a1d79e62f58f40238b83f0c5fd59e65429a8a95fe02f6556e7b1c51619f0cac670494e4844b444b428ea3ddb991361268790 WHIRLPOOL e190b8bbed54b8e5157c477bc071bcb16681017838cb0c0295bccddff2244be426ff4c925c3effab43dd2939e5ceb0397e2d860c6e53538139d38f340dd05a71
DIST llpp-21.tar.gz 130945 SHA256 bb846ce57269848e830d2665400df107bc23146f4004a755e16fb70d90c3a971 SHA512 8194b9806fecf3f1387aa15f6bbff65ae72df545e8e79fa9244a0c6ea58bf0b96632db11a3abec8afe315acd88c41bd11f17c3b12cf76384b398fd4401f7a909 WHIRLPOOL c24c28df50669f5d684b58d0c90b497430e644b6ef61a9642a1da80324511657fbc01356b36a10754f658ead676105e4e46f94207bd422a462d7a56cc5eb37ef
DIST llpp-21_p20150427.tar.gz 132728 SHA256 c8f1eb8eb0f8fb2e92140be7c177be9418b7cf9641f2649e7aee82101e0f0997 SHA512 8eb3c5d21cc1ae5a1d7b6d1d28cd3f8147fba62c98456d25039c90814665afdf417bb2d3ef5eb738c2561a62454f9ce8c663444d889510609cab93deaea77e81 WHIRLPOOL 1ffe07c520393fb36801f9047aa53db8ff1c48c48885e4f1972f485470781d17673b96217ef16d4e08967f5edabe15fb20ffc1e47678ddd17ed31e53251a33eb
diff --git a/app-text/llpp/files/llpp-11-WM_CLASS.patch b/app-text/llpp/files/llpp-11-WM_CLASS.patch
deleted file mode 100644
index 1e767ad918fe..000000000000
--- a/app-text/llpp/files/llpp-11-WM_CLASS.patch
+++ /dev/null
@@ -1,42 +0,0 @@
---- llpp/link.c
-+++ llpp/link.c
-@@ -2792,6 +2792,32 @@
- CAMLreturn (Val_unit);
- }
-
-+#if !defined (_WIN32) && !defined (__APPLE__)
-+#undef pixel
-+#include <X11/X.h>
-+#include <X11/Xlib.h>
-+#include <X11/Xutil.h>
-+#include <GL/glx.h>
-+
-+static void set_wm_class (void)
-+{
-+ Display *dpy;
-+ Window win;
-+ int screen;
-+ XClassHint hint;
-+
-+ dpy = XOpenDisplay (getenv ("DISPLAY"));
-+ screen = DefaultScreen (dpy);
-+ hint.res_name = "llpp";
-+ hint.res_class = "llpp";
-+ win = glXGetCurrentDrawable ();
-+ XSetClassHint (dpy, win, &hint);
-+ XCloseDisplay (dpy);
-+}
-+#else
-+#define set_wm_class()
-+#endif
-+
- CAMLprim value ml_init (value pipe_v, value params_v)
- {
- CAMLparam2 (pipe_v, params_v);
-@@ -2852,5 +2878,6 @@
- errx (1, "pthread_create: %s", strerror (ret));
- }
-
-+ set_wm_class ();
- CAMLreturn (Val_unit);
- }
diff --git a/app-text/llpp/llpp-13_p20121123.ebuild b/app-text/llpp/llpp-13_p20121123.ebuild
deleted file mode 100644
index f3f6a3051bdb..000000000000
--- a/app-text/llpp/llpp-13_p20121123.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-inherit eutils 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 ppc x86"
-IUSE=""
-
-RDEPEND="media-libs/freetype
- media-libs/jbig2dec
- media-libs/openjpeg:0
- virtual/jpeg
- x11-libs/libX11
- x11-misc/xsel"
-DEPEND="${RDEPEND}
- =app-text/mupdf-1.1_p20121127
- dev-lang/ocaml[ocamlopt]
- dev-ml/lablgl[glut]"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-11-WM_CLASS.patch
-}
-
-src_compile() {
- ocaml str.cma keystoml.ml < KEYS > help.ml || die
- printf 'let version ="%s";;\n' ${PV} >> help.ml || die
-
- local myccopt="$(freetype-config --cflags) -O -include ft2build.h -D_GNU_SOURCE"
- local mycclib="-lfitz -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype -lX11 -lpthread"
- ocamlopt.opt -c -o link.o -ccopt "${myccopt}" link.c || die
- ocamlopt.opt -c -o help.cmx help.ml || die
- ocamlopt.opt -c -o wsi.cmi wsi.mli || die
- ocamlopt.opt -c -o wsi.cmx wsi.ml || die
- ocamlopt.opt -c -o parser.cmx parser.ml || die
- ocamlopt.opt -c -o main.cmx -I +lablGL main.ml || die
- ocamlopt.opt -o llpp -I +lablGL \
- str.cmxa unix.cmxa lablgl.cmxa link.o \
- -cclib "${mycclib}" help.cmx parser.cmx wsi.cmx main.cmx || die
-}
-
-src_install() {
- dobin ${PN}
- dodoc KEYS README Thanks fixme
-}
diff --git a/app-text/llpp/llpp-15.ebuild b/app-text/llpp/llpp-15.ebuild
deleted file mode 100644
index dda82e2eb08c..000000000000
--- a/app-text/llpp/llpp-15.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils multilib toolchain-funcs vcs-snapshot
-
-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 ~ppc ~x86"
-IUSE="+ocamlopt static"
-
-LIB_DEPEND="~app-text/mupdf-1.2:=[static-libs]
- media-libs/openjpeg:0[static-libs]
- media-libs/freetype:2[static-libs]
- media-libs/jbig2dec[static-libs]
- sys-libs/zlib[static-libs]
- virtual/jpeg:0[static-libs]
- x11-libs/libX11[static-libs]"
-RDEPEND="x11-misc/xsel
- !static? ( ${LIB_DEPEND//\[static-libs]} )"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND}
- app-arch/bzip2[static-libs]
- media-libs/libXcm[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libXmu[static-libs] )
- dev-lang/ocaml[ocamlopt?]
- dev-ml/lablgl[glut,ocamlopt?]"
-
-RESTRICT="!ocamlopt? ( strip )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-11-WM_CLASS.patch
-}
-
-src_compile() {
- local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
- local cmo=$(usex ocamlopt cmx cmo)
- local cma=$(usex ocamlopt cmxa cma)
- local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE"
- if use static ; then
- local cclib=""
- local slib=""
- local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 | sed 's:-L::g') )
- for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11) -ljpeg -ljbig2dec ; do
- case ${slib} in
- -lm|-ldl|-lpthread)
- einfo "${slib}: shared"
- cclib+="${slib} " ;;
- *)
- local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
- einfo "${slib}: use ${ccnew}"
- cclib+="${ccnew} " ;;
- esac
- done
- else
- local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11) -lpthread"
- fi
-
- verbose() { echo "$@" >&2 ; "$@" || die ; }
- verbose ocaml str.cma keystoml.ml < KEYS > help.ml
- verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
- verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
- verbose ${ocaml} -c -o help.${cmo} help.ml
- verbose ${ocaml} -c -o utils.${cmo} utils.ml
- verbose ${ocaml} -c -o wsi.cmi wsi.mli
- verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
- verbose ${ocaml} -c -o parser.${cmo} parser.ml
- verbose ${ocaml} -c -o main.${cmo} -I +lablGL main.ml
- verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
- str.${cma} unix.${cma} lablgl.${cma} link.o \
- -cclib "${cclib}" \
- help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} main.${cmo}
-}
-
-src_install() {
- dobin ${PN}
- dodoc KEYS README Thanks fixme
-}
diff --git a/app-text/llpp/llpp-17_p20140112.ebuild b/app-text/llpp/llpp-17_p20140112.ebuild
deleted file mode 100644
index 3b0bea7d5a85..000000000000
--- a/app-text/llpp/llpp-17_p20140112.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils multilib toolchain-funcs vcs-snapshot
-
-DESCRIPTION="a graphical PDF viewer which aims to superficially resemble less(1)"
-HOMEPAGE="http://repo.or.cz/w/llpp.git"
-#SRC_URI="http://repo.or.cz/w/llpp.git/snapshot/db515851a5cf04ecb4c06311c79ce9685324bc81.tar.gz -> ${P}.tar.gz"
-SRC_URI="http://dev.gentoo.org/~xmw/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE="+ocamlopt static"
-
-LIB_DEPEND="~app-text/mupdf-1.3_p20140118:=[static-libs]
- media-libs/openjpeg:2[static-libs]
- media-libs/freetype:2[static-libs]
- media-libs/jbig2dec[static-libs]
- sys-libs/zlib[static-libs]
- virtual/jpeg:0[static-libs]
- x11-libs/libX11[static-libs]"
-RDEPEND="x11-misc/xsel
- !static? ( ${LIB_DEPEND//\[static-libs]} )"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND}
- app-arch/bzip2[static-libs]
- media-libs/libXcm[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libXmu[static-libs] )
- dev-lang/ocaml[ocamlopt?]
- dev-ml/lablgl[glut,ocamlopt?]"
-
-RESTRICT="!ocamlopt? ( strip )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-11-WM_CLASS.patch
-}
-
-src_compile() {
- local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
- local cmo=$(usex ocamlopt cmx cmo)
- local cma=$(usex ocamlopt cmxa cma)
- local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE"
- if use static ; then
- local cclib=""
- local slib=""
- local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 | sed 's:-L::g') )
- for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11) -ljpeg -ljbig2dec ; do
- case ${slib} in
- -lm|-ldl|-lpthread)
- einfo "${slib}: shared"
- cclib+="${slib} " ;;
- *)
- local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
- einfo "${slib}: use ${ccnew}"
- cclib+="${ccnew} " ;;
- esac
- done
- else
- local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11) -lpthread"
- fi
-
- verbose() { echo "$@" >&2 ; "$@" || die ; }
- verbose ocaml str.cma keystoml.ml < KEYS > help.ml
- verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
- verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
- verbose ${ocaml} -c -o help.${cmo} help.ml
- verbose ${ocaml} -c -o utils.${cmo} utils.ml
- verbose ${ocaml} -c -o wsi.cmi wsi.mli
- verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
- verbose ${ocaml} -c -o parser.${cmo} parser.ml
- verbose ${ocaml} -c -o main.${cmo} -I +lablGL main.ml
- verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
- str.${cma} unix.${cma} lablgl.${cma} link.o \
- -cclib "${cclib}" \
- help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} main.${cmo}
-}
-
-src_install() {
- dobin ${PN}
- dodoc KEYS README Thanks fixme
-}
diff --git a/app-text/llpp/llpp-18.ebuild b/app-text/llpp/llpp-18.ebuild
deleted file mode 100644
index 4bfb26a9760c..000000000000
--- a/app-text/llpp/llpp-18.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils multilib toolchain-funcs vcs-snapshot
-
-DESCRIPTION="graphical PDF viewer which aims to superficially resemble less(1)"
-HOMEPAGE="http://repo.or.cz/w/llpp.git"
-#SRC_URI="http://repo.or.cz/w/llpp.git/snapshot/23585c732e608b486dffd2c210dc2cab43b1d4cb.tar.gz -> ${P}.tar.gz"
-SRC_URI="http://dev.gentoo.org/~xmw/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="+ocamlopt static"
-
-LIB_DEPEND=">app-text/mupdf-1.3_p20140118:0=[static-libs]
- media-libs/openjpeg:2[static-libs]
- media-libs/freetype:2[static-libs]
- media-libs/jbig2dec[static-libs]
- sys-libs/zlib[static-libs]
- virtual/jpeg:0[static-libs]
- x11-libs/libX11[static-libs]"
-RDEPEND="x11-misc/xsel
- !static? ( ${LIB_DEPEND//\[static-libs]} )"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND}
- app-arch/bzip2[static-libs]
- media-libs/libXcm[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libXmu[static-libs] )
- dev-lang/ocaml[ocamlopt?]
- dev-ml/lablgl[glut,ocamlopt?]"
-
-RESTRICT="!ocamlopt? ( strip )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-11-WM_CLASS.patch
-}
-
-src_compile() {
- local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
- local cmo=$(usex ocamlopt cmx cmo)
- local cma=$(usex ocamlopt cmxa cma)
- local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE"
- if use static ; then
- local cclib=""
- local slib=""
- local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 | sed 's:-L::g') )
- for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11) -ljpeg -ljbig2dec ; do
- case ${slib} in
- -lm|-ldl|-lpthread)
- einfo "${slib}: shared"
- cclib+="${slib} " ;;
- *)
- local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
- einfo "${slib}: use ${ccnew}"
- cclib+="${ccnew} " ;;
- esac
- done
- else
- local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11) -lpthread"
- fi
-
- verbose() { echo "$@" >&2 ; "$@" || die ; }
- verbose ocaml str.cma keystoml.ml < KEYS > help.ml
- verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
- verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
- verbose ${ocaml} -c -o help.${cmo} help.ml
- verbose ${ocaml} -c -o utils.${cmo} utils.ml
- verbose ${ocaml} -c -o wsi.cmi wsi.mli
- verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
- verbose ${ocaml} -c -o parser.${cmo} parser.ml
- verbose ${ocaml} -c -o main.${cmo} -I +lablGL main.ml
- verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
- str.${cma} unix.${cma} lablgl.${cma} link.o \
- -cclib "${cclib}" \
- help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} main.${cmo}
-}
-
-src_install() {
- dobin ${PN}
- dodoc KEYS README Thanks fixme
-}
diff --git a/app-text/llpp/llpp-19.ebuild b/app-text/llpp/llpp-19.ebuild
deleted file mode 100644
index e3dcb62ac86a..000000000000
--- a/app-text/llpp/llpp-19.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils multilib toolchain-funcs vcs-snapshot
-
-DESCRIPTION="graphical PDF viewer which aims to superficially resemble less(1)"
-HOMEPAGE="http://repo.or.cz/w/llpp.git"
-SRC_URI="http://repo.or.cz/w/llpp.git/snapshot/7311f1b13aaf010525c477934fe1ea49ae733625.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="+ocamlopt static"
-
-LIB_DEPEND=">=app-text/mupdf-1.5:0=[static-libs]
- media-libs/openjpeg:2[static-libs]
- media-libs/fontconfig:1.0[static-libs]
- media-libs/freetype:2[static-libs]
- media-libs/jbig2dec[static-libs]
- sys-libs/zlib[static-libs]
- virtual/jpeg:0[static-libs]
- x11-libs/libX11[static-libs]"
-RDEPEND="x11-misc/xsel
- !static? ( ${LIB_DEPEND//\[static-libs]} )"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND}
- app-arch/bzip2[static-libs]
- media-libs/libXcm[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libXmu[static-libs] )
- dev-lang/ocaml[ocamlopt?]
- dev-ml/lablgl[glut,ocamlopt?]"
-
-RESTRICT="!ocamlopt? ( strip )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-11-WM_CLASS.patch
-}
-
-src_compile() {
- local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
- local cmo=$(usex ocamlopt cmx cmo)
- local cma=$(usex ocamlopt cmxa cma)
- local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG"
- if use static ; then
- local cclib=""
- local slib=""
- local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 | sed 's:-L::g') )
- ewarn ${spath}
- for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11 fontconfig) -ljpeg -ljbig2dec ; do
- case ${slib} in
- -lm|-ldl|-lpthread)
- einfo "${slib}: shared"
- cclib+="${slib} " ;;
- *)
- local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
- einfo "${slib}: use ${ccnew}"
- cclib+="${ccnew} " ;;
- esac
- done
- else
- local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11 fontconfig) -lpthread"
- fi
-
- verbose() { echo "$@" >&2 ; "$@" || die ; }
- verbose ocaml str.cma keystoml.ml < KEYS > help.ml
- verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
- verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
- verbose ${ocaml} -c -o help.${cmo} help.ml
- verbose ${ocaml} -c -o utils.${cmo} utils.ml
- verbose ${ocaml} -c -o wsi.cmi wsi.mli
- verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
- verbose ${ocaml} -c -o parser.${cmo} parser.ml
- verbose ${ocaml} -c -o config.${cmo} -I +lablGL config.ml
- verbose ${ocaml} -c -o main.${cmo} -I +lablGL main.ml
- verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
- str.${cma} unix.${cma} lablgl.${cma} link.o \
- -cclib "${cclib}" \
- help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} config.${cmo} main.${cmo}
-}
-
-src_install() {
- dobin ${PN}
- dodoc KEYS README Thanks fixme
-}