Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/gapi-ocaml/, dev-ml/gapi-ocaml/files/
Date: Wed, 27 Apr 2022 00:08:47
Message-Id: 1651018117.ba022858029a7be644aacd33d9bf86c8d2698b96.Alessandro-Barbieri@gentoo
1 commit: ba022858029a7be644aacd33d9bf86c8d2698b96
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Apr 27 00:05:48 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Wed Apr 27 00:08:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ba022858
7
8 dev-ml/gapi-ocaml: new package, add 0.4.2
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-ml/gapi-ocaml/Manifest | 1 +
13 .../gapi-ocaml/files/gapi-ocaml-0.4.2-ounit2.patch | 58 ++++++++++++++++++++++
14 dev-ml/gapi-ocaml/gapi-ocaml-0.4.2.ebuild | 33 ++++++++++++
15 dev-ml/gapi-ocaml/metadata.xml | 25 ++++++++++
16 4 files changed, 117 insertions(+)
17
18 diff --git a/dev-ml/gapi-ocaml/Manifest b/dev-ml/gapi-ocaml/Manifest
19 new file mode 100644
20 index 000000000..e804394c7
21 --- /dev/null
22 +++ b/dev-ml/gapi-ocaml/Manifest
23 @@ -0,0 +1 @@
24 +DIST gapi-ocaml-0.4.2.tar.gz 466749 BLAKE2B 6a3e66618ed9a665de2892dc7657268f3bad43b871d6d761148152d61de2d988bc13b5051e39da4d1ddad0c620237c6018b87cd2303bc086c570aa879c197e4f SHA512 57d933c2d47ef7b80cb55b661f8df1b8642ff301d54f0fd1dfd4a9bc6238a4cb93a308e6918bbbc080fac146cf5fca2ccfe149d0528a63ead5e29e452c9cc427
25
26 diff --git a/dev-ml/gapi-ocaml/files/gapi-ocaml-0.4.2-ounit2.patch b/dev-ml/gapi-ocaml/files/gapi-ocaml-0.4.2-ounit2.patch
27 new file mode 100644
28 index 000000000..36098d82e
29 --- /dev/null
30 +++ b/dev-ml/gapi-ocaml/files/gapi-ocaml-0.4.2-ounit2.patch
31 @@ -0,0 +1,58 @@
32 +diff --git a/gapi-ocaml.opam b/gapi-ocaml.opam
33 +index cb9b0fb5..923675d8 100644
34 +--- a/gapi-ocaml.opam
35 ++++ b/gapi-ocaml.opam
36 +@@ -15,7 +15,7 @@ depends: [
37 + "dune"
38 + "ocamlnet" {>= "4.1.4"}
39 + "ocurl"
40 +- "ounit" {with-test}
41 ++ "ounit2" {with-test}
42 + "yojson"
43 + ]
44 + synopsis: "A simple OCaml client for Google Services"
45 +diff --git a/src/test/dune b/src/test/dune
46 +index 5d955f42..ef45f0ce 100644
47 +--- a/src/test/dune
48 ++++ b/src/test/dune
49 +@@ -1,7 +1,7 @@
50 + (executable
51 + (name testSuite)
52 + (flags (:standard -w -3-6-23-27-32-33-50))
53 +- (libraries threads oUnit gapi-ocaml))
54 ++ (libraries threads ounit2 gapi-ocaml))
55 +
56 + (alias
57 + (name runtest)
58 +diff --git a/src/test/testSuite.ml b/src/test/testSuite.ml
59 +index 7851661e..150781f7 100644
60 +--- a/src/test/testSuite.ml
61 ++++ b/src/test/testSuite.ml
62 +@@ -76,11 +76,11 @@ let build_suite_from_list test_list =
63 +
64 + let _ =
65 + let test_list = ref (core_tests @ model_tests) in
66 +- let ounit_specs =
67 ++ let ounit2_specs =
68 + [
69 +- ("-verbose", Arg.Unit (fun _ -> ()), "See oUnit doc");
70 +- ("-only-test", Arg.String (fun _ -> ()), "See oUnit doc");
71 +- ("-list-test", Arg.String (fun _ -> ()), "See oUnit doc");
72 ++ ("-verbose", Arg.Unit (fun _ -> ()), "See ounit2 doc");
73 ++ ("-only-test", Arg.String (fun _ -> ()), "See ounit2 doc");
74 ++ ("-list-test", Arg.String (fun _ -> ()), "See ounit2 doc");
75 + ]
76 + in
77 + let arg_specs =
78 +@@ -100,9 +100,9 @@ let _ =
79 + ]
80 + in
81 + let _ =
82 +- Arg.parse (arg_specs @ ounit_specs)
83 ++ Arg.parse (arg_specs @ ounit2_specs)
84 + (fun _ -> ())
85 +- ("Usage: " ^ Sys.argv.(0) ^ " [-service svc] [-all] [oUnit arguments]")
86 ++ ("Usage: " ^ Sys.argv.(0) ^ " [-service svc] [-all] [ounit2 arguments]")
87 + in
88 + let _ =
89 + (* Reset argument counter, to let OUnit reparse arguments *)
90
91 diff --git a/dev-ml/gapi-ocaml/gapi-ocaml-0.4.2.ebuild b/dev-ml/gapi-ocaml/gapi-ocaml-0.4.2.ebuild
92 new file mode 100644
93 index 000000000..3380c8279
94 --- /dev/null
95 +++ b/dev-ml/gapi-ocaml/gapi-ocaml-0.4.2.ebuild
96 @@ -0,0 +1,33 @@
97 +# Copyright 1999-2022 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=7
101 +
102 +inherit dune findlib
103 +
104 +DESCRIPTION="A simple OCaml client for Google Services"
105 +HOMEPAGE="
106 + https://opam.ocaml.org/packages/gapi-ocaml/
107 + https://github.com/astrada/gapi-ocaml
108 +"
109 +
110 +SRC_URI="https://github.com/astrada/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
111 +
112 +LICENSE="MIT"
113 +SLOT="0"
114 +KEYWORDS="~amd64"
115 +IUSE="ocamlopt test"
116 +
117 +RDEPEND="
118 + dev-ml/ocurl:=
119 + >=dev-ml/ocamlnet-4.1.4:=
120 + dev-ml/cryptokit:=
121 + dev-ml/yojson:=
122 +"
123 +DEPEND="
124 + ${RDEPEND}
125 + test? ( dev-ml/ounit2 )
126 +"
127 +
128 +RESTRICT="!test? ( test )"
129 +PATCHES=( "${FILESDIR}/${P}-ounit2.patch" )
130
131 diff --git a/dev-ml/gapi-ocaml/metadata.xml b/dev-ml/gapi-ocaml/metadata.xml
132 new file mode 100644
133 index 000000000..6083d22a6
134 --- /dev/null
135 +++ b/dev-ml/gapi-ocaml/metadata.xml
136 @@ -0,0 +1,25 @@
137 +<?xml version="1.0" encoding="UTF8"?>
138 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
139 +<pkgmetadata>
140 + <maintainer type="person">
141 + <description>co-maintainers welcome</description>
142 + <email>lssndrbarbieri@×××××.com</email>
143 + <name>Alessandro Barbieri</name>
144 + </maintainer>
145 + <longdescription lang="en">gapi-ocaml is a simple, unofficial, OCaml client for Google Services.
146 +The library supports ClientLogin, OAuth 1.0a, and OAuth 2.0
147 +authentication. Supported RESTful APIs: Calendar APIs v3, Google+ API
148 +v1, Tasks API v1, APIs Discovery Service v1, URL Shortener API v1,
149 +OAuth2 API v2, Custom Search API v1, Google Analytics API v3, Page
150 +Speed Online API v1, Blogger API v2, Site Verification API v1, AdSense
151 +Management API v1.4, BigQuery API v2, Drive API v2, Drive API v3,
152 +Gmail API v1.</longdescription>
153 + <upstream>
154 + <bugs-to>https://github.com/astrada/gapi-ocaml/issues</bugs-to>
155 + <remote-id type="github">astrada/gapi-ocaml</remote-id>
156 + <maintainer>
157 + <name>Alessandro Strada</name>
158 + <email>alessandro.strada@×××××.com</email>
159 + </maintainer>
160 + </upstream>
161 +</pkgmetadata>