mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 23:28:08 -07:00
python-utils-r1.eclass: Create python3-embed.pc wrapper
Closes: https://bugs.gentoo.org/712526 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -978,7 +978,7 @@ python_wrapper_setup() {
|
||||
# Clean up, in case we were supposed to do a cheap update.
|
||||
rm -f "${workdir}"/bin/python{,2,3}{,-config} || die
|
||||
rm -f "${workdir}"/bin/2to3 || die
|
||||
rm -f "${workdir}"/pkgconfig/python{2,3}.pc || die
|
||||
rm -f "${workdir}"/pkgconfig/python{2,3}{,-embed}.pc || die
|
||||
|
||||
local EPYTHON PYTHON
|
||||
python_export "${impl}" EPYTHON PYTHON
|
||||
@@ -1022,6 +1022,12 @@ python_wrapper_setup() {
|
||||
# Python 2.7+.
|
||||
ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc \
|
||||
"${workdir}"/pkgconfig/python${pyver}.pc || die
|
||||
|
||||
# Python 3.8+.
|
||||
if [[ ${EPYTHON} != python[23].[67] ]]; then
|
||||
ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}-embed.pc \
|
||||
"${workdir}"/pkgconfig/python${pyver}-embed.pc || die
|
||||
fi
|
||||
else
|
||||
nonsupp+=( 2to3 python-config "python${pyver}-config" )
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user