summaryrefslogtreecommitdiff
blob: 1e12a830dce6960d2da7894ed4a0b7a60fff1a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DUNE_PKG_NAME="gettext"
inherit dune

DESCRIPTION="Provides support for internationalization of OCaml program"
HOMEPAGE="https://github.com/gildor478/ocaml-gettext"
SRC_URI="https://github.com/gildor478/ocaml-gettext/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt"

BDEPEND="dev-ml/cppo"
RDEPEND="
	>=dev-ml/camomile-0.8.3:=
	>=dev-ml/ocaml-fileutils-0.4.0:=
	sys-devel/gettext
"
DEPEND="${RDEPEND}"

src_install() {
	dune_src_install

	# Hack for now until we get --mandir in dune.eclass
	cd "${ED}/usr/man" || die
	doman man1/* man5/*
	rm -r "${ED}/usr/man" || die
}