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/dns-async/
Date: Tue, 25 Jul 2017 13:36:53
Message-Id: 1500988342.bab014d246eef6fc26d05c74e95393f4e5fd28e1.aballier@gentoo
1 commit: bab014d246eef6fc26d05c74e95393f4e5fd28e1
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 25 13:05:50 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 25 13:12:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bab014d2
7
8 dev-ml/dns-async: import split package from ocaml-dns
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-ml/dns-async/Manifest | 1 +
13 dev-ml/dns-async/dns-async-1.0.0.ebuild | 51 +++++++++++++++++++++++++++++++++
14 dev-ml/dns-async/metadata.xml | 11 +++++++
15 3 files changed, 63 insertions(+)
16
17 diff --git a/dev-ml/dns-async/Manifest b/dev-ml/dns-async/Manifest
18 new file mode 100644
19 index 00000000000..467ed0a3eec
20 --- /dev/null
21 +++ b/dev-ml/dns-async/Manifest
22 @@ -0,0 +1 @@
23 +DIST ocaml-dns-1.0.0.tar.gz 99161 SHA256 823410badaf2faf54ca8a59472b0ad82c4db9fe4ef92f6809061baa826851226 SHA512 199653605e985851dcaafc94f1efeba5c261c29cd5e5f8eaebc9f7d25a05c43adcf7620efb291b22f9549f7c05f8ac3f6abfbcf40e0d7762bd2f7cd623ebcb1c WHIRLPOOL e7c26857270d92be2e8e068ac29119ef5d82d52fd739b8304e84c595d6a6e7fc11c22ed98e4a6d99a20f4e9d1d6b28dbc76c333d6b464bbd1dc4d37597cfe66c
24
25 diff --git a/dev-ml/dns-async/dns-async-1.0.0.ebuild b/dev-ml/dns-async/dns-async-1.0.0.ebuild
26 new file mode 100644
27 index 00000000000..795bfc36e68
28 --- /dev/null
29 +++ b/dev-ml/dns-async/dns-async-1.0.0.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +
36 +inherit findlib
37 +
38 +MY_P=ocaml-dns-${PV}
39 +
40 +DESCRIPTION="Async support of OCaml DNS"
41 +HOMEPAGE="https://github.com/mirage/ocaml-dns https://mirage.io"
42 +SRC_URI="https://github.com/mirage/ocaml-dns/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
43 +
44 +LICENSE="LGPL-2 LGPL-2.1-with-linking-exception ISC"
45 +SLOT="0/${PV}"
46 +KEYWORDS="~amd64"
47 +IUSE="test"
48 +
49 +RDEPEND="
50 + >=dev-lang/ocaml-4:=
51 + dev-ml/async:=
52 + dev-ml/ocaml-dns:=
53 +"
54 +DEPEND="
55 + dev-ml/jbuilder
56 + dev-ml/opam
57 + test? (
58 + dev-ml/dns-lwt-unix
59 + )
60 + ${RDEPEND}
61 +"
62 +# Do not work
63 +RESTRICT="test"
64 +
65 +S="${WORKDIR}/${MY_P}"
66 +
67 +src_compile() {
68 + jbuilder build @install -p ${PN} || die
69 +}
70 +
71 +src_test() {
72 + jbuilder runtest -p ${PN} || die
73 +}
74 +
75 +src_install() {
76 + opam-installer -i \
77 + --prefix="${ED}/usr" \
78 + --libdir="${D}/$(ocamlc -where)" \
79 + --docdir="${ED}/usr/share/doc/${PF}" \
80 + ${PN}.install || die
81 +}
82
83 diff --git a/dev-ml/dns-async/metadata.xml b/dev-ml/dns-async/metadata.xml
84 new file mode 100644
85 index 00000000000..2f4ef14adaa
86 --- /dev/null
87 +++ b/dev-ml/dns-async/metadata.xml
88 @@ -0,0 +1,11 @@
89 +<?xml version="1.0" encoding="UTF-8"?>
90 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
91 +<pkgmetadata>
92 + <maintainer type="project">
93 + <email>ml@g.o</email>
94 + <name>Gentoo ML Project</name>
95 + </maintainer>
96 + <upstream>
97 + <remote-id type="github">mirage/ocaml-dns</remote-id>
98 + </upstream>
99 +</pkgmetadata>