Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/findlib/, dev-ml/findlib/files/
Date: Mon, 28 Nov 2016 13:28:57
Message-Id: 1480339723.4d80450fff55837ce11949174574bb5fab04feda.aballier@gentoo
1 commit: 4d80450fff55837ce11949174574bb5fab04feda
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 11:11:07 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 13:28:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d80450f
7
8 dev-ml/findlib: bump to 1.7.1
9
10 Package-Manager: portage-2.3.2
11
12 dev-ml/findlib/Manifest | 1 +
13 dev-ml/findlib/files/externalmeta4.patch | 16 +++++++
14 dev-ml/findlib/findlib-1.7.1.ebuild | 75 ++++++++++++++++++++++++++++++++
15 3 files changed, 92 insertions(+)
16
17 diff --git a/dev-ml/findlib/Manifest b/dev-ml/findlib/Manifest
18 index 4c32d7e..186892b 100644
19 --- a/dev-ml/findlib/Manifest
20 +++ b/dev-ml/findlib/Manifest
21 @@ -3,3 +3,4 @@ DIST findlib-1.5.6.tar.gz 250865 SHA256 7743b3dcaf8a344c882e89f61601f7f086d46c0f
22 DIST findlib-1.6.1.tar.gz 254797 SHA256 411c816e89d17d1b5b454e3d42f9b261cf929fc468f9f6e2787273ab69784b09 SHA512 b781d117ff033e8b91b6610c562382c5868a25ceed51f0a5947a77bfdd5825723ad32adcbe1636d4f7952d4c7535093f5c8ad3b954bebb1dcf4738f7a16d3ef8 WHIRLPOOL 1c3ed89aeb53cd95c0eaa82f1df8c364ad79403cf89ca19245620819998353da089daf5d3377919f2b4676c48f4d926d384e5a80312884f84e1efc41307f88fd
23 DIST findlib-1.6.2.tar.gz 253764 SHA256 3917904342ffbb66089f9fec1adc023b8854178bc21f303e4cbf96b8b164c946 SHA512 8c4098e6956530bc88d20a1b91512c68368e8a866398ce4d504afe3f71e81124c01644ba31ff97da6e61e7410328b533fb1d31a513166231047dab1933179fc4 WHIRLPOOL a980082607ac97c738ef0899ba08af81eaa45c09a0e96f41ddfb3faaf25c77f133a3063f45a9393819e76b839b17bb10fe71613e83bfc943b4988511547eaa6b
24 DIST findlib-1.6.3.tar.gz 254512 SHA256 0f989f3f8ea69838423331c34c72a81e5422038e88c2a2bf10bc6e89869cab7e SHA512 ab23eeef3ec301f1a429934a309734386169d31d16a82706a45d9914b1fdc50f04b4fdf86f9436be3d7f0c8869b2cd9a9e07c78247e12eabdfe0738861e22035 WHIRLPOOL ae0fd2ae107d0074bbf8aefffa0facd7d9b892fc3408f94911522866d0bf8e9d7ac9e20da92e0a20b2f6cdf2f26dac6f86fd7c97231119eef890306166bcf05b
25 +DIST findlib-1.7.1.tar.gz 256883 SHA256 5d4b9a79e9abf8be0b509f6b8cf5696221cbe14fa2fbb2bb352342755fd15eef SHA512 1c8002dc2ed1804afc78c2aa92ab55d2b6501fbb021a7ca46698b4de0dea8ad6485a64f7bf9ec5f3df888da1a420ab270efb5e26f1e408cc8b78fa3ccb981ba4 WHIRLPOOL e58d4939277a2b37fbf0ea4055281494d6b163ba806249d8019e4f3dc8c6ca079d9e904a5de6e86fe0d8bc59ed3894c962f86d6d87512f5b80757b8a59458dd1
26
27 diff --git a/dev-ml/findlib/files/externalmeta4.patch b/dev-ml/findlib/files/externalmeta4.patch
28 new file mode 100644
29 index 00000000..a2bb494
30 --- /dev/null
31 +++ b/dev-ml/findlib/files/externalmeta4.patch
32 @@ -0,0 +1,16 @@
33 +Avoid installing META files for labltk, camlp4 and ocamlbuild: Those are provided by their
34 +respective packages now.
35 +
36 +Index: findlib-1.7.1/configure
37 +===================================================================
38 +--- findlib-1.7.1.orig/configure
39 ++++ findlib-1.7.1/configure
40 +@@ -539,7 +539,7 @@ fi
41 +
42 + # Generate the META files now.
43 +
44 +-l="$ldbm dynlink graphics num num-top str threads unix stdlib bigarray ocamldoc $llabltk $lcamlp4 $lobuild $lcomplibs $lbytes $lspacetime"
45 ++l="$ldbm dynlink graphics num num-top str threads unix stdlib bigarray ocamldoc $lcomplibs $lbytes $lspacetime"
46 +
47 + for dir in site-lib-src/*; do
48 + # We do not really know if $dir is a directory.
49
50 diff --git a/dev-ml/findlib/findlib-1.7.1.ebuild b/dev-ml/findlib/findlib-1.7.1.ebuild
51 new file mode 100644
52 index 00000000..ca13ef7
53 --- /dev/null
54 +++ b/dev-ml/findlib/findlib-1.7.1.ebuild
55 @@ -0,0 +1,75 @@
56 +# Copyright 1999-2016 Gentoo Foundation
57 +# Distributed under the terms of the GNU General Public License v2
58 +# $Id$
59 +
60 +EAPI=5
61 +
62 +inherit multilib eutils
63 +
64 +DESCRIPTION="OCaml tool to find/use non-standard packages"
65 +HOMEPAGE="http://projects.camlcity.org/projects/findlib.html"
66 +SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
67 +IUSE="doc +ocamlopt tk"
68 +
69 +LICENSE="MIT"
70 +
71 +SLOT="0"
72 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
73 +
74 +DEPEND=">=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?]
75 + tk? ( dev-ml/labltk:= )"
76 +RDEPEND="${DEPEND}"
77 +
78 +ocamlfind_destdir="${EPREFIX}/usr/$(get_libdir)/ocaml"
79 +stublibs="${ocamlfind_destdir}/stublibs"
80 +
81 +src_prepare() {
82 + epatch "${FILESDIR}/externalmeta4.patch"
83 +}
84 +
85 +src_configure() {
86 + local myconf
87 + use tk && myconf="-with-toolbox"
88 + ./configure -bindir "${EPREFIX}"/usr/bin -mandir "${EPREFIX}"/usr/share/man \
89 + -sitelib ${ocamlfind_destdir} \
90 + -config ${ocamlfind_destdir}/findlib/findlib.conf \
91 + -no-custom \
92 + ${myconf} || die "configure failed"
93 +}
94 +
95 +src_compile() {
96 + emake -j1 all
97 + if use ocamlopt; then
98 + emake -j1 opt # optimized code
99 + fi
100 +}
101 +
102 +src_install() {
103 + emake prefix="${D}" install
104 +
105 + dodir "${stublibs#${EPREFIX}}"
106 +
107 + cd "${S}/doc"
108 + dodoc QUICKSTART README DOCINFO
109 + use doc && dohtml -r ref-html guide-html
110 +}
111 +
112 +check_stublibs() {
113 + local ocaml_stdlib=`ocamlc -where`
114 + local ldconf="${ocaml_stdlib}/ld.conf"
115 +
116 + if [ ! -e ${ldconf} ]
117 + then
118 + echo "${ocaml_stdlib}" > ${ldconf}
119 + echo "${ocaml_stdlib}/stublibs" >> ${ldconf}
120 + fi
121 +
122 + if [ -z `grep -e ${stublibs} ${ldconf}` ]
123 + then
124 + echo ${stublibs} >> ${ldconf}
125 + fi
126 +}
127 +
128 +pkg_postinst() {
129 + check_stublibs
130 +}