blob: 1b06d66b19ca34e28438dd94a30bff30b4380f27 [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 \
11 file://0001-Use-single-quotes-around-string-literals-used-in-SQL.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040012 "
13
Andrew Geissler4b740dc2020-05-05 08:54:39 -050014SRCREV = "8330eea6985c4e4b53796f858de5b6b38b1ddf5c"
Andrew Geissler82c905d2020-04-13 13:39:40 -050015UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
Brad Bishopc342db32019-05-15 21:57:59 -040016
17S = "${WORKDIR}/git"
18
Andrew Geissler4b740dc2020-05-05 08:54:39 -050019DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc libmodulemd json-c swig-native"
Brad Bishopc342db32019-05-15 21:57:59 -040020
21inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base
22
23EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \
24 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \
25 -DWITH_TESTS=OFF \
Andrew Geissler4b740dc2020-05-05 08:54:39 -050026 -DWITH_ZCHUNK=OFF \
27 -DWITH_HTML=OFF \
Brad Bishopc342db32019-05-15 21:57:59 -040028 "
29EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF"
30EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_GIR=OFF"
31
32BBCLASSEXTEND = "native nativesdk"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033PNBLACKLIST[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 -040034