Сравнение tclpython-4.1-r7 с tclpython-5.0-r1

/var/lib/layman/calculate/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 2020-06-14 13:45:36.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=6
5 5

  
6 6
PYTHON_COMPAT=( python3_7 )
7 7

  
8
inherit eutils multilib python-single-r1 toolchain-funcs
8
inherit multilib python-single-r1 toolchain-funcs
9 9

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

  
14 14
LICENSE="GPL-2"
15 15
SLOT="0"
16
KEYWORDS="amd64 ppc x86"
16
KEYWORDS="~amd64 ~ppc ~x86"
17 17
IUSE=""
18 18

  
19 19
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20 20

  
21 21
DEPEND="${PYTHON_DEPS}
22
	dev-lang/tcl:0=
23
	sys-libs/binutils-libs"
22
	dev-lang/tcl:0="
24 23
RDEPEND="${DEPEND}"
25 24

  
26
PATCHES=(
27
	"${FILESDIR}"/${P}-python-3.patch
28
)
25
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
29 26

  
30
src_prepare() {
31
	epatch "${PATCHES[@]}"
27
src_compile() {
28
	emake PKG_NAME=tclpython3 CC=$(tc-getCC) \
29
		MYCFLAGS="${CFLAGS}" MYLDFLAGS="${LDFLAGS}"
32 30
}
33 31

  
34
src_compile() {
35
	local cfile="tclpython tclthread"
36
	for src in ${cfile}; do
37
		compile="$(tc-getCC) -shared -fPIC ${CFLAGS} -I$(python_get_includedir) -c ${src}.c"
38
		einfo "${compile}"
39
		eval "${compile}" || die
40
	done
41

  
42
	link="$(tc-getCC) -fPIC -shared ${LDFLAGS} -o tclpython.so.${PV} tclpython.o tclthread.o -lpthread -lutil $(python_get_LIBS) -ltcl"
43
	einfo "${link}"
44
	eval "${link}" || die
32
src_test() {
33
	emake PKG_NAME=tclpython3 CC=$(tc-getCC) test
45 34
}
46 35

  
47 36
src_install() {
48
	insinto /usr/$(get_libdir)/tclpython
49
	doins tclpython.so.${PV} pkgIndex.tcl
50
	fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
51
	dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython.so
37
	insinto /usr/$(get_libdir)
38
	doins -r build/tclpython3/tclpython3
39
	fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
40
	dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
52 41

  
53
	dodoc CHANGES INSTALL README
54
	dohtml tclpython.htm
42
	dodoc README.md VERSION.md
55 43
}
Спасибо!