diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-18 09:41:23 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-18 09:41:23 +0000 |
commit | d93ba9788a6ad1e5da2bf47e804456ded6d5c65c (patch) | |
tree | e01c10bcfe477cecf1770c8a8186e4a5344057b9 /sci-misc/apertium | |
parent | 7bf32644d8b70a318475609992d8e4853ec4ec0e (diff) |
gentoo auto-resync : 18:12:2022 - 09:41:22
Diffstat (limited to 'sci-misc/apertium')
-rw-r--r-- | sci-misc/apertium/Manifest | 5 | ||||
-rw-r--r-- | sci-misc/apertium/apertium-3.8.3.ebuild | 65 | ||||
-rw-r--r-- | sci-misc/apertium/files/apertium-3.8.3-bashism.patch | 30 | ||||
-rw-r--r-- | sci-misc/apertium/metadata.xml | 1 |
4 files changed, 100 insertions, 1 deletions
diff --git a/sci-misc/apertium/Manifest b/sci-misc/apertium/Manifest index 9a678affcc87..69ba57b7b66b 100644 --- a/sci-misc/apertium/Manifest +++ b/sci-misc/apertium/Manifest @@ -2,6 +2,9 @@ AUX 3.2.0-datadir.patch 1315 BLAKE2B 011d2670fafed5ef1a891c39a6c6f084156f1f14a69 AUX 3.2.0-flags.patch 2163 BLAKE2B 213aa7a6cd5dd9c5e068f5bfe96d5dbe3640e6c231230a912996e705efbe37ba486e962da9b7b5473b8b38ed1861eee3d2f3565ca5a5764433792ab0264c4266 SHA512 25a1e8687c38091b249fbbef4dac01c95f4b446ad7e3ffd829b8803d056e34ec49057855af80f8ec578d83894234ab0c87b900daec759a6fd3ba8ae3fc736fce AUX apertium-3.2.0-autotools.patch 3814 BLAKE2B b5e621bde3986220b2e624234e5a865d4ed4f114412aa8e822d587eb12f66f8549fc7b083b52340bea36f18001e42f8e32a034127ec43ff70f94674b821b853f SHA512 b5ff3fe8820aff1d7f10eb38ba5b921c87a780c6e146f316a43f8436facb1671b873d22a0b8cd9b0d7f1fda53db9db9b291cd0083d848d039a91aeeaf82d8b30 AUX apertium-3.2.0-libpcre.patch 1480 BLAKE2B 218a59978c694b1cbd4a6fcad2e80e0abf30be9f89f4f6180e6a94ff8a399ef7e60790b74a661866bef5dd09dfa7b0ed5cdb17027c2539659ca9eaaf816042eb SHA512 e8816e99ea2e2c0c027e498d77bf6948002f84781a3af77bb6cf570dfbf29a4a111b94abadfd4b8e4c35737c17abc51c89d880ee938a71fd7a2e57fe88ac081b +AUX apertium-3.8.3-bashism.patch 1118 BLAKE2B c85794029961ee2ceae993fc02807fac3b18f7fd86c7bd094401e77e7d633b7b5ea6d5d38f45311df4e783196e9b88ab590d1e4c787ff87cc0f3e3a09d0aa605 SHA512 0140595bc652df6b8584c3d3f7fd071a9ee545063a0baa0b0a553e10db32cb1f4e9d9fe578ebe3612c7583bf65b500e7170a64240735dd2951e97808545ec132 DIST apertium-3.2.0.tar.gz 767311 BLAKE2B 03069a0839d0ad61db12aea977e0847b3093a46becd7c36e3bb7b483242986f8f1b4a94c6c64bdfc94f11d13353fbdb6835ff032158d9a05151342606fdd57a1 SHA512 ec80d72480e414eb9a169241d0921b21009dde7c1da9a773f500f16ac785741be1f4a221c25b3b32e7847405f76e93b5feadb6f541170c0742718e27dfa1fb25 +DIST apertium-3.8.3.tar.bz2 560957 BLAKE2B c610395fb1e725ddc628a15b1234c434d174c5b5664ed8fa2d1480d438e143bcd194b6f5a2e79ede6fec0d4fa156be2b7725134727e2f976fe7ecd053a88c520 SHA512 78da8ffcc01706563c4e34c73355b3c65bc2b22abf1501169638b89eae95cd0a4bff095eef5488cba58d0e67b8dd7efd93759981ebd28a9115028e7ad75fa551 EBUILD apertium-3.2.0.ebuild 849 BLAKE2B 74e1005c7d0aef3da2ab440ac3f0b2257e7856516349a0fafaa24d68a2fb64ae7414f2554e661328ae4857d19b2ccd82090d1df5adf7810aa78f33921dff1ab8 SHA512 03159002f7f18a42b06aa67bb414140129ec370327b4401f65191ec01771f15483eabea16b8c5cf8bd332d9edb9acdc3ae85c697bb61926091a25b29e558deed -MISC metadata.xml 332 BLAKE2B 47c233bd4ceeeece485ff4de5251d291a6b3b476e1664a8352b9ff23bec8ab4ace9d12ac0ed60b339e216d780bac16fa4f3c71176ae5f7356d3529ab9b83b8f1 SHA512 088b56ef272e39fc3081bb78fc71aad937b40542008c15868dcade946825154ab7436df2ade131d6b4e2f032883b4a50edbe5e122e83c7238665a45fa9f03166 +EBUILD apertium-3.8.3.ebuild 1161 BLAKE2B c3d5272bd106ebadc31d37f77cbab280c02e918c8d879a6772c4835457fec2abe79ca77e12f84d3f50a20b166f43e041b6ae5542f945754e1065138499c6ebe2 SHA512 135c4b42cd0659228e809d8ed21791cc4e6e01dc765386749bb0640f9d2cf76e175a1693927f77da7fb2e4418b00e5ecd0bbe8c66a181e87295e406d2f251292 +MISC metadata.xml 389 BLAKE2B 9674e02a0086439f5df797f8951d470efbc238f8bd4ba18ac45de8cb37142b6925fa83a0e4f8cc9895ed4f22d31fa61b7bad86e54cdd99938dd73d1523b0c170 SHA512 0622d3671a133e98538ee98d68db414e1eab4da2dde733d6406e25771651e8a0713c107120a3796484cc9d0f45504b5ea8d463e5a4e9127378c58dfb9b5cf18d diff --git a/sci-misc/apertium/apertium-3.8.3.ebuild b/sci-misc/apertium/apertium-3.8.3.ebuild new file mode 100644 index 000000000000..9a7357b9d220 --- /dev/null +++ b/sci-misc/apertium/apertium-3.8.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit autotools python-any-r1 + +DESCRIPTION="Shallow-transfer machine Translation engine and toolbox" +HOMEPAGE="http://apertium.sourceforge.net/" +SRC_URI="https://github.com/apertium/apertium/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +# PKG_VERSION_ABI in configure.ac +SLOT="0/3" +KEYWORDS="~amd64 ~x86" +IUSE="test" +# TODO: test_null_flush fails +RESTRICT="!test? ( test ) test" + +RDEPEND=" + dev-libs/icu:= + >=dev-libs/libxml2-2.6.17 + dev-libs/utfcpp + >=sci-misc/lttoolbox-3.7.1:= + virtual/libiconv +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + dev-libs/libzip[tools] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.8.3-bashism.patch +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + + # Requires shellcheck, not useful for us in Gentoo + cat <<-EOF > tests/sh/run || die + #!/usr/bin/env bash + exit 77 + EOF + + eautoreconf +} + +src_configure() { + econf --disable-python-bindings +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-misc/apertium/files/apertium-3.8.3-bashism.patch b/sci-misc/apertium/files/apertium-3.8.3-bashism.patch new file mode 100644 index 000000000000..ca479d9cc134 --- /dev/null +++ b/sci-misc/apertium/files/apertium-3.8.3-bashism.patch @@ -0,0 +1,30 @@ +https://github.com/apertium/apertium/pull/181 + +From 08578745ba3988ece9596eaca734d08e64bae4e1 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 18 Dec 2022 03:39:58 +0000 +Subject: [PATCH] configure.ac: fix bashism +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +configure scripts need to be runnable with a POSIX-compliant /bin/sh. + +On many (but not all!) systems, /bin/sh is provided by Bash, so errors +like this aren't spotted. Notably Debian defaults to /bin/sh provided +by dash which doesn't tolerate such bashisms as '=='. + +This retains compatibility with bash. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -95,7 +95,7 @@ for version in 23 2b 20 2a 17; do + version_flag="-std=c++${version}" + AX_CHECK_COMPILE_FLAG([${version_flag}], [break], [version_flag=none]) + done +-AS_IF([test "$version_flag" == none], [ ++AS_IF([test "$version_flag" = none], [ + AC_MSG_ERROR([Could not enable at least C++17 - upgrade your compiler]) + ]) + CXXFLAGS="$CXXFLAGS ${version_flag}" diff --git a/sci-misc/apertium/metadata.xml b/sci-misc/apertium/metadata.xml index 495d10250ad8..fd76f5b4b927 100644 --- a/sci-misc/apertium/metadata.xml +++ b/sci-misc/apertium/metadata.xml @@ -6,6 +6,7 @@ <name>Gentoo Science Project</name> </maintainer> <upstream> + <remote-id type="github">apertium/apertium</remote-id> <remote-id type="sourceforge">apertium</remote-id> </upstream> </pkgmetadata> |