You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-tcltk/tkcon/tkcon-2.5-r1.ebuild

37 lines
734 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit multilib
DESCRIPTION="Tk GUI console"
HOMEPAGE="http://tkcon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
SLOT="0"
IUSE="doc"
DEPEND="dev-lang/tk:*"
RDEPEND="${DEPEND}"
src_prepare() {
default
mv docs/changes.txt CHANGES
}
src_install() {
local tclver="$(echo 'puts $tcl_version' | tclsh)"
local instdir=/usr/$(get_libdir)/tcl${tclver}/${PN}2.5
dodir ${instdir}
cp -pP pkgIndex.tcl tkcon.tcl "${D}"${instdir} || die
dodir /usr/bin
dosym ${instdir}/tkcon.tcl /usr/bin/tkcon
if use doc; then
HTML_DOCS=( docs/* )
fi
einstalldocs
}