From 6003fc7a6eda56862fcff321f47e40cd34e60098 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 6 Nov 2022 09:19:37 +0000 Subject: gentoo auto-resync : 06:11:2022 - 09:19:37 --- app-text/opensp/Manifest | 3 +- .../files/opensp-1.5.2-configure-clang16.patch | 13 ++++ app-text/opensp/opensp-1.5.2-r7.ebuild | 83 -------------------- app-text/opensp/opensp-1.5.2-r8.ebuild | 88 ++++++++++++++++++++++ 4 files changed, 103 insertions(+), 84 deletions(-) create mode 100644 app-text/opensp/files/opensp-1.5.2-configure-clang16.patch delete mode 100644 app-text/opensp/opensp-1.5.2-r7.ebuild create mode 100644 app-text/opensp/opensp-1.5.2-r8.ebuild (limited to 'app-text/opensp') diff --git a/app-text/opensp/Manifest b/app-text/opensp/Manifest index cb8466f20795..d59575f8f44a 100644 --- a/app-text/opensp/Manifest +++ b/app-text/opensp/Manifest @@ -1,5 +1,6 @@ AUX opensp-1.5.2-c11-using.patch 2626 BLAKE2B 16ff8ba1701831fa0c87e0788f8b420f1d96bf5b2f645d2d6706e82ae1767a99fed8f6ca4bd4f1abbc24bf80c4fa00d848f03056b01ac98f5b8a74d3a78c4467 SHA512 dea5fe17ea2662150b201ab6011bb01ba0f0c07689d267ec4086a914cefef3e91967f8db4be0258bac87d3cd73a9b05eb1f879415860552d9853e66e98e16e11 +AUX opensp-1.5.2-configure-clang16.patch 284 BLAKE2B 07015a0a788c946807e911262a96b092f7a791b6c704611438c885b2edd0e66f67aff546f3a0eba5541ec099dffe21114e853716caa0576c6d66624b2ed1113f SHA512 bd523ec04caf6bf14902cc8a98f5db41bb5db6c999cf9951c96361fca6c322733f395b0106e298bc40ee907594324a7c866e459530e0c76fa04eb0e7d0581a5c AUX opensp-1.5.2-fix-segfault.patch 747 BLAKE2B 544dbb8a638d2fc8fed5c7426e828d1524f4756e6882ac837b4cf3deab4e039a0b66564431b1849d9067f6071955f82b8057cde5168094da70b1419844b000fe SHA512 e0c72df8e8b191c6cecabcac550cc52918bbff7c2fddf8099ff4403de0fe817c1f3f5deb44b4c33e9d135a97a4fd8978c4090f6740c99dbadc6f9b06e24c41cf DIST OpenSP-1.5.2.tar.gz 1521390 BLAKE2B 2c6f8dfc721c77ab223aa67e90c8dfb45855b74fdd382ac98303c6fb23af08019ca96b5430bcdb87b9e86fc333114bd8b2e5f243c87f2cf84ee04c880c8c309b SHA512 a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e -EBUILD opensp-1.5.2-r7.ebuild 2098 BLAKE2B 2f08bba773adf3277f0cb55216777d036a3f8612c6798a45965184fa7f855ba6dbf428abb5fe05d6b4f597ab2111bab799de1e22f6e31b07878699e67b8e9f76 SHA512 5b5517bb8ba18cc068e4e9551a79cc72eed2b1423e55f58515e39fcbea2c5ab948cd68bf26b1b964ebc58456dc0aba2e7213aa755aaa445a0af0d2a3fcd8f1d3 +EBUILD opensp-1.5.2-r8.ebuild 2183 BLAKE2B cde0c5c6198aaa4eed8ae0db069df2da8b4056e16d84b9d08be3b80896c0ed35f703f2ac9b4bf4a426722584f55cc13ba15c7052a125e250d327b3a3769db4bf SHA512 d2b6b1705e523ba19970adbdc9e50f67cfaf8a4cdde7b24e0e2ae17db2fb41be694e18b1300ca37e96491b84572d327d20a8049cb5a885c88b75845208ca07f4 MISC metadata.xml 321 BLAKE2B 5571226bba817c3d5cc47e0bd7d67e82399403e24e7773104f33b13bf40d95113da9613db2bd77408557e6793b9efb6d435402a7b680d07e1e3e6952614bdedd SHA512 95c0d6759a91874b81b707e479eee48bf67ba762584587b4027b583e42d63a83018a3243fe81b6649090d1e0167ab825b591dfccbd3a8db9078b1a80f729de15 diff --git a/app-text/opensp/files/opensp-1.5.2-configure-clang16.patch b/app-text/opensp/files/opensp-1.5.2-configure-clang16.patch new file mode 100644 index 000000000000..468d0f1d306d --- /dev/null +++ b/app-text/opensp/files/opensp-1.5.2-configure-clang16.patch @@ -0,0 +1,13 @@ +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -9,8 +9,9 @@ changequote([, ])dnl + AC_MSG_CHECKING(size of $1) + AC_CACHE_VAL(AC_CV_NAME, + [AC_TRY_RUN([#include ++#include + #include <$2> +-main() ++int main(void) + { + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); diff --git a/app-text/opensp/opensp-1.5.2-r7.ebuild b/app-text/opensp/opensp-1.5.2-r7.ebuild deleted file mode 100644 index 9f6b4f539bb4..000000000000 --- a/app-text/opensp/opensp-1.5.2-r7.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools flag-o-matic - -MY_P=${P/opensp/OpenSP} - -DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management" -HOMEPAGE="http://openjade.sourceforge.net/" -SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz" -S="${WORKDIR}"/${MY_P} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="doc nls static-libs test" -RESTRICT="!test? ( test )" - -RDEPEND="elibc_glibc? ( net-libs/libnsl:0= )" -DEPEND="${RDEPEND}" -BDEPEND="nls? ( sys-devel/gettext ) - doc? ( - app-text/xmlto - app-text/docbook-xml-dtd:4.1.2 - ) - test? ( - app-text/docbook-xml-dtd:4.5 - app-text/openjade - app-text/sgml-common - )" - -PATCHES=( - "${FILESDIR}"/${P}-fix-segfault.patch - "${FILESDIR}"/${P}-c11-using.patch -) - -src_prepare() { - default - use prefix && eautoreconf -} - -src_configure() { - export CONFIG_SHELL=${BASH} # configure needs bash - - # The following filters are taken from openjade's ebuild. See bug #100828. - # Please note! Opts are disabled. If you know what you're doing - # feel free to remove this line. It may cause problems with - # docbook-sgml-utils among other things. - #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march" - strip-flags - - econf \ - --enable-http \ - --enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \ - --enable-default-search-path="${EPREFIX}"/usr/share/sgml \ - --datadir="${EPREFIX}"/usr/share/sgml/${P} \ - $(use_enable nls) \ - $(use_enable doc doc-build) \ - $(use_enable static-libs static) -} - -src_compile() { - emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} -} - -src_test() { - # Skipping tests known not to work - emake SHOWSTOPPERS= check - SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" -} - -src_install() { - emake \ - DESTDIR="${D}" \ - pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \ - install - - find "${ED}" -name '*.la' -delete || die - - dodoc AUTHORS BUGS ChangeLog NEWS README -} diff --git a/app-text/opensp/opensp-1.5.2-r8.ebuild b/app-text/opensp/opensp-1.5.2-r8.ebuild new file mode 100644 index 000000000000..743116acc69e --- /dev/null +++ b/app-text/opensp/opensp-1.5.2-r8.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +MY_P=${P/opensp/OpenSP} + +DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management" +HOMEPAGE="http://openjade.sourceforge.net/" +SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz" +S="${WORKDIR}"/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc nls static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND="elibc_glibc? ( net-libs/libnsl:0= )" +DEPEND="${RDEPEND}" +BDEPEND="nls? ( sys-devel/gettext ) + doc? ( + app-text/xmlto + app-text/docbook-xml-dtd:4.1.2 + ) + test? ( + app-text/docbook-xml-dtd:4.5 + app-text/openjade + app-text/sgml-common + )" + +PATCHES=( + "${FILESDIR}"/${P}-fix-segfault.patch + "${FILESDIR}"/${P}-c11-using.patch + "${FILESDIR}"/${P}-configure-clang16.patch +) + +src_prepare() { + default + + # Needed for Clang 16 + eautoreconf +} + +src_configure() { + export CONFIG_SHELL=${BASH} # configure needs bash + + # The following filters are taken from openjade's ebuild. See bug #100828. + # Please note! Opts are disabled. If you know what you're doing + # feel free to remove this line. It may cause problems with + # docbook-sgml-utils among other things. + #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march" + strip-flags + + append-cxxflags -std=gnu++11 + + econf \ + --enable-http \ + --enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \ + --enable-default-search-path="${EPREFIX}"/usr/share/sgml \ + --datadir="${EPREFIX}"/usr/share/sgml/${P} \ + $(use_enable nls) \ + $(use_enable doc doc-build) \ + $(use_enable static-libs static) +} + +src_compile() { + emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_test() { + # Skipping tests known not to work + emake SHOWSTOPPERS= check + SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \ + install + + find "${ED}" -name '*.la' -delete || die + + dodoc AUTHORS BUGS ChangeLog NEWS README +} -- cgit v1.2.3