summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-12-23 23:38:54 +0100
committerAlfredo Tupone <tupone@gentoo.org>2023-12-23 23:39:14 +0100
commit5f7edd401f88ecceff011c000316674d6a536d5d (patch)
tree65e75c7019fb5a6531e4c8e0581e6fd39c304e6b /dev-lang/gnucobol
parentapp-editors/logseq-desktop-bin: add 0.10.2 (diff)
downloadgentoo-5f7edd401f88ecceff011c000316674d6a536d5d.tar.gz
gentoo-5f7edd401f88ecceff011c000316674d6a536d5d.tar.bz2
gentoo-5f7edd401f88ecceff011c000316674d6a536d5d.zip
dev-lang/gnucobol: add 3.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-lang/gnucobol')
-rw-r--r--dev-lang/gnucobol/Manifest1
-rw-r--r--dev-lang/gnucobol/gnucobol-3.2.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-lang/gnucobol/Manifest b/dev-lang/gnucobol/Manifest
index aa228b4ac71c..6ac0ac4ea413 100644
--- a/dev-lang/gnucobol/Manifest
+++ b/dev-lang/gnucobol/Manifest
@@ -1 +1,2 @@
DIST gnucobol-3.1.2.tar.xz 2198512 BLAKE2B ccf9252bc4d5e64e966cea483981da36155767a5879967be7226fbcd8f13d8b427558de3a25cc8638f9156882b6f368acbf3e84d5e2ee68bd5754a6a513ac7d6 SHA512 738149c9d3e01140e4036b041f4eaa6c7caf7848a87146a3dd9940a9f17006805fd3c6b169d346bf01a0c2e671655080978c0f3182a85389f8f8a373ca8c1435
+DIST gnucobol-3.2.tar.xz 2902828 BLAKE2B 66df93fe2f8772aebd807612c8e96be46f5605c316f374ae51b3a8c3f6ce760150af60777cd1d53f12f65ee48bc0a6225c506b813fdafcc87d949e609ff3273e SHA512 1aef3c1bf7283219a7cb1e7b38ba5c5e299c0a83666ab6afdbb5713f1f791b23575ca51d546c4f2f036217060269028bbce4b5babbeb4f721b57495d5f258ff7
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
+}