summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2018-10-29 08:57:47 +0100
committerTupone Alfredo <tupone@gentoo.org>2018-10-29 08:57:47 +0100
commit12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0 (patch)
tree908129902b29f631e863e672468ba63a00a3d12b /dev-tcltk/tclpython/tclpython-5.0.ebuild
parentdev-libs/libgit2: Remove vulnerable versions (diff)
downloadgentoo-12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0.tar.gz
gentoo-12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0.tar.bz2
gentoo-12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0.zip
dev-tcltk/tclpython: Version bump to 5.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'dev-tcltk/tclpython/tclpython-5.0.ebuild')
-rw-r--r--dev-tcltk/tclpython/tclpython-5.0.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild b/dev-tcltk/tclpython/tclpython-5.0.ebuild
new file mode 100644
index 00000000000..e4a170a603e
--- /dev/null
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit multilib 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"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+ local PKG_NAME
+ if python_is_python3; then
+ PKG_NAME=tclpython3
+ else
+ PKG_NAME=tclpython
+ fi
+ emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC)
+}
+
+src_install() {
+ if python_is_python3; then
+ 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
+ else
+ insinto /usr/$(get_libdir)
+ doins -r build/tclpython/tclpython
+ fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
+ dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython3.so
+ fi
+
+ dodoc README.md VERSION.md
+}