Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/haxe/
Date: Sun, 05 Dec 2021 04:53:43
Message-Id: 1638680017.02af94460898b909beb71c12248d67418b68e589.xgqt@gentoo
1 commit: 02af94460898b909beb71c12248d67418b68e589
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 5 04:40:00 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 5 04:53:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02af9446
7
8 dev-lang/haxe: new package; add version 4.2.4
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 dev-lang/haxe/Manifest | 1 +
14 dev-lang/haxe/haxe-4.2.4.ebuild | 60 +++++++++++++++++++++++++++++++++++++++++
15 dev-lang/haxe/metadata.xml | 19 +++++++++++++
16 3 files changed, 80 insertions(+)
17
18 diff --git a/dev-lang/haxe/Manifest b/dev-lang/haxe/Manifest
19 new file mode 100644
20 index 000000000000..dacd6fc5c9fe
21 --- /dev/null
22 +++ b/dev-lang/haxe/Manifest
23 @@ -0,0 +1 @@
24 +DIST haxe-4.2.4.tar.gz 9151011 BLAKE2B 76e4442dbd33669abb2defcb66a781bf013ac41a4853f7911824e16816c60fff7e46bd58b9f2830194326aadbd79b2f07ab14308efdb0ef1e26177178daf3941 SHA512 c447b2fa7e7b7149a87af2dd75e08cce1b8d96238b88024d875659add62fa97d554ecd7f13200b817545eda8be00d61399551d64f7dbc9cc1aa66a5517dd2485
25
26 diff --git a/dev-lang/haxe/haxe-4.2.4.ebuild b/dev-lang/haxe/haxe-4.2.4.ebuild
27 new file mode 100644
28 index 000000000000..3a305a28ad8b
29 --- /dev/null
30 +++ b/dev-lang/haxe/haxe-4.2.4.ebuild
31 @@ -0,0 +1,60 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DESCRIPTION="Multi-target universal programming language"
38 +HOMEPAGE="https://haxe.org/"
39 +
40 +if [[ "${PV}" == *9999* ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/HaxeFoundation/haxe.git"
43 +else
44 + # Haxe-debian already contains correct git modules
45 + SRC_URI="https://github.com/HaxeFoundation/haxe-debian/archive/upstream/${PV}.tar.gz -> ${P}.tar.gz"
46 + KEYWORDS="~amd64"
47 + S="${WORKDIR}/haxe-debian-upstream-${PV}"
48 +fi
49 +
50 +LICENSE="GPL-2+ MIT"
51 +SLOT="0/${PV}"
52 +IUSE="+ocamlopt"
53 +
54 +RDEPEND="
55 + >=dev-lang/ocaml-4:=[ocamlopt?]
56 + dev-ml/extlib:=
57 + dev-ml/ptmap:=
58 + dev-ml/sedlex:=
59 + dev-ml/ocaml-sha:=
60 + dev-ml/xml-light:=
61 +
62 + dev-lang/neko:=
63 + dev-libs/boehm-gc:=
64 + dev-libs/libpcre:=
65 + net-libs/mbedtls:=
66 + sys-libs/zlib:=
67 +"
68 +DEPEND="${RDEPEND}"
69 +
70 +QA_FLAGS_IGNORED="usr/bin/haxelib"
71 +QA_PRESTRIPPED="usr/bin/haxelib"
72 +
73 +src_configure() {
74 + use ocamlopt && export OCAMLOPT=ocamlopt.opt
75 +}
76 +
77 +src_compile() {
78 + local mymakeargs=(
79 + BRANCH=""
80 + COMMIT_DATE=""
81 + COMMIT_SHA=""
82 + INSTALL_DIR=/usr
83 + )
84 + emake -j1
85 +}
86 +
87 +src_install() {
88 + emake DESTDIR="${D}" INSTALL_DIR=/usr install
89 +
90 + dodoc *.md
91 +}
92
93 diff --git a/dev-lang/haxe/metadata.xml b/dev-lang/haxe/metadata.xml
94 new file mode 100644
95 index 000000000000..d00b93a2d21b
96 --- /dev/null
97 +++ b/dev-lang/haxe/metadata.xml
98 @@ -0,0 +1,19 @@
99 +<?xml version="1.0" encoding="UTF-8"?>
100 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
101 +
102 +<pkgmetadata>
103 + <maintainer type="project">
104 + <email>ml@g.o</email>
105 + <name>ML</name>
106 + </maintainer>
107 + <longdescription>
108 + Haxe is an open source toolkit based on a modern, high level, static-typed
109 + programming language, a cross-compiler, a complete cross-platform standard
110 + library and ways to access each platform's native capabilities.
111 + </longdescription>
112 + <upstream>
113 + <bugs-to>https://github.com/HaxeFoundation/haxe</bugs-to>
114 + <remote-id type="github">HaxeFoundation/haxe-debian</remote-id>
115 + <remote-id type="github">HaxeFoundation/haxe</remote-id>
116 + </upstream>
117 +</pkgmetadata>