summaryrefslogtreecommitdiff
path: root/dev-lang/gnucobol/gnucobol-1.1.ebuild
blob: fa480cae9180939ce20c37960b3c9b004ca06ea5 (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
34
35
36
37
38
39
40
41
42
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_PN="open-cobol"
MYP=${MY_PN}-${PV}
# Future proof pkg if maintainer or p-m want to bump to latest GNUCobol

DESCRIPTION="an open-source COBOL compiler"
HOMEPAGE="https://sourceforge.net/projects/open-cobol/"
SRC_URI="mirror://sourceforge/${MY_PN}/${MYP}.tar.gz"

LICENSE="GPL-2 LGPL-2.1"
# License must be changed to GPL-3+ if/when pkgmove is done
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="berkdb nls readline"

RDEPEND="dev-libs/gmp:0=
	berkdb? ( sys-libs/db:4.8= )
	sys-libs/ncurses
	readline? ( sys-libs/readline )"
DEPEND="${RDEPEND}
	sys-devel/libtool"

DOCS=( AUTHORS ChangeLog NEWS README )

S="${WORKDIR}"/${MYP}

src_configure() {
	econf \
		$(use_with berkdb db) \
		$(use_enable nls) \
		$(use_with readline) \
		--disable-static
}

src_install() {
	default
	find "${ED}" -name '*.la' -delete || die
}