diff options
Diffstat (limited to 'app-text/highlight')
-rw-r--r-- | app-text/highlight/Manifest | 3 | ||||
-rw-r--r-- | app-text/highlight/highlight-4.9.ebuild | 15 |
2 files changed, 15 insertions, 3 deletions
diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest index 7c055786b3a8..dfb82909e7b9 100644 --- a/app-text/highlight/Manifest +++ b/app-text/highlight/Manifest @@ -5,8 +5,9 @@ DIST highlight-4.8.tar.bz2 1492966 BLAKE2B f0bc746cb671037c2a5f1557c6114c143448d DIST highlight-4.8.tar.bz2.asc 488 BLAKE2B 466905e2a4b1b577feba593e2d6e855e09764cdb08ddbd5aa3b4c62c4b06bc19a013df16aa1dfc81d4e52765641d5f98615233609d7b4f039f6f8c6a929d345a SHA512 929c5b0a25a2f5a0b9204afb03b5456b2b62d07e519799602b06a0ad2d4bc1d9eac92965571732b0eaffe780904321ebffb31cdf61b6fe644ecc39ddb983c7b8 DIST highlight-4.9.tar.bz2 1498248 BLAKE2B 09ff0a5cc81da45270a8382dc6b2a2d3b44d1f084e661fae4a3d39d2ded9af6c77b1fb0d51d32c59f22ccba1612ab7faf68b5e918dda70c9f2e25b29b5c44ecd SHA512 280abd98182c5b95f629ca126e8a59ca6bf6f9e301fc7678aa3e4cb37b714827dfdfab1e008c798e203c7408355be63e01e88f93eacfcf2c5fad95afc6e22112 DIST highlight-4.9.tar.bz2.asc 488 BLAKE2B cbd3541f65ec714ff1fda17fb141aa19f53952634a2027819fdbf50f7cf781f875b76ebd9a82119347f17940d8200f856082dfff51ff994a71a2ece04d654764 SHA512 04c2aca4050cae0dde97340a1ebafd968526e2d811e4551e8895acca50613f7e5902e31d735a0da1427d69e85e152530776fa1b9f5896efe410d8f9437768298 +DIST highlight-test-suite-a3479468672cdbc570a17ae84e047fe8f0b88798.tar.bz2 33310 BLAKE2B a06f2503fc571f5978f648fdc677f58f3fdfa759f9b5cf31a85d03589bbbfd2b56c7055517c59292369653503047af63d9c3bfbbe541a50bd2ea2adede28f60c SHA512 9583fe0af315e0dd1e37e137adf5c97a83832885a5a8a12b91790d7d7b0758c03fd76c02fbda368a2481eaec98f7b010a530bc31da98337d6fa7201aadb023ce EBUILD highlight-4.1.ebuild 2423 BLAKE2B 812355e2acd16abd03cc4a6d5555f24af630cce614ffeebc4e4e525916f62a9b51ec1269667d6bd00c744e63ff4b74dbd5cc020307cd24ce12ab6780f1147f94 SHA512 975b17328a8fbe9659c49bd69ea0a1eef4015fa2c70f03d08ce2c5a2dc76252285e5534ea0618d9c3b0da5c0f3dd65206496b4d429c88d7798be500aaff8139e EBUILD highlight-4.6.ebuild 2466 BLAKE2B 49d356dc265081ab2daa808016be4a9894038de25acfee2d58e12488c15b776ed09dd199161f9d6fbd09f0cbbf2283fb200835386fc4d19334b8b510523dbd70 SHA512 ca9540dbf379f752487f42bd7b052efd3304e2295a8b19bf186142ee6f44a5b15bf409e18d9626adfcc9cd4460989f90f31dce9a7761c92b673da99f09e9bd4a EBUILD highlight-4.8.ebuild 2652 BLAKE2B 4b13610b03f99931e6883cd3d6c15ba9f48621e3789159c6681fdf15f7ec20c98774aec07db0dae367e453c3580048baecd2d2841e343af385b232999bdb47e9 SHA512 2cacd15986408ef01a2de54f1afcd47f11971ec9417d29656c55ed15c509e38ad21bc205069f92634d42b4ff0fda38320549cfc184620dc5b89caf67c8c87945 -EBUILD highlight-4.9.ebuild 2653 BLAKE2B 2ed0a4f8f7671d6ca9e9f8225a5918df4fe9ffda96c9fbbfb4bcd4164eb301d362b1fe15083541ed9c81f2057112c47fdcb200f0ea6e0cd3cc70cdd60181617a SHA512 541058b278f217ca9168e33ed5c8d923d693a184293f250a01066ac4f822a2b60ece4270120fa42fe1cc005eb0f21a5db76cd4c2a4e9cc0313f381ab861b869c +EBUILD highlight-4.9.ebuild 3177 BLAKE2B 4f70d0831ebdd1e7e3055ca093783717b25500403bd9e7e1847374b57518474bbddd9e7953aa290185642dec00e8c431fcea291c44980f35a0ec5bac5457906f SHA512 30d0a6cda3e53007078569634fd0ad27a4a94a8b36ee7364d5a96f01e7c109d3d462d341b1e58d069fa9de382a06207cf91d6437ffb9fafccb8c30b6a2a2e864 MISC metadata.xml 331 BLAKE2B 3c864f08058c451342b7f7799f36e901f392207b36114dd123bb3faa59f04fe3b00d8e65cee4ad3bbbe44606bdafbd246c64d5fce03cd54fc64cd40cfde59788 SHA512 eb96ee44971855de0b12f9e230d58714acb54de1b0a814c0681f8c31124a5c3e39290e2fd17523b2b52b65efaf30f64580f00777a8e9c908779b582577897906 diff --git a/app-text/highlight/highlight-4.9.ebuild b/app-text/highlight/highlight-4.9.ebuild index fd881ed2f465..85e9707adae5 100644 --- a/app-text/highlight/highlight-4.9.ebuild +++ b/app-text/highlight/highlight-4.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,15 +9,19 @@ inherit lua-single qmake-utils toolchain-funcs verify-sig xdg DESCRIPTION="Converts source code to formatted text (HTML, LaTeX, etc.) with syntax highlight" HOMEPAGE="http://www.andre-simon.de/" +# This is arbitrary; upstream uses master. Update when possible. +TESTSUITE_COMMIT="a3479468672cdbc570a17ae84e047fe8f0b88798" SRC_URI=" http://www.andre-simon.de/zip/${P}.tar.bz2 + test? ( https://gitlab.com/tajmone/${PN}-test-suite/-/archive/${TESTSUITE_COMMIT}/${PN}-test-suite-${TESTSUITE_COMMIT}.tar.bz2 ) verify-sig? ( http://www.andre-simon.de/zip/${P}.tar.bz2.asc ) " LICENSE="GPL-3" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="examples gui" +IUSE="examples gui test" +RESTRICT="!test? ( test )" REQUIRED_USE="${LUA_REQUIRED_USE}" @@ -97,6 +101,13 @@ src_compile() { fi } +src_test() { + find "../${PN}-test-suite-${TESTSUITE_COMMIT}" -mindepth 1 -maxdepth 1 -type d | sort | while read line + do + "${SHELL}" "${line}/regression.sh" || die "Regression tests failed for language $(basename "${line}")" + done +} + src_install() { emake -f makefile "${myhlopts[@]}" install |