mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
* These Perl modules are used at runtime AFAICT, at least in rem2html * Add subslot on tk * Drop unversioned Perl virtual (provided by Perl itself) Signed-off-by: Sam James <sam@gentoo.org>
62 lines
1.1 KiB
Bash
62 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Ridiculously functional reminder program"
|
|
HOMEPAGE="https://dianne.skoll.ca/projects/remind/"
|
|
SRC_URI="https://dianne.skoll.ca/projects/remind/download/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
IUSE="tk"
|
|
|
|
RDEPEND="
|
|
dev-perl/Cairo
|
|
dev-perl/JSON-MaybeXS
|
|
dev-perl/Pango
|
|
tk? (
|
|
>=dev-lang/tk-8.5:=
|
|
dev-tcltk/tcllib
|
|
)
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
DOCS="docs/* examples/defs.rem"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-06.02.01-no-lto.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
# for LTO patch
|
|
eautoreconf
|
|
}
|
|
|
|
src_test() {
|
|
if [[ ${EUID} -eq 0 ]] ; then
|
|
ewarn "Testing fails if run as root. Skipping tests"
|
|
else
|
|
emake test
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
if ! use tk ; then
|
|
rm \
|
|
"${D}"/usr/bin/tkremind \
|
|
"${D}"/usr/share/man/man1/tkremind* \
|
|
|| die
|
|
fi
|
|
|
|
rm "${S}"/contrib/rem2ics-*/{Makefile,rem2ics.spec} || die
|
|
insinto /usr/share/${PN}
|
|
doins -r contrib/
|
|
insinto /usr/share/vim/vimfiles/syntax
|
|
doins examples/remind.vim
|
|
}
|