summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-07-23 15:40:53 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-07-23 16:02:12 +0200
commitc700cf1d0b620ce8ae4c7c5e67f8ed8477129406 (patch)
tree51692a372490d19aba3c0eaf86f3f5806ce840b8 /dev-lang/haxe
parentdev-lang/haxe: drop old 4.2.4-r5 (diff)
downloadgentoo-c700cf1d0b620ce8ae4c7c5e67f8ed8477129406.tar.gz
gentoo-c700cf1d0b620ce8ae4c7c5e67f8ed8477129406.tar.bz2
gentoo-c700cf1d0b620ce8ae4c7c5e67f8ed8477129406.zip
dev-lang/haxe: bump to 4.3.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/haxe')
-rw-r--r--dev-lang/haxe/Manifest1
-rw-r--r--dev-lang/haxe/haxe-4.3.1.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-lang/haxe/Manifest b/dev-lang/haxe/Manifest
index b5814f3c151e..be25493eb2af 100644
--- a/dev-lang/haxe/Manifest
+++ b/dev-lang/haxe/Manifest
@@ -1 +1,2 @@
DIST haxe-4.2.5.tar.gz 9151978 BLAKE2B da6555707e0c0c34fc9a7c987bf2258e08557acb4629422d9f50ac4c025675601ccb25cea322dad0c16a4378dc48cac8e6e6acf1b94965a7eac5261c765d4ccb SHA512 a371245f5f7c18c2d16a9c7246829225d9f03beb796cb76b0dd5011e7a5a56e25f871c8cc7257a6e6b7a855804f6e62d48c2974a9ce3f4e6591d44f06bfa65ca
+DIST haxe-4.3.1.tar.gz 8398956 BLAKE2B f665f44120fb16b0f542e63c3ca00d84e90356e9dddbf3c50332bdee3770fa83a11d273db26c392799d39f8c035f5732bf4f7092a31750f5a5766588ee8a7849 SHA512 10961e4a5d7fad6789ea4465c96149c0becfe87ad447a0d808af5771ccbd2846b2e6715cbd72dcae9d4340ee45f7caac9238df94e3c079696e89f5551e8e1cdb
diff --git a/dev-lang/haxe/haxe-4.3.1.ebuild b/dev-lang/haxe/haxe-4.3.1.ebuild
new file mode 100644
index 000000000000..898185d66029
--- /dev/null
+++ b/dev-lang/haxe/haxe-4.3.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Multi-target universal programming language"
+HOMEPAGE="https://haxe.org/
+ https://github.com/HaxeFoundation/haxe/"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/HaxeFoundation/haxe.git"
+else
+ # Haxe-debian already contains correct git modules
+ SRC_URI="https://github.com/HaxeFoundation/haxe-debian/archive/upstream/${PV}.tar.gz
+ -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}"/haxe-debian-upstream-${PV}
+fi
+
+LICENSE="GPL-2+ MIT"
+SLOT="0/${PV}"
+IUSE="+ocamlopt"
+RESTRICT="strip"
+
+RDEPEND="
+ >=dev-lang/ocaml-4:=[ocamlopt?]
+ >=dev-ml/luv-0.5.12:=
+ dev-ml/extlib:=
+ dev-ml/ocaml-sha:=
+ dev-ml/ptmap:=
+ dev-ml/sedlex:=
+ dev-ml/xml-light:=
+
+ dev-lang/neko:=
+ dev-libs/boehm-gc:=
+ dev-libs/libpcre:=
+ net-libs/mbedtls:=
+ sys-libs/zlib:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-ml/camlp5
+ dev-ml/dune
+ dev-ml/findlib
+"
+
+QA_FLAGS_IGNORED="usr/bin/haxelib"
+QA_PRESTRIPPED="usr/bin/haxelib"
+
+src_configure() {
+ export OCAMLOPT=$(usex ocamlopt ocamlopt.opt ocamlopt)
+}
+
+src_compile() {
+ emake -j1 BRANCH="" COMMIT_DATE="" COMMIT_SHA="" \
+ OCAMLOPT="${OCAMLOPT}" INSTALL_DIR=/usr
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALL_DIR=/usr install
+ dodoc *.md
+}