forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcllib-1.16.ebuild
59 lines (44 loc) · 1.04 KB
/
tcllib-1.16.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils virtualx
MY_PN=Tcllib
MY_P=${MY_PN}-${PV}
DESCRIPTION="Tcl Standard Library"
HOMEPAGE="http://www.tcl.tk/software/tcllib/"
SRC_URI="mirror://sourceforge//project/${PN}/${PN}/${PV}/${MY_P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
IUSE="examples"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
RDEPEND="
dev-lang/tcl:0=
dev-tcltk/tdom
"
DEPEND="${RDEPEND}"
DOCS=( DESCRIPTION.txt STATUS )
S="${WORKDIR}"/${MY_P}
PATCHES=( "${FILESDIR}"/${P}-XSS-vuln.patch )
src_prepare() {
has_version ">=dev-lang/tcl-8.6" && \
PATCHES+=( "${FILESDIR}"/${P}-test.patch )
epatch "${PATCHES[@]}"
sed \
-e '/testsNeedTcl/s:8.5:8.6:g' \
-i modules/tar/tar.test || die
}
src_test() {
Xemake test_batch
}
src_install() {
default
dodoc devdoc/*.txt
dohtml devdoc/*.html
if use examples ; then
for f in $(find examples -type f); do
docinto $(dirname $f)
dodoc $f
done
fi
}