diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-18 23:01:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-18 23:01:01 +0000 |
commit | 62fedf7d848a64953dc84844e401364176b10da7 (patch) | |
tree | d4dce33e8982f75dd1f5182bc1e4810f79e5aa7d /dev-lang/haxe/haxe-4.3.3.ebuild | |
parent | 6cdde4bf2702fac82ba7163fe9f922e7fa0b9a66 (diff) |
gentoo auto-resync : 18:11:2023 - 23:01:01
Diffstat (limited to 'dev-lang/haxe/haxe-4.3.3.ebuild')
-rw-r--r-- | dev-lang/haxe/haxe-4.3.3.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-lang/haxe/haxe-4.3.3.ebuild b/dev-lang/haxe/haxe-4.3.3.ebuild new file mode 100644 index 000000000000..c0dfcd532325 --- /dev/null +++ b/dev-lang/haxe/haxe-4.3.3.ebuild @@ -0,0 +1,67 @@ +# 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" + S="${WORKDIR}/haxe-debian-upstream-${PV}" + + KEYWORDS="~amd64" +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 +} |