mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
gnucobol, bump to 3.2 (#12454)
This commit is contained in:
@@ -15,7 +15,8 @@ LICENSE="GNU GPL v3
|
||||
GNU FDL v1.3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://sourceforge.net/projects/open-cobol/files/gnu-cobol/$portVersion/gnucobol-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="925838decd65864b2aa3a4bf1385ce4bc708b942e05e8406945a730d7aab32cb"
|
||||
CHECKSUM_SHA256="29f30a77176015847f0afb2e22939e39798bb4d98c7c7a26f6765930b4553c52"
|
||||
PATCHES="gnucobol-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
@@ -38,12 +39,13 @@ PROVIDES="
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libdb$secondaryArchSuffix
|
||||
lib:libdb_18.1$secondaryArchSuffix
|
||||
lib:libgmp$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libltdl$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
@@ -53,7 +55,7 @@ PROVIDES_devel="
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gnucobol$secondaryArchSuffix == $portVersion base
|
||||
devel:libdb$secondaryArchSuffix
|
||||
devel:libdb_18.1$secondaryArchSuffix
|
||||
devel:libgmp$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libltdl$secondaryArchSuffix
|
||||
@@ -62,16 +64,18 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libdb$secondaryArchSuffix
|
||||
devel:libdb_18.1$secondaryArchSuffix
|
||||
devel:libgmp$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libltdl$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autopoint$secondaryArchSuffix
|
||||
cmd:awk
|
||||
cmd:bison
|
||||
cmd:find
|
||||
@@ -79,7 +83,10 @@ BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt$secondaryArchSuffix
|
||||
cmd:msgmerge$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:xgettext$secondaryArchSuffix
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
@@ -91,7 +98,8 @@ BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir
|
||||
--bindir=$commandBinDir \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -113,9 +121,9 @@ TEST()
|
||||
{
|
||||
export LIBRARY_PATH=$sourceDir/libcob/.libs:$LIBRARY_PATH
|
||||
make check
|
||||
# ERROR: 761 tests were run,
|
||||
# 9 failed (6 expected failures).
|
||||
# 5 tests were skipped.
|
||||
# ERROR: 1259 tests were run,
|
||||
# 33 failed (31 expected failures).
|
||||
# 23 tests were skipped.
|
||||
|
||||
make test
|
||||
# this will download a testsuite for cobol85 (about 4MB)
|
||||
22
dev-lang/gnucobol/patches/gnucobol-3.2.patchset
Normal file
22
dev-lang/gnucobol/patches/gnucobol-3.2.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 63d6e90023696ed4addc0e0cae30c6662f963846 Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Fri, 30 May 2025 10:59:20 +0200
|
||||
Subject: libxml patch
|
||||
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-lang/gnucobol/files/gnucobol-3.2-libxml.patch
|
||||
|
||||
diff --git a/libcob/common.c b/libcob/common.c
|
||||
index eef27ff..d51a659 100644
|
||||
--- a/libcob/common.c
|
||||
+++ b/libcob/common.c
|
||||
@@ -136,6 +136,7 @@
|
||||
#if defined (WITH_XML2)
|
||||
#include <libxml/xmlversion.h>
|
||||
#include <libxml/xmlwriter.h>
|
||||
+#include <libxml/parser.h>
|
||||
#endif
|
||||
|
||||
#if defined (WITH_CJSON)
|
||||
--
|
||||
2.48.1
|
||||
|
||||
Reference in New Issue
Block a user