diff options
author | 2025-03-14 12:46:56 -0400 | |
---|---|---|
committer | 2025-03-14 12:51:53 -0400 | |
commit | 4f675d5f373dd51359d6ffd0154122ed67366c2b (patch) | |
tree | 528e8375705181eb32df74efb567a42aa14ae071 /app-misc/ledit/ledit-2.06.ebuild | |
parent | 073ca29df01164c2269e186c5ed6686ba04c9058 (diff) | |
download | ppo-4f675d5f373dd51359d6ffd0154122ed67366c2b.tar.xz |
ledit 2.06
Diffstat (limited to 'app-misc/ledit/ledit-2.06.ebuild')
-rw-r--r-- | app-misc/ledit/ledit-2.06.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-misc/ledit/ledit-2.06.ebuild b/app-misc/ledit/ledit-2.06.ebuild new file mode 100644 index 0000000..cbf9fd4 --- /dev/null +++ b/app-misc/ledit/ledit-2.06.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A line editor to be used with interactive commands" +HOMEPAGE="http://pauillac.inria.fr/~ddr/ledit/" +LEDIT_P="${P//\./-}" +SRC_URI="https://github.com/chetmurthy/ledit/archive/${LEDIT_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="+ocamlopt" + +RESTRICT="installsources !ocamlopt? ( strip )" + +DEPEND=">=dev-lang/ocaml-3.09:=[ocamlopt?] + dev-ml/camlp5:=" +RDEPEND="${DEPEND}" + +# For explanation please follow the link below. +# https://github.com/gentoo/gentoo/pull/14865#issuecomment-605697524 +QA_FLAGS_IGNORED="/usr/bin/ledit" + +src_unpack() { + unpack ${LEDIT_P}.tar.gz + # this is not a typo! they named the root folder in the archive ledit-ledit-2-05... + mv "${WORKDIR}/ledit-${LEDIT_P}" ${WORKDIR}/${P} +} + +src_compile() { + emake -j1 all + if use ocamlopt; then + emake -j1 ledit.opt + fi +} + +src_install() { + if use ocamlopt; then + newbin ledit.opt ledit + else + newbin ledit.out ledit + fi + doman ledit.1 + dodoc CHANGES README +} |