gentoo/dev-tcltk/tcllib/tcllib-1.21.ebuild
Fabian Groffen 2d25fad95c
*/*: drop *-linux keywords
Bug: https://bugs.gentoo.org/473598
Bug: https://bugs.gentoo.org/720224
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2025-12-19 10:51:55 +01:00

52 lines
966 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit virtualx
DESCRIPTION="Tcl Standard Library"
HOMEPAGE="http://www.tcl.tk/software/tcllib/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${PN}/${PV}/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
IUSE="examples"
KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
RESTRICT="!test? ( test )"
RDEPEND="
dev-lang/tcl:0=
dev-tcltk/tdom
"
DEPEND="${RDEPEND}"
DOCS=(
ChangeLog DESCRIPTION.txt README.md devdoc/README.developer
devdoc/critcl-tcllib.txt devdoc/dirlayout_install.txt
devdoc/indexing.txt
)
HTML_DOCS=( idoc/www )
PATCHES=( "${FILESDIR}"/${P}-test.patch )
src_prepare() {
default
rm modules/httpd/httpd.test || die
}
src_test() {
USER= virtx emake test_batch
}
src_install() {
default
if use examples ; then
for f in $(find examples -type f); do
docinto $(dirname $f)
dodoc $f
done
fi
}