gentoo/dev-lang/haxe/haxe-4.3.6-r4.ebuild
Michał Górny bd0ee727e0
dev-*/*: update for virtual/zlib
Update done using:

```
git grep -l sys-libs/zlib dev-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g
git diff --name-only | xargs copybump
git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead
pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error
```

Followed by manual revert in dev-python/zlib-ng where it accidentally
caught sys-libs/zlib-ng dependencies.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 09:07:26 +01:00

69 lines
1.3 KiB
Bash

# Copyright 1999-2025 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 is a distribution variant that contains the required git modules.
SRC_URI="https://github.com/HaxeFoundation/haxe-debian/archive/upstream/${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/haxe-debian-upstream"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2+ MIT"
SLOT="0/${PV}"
IUSE="+ocamlopt"
RESTRICT="strip"
RDEPEND="
=dev-ml/extlib-1.7.9*:=
dev-lang/ocaml:=[ocamlopt?]
>=dev-ml/luv-0.5.13:=
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:0=
virtual/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
}