diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-21 12:05:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-21 12:05:28 +0100 |
commit | 490ef2c2dc8b4e808f37add1adee21a754efd9a9 (patch) | |
tree | e235cdf15550b3d2f644b6fc4a8aa726971416f5 /dev-tcltk/tclpython/tclpython-5.0-r3.ebuild | |
parent | da7ae1dd1fccb6b3c0e4763ab983ad96d57bf463 (diff) |
gentoo auto-resync : 21:04:2024 - 12:05:28
Diffstat (limited to 'dev-tcltk/tclpython/tclpython-5.0-r3.ebuild')
-rw-r--r-- | dev-tcltk/tclpython/tclpython-5.0-r3.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-tcltk/tclpython/tclpython-5.0-r3.ebuild b/dev-tcltk/tclpython/tclpython-5.0-r3.ebuild new file mode 100644 index 000000000000..c2d90e8755e1 --- /dev/null +++ b/dev-tcltk/tclpython/tclpython-5.0-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +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: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 +} |