Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocamlnet/
Date: Tue, 28 Jun 2016 15:08:01
Message-Id: 1467126458.4dd4877fe867f38cbc2229f17db2cde3fa955678.mgorny@gentoo
1 commit: 4dd4877fe867f38cbc2229f17db2cde3fa955678
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 14:54:43 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 15:07:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd4877f
7
8 dev-ml/ocamlnet: Partially revert "Clean up old"
9
10 Restore dev-ml/ocamlnet-3* package since it is required for
11 net-misc/libres3.
12
13 dev-ml/ocamlnet/Manifest | 1 +
14 dev-ml/ocamlnet/metadata.xml | 1 +
15 dev-ml/ocamlnet/ocamlnet-3.7.7.ebuild | 76 +++++++++++++++++++++++++++++++++++
16 3 files changed, 78 insertions(+)
17
18 diff --git a/dev-ml/ocamlnet/Manifest b/dev-ml/ocamlnet/Manifest
19 index ae3ae74..ad98e1a 100644
20 --- a/dev-ml/ocamlnet/Manifest
21 +++ b/dev-ml/ocamlnet/Manifest
22 @@ -1 +1,2 @@
23 +DIST ocamlnet-3.7.7.tar.gz 3357674 SHA256 5b8e464a874018c5e48fc1edc752b83e014061f19316b5b14df8422d939e7609 SHA512 b500a92e6c5dc4d96ac26352923d78cb3a8b555deda038c41860aecbd20ee9ccbcfee949014c91f1266c937ae03fadd72c322e3cbe6456d23fd20b871114df6a WHIRLPOOL ceb4a9fc5d43fe89487589ae14c4bdf58d6c3d99d3a9ebc07fa722e894106899a2ae2aca91a47338d8004017fdd0d23632e187d96ec51479b43955daddbbb893
24 DIST ocamlnet-4.1.2.tar.gz 4623183 SHA256 918c3921529cfe545e206b3535a58f43f665165044dd3548f685b583e94f14d8 SHA512 69f42042a54efd662db2217224da53513fc7e72c7b2313d4a4a1128f1b4624f4f6298434f5b19f354b832119ff151abc81e85eb0108d6eb24f30f82d176e0b4d WHIRLPOOL 27e1a8eb24361cadb8b2fb2b61bc6e93d71be8290873ca5bb1eebe16b9c9b1db69eae3b20c8deb3f6656aa79171a817b15acae53159d80ff8f4c946c201de173
25
26 diff --git a/dev-ml/ocamlnet/metadata.xml b/dev-ml/ocamlnet/metadata.xml
27 index 196389c..0aeeb6f 100644
28 --- a/dev-ml/ocamlnet/metadata.xml
29 +++ b/dev-ml/ocamlnet/metadata.xml
30 @@ -6,6 +6,7 @@
31 <name>Gentoo ML Project</name>
32 </maintainer>
33 <use>
34 + <flag name="cryptokit">Enables encryption support via <pkg>dev-ml/cryptokit</pkg></flag>
35 <flag name="httpd">Enables net-httpd web server component</flag>
36 <flag name="zip">Enables netzip support to read/write gzip data using object channels</flag>
37 </use>
38
39 diff --git a/dev-ml/ocamlnet/ocamlnet-3.7.7.ebuild b/dev-ml/ocamlnet/ocamlnet-3.7.7.ebuild
40 new file mode 100644
41 index 0000000..779f710
42 --- /dev/null
43 +++ b/dev-ml/ocamlnet/ocamlnet-3.7.7.ebuild
44 @@ -0,0 +1,76 @@
45 +# Copyright 1999-2015 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Id$
48 +
49 +EAPI="5"
50 +
51 +inherit eutils findlib
52 +
53 +MY_P=${P/_beta/test}
54 +DESCRIPTION="Modules for OCaml application-level Internet protocols"
55 +HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html"
56 +SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz"
57 +
58 +LICENSE="ZLIB GPL-2+"
59 +SLOT="0/${PV}"
60 +KEYWORDS="amd64 ppc x86 ~x86-fbsd"
61 +IUSE="cryptokit gtk ssl tk httpd +ocamlopt +pcre zip"
62 +RESTRICT="installsources"
63 +
64 +# the auth-dh compile flag has been disabled as well, since it depends on
65 +# ocaml-cryptgps, which is not available.
66 +
67 +DEPEND=">=dev-ml/findlib-1.0
68 + pcre? ( >=dev-ml/pcre-ocaml-5:= )
69 + >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
70 + tk? ( || ( dev-ml/labltk:= <dev-lang/ocaml-4.02[tk] ) )
71 + cryptokit? ( dev-ml/cryptokit:= )
72 + gtk? ( >=dev-ml/lablgtk-2:= )
73 + ssl? ( >=dev-ml/ocaml-ssl-0.4:= )
74 + zip? ( dev-ml/camlzip:= )
75 + "
76 +RDEPEND="${DEPEND}"
77 +
78 +S=${WORKDIR}/${MY_P}
79 +
80 +ocamlnet_use_with() {
81 + if use $1; then
82 + echo "-with-$2"
83 + else
84 + echo "-without-$2"
85 + fi
86 +}
87 +
88 +ocamlnet_use_enable() {
89 + if use $1; then
90 + echo "-enable-$2"
91 + else
92 + echo "-disable-$2"
93 + fi
94 +}
95 +
96 +src_configure() {
97 + ./configure \
98 + -bindir /usr/bin \
99 + -datadir /usr/share/${PN} \
100 + $(ocamlnet_use_enable cryptokit crypto) \
101 + $(ocamlnet_use_enable gtk gtk2) \
102 + $(ocamlnet_use_enable pcre pcre) \
103 + $(ocamlnet_use_enable ssl ssl) \
104 + $(ocamlnet_use_enable tk tcl) \
105 + $(ocamlnet_use_enable zip zip) \
106 + $(ocamlnet_use_with httpd nethttpd) \
107 + || die "Error : econf failed!"
108 +}
109 +
110 +src_compile() {
111 + emake -j1 all
112 + if use ocamlopt; then
113 + emake -j1 opt
114 + fi
115 +}
116 +
117 +src_install() {
118 + export STRIP_MASK="*/bin/*"
119 + findlib_src_install
120 +}