libsmdev: good bye, py2

This commit is contained in:
Yury Martynov 2020-02-20 10:16:29 +03:00
parent 8641f9bf36
commit c6eff57c38
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E

View file

@ -28,6 +28,12 @@ DEPEND="python? ( ${PYTHON_DEPS} )
RDEPEND="${DEPEND}"
pkg_setup() {
if use python; then
python_setup
fi
}
src_prepare() {
default
eautoreconf
@ -43,8 +49,6 @@ src_configure() {
)
if use python ; then
#todo: make python2 optional
myconf+=( --enable-python2 )
prepare_python() {
if python_is_python3; then
myconf+=( --enable-python3 )
@ -54,5 +58,4 @@ src_configure() {
fi
econf ${myconf[@]}
}