dev-*: add haxe and dependencies

Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
Maciej Barć 2021-04-18 04:51:45 +02:00
parent 99e60bf51c
commit bf3134c544
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
15 changed files with 274 additions and 0 deletions

1
dev-lang/haxe/Manifest Normal file
View File

@ -0,0 +1 @@
DIST haxe-4.1.1.tar.gz 8901707 BLAKE2B fc513af2371dc6923629203941ea4394490e4660a524963fe67ae71c7f72ecea3429a4421071c5badb7ba0da7ac836c43d124b239c9d098b19f32fafac3f871c SHA512 0cf20247f0eb6b74c6de9cd9ebd11f061bc28a2b2927b61b5a710c9abed3e7fb192d0e34a34ab2346589e38a66840c42e59a66ac54755c7e2df674b8207deb21

View File

@ -0,0 +1,59 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Before updating first read the recipe:
# https://github.com/ocaml/opam-repository/tree/master/packages/haxe
EAPI=7
# inherit dune
DESCRIPTION="Multi-target universal programming language"
HOMEPAGE="https://haxe.org/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/HaxeFoundation/${PN}.git"
else
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"
IUSE="+ocamlopt"
RDEPEND="
<dev-ml/extlib-1.7.8
>=dev-ml/extlib-1.7.6
dev-ml/ptmap
dev-ml/sedlex
dev-ml/sha
dev-ml/xml-light
dev-lang/neko
dev-libs/libpcre
net-libs/mbedtls
sys-libs/zlib
"
DEPEND="${RDEPEND}"
QA_PRESTRIPPED="
usr/bin/haxelib
"
src_compile() {
if use ocamlopt; then
export OCAMLOPT=ocamlopt.opt
fi
emake -j1
}
src_install() {
emake DESTDIR="${D}" INSTALL_DIR=/usr install
dodoc *.md
}

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
Haxe is an open source toolkit based on a modern, high level,
static-typed programming language, a cross-compiler, a complete
cross-platform standard library and ways to access each platform's
native capabilities.
</longdescription>
<upstream>
<remote-id type="github">HaxeFoundation/haxe/</remote-id>
</upstream>
</pkgmetadata>

1
dev-ml/gen/Manifest Normal file
View File

@ -0,0 +1 @@
DIST gen-0.5.3.tar.gz 30905 BLAKE2B a6b8351ec4a75dd986cc0b4e9ed60dbfa78c3b8e3625c1e294f8bc0253d92be1f5d27cc7162e1cfc4f6397bbe272df22d9b7b0d1dd410d7760f30cf4c36c4745 SHA512 192178de106d2ae5f936caead8b21b4b9ec1b8fe35ba56296825900ea15a4ea702caf8824ac34d4478d107b954e22c3dffd81f12d4c08fbd6d9760f49a0deb14

View File

@ -0,0 +1,24 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit dune
DESCRIPTION="Iterators for OCaml, both restartable and consumable"
HOMEPAGE="https://github.com/c-cube/gen/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/c-cube/gen.git"
else
SRC_URI="https://github.com/c-cube/gen/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
# doc: odoc
# test: qcheck qtest
RESTRICT="test"
LICENSE="BSD-2"
SLOT="0"
IUSE="+ocamlopt"

11
dev-ml/gen/metadata.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<upstream>
<remote-id type="github">c-cube/gen</remote-id>
</upstream>
</pkgmetadata>

1
dev-ml/ptmap/Manifest Normal file
View File

@ -0,0 +1 @@
DIST ptmap-2.0.5.tbz 14093 BLAKE2B 96e291be16a7c91bbb49a273f1e73843de400409ed4760f061ac64417480a538963bae9dbe760108c78126b942d3a415ba42c2e4bf414b4cddd7ccafb4ad90ff SHA512 4a3f20d189d905cb588de3148361495adc40d5892473bf9cd7e49bc98558de29feb51efefb5aab77cad892dd288ad8fa0348832c78cc21e66539768a5a9cab5b

14
dev-ml/ptmap/metadata.xml Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
CHANGEME
</longdescription>
<upstream>
<remote-id type="CHANGEME">CHANGEME</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,27 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit dune
DESCRIPTION="Maps of integers implemented as Patricia trees"
HOMEPAGE="https://github.com/backtracking/ptmap/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/backtracking/${PN}.git"
else
SRC_URI="https://github.com/backtracking/${PN}/releases/download/${PV}/${P}.tbz"
KEYWORDS="~amd64"
fi
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="+ocamlopt"
RDEPEND="
dev-ml/seq
dev-ml/stdlib-shims
"
DEPEND="${RDEPEND}"

4
dev-ml/sedlex/Manifest Normal file
View File

@ -0,0 +1,4 @@
DIST sedlex-2.3-DerivedCoreProperties.txt 993782 BLAKE2B 185f76580a496781524e19124cc4d6d2f0eec6964d4dcf17c05e4a1f4a6031a821740a34e373c3be82c5f25acdb93a77f9591eafe37d026d40e027054e717c0f SHA512 e6b54579369edf361ee961171d9b4896449e16327d77749201e07a7022a4d9bd9e50ba25cc7397fb4e40c852347b1ef8599ed45bd5bb96a1b8dc5cd04ada5fda
DIST sedlex-2.3-DerivedGeneralCategory.txt 255731 BLAKE2B 4cc70d21872e6c8d4a26dddaf204531533b79bd58b7238395ca25db7346bc916bd85aa0343abc194b4aab499d481f40a6fe1d8ea287e873ff1199a1bdd195be7 SHA512 b45324cb2791be1d1cf10862ca1ca4008fed2f482aa20042cac7190d4a8d46f840cc65b7367379343d209c06fdf37cd677f887a99bfbf3aa7022fcb3d4212c2d
DIST sedlex-2.3-PropList.txt 123554 BLAKE2B 3b0a0e12315acfa67e51e48133652b12b45473a22a90f7d2cad91e149cf861f59daf02f8a15aa1138a879be4645d0d6bd48d6a2b39e61584d45f4e763b635ee0 SHA512 1979d14eaa43512ad681f8ebffd93b6bf5b0edacb72d01d7814aa293083e4834840223848c492d96f75a3cc8b219a6671e85158ccde4d283b37be3f9e2f071e4
DIST sedlex-2.3.tar.gz 114507 BLAKE2B ba777d90ceba41136ac552a2aea860b2932dc2c27d02a5875e8533d6740bcababe444d27427fbae59739a42901b3fb85f7b2ed8fd318f984734e7283ecd7e69e SHA512 f91bbda9e79417e0a7c723a8efd9644404ffc91c60898b8fa07a514c38bc8472eae34419405354ae80966feb8d3203943f78776ad395a16132c7c890e3dbd7d8

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
CHANGEME
</longdescription>
<upstream>
<remote-id type="CHANGEME">CHANGEME</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,54 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit dune
DESCRIPTION="An OCaml lexer generator for Unicode"
HOMEPAGE="https://github.com/ocaml-community/sedlex/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ocaml-community/${PN}.git"
else
SRC_URI="https://github.com/ocaml-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
UCD_URL_BASE="https://www.unicode.org/Public/12.1.0/ucd"
SRC_URI+="
${UCD_URL_BASE}/DerivedCoreProperties.txt -> ${P}-DerivedCoreProperties.txt
${UCD_URL_BASE}/extracted/DerivedGeneralCategory.txt -> ${P}-DerivedGeneralCategory.txt
${UCD_URL_BASE}/PropList.txt -> ${P}-PropList.txt
"
LICENSE="MIT"
SLOT="0"
IUSE="+ocamlopt"
RDEPEND="
<dev-ml/ppxlib-0.22.0
dev-ml/gen
dev-ml/uchar
"
DEPEND="${RDEPEND}"
src_unpack() {
default
for txt in DerivedCoreProperties DerivedGeneralCategory PropList; do
echo "Copy ${DISTDIR}/${P}-${txt}.txt to ${S}/src/generator/data/${txt}.txt"
cp "${DISTDIR}/${P}-${txt}.txt" "${S}/src/generator/data/${txt}.txt" \
|| die "failed to copy ${P}-${txt}.txt to ${txt}.txt"
done
}
src_prepare() {
default
# Remove dune file with rules to download additional txt files
rm "${S}/src/generator/data/dune" \
|| die "faled to remove src/generator/data/dune"
}

1
dev-ml/sha/Manifest Normal file
View File

@ -0,0 +1 @@
DIST sha-1.14.tar.gz 14001 BLAKE2B 7c30d7f96ccc9fe705d05f9af9f37e139d04f4439b8fc1d2186595933a24db03ccf6177d5f95a1ef3685873d9f97557a3d8c1d713d6c32dfd3c8f6f6470afb9c SHA512 8cc3f0b08c794cc335a09f5facc8c40126576ddf4646f4b6e25b76af912edd7677f94677bd7ea412b855e062b9ebf5780f673d497253936e538e6163cd03efec

16
dev-ml/sha/metadata.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
This is the binding for SHA interface code in OCaml. Offering the same
interface than the MD5 digest included in the OCaml standard library.
It's currently providing SHA1, SHA256 and SHA512 hash functions.
</longdescription>
<upstream>
<remote-id type="github">djs55/ocaml-sha</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,30 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit dune
DESCRIPTION="Binding to the SHA cryptographic functions"
HOMEPAGE="https://github.com/djs55/ocaml-sha"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/djs55/ocaml-sha.git"
else
SRC_URI="https://github.com/djs55/ocaml-sha/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/ocaml-sha-${PV}"
fi
LICENSE="ISC"
SLOT="0"
IUSE="+ocamlopt test"
RDEPEND="
dev-ml/stdlib-shims
test? (
dev-ml/ounit2
)
"
DEPEND="${RDEPEND}"