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