dev-ml/python-str-repr - 20240203 (nest)

Search

Install

Install this version:

emerge -a =dev-ml/python-str-repr-20240203

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ml/python-str-repr-20240203

Or alternatively:

emerge --autounmask-write -a =dev-ml/python-str-repr-20240203

Package Information

Description:
Python string escaping for OCaml
Homepage:
https://github.com/reynir/python-str-repr
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
20240203 8 ~amd64 ~x86 0/20240203
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune

COMMIT="c83b412cc5e7e310ad9b2dea76495145994f238f"

DESCRIPTION="Python string escaping for OCaml"
HOMEPAGE="https://github.com/reynir/python-str-repr"
SRC_URI="https://github.com/reynir/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"

LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

RDEPEND="dev-ml/py:0=[ocamlopt?]
	dev-ml/uucp:0=
	dev-ml/uutf:0=[ocamlopt?]"
BDEPEND="test? ( dev-ml/alcotest
		dev-ml/qcheck )"

src_prepare() {
	default

	# disable not supported test
	sed -i '/name test_py_python_str_repr/a\\ (enabled_if false)' test/dune \
		|| die "sed failed for dune"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ml/python-str-repr | euse -E <flag> -p dev-ml/python-str-repr | euse -D <flag> -p dev-ml/python-str-repr

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

Dependencies

RDEPEND

dev-ml/py:0=[ocamlopt?]
	dev-ml/uucp:0=
	dev-ml/uutf:0=[ocamlopt?]

BDEPEND

test? ( dev-ml/alcotest
		dev-ml/qcheck )

Manifest for 20240203

Type File Size Source URLs
DIST python-str-repr-20240203.tar.gz 5838 bytes https://github.com/reynir/python-str-repr/archive/c83b412cc5e7e310ad9b2dea76495145994f238f.tar.gz