27 |
SRCFILE="${PNAME/3/}-${PVER}.tar.xz" |
SRCFILE="${PNAME/3/}-${PVER}.tar.xz" |
28 |
SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}" |
29 |
|
|
30 |
sminclude python2 python3 |
sminclude meson python2 python3 |
31 |
msetfeature "!check" |
msetfeature "!check" |
32 |
|
|
33 |
SRC_URI=( |
SRC_URI=( |
67 |
python2_src_prepare || die |
python2_src_prepare || die |
68 |
python3_src_prepare || die |
python3_src_prepare || die |
69 |
|
|
70 |
# enforce make install method |
# enforce meson method |
71 |
rm ${MAGE_PYTHON2_SRCSUBDIR}/$(basename ${SRCDIR})/setup.py || die |
rm ${MAGE_PYTHON2_SRCSUBDIR}/$(basename ${SRCDIR})/setup.py || die |
72 |
rm ${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${SRCDIR})/setup.py || die |
rm ${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${SRCDIR})/setup.py || die |
73 |
} |
} |
74 |
|
|
75 |
src_compile() |
src_compile() |
76 |
{ |
{ |
77 |
python2_src_compile --with-python=${MAGE_PYTHON2_EXEC} || die |
MAGE_PYTHON_EXEC=${MAGE_PYTHON2_EXEC} python2_src_compile || die |
78 |
python3_src_compile --with-python=${MAGE_PYTHON3_EXEC} || die |
MAGE_PYTHON_EXEC=${MAGE_PYTHON3_EXEC} python3_src_compile || die |
79 |
} |
} |
80 |
|
|
81 |
src_install_python2-gobject3() |
src_install_python2-gobject3() |