mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-08 18:27:07 -08:00
dev-ml/utop: enable Emacs support
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
(autoload 'utop "utop"
|
||||
"A universal toplevel for OCaml." t)
|
||||
@@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune elisp-common
|
||||
|
||||
DESCRIPTION="Universal toplevel for OCaml"
|
||||
HOMEPAGE="https://github.com/ocaml-community/utop"
|
||||
SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="emacs +ocamlopt"
|
||||
|
||||
ELISP_DEPEND="
|
||||
emacs? (
|
||||
>=app-editors/emacs-24:*
|
||||
>=app-emacs/tuareg-mode-2.2.0
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
dev-ml/camomile:=
|
||||
dev-ml/lambda-term:=
|
||||
dev-ml/lwt:=
|
||||
dev-ml/react:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
${ELISP_DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
dev-ml/cppo
|
||||
dev-ml/findlib
|
||||
${ELISP_DEPEND}
|
||||
"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
dune_src_compile
|
||||
|
||||
use emacs &&
|
||||
BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} src/top/*.el{,c}
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit dune
|
||||
|
||||
DESCRIPTION="Universal toplevel for OCaml"
|
||||
HOMEPAGE="https://github.com/ocaml-community/utop"
|
||||
SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/camomile:=
|
||||
dev-ml/lambda-term:=
|
||||
dev-ml/lwt:=
|
||||
dev-ml/react:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-ml/cppo
|
||||
dev-ml/findlib
|
||||
"
|
||||
@@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune elisp-common
|
||||
|
||||
DESCRIPTION="Universal toplevel for OCaml"
|
||||
HOMEPAGE="https://github.com/ocaml-community/utop"
|
||||
SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="emacs +ocamlopt"
|
||||
|
||||
ELISP_DEPEND="
|
||||
emacs? (
|
||||
>=app-editors/emacs-24:*
|
||||
>=app-emacs/tuareg-mode-2.2.0
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
dev-ml/camomile:=
|
||||
dev-ml/lambda-term:=
|
||||
dev-ml/lwt:=
|
||||
dev-ml/react:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
${ELISP_DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
dev-ml/cppo
|
||||
dev-ml/findlib
|
||||
${ELISP_DEPEND}
|
||||
"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
dune_src_compile
|
||||
|
||||
use emacs &&
|
||||
BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} src/top/*.el{,c}
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit dune
|
||||
|
||||
DESCRIPTION="Universal toplevel for OCaml"
|
||||
HOMEPAGE="https://github.com/ocaml-community/utop"
|
||||
SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/camomile:=
|
||||
dev-ml/lambda-term:=
|
||||
dev-ml/lwt:=
|
||||
dev-ml/react:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-ml/cppo
|
||||
dev-ml/findlib
|
||||
"
|
||||
@@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune elisp-common
|
||||
|
||||
DESCRIPTION="Universal toplevel for OCaml"
|
||||
HOMEPAGE="https://github.com/ocaml-community/utop"
|
||||
SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="emacs +ocamlopt"
|
||||
|
||||
ELISP_DEPEND="
|
||||
emacs? (
|
||||
>=app-editors/emacs-24:*
|
||||
>=app-emacs/tuareg-mode-2.2.0
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
dev-ml/camomile:=
|
||||
dev-ml/lambda-term:=
|
||||
dev-ml/lwt:=
|
||||
dev-ml/react:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
${ELISP_DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
dev-ml/cppo
|
||||
dev-ml/findlib
|
||||
${ELISP_DEPEND}
|
||||
"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
dune_src_compile
|
||||
|
||||
use emacs &&
|
||||
BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} src/top/*.el{,c}
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune
|
||||
|
||||
DESCRIPTION="Universal toplevel for OCaml"
|
||||
HOMEPAGE="https://github.com/ocaml-community/utop"
|
||||
SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/camomile:=
|
||||
dev-ml/lambda-term:=
|
||||
dev-ml/lwt:=
|
||||
dev-ml/react:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-ml/cppo
|
||||
dev-ml/findlib
|
||||
"
|
||||
Reference in New Issue
Block a user