1 |
commit: 0571cb863dc907fbfc6c915cf376b4f9d272a63a |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 7 09:20:25 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 7 20:37:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0571cb86 |
7 |
|
8 |
dev-ml/ocamlnet: bump to 4.1.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-ml/ocamlnet/Manifest | 1 + |
13 |
dev-ml/ocamlnet/ocamlnet-4.1.3.ebuild | 77 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/ocamlnet/Manifest b/dev-ml/ocamlnet/Manifest |
17 |
index ae3ae742c73..ea8cb71ea58 100644 |
18 |
--- a/dev-ml/ocamlnet/Manifest |
19 |
+++ b/dev-ml/ocamlnet/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ocamlnet-4.1.2.tar.gz 4623183 SHA256 918c3921529cfe545e206b3535a58f43f665165044dd3548f685b583e94f14d8 SHA512 69f42042a54efd662db2217224da53513fc7e72c7b2313d4a4a1128f1b4624f4f6298434f5b19f354b832119ff151abc81e85eb0108d6eb24f30f82d176e0b4d WHIRLPOOL 27e1a8eb24361cadb8b2fb2b61bc6e93d71be8290873ca5bb1eebe16b9c9b1db69eae3b20c8deb3f6656aa79171a817b15acae53159d80ff8f4c946c201de173 |
22 |
+DIST ocamlnet-4.1.3.tar.gz 4553037 SHA256 8a01393ed26c5475bba89aab928e9aa8a366af1e810416d9c916265a7f1cd5c5 SHA512 683ab6f529639c9da01478ba8ba7a1bf89a418ad3872331bb3e29067c0a75ddc0db996630ce5a5dd116967d6e3e756ade02d9a78b865bbc226f95d01af9e3956 WHIRLPOOL 56f2772ea02bbf9c3166d13797083cabc8a8dad8f8c53be7796361383f7c9ff9406e0d273d402a2415b3f5437b163977ad7f5a1bfccb46994de552dd4ebd1acb |
23 |
|
24 |
diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.3.ebuild b/dev-ml/ocamlnet/ocamlnet-4.1.3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..1460d03f5cc |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/ocamlnet/ocamlnet-4.1.3.ebuild |
29 |
@@ -0,0 +1,77 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="5" |
34 |
+ |
35 |
+inherit eutils findlib |
36 |
+ |
37 |
+MY_P=${P/_beta/test} |
38 |
+DESCRIPTION="Modules for OCaml application-level Internet protocols" |
39 |
+HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html" |
40 |
+SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="ZLIB GPL-2+" |
43 |
+SLOT="0/${PV}" |
44 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
45 |
+IUSE="gtk kerberos tk httpd +ocamlopt +pcre ssl zip" |
46 |
+RESTRICT="installsources" |
47 |
+ |
48 |
+# the auth-dh compile flag has been disabled as well, since it depends on |
49 |
+# ocaml-cryptgps, which is not available. |
50 |
+ |
51 |
+RDEPEND=">=dev-ml/findlib-1.0 |
52 |
+ pcre? ( >=dev-ml/pcre-ocaml-5:= ) |
53 |
+ >=dev-lang/ocaml-3.10.2:=[ocamlopt?] |
54 |
+ tk? ( dev-ml/labltk:= ) |
55 |
+ ssl? ( net-libs/gnutls:= ) |
56 |
+ gtk? ( >=dev-ml/lablgtk-2:= ) |
57 |
+ kerberos? ( virtual/krb5 ) |
58 |
+ zip? ( dev-ml/camlzip:= ) |
59 |
+ " |
60 |
+DEPEND="${RDEPEND} |
61 |
+ virtual/pkgconfig |
62 |
+" |
63 |
+ |
64 |
+S=${WORKDIR}/${MY_P} |
65 |
+ |
66 |
+ocamlnet_use_with() { |
67 |
+ if use $1; then |
68 |
+ echo "-with-$2" |
69 |
+ else |
70 |
+ echo "-without-$2" |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+ocamlnet_use_enable() { |
75 |
+ if use $1; then |
76 |
+ echo "-enable-$2" |
77 |
+ else |
78 |
+ echo "-disable-$2" |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ ./configure \ |
84 |
+ -bindir /usr/bin \ |
85 |
+ -datadir /usr/share/${PN} \ |
86 |
+ $(ocamlnet_use_enable ssl gnutls) \ |
87 |
+ $(ocamlnet_use_enable gtk gtk2) \ |
88 |
+ $(ocamlnet_use_enable kerberos gssapi) \ |
89 |
+ $(ocamlnet_use_enable pcre pcre) \ |
90 |
+ $(ocamlnet_use_enable tk tcl) \ |
91 |
+ $(ocamlnet_use_enable zip zip) \ |
92 |
+ $(ocamlnet_use_with httpd nethttpd) \ |
93 |
+ || die "Error : econf failed!" |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ emake -j1 all |
98 |
+ if use ocamlopt; then |
99 |
+ emake -j1 opt |
100 |
+ fi |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ export STRIP_MASK="*/bin/*" |
105 |
+ findlib_src_install |
106 |
+} |