mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
Merge updates from master
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
DIST xmlm-1.4.0.tbz 26122 BLAKE2B dcc75836199eeca49967c4245b793b612c3ac83677dc4185d956437af63802759cc99190ad3ad036227706b4ecd4af938ed76d2f049b1273e81bf13b79e6316b SHA512 69f6112e6466952256d670fe1751fe4ae79e20d50f018ece1709eb2240cb1b00968ac7cee110771e0617a38ebc1cdb43e9d146471ce66ac1b176e4a1660531eb
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>fogti@ytrizja.de</email>
|
|
||||||
<name>Alain Emilia Anna Zscheile</name>
|
|
||||||
</maintainer>
|
|
||||||
<longdescription lang="en">Xmlm is a streaming codec to decode and encode the XML data format. It
|
|
||||||
can process XML documents without a complete in-memory representation of the
|
|
||||||
data.
|
|
||||||
|
|
||||||
Xmlm is made of a single independent module and distributed
|
|
||||||
under the ISC license.
|
|
||||||
|
|
||||||
Home page: http://erratique.ch/software/xmlm</longdescription>
|
|
||||||
<upstream>
|
|
||||||
<doc>https://erratique.ch/software/xmlm/doc/</doc>
|
|
||||||
<bugs-to>https://github.com/dbuenzli/xmlm/issues</bugs-to>
|
|
||||||
<remote-id type="github">dbuenzli/xmlm</remote-id>
|
|
||||||
<maintainer>
|
|
||||||
<name>Daniel Bünzli</name>
|
|
||||||
<email>daniel.buenzli@erratique.ch</email>
|
|
||||||
</maintainer>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit findlib opam
|
|
||||||
|
|
||||||
DESCRIPTION="Ocaml XML manipulation module"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://erratique.ch/software/xmlm
|
|
||||||
https://github.com/dbuenzli/xmlm
|
|
||||||
"
|
|
||||||
SRC_URI="https://erratique.ch/software/${PN}/releases/${P}.tbz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
DEPEND="dev-ml/topkg"
|
|
||||||
BDEPEND="dev-ml/ocamlbuild"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
OPAM_FILE=opam
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ocaml pkg/pkg.ml build --tests $(usex test 'true' 'false') || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
opam_src_test
|
|
||||||
ocaml pkg/pkg.ml test || die
|
|
||||||
}
|
|
||||||
@@ -26,13 +26,39 @@ BDEPEND="${RDEPEND}"
|
|||||||
|
|
||||||
QA_PREBUILT="*"
|
QA_PREBUILT="*"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
MY_ARCH="$(uname -m)"
|
||||||
|
|
||||||
|
# Remove executables for other architectures
|
||||||
|
# (I tried using arrays but it was too much pain)
|
||||||
|
case "$MY_ARCH" in
|
||||||
|
aarch64)
|
||||||
|
rm -r "lib/py3-linux-armv7l"
|
||||||
|
rm -r "lib/py3-linux-x86_64"
|
||||||
|
;;
|
||||||
|
armv7l)
|
||||||
|
rm -r "lib/py3-linux-aarch64"
|
||||||
|
rm -r "lib/py3-linux-x86_64"
|
||||||
|
;;
|
||||||
|
x86_64)
|
||||||
|
rm -r "lib/py3-linux-aarch64"
|
||||||
|
rm -r "lib/py3-linux-armv7l"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "unsupported architecture: $MY_ARCH"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
local dir=/opt/${PN}
|
local dir=/opt/${PN}
|
||||||
insinto "${dir}"
|
insinto "${dir}"
|
||||||
|
|
||||||
doins -r "${S}/."
|
doins -r "${S}/."
|
||||||
|
|
||||||
fperms +x ${dir}/lib/py3-linux-x86_64/SnootGame
|
fperms +x ${dir}/lib/py3-linux-${MY_ARCH}/SnootGame
|
||||||
fperms +x ${dir}/SnootGame.sh
|
fperms +x ${dir}/SnootGame.sh
|
||||||
|
|
||||||
make_wrapper ${PN} "./SnootGame.sh" "${dir}" "${dir}"
|
make_wrapper ${PN} "./SnootGame.sh" "${dir}" "${dir}"
|
||||||
Reference in New Issue
Block a user