mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
opensp: new recipe (#11303)
This commit is contained in:
116
dev-libs/opensp/opensp-1.5.2.recipe
Normal file
116
dev-libs/opensp/opensp-1.5.2.recipe
Normal file
@@ -0,0 +1,116 @@
|
||||
SUMMARY="A C++ library for using SGML/XML files"
|
||||
DESCRIPTION="An SGML Extended Facilities system conforming to Annex A of International Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language"
|
||||
HOMEPAGE="https://openjade.sourceforge.net/"
|
||||
COPYRIGHT="1994, 1995, 1996, 1997, 1998 James Clark"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/openjade/OpenSP-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="57f4898498a368918b0d49c826aa434bb5b703d2c3b169beb348016ab25617ce"
|
||||
SOURCE_DIR="OpenSP-$portVersion"
|
||||
PATCHES="opensp-1.5.2.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="5.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
opensp$secondaryArchSuffix = $portVersion
|
||||
lib:libosp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
opensp${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libosp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
opensp$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
SUMMARY_tools="Command line tools for opensp"
|
||||
PROVIDES_tools="
|
||||
opensp${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:onsgmls$commandSuffix
|
||||
cmd:osgmlnorm$commandSuffix
|
||||
cmd:ospam$commandSuffix
|
||||
cmd:ospcat$commandSuffix
|
||||
cmd:ospent$commandSuffix
|
||||
cmd:osx$commandSuffix
|
||||
"
|
||||
REQUIRES_tools="
|
||||
haiku$secondaryArchSuffix
|
||||
opensp$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:automake
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:gettext
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -if
|
||||
runConfigure --omit-dirs "binDir" ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--disable-doc-build \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/lib*.la
|
||||
|
||||
mkdir -p $docDir/tools
|
||||
mkdir -p $developDocDir
|
||||
pushd $dataDir/doc/OpenSP/doc
|
||||
mv nsgmls.htm \
|
||||
sgmlnorm.htm \
|
||||
spam.htm \
|
||||
spcat.htm \
|
||||
spent.htm \
|
||||
sx.htm \
|
||||
$docDir/tools
|
||||
popd
|
||||
mv $dataDir/doc/OpenSP/doc $developDocDir
|
||||
mv $dataDir/doc* $docDir
|
||||
rm -rf $dataDir/doc
|
||||
|
||||
prepareInstalledDevelLib libosp
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
#tools package
|
||||
packageEntries tools \
|
||||
$commandBinDir \
|
||||
$docDir/tools
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
64
dev-libs/opensp/patches/opensp-1.5.2.patchset
Normal file
64
dev-libs/opensp/patches/opensp-1.5.2.patchset
Normal file
@@ -0,0 +1,64 @@
|
||||
From 8e0fd99175f4f16ca3a04f232b58249f2b547be9 Mon Sep 17 00:00:00 2001
|
||||
From: Javier Steinaker <jsteinaker@gmail.com>
|
||||
Date: Tue, 12 Nov 2024 13:20:24 -0300
|
||||
Subject: Perl 5, config.guess for Haiku, fix testsuite
|
||||
|
||||
|
||||
diff --git a/config.guess b/config.guess
|
||||
index 917bbc5..749cb38 100755
|
||||
--- a/config.guess
|
||||
+++ b/config.guess
|
||||
@@ -1164,6 +1164,12 @@ EOF
|
||||
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
||||
echo i586-pc-beos
|
||||
exit ;;
|
||||
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
||||
+ echo i586-pc-haiku
|
||||
+ exit ;;
|
||||
+ x86_64:Haiku:*:*) # Haiku running on x86_64.
|
||||
+ echo x86_64-unknown-haiku
|
||||
+ exit ;;
|
||||
SX-4:SUPER-UX:*:*)
|
||||
echo sx4-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
diff --git a/msggen.pl.in b/msggen.pl.in
|
||||
index 17c5b24..1c558ff 100644
|
||||
--- a/msggen.pl.in
|
||||
+++ b/msggen.pl.in
|
||||
@@ -18,8 +18,8 @@ $gen_c = 0;
|
||||
undef $opt_l;
|
||||
undef $opt_p;
|
||||
undef $opt_t;
|
||||
-do 'getopts.pl';
|
||||
-&Getopts('l:p:t:');
|
||||
+use Getopt::Std;
|
||||
+getopts('l:p:t:');
|
||||
$module = $opt_l;
|
||||
$pot_file = $opt_p;
|
||||
|
||||
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||
index 2ea8cb1..6d3b4d8 100644
|
||||
--- a/tests/Makefile.am
|
||||
+++ b/tests/Makefile.am
|
||||
@@ -19,7 +19,7 @@ af-18 af-19
|
||||
TESTS_THAT_FAIL = catalog-2 \
|
||||
af-7 af-8 af-9 af-10 af-11
|
||||
|
||||
-SHOWSTOPPERS = $(TESTS_THAT_FAIL)
|
||||
+SHOWSTOPPERS = ""
|
||||
|
||||
DTDDECL_TEST = catalog-1
|
||||
|
||||
@@ -35,8 +35,7 @@ EXTRA_DIST = $(TESTS_THAT_PASS) $(TESTS_THAT_FAIL) $(DTDDECL_TEST)
|
||||
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
|
||||
PATH=.:../nsgmls:../sgmlnorm:../sx:../spent:../spcat:../spam:$$PATH \
|
||||
ONSGMLS=`echo onsgmls|sed '$(transform)'`\
|
||||
- OSGMLNORM=`echo osgmlnorm|sed '$(transform)'`\
|
||||
- $(SHELL)
|
||||
+ OSGMLNORM=`echo osgmlnorm|sed '$(transform)'`
|
||||
|
||||
# Two auxiliary programs used by the tests.
|
||||
INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/intl
|
||||
--
|
||||
2.45.2
|
||||
|
||||
Reference in New Issue
Block a user