diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-08-03 23:23:45 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-08-15 01:21:24 +0200 |
commit | 20790ab9144d9648b8d6069212fc407cb5432793 (patch) | |
tree | a65e99e62e58348f92d379be8f7c191bd6fd2f8c /dev-libs/link-grammar | |
parent | dev-libs/libpreludedb: Drop superfluous calls to python_is_python3 (diff) | |
download | gentoo-20790ab9144d9648b8d6069212fc407cb5432793.tar.gz gentoo-20790ab9144d9648b8d6069212fc407cb5432793.tar.bz2 gentoo-20790ab9144d9648b8d6069212fc407cb5432793.zip |
dev-libs/link-grammar: Drop superfluous calls to python_is_python3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/link-grammar')
-rw-r--r-- | dev-libs/link-grammar/link-grammar-5.3.11.ebuild | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/dev-libs/link-grammar/link-grammar-5.3.11.ebuild b/dev-libs/link-grammar/link-grammar-5.3.11.ebuild index d8cf07fb2078..ddab5316ca13 100644 --- a/dev-libs/link-grammar/link-grammar-5.3.11.ebuild +++ b/dev-libs/link-grammar/link-grammar-5.3.11.ebuild @@ -90,17 +90,10 @@ src_configure() { if use python ; then prepare_python() { - if python_is_python3; then - ECONF_SOURCE="${S}" gnome2_src_configure \ - --disable-python-bindings \ - --enable-python3-bindings \ - ${myconf[@]} - else - ECONF_SOURCE="${S}" gnome2_src_configure \ - --enable-python-bindings \ - --disable-python3-bindings \ - ${myconf[@]} - fi + ECONF_SOURCE="${S}" gnome2_src_configure \ + --disable-python-bindings \ + --enable-python3-bindings \ + ${myconf[@]} } python_foreach_impl run_in_build_dir prepare_python fi @@ -112,14 +105,7 @@ src_compile() { if use python ; then compile_binding() { - local pysuffix - if python_is_python3; then - pysuffix=3 - else - pysuffix= - fi - - emake -C bindings/python$pysuffix \ + emake -C bindings/python3 \ VPATH="${S}:${NORMAL_BUILD_DIR}" \ _clinkgrammar_la_DEPENDENCIES="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \ _clinkgrammar_la_LIBADD="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la @@ -140,14 +126,7 @@ src_install() { if use python ; then install_binding() { - local pysuffix - if python_is_python3; then - pysuffix=3 - else - pysuffix= - fi - - emake -C bindings/python$pysuffix \ + emake -C bindings/python3 \ VPATH="${S}:${NORMAL_BUILD_DIR}" \ _clinkgrammar_la_DEPENDENCIES="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \ _clinkgrammar_la_LIBADD="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \ |