From 4560e1a95e1072b051371c59aec78b15e4787ded Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 24 Dec 2023 01:44:21 +0000 Subject: gentoo auto-resync : 24:12:2023 - 01:44:20 --- dev-lang/gnucobol/gnucobol-3.2.ebuild | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-lang/gnucobol/gnucobol-3.2.ebuild (limited to 'dev-lang/gnucobol/gnucobol-3.2.ebuild') diff --git a/dev-lang/gnucobol/gnucobol-3.2.ebuild b/dev-lang/gnucobol/gnucobol-3.2.ebuild new file mode 100644 index 000000000000..d5a4ea562c99 --- /dev/null +++ b/dev-lang/gnucobol/gnucobol-3.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A free/libre COBOL compiler" +HOMEPAGE="https://gnucobol.sourceforge.io/" +SRC_URI="mirror://sourceforge/${PN}/$(ver_cut 1-2)/${P}.tar.xz" + +LICENSE="GPL-3 LGPL-3 FDL-1.3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="berkdb json nls xml" + +RDEPEND=" + dev-libs/gmp:= + sys-libs/ncurses:= + json? ( dev-libs/json-c:= ) + xml? ( dev-libs/libxml2 ) + berkdb? ( sys-libs/db:4.8= ) +" +DEPEND="${RDEPEND}" +BDEPEND="sys-devel/libtool" + +DOCS=( AUTHORS ChangeLog NEWS README README.md ) + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.2-gentoo.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_with berkdb db) \ + $(use_with json) \ + $(use_with xml xml2) \ + $(use_enable nls) \ + --with-curses=ncursesw \ + CURSES_LIBS="$(ncursesw6-config --libs)" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3