diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2023-11-19 10:48:27 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-11-21 18:31:05 +0100 |
commit | ad6c1028d163d7025ce59f173bf684624bc05b4e (patch) | |
tree | a67365feee822813e23e106b76a646d2851aae59 /app-misc/tdl | |
parent | dev-lang/julia-bin: add 1.8.5 (diff) | |
download | gentoo-ad6c1028d163d7025ce59f173bf684624bc05b4e.tar.gz gentoo-ad6c1028d163d7025ce59f173bf684624bc05b4e.tar.bz2 gentoo-ad6c1028d163d7025ce59f173bf684624bc05b4e.zip |
app-misc/tdl: EAPI8 bump, fix LICENSE, minor improvements
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-misc/tdl')
-rw-r--r-- | app-misc/tdl/Manifest | 1 | ||||
-rw-r--r-- | app-misc/tdl/tdl-1.5.2-r4.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-misc/tdl/Manifest b/app-misc/tdl/Manifest index d46b62fcc4a3..51017ec91023 100644 --- a/app-misc/tdl/Manifest +++ b/app-misc/tdl/Manifest @@ -1,2 +1,3 @@ +DIST tdl-1.5.2.gh.tar.gz 66542 BLAKE2B 7e7017ee3937d8775907e907a1eb4ab34880013c85cddbdfcc9239e35bf788904f232e668345074966b5940ab518af91df842cf38a50517dcfdf9953b403cf33 SHA512 c00abe14a0a4e2d0bec83e4f5cf3c28749976d42f5a15d0f4065f928fae20d7bfdf4339dc4d863ab4d4006d307a8797fc12e20cf1ef5b9a71c5018ec98d4f732 DIST tdl-1.5.2.tar.gz 66057 BLAKE2B cc2d5581126d995098b5dc3032c97213614acaea3b984a507a824da2ba4d3be9afff954722f29acf0b9bd26db42ada22d67fc9110496961c2cb3104d9b4b7ece SHA512 8c07a5b6a5434bb567a2d68b6e0215bbfa7be3f7176ae1042652ac18684289117230af25d8d161fcf1ba27d9b740fd3fcd43c3213467b533de64390686481fe0 DIST tdl-screenshot.png.tar 20480 BLAKE2B ce9284501ba1550179e1c3da54399a802aae3c0fb23b9a1ea25a1adb0f5c0404fe7694a360435913bb91cc1977d71561050ec0fe4e1681db775cdc7ec5fa11b7 SHA512 caca9793626b320ded4c7f16425b98e4bfde9ab0ca3c1bea60ecc8aaa8db080ab6fc3c474aef4d56e394b6415ec1162671329912aa22452dbd5dc72b50c7c8f6 diff --git a/app-misc/tdl/tdl-1.5.2-r4.ebuild b/app-misc/tdl/tdl-1.5.2-r4.ebuild new file mode 100644 index 000000000000..cfb61ffaa85e --- /dev/null +++ b/app-misc/tdl/tdl-1.5.2-r4.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo toolchain-funcs + +MY_PV="$(ver_rs 1- '_')" +DESCRIPTION="Command line To Do List manager" +HOMEPAGE="https://github.com/rc0/tdl" +SRC_URI="https://github.com/rc0/tdl/archive/V${MY_PV}/V${MY_PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc readline" + +RDEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0=" + +DEPEND=" + ${RDEPEND} + sys-apps/texinfo + doc? ( virtual/texi2dvi )" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${P}-list.c.patch + "${FILESDIR}"/${P}-main.c.patch + "${FILESDIR}"/${P}-man.patch +) + +DOCS=( README NEWS tdl.txt tdl.html ) + +src_prepare() { + default + tc-export CC +} + +src_configure() { + local myconf=( --prefix="${EPREFIX}"/usr ) + + if ! use readline; then + myconf+=( "${myconf} --without-readline" ) + sed -i 's#\($(LIB_READLINE)\)#\1 -lncurses##g' "${S}"/Makefile.in || die + fi + + sed -i 's#-ltermcap#-lncurses#g' "${S}"/configure || die + edo "${S}"/configure "${myconf[@]}" +} + +src_compile() { + export VARTEXFONTS="${T}/fonts" + emake all tdl.info tdl.html tdl.txt + + if use doc; then + emake tdl.dvi tdl.ps tdl.pdf + fi +} + +src_install() { + einstalldocs + doinfo tdl.info + + dobin tdl + doman tdl.1 + + local i + for i in tdl{a,l,d,g} + do + dosym tdl /usr/bin/${i} + dosym tdl.1 /usr/share/man/man1/${i}.1 + done + + if use doc; then + dodoc tdl.dvi tdl.ps tdl.pdf + fi +} |