mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
dev-ml/xml-light: drop 2.2-r3
Closes: https://bugs.gentoo.org/880055 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST xml-light-2.2.zip 22130 BLAKE2B 95b4bc23be63ef5c6faf529877aaf753e3c9fee99948dff82bab5e3206ea718a71ce1e03a2bdba17ff21c040dc8774312ce752c97450f0420681926524864f58 SHA512 b3be968db1ea8b9f8cc439fc8a685083227a7b07469af17c31993229a506f2ff6b1b0cf2097f4198a71e1d858d166f36c99bb26720136633c233a790764087ed
|
||||
DIST xml-light-2.5.tar.gz 18212 BLAKE2B 94174b0bed12b77647044de5552e3e6bbdbd8aa1c9e4683709d4a51227fd54bbd426de9a0c894ddc73271eefa763dfbc8df75a23b654fc6c681b49826ab082a9 SHA512 95d9d8ede370a9d82ecea08c717ef35f8df56907724596149af29b21871dd9942a4d5742d1fa16d63d4735d65d5529627d26f7bc703249a7f2f62e5479d72310
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Minimal Xml parser and printer for OCaml"
|
||||
HOMEPAGE="http://tech.motion-twin.com/xmllight.html"
|
||||
SRC_URI="http://tech.motion-twin.com/zip/${P}.zip"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86"
|
||||
IUSE="doc +ocamlopt"
|
||||
|
||||
RDEPEND="dev-lang/ocaml:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/01_installopt.patch
|
||||
"${FILESDIR}"/02_cmi_depends.patch
|
||||
"${FILESDIR}"/03_cflags.patch
|
||||
"${FILESDIR}"/04_dtd_trace.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
|
||||
if use ocamlopt; then
|
||||
emake -j1 opt
|
||||
fi
|
||||
|
||||
if use doc;then
|
||||
emake doc
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# There are no tests...
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/$(get_libdir)/ocaml/${PN}
|
||||
emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} install
|
||||
|
||||
cat > "${ED}"/usr/$(get_libdir)/ocaml/${PN}/META || die << EOF
|
||||
name="${PN}"
|
||||
version="${PV}"
|
||||
description="${DESCRIPTION}"
|
||||
requires=""
|
||||
archive(byte)="xml-light.cma"
|
||||
EOF
|
||||
|
||||
if use ocamlopt; then
|
||||
emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} installopt
|
||||
echo 'archive(native)="xml-light.cmxa"' >> "${ED}"/usr/$(get_libdir)/ocaml/${PN}/META || die
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
|
||||
if use doc; then
|
||||
emake doc
|
||||
|
||||
docinto html
|
||||
dodoc doc/*
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user