mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-ml/systemd: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
48
dev-ml/systemd/systemd-1.2.ebuild
Normal file
48
dev-ml/systemd/systemd-1.2.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit findlib opam
|
||||
|
||||
MY_P="ocaml-${P}"
|
||||
|
||||
DESCRIPTION="OCaml module for native access to the systemd facilities"
|
||||
HOMEPAGE="https://github.com/juergenhoetzel/ocaml-systemd"
|
||||
SRC_URI="https://github.com/juergenhoetzel/ocaml-${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="LGPL-3-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="ocamlopt"
|
||||
|
||||
RDEPEND="sys-apps/systemd"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-ml/ocamlbuild
|
||||
"
|
||||
|
||||
OPAM_FILE=opam
|
||||
|
||||
src_configure() {
|
||||
myconf=(
|
||||
--prefix "/usr"
|
||||
--destdir "${D}"
|
||||
--libdir "/usr/$(get_libdir)"
|
||||
--docdir "/usr/share/doc/${PF}"
|
||||
--htmldir "/usr/share/doc/${PF}/html"
|
||||
--override debug false
|
||||
--override is_native $(usex ocamlopt true false)
|
||||
)
|
||||
./configure "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake install
|
||||
}
|
||||
Reference in New Issue
Block a user