diff options
Diffstat (limited to 'dev-tcltk/tclpython/tclpython-5.0.ebuild')
-rw-r--r-- | dev-tcltk/tclpython/tclpython-5.0.ebuild | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild b/dev-tcltk/tclpython/tclpython-5.0.ebuild index 92786421ee10..90df040a57ae 100644 --- a/dev-tcltk/tclpython/tclpython-5.0.ebuild +++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild @@ -24,31 +24,27 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) +src_prepare() { + default + sed -i \ + -e "s:@CFLAGS@:${CFLAGS}:g" \ + -e "s:@LDFLAGS@:${LDFLAGS}:g" \ + Makefile || die +} + src_compile() { - if python_is_python3; then - PKG_NAME=tclpython3 - else - PKG_NAME=tclpython - fi - emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC) + emake PKG_NAME=tclpython3 CC=$(tc-getCC) } src_test() { - emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC) test + emake PKG_NAME=tclpython3 CC=$(tc-getCC) test } 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 + 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 } |