blob: 947b2f23484ce8429c3ea74551ea4740a2bfccf9 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "Library providing simplified C and Python API to libsolv"
2LICENSE = "LGPLv2.1"
3LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
4
Andrew Geissler4b740dc2020-05-05 08:54:39 -05005SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master \
Brad Bishopc342db32019-05-15 21:57:59 -04006 file://0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch \
7 file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \
8 file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
9 file://0001-Add-WITH_TESTS-option.patch \
Andrew Geissler4b740dc2020-05-05 08:54:39 -050010 file://0001-Look-fo-sphinx-only-if-documentation-is-actually-ena.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040011 "
12
Andrew Geissler475cb722020-07-10 16:00:51 -050013SRCREV = "46a28d0cf09277fffc11392e5e362a2eda0d53a8"
Andrew Geissler82c905d2020-04-13 13:39:40 -050014UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
Brad Bishopc342db32019-05-15 21:57:59 -040015
16S = "${WORKDIR}/git"
17
Andrew Geissler4b740dc2020-05-05 08:54:39 -050018DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc libmodulemd json-c swig-native"
Brad Bishopc342db32019-05-15 21:57:59 -040019
20inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base
21
22EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \
23 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \
24 -DWITH_TESTS=OFF \
Andrew Geissler4b740dc2020-05-05 08:54:39 -050025 -DWITH_ZCHUNK=OFF \
26 -DWITH_HTML=OFF \
Brad Bishopc342db32019-05-15 21:57:59 -040027 "
28EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF"
29EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_GIR=OFF"
30
31BBCLASSEXTEND = "native nativesdk"
Andrew Geissler82c905d2020-04-13 13:39:40 -050032PNBLACKLIST[libdnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'Does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}"
Brad Bishopc342db32019-05-15 21:57:59 -040033