diff options
Diffstat (limited to 'dev-tcltk/vtcl/vtcl-1.6.1_alpha1.ebuild')
-rw-r--r-- | dev-tcltk/vtcl/vtcl-1.6.1_alpha1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-tcltk/vtcl/vtcl-1.6.1_alpha1.ebuild b/dev-tcltk/vtcl/vtcl-1.6.1_alpha1.ebuild new file mode 100644 index 000000000000..7d1e4a5eb8f8 --- /dev/null +++ b/dev-tcltk/vtcl/vtcl-1.6.1_alpha1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit edos2unix + +MYP=${PN}-${PV/_alpha/a} + +DESCRIPTION="Visual Tcl is a high-quality application development environment" +HOMEPAGE="http://vtcl.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" +DEPEND="dev-lang/tk:*" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MYP} + +MY_DESTDIR=/usr/share/${PN} + +PATCHES=( "${FILESDIR}"/${P}-tk86.patch ) + +src_prepare() { + edos2unix configure + default +} + +src_compile() { + sed -i 's,^\(VTCL_HOME=\).*,\1'${MY_DESTDIR}',g' vtcl || die "Path fixing failed." + sed -i 's,package require -exact Tk ,package require Tk ,' lib/tkcon.tcl || die "Tcl8.5 patch failed" +} + +src_install() { + dodir ${MY_DESTDIR} + dobin vtcl + cp -r ./{demo,images,lib,sample,vtcl.tcl} "${D}/${MY_DESTDIR}" || die "Data installation failed." + if use doc; then + DOCS=( ChangeLog README doc/tutorial.txt ) + HTML_DOCS=( doc/*html ) + fi + einstalldocs +} |