You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.3 KiB
68 lines
1.3 KiB
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
2 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
DESCRIPTION="Multi-target universal programming language"
|
||
7 months ago
|
HOMEPAGE="https://haxe.org/
|
||
|
https://github.com/HaxeFoundation/haxe/"
|
||
2 years ago
|
|
||
7 months ago
|
if [[ "${PV}" == *9999* ]] ; then
|
||
2 years ago
|
inherit git-r3
|
||
7 months ago
|
|
||
2 years ago
|
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"
|
||
7 months ago
|
S="${WORKDIR}/haxe-debian-upstream-${PV}"
|
||
|
|
||
2 years ago
|
KEYWORDS="~amd64"
|
||
|
fi
|
||
|
|
||
|
LICENSE="GPL-2+ MIT"
|
||
|
SLOT="0/${PV}"
|
||
|
IUSE="+ocamlopt"
|
||
1 year ago
|
RESTRICT="strip"
|
||
1 year ago
|
|
||
2 years ago
|
RDEPEND="
|
||
|
>=dev-lang/ocaml-4:=[ocamlopt?]
|
||
7 months ago
|
>=dev-ml/luv-0.5.12:=
|
||
2 years ago
|
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:=
|
||
|
"
|
||
7 months ago
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
"
|
||
2 years ago
|
BDEPEND="
|
||
|
dev-ml/camlp5
|
||
|
dev-ml/dune
|
||
|
dev-ml/findlib
|
||
|
"
|
||
|
|
||
|
QA_FLAGS_IGNORED="usr/bin/haxelib"
|
||
|
QA_PRESTRIPPED="usr/bin/haxelib"
|
||
|
|
||
|
src_configure() {
|
||
7 months ago
|
export OCAMLOPT="$(usex ocamlopt ocamlopt.opt ocamlopt)"
|
||
2 years ago
|
}
|
||
|
|
||
|
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
|
||
|
}
|