diff options
Diffstat (limited to 'meta/recipes-devtools/libdnf/libdnf_git.bb')
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf_git.bb | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf_git.bb b/meta/recipes-devtools/libdnf/libdnf_git.bb index 6e9cfcc862..ef28611f8a 100644 --- a/meta/recipes-devtools/libdnf/libdnf_git.bb +++ b/meta/recipes-devtools/libdnf/libdnf_git.bb | |||
@@ -17,20 +17,9 @@ S = "${WORKDIR}/git" | |||
17 | 17 | ||
18 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc" | 18 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc" |
19 | 19 | ||
20 | inherit gtk-doc gobject-introspection cmake pkgconfig | 20 | inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base |
21 | 21 | ||
22 | # We cannot inherit pythonnative (or descendant classes like distutils etc.) | 22 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \ |
23 | # because that would conflict with inheriting python3native | ||
24 | # (which is done by inheriting gobject-introspection). | ||
25 | # But libdnf only needs the path to native Python 2.x binary | ||
26 | # so we simply set it explicitly here. | ||
27 | # | ||
28 | # These lines can be dropped when dnf stack is moved to python 3.x | ||
29 | EXTRANATIVEPATH += "python-native" | ||
30 | FILES_${PN} += " ${libdir}/python2.7/*" | ||
31 | DEPENDS += "python-native" | ||
32 | |||
33 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF \ | ||
34 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \ | 23 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \ |
35 | " | 24 | " |
36 | EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" | 25 | EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" |