diff options
author | Sam James <sam@gentoo.org> | 2021-11-11 03:40:57 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-11 03:40:57 +0000 |
commit | f741f907744673e7472b2307c0d30f3e66db3887 (patch) | |
tree | 711b6912911adcde1873c3deeaddfc0950a0e603 /app-text/lesspipe/lesspipe-1.91.ebuild | |
parent | sys-libs/ncurses: keyword 6.3_p20211106 (diff) | |
download | gentoo-f741f907744673e7472b2307c0d30f3e66db3887.tar.gz gentoo-f741f907744673e7472b2307c0d30f3e66db3887.tar.bz2 gentoo-f741f907744673e7472b2307c0d30f3e66db3887.zip |
app-text/lesspipe: add 1.91
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text/lesspipe/lesspipe-1.91.ebuild')
-rw-r--r-- | app-text/lesspipe/lesspipe-1.91.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/app-text/lesspipe/lesspipe-1.91.ebuild b/app-text/lesspipe/lesspipe-1.91.ebuild new file mode 100644 index 000000000000..ecc7dc9e5b7d --- /dev/null +++ b/app-text/lesspipe/lesspipe-1.91.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A preprocessor for less" +HOMEPAGE="https://github.com/wofr06/lesspipe" +SRC_URI="https://github.com/wofr06/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +# Tests are broken in 1.84, 1.85. +# Still fragile in 1.88. Passes when lesspipe is not installed. +# ... and in 1.91, things are being overhauled still. +# Please check again on bumps! +# bug #734896 +RESTRICT="test" + +DEPEND="dev-lang/perl" +RDEPEND="${DEPEND} + !<sys-apps/less-483-r1" + +src_prepare() { + default + + # Drop a failing test. Not ideal, however: + # The test suite for this package is pretty fragile; it's more valuable + # to have _something_ failing/passing overall, than relying on a single + # test which seems to fail due to an unpredictable external command. + #sed -i -e '/#needs pstotext ps2ascii/d' TESTCMDS || die +} + +src_configure() { + # Not an autoconf script. + ./configure --fixed || die +} + +src_compile() { + # Nothing to build (avoids the "all" target) + : +} + +src_test() { + # LC_ALL=C manages to fix one test failure + LC_ALL=C ./test.pl -d || die "Tests failed!" +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install + einstalldocs +} + +pkg_preinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "This package installs 'lesspipe.sh' which is distinct from 'lesspipe'." + elog "The latter is the Gentoo-specific version. Make sure to update your" + elog "LESSOPEN environment variable if you wish to use this copy." + fi +} |