dev-tcltk/tclpython - 5.1 (gentoo)

Search

Package Information

Description:
Python package for Tcl
Homepage:
http://jfontain.free.fr/tclpython.htm
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
5.1 8 ~amd64 ~ppc ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..13} )

inherit python-single-r1 toolchain-funcs

DESCRIPTION="Python package for Tcl"
HOMEPAGE="http://jfontain.free.fr/tclpython.htm"
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}
	<dev-lang/tcl-9:0="
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )

src_compile() {
	emake PKG_NAME=tclpython3 CC="$(tc-getCC)" \
		MYCFLAGS="${CFLAGS}" \
		MYLDFLAGS="${LDFLAGS} $(python_get_library_path)"
}

src_test() {
	emake PKG_NAME=tclpython3 CC="$(tc-getCC)" test
}

src_install() {
	insinto /usr/$(get_libdir)
	doins -r build/tclpython3/tclpython3
	fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
	dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so

	dodoc README.md VERSION.md
}

Dependencies

DEPEND

${PYTHON_DEPS}
	<dev-lang/tcl-9:0=

RDEPEND

${PYTHON_DEPS}
	<dev-lang/tcl-9:0=

Manifest for 5.1

Type File Size Source URLs
DIST tclpython-5.1.tar.gz 19867 bytes https://github.com/amykyta3/tclpython/archive/5.1.tar.gz