From dab552a89a2814ad3ed5efec1c9064decd3ba786 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 14 Sep 2019 14:08:44 -0400 Subject: [PATCH] expat: Bump to 2.2.8; includes security fix. --- dev-libs/expat/expat-2.2.8.recipe | 91 +++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 dev-libs/expat/expat-2.2.8.recipe diff --git a/dev-libs/expat/expat-2.2.8.recipe b/dev-libs/expat/expat-2.2.8.recipe new file mode 100644 index 000000000..d5929a6e1 --- /dev/null +++ b/dev-libs/expat/expat-2.2.8.recipe @@ -0,0 +1,91 @@ +SUMMARY="XML parser toolkit" +DESCRIPTION="Expat is an XML parser library written in C. It is a \ +stream-oriented parser in which an application registers handlers for things \ +the parser might find in the XML document (like start tags)." +HOMEPAGE="http://expat.sourceforge.net/" +COPYRIGHT="1998-2000 Thai Open Source Software Center Ltd and Clark Cooper + 2001-2018 Expat maintainers." +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/expat/expat-$portVersion.tar.bz2" +CHECKSUM_SHA256="9a130948b05a82da34e4171d5f5ae5d321d9630277af02c8fa51e431f6475102" + +ARCHITECTURES="x86_gcc2 x86 x86_64 ?arm sparc" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +libVersion=1.6.10 +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" +portVersionCompat="$portVersion compat >= 2.2" + +PROVIDES=" + expat$secondaryArchSuffix = $portVersionCompat + lib:libexpat$secondaryArchSuffix = $libVersionCompat + " +if [ -z "$secondaryArchSuffix" ]; then +PROVIDES="$PROVIDES + cmd:xmlwf = $portVersionCompat + " +fi + +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + expat${secondaryArchSuffix}_devel = $portVersion + devel:libexpat$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + expat$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +debugList=( + "$libDir"/libexpat.so.$libVersion + ) +if [ -z "$secondaryArchSuffix" ]; then + debugList+=("$binDir"/xmlwf) +fi +defineDebugInfoPackage expat$secondaryArchSuffix "${debugList[@]}" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/libexpat.la + + # remove command and manual for secondary architecture + if [ -n "$secondaryArchSuffix" ]; then + rm -rf $binDir $documentationDir + fi + + # prepare develop/lib + prepareInstalledDevelLib libexpat + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}