blob: 8b40241751deedfbbd9c0282f554fd7206e48af1 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Evince is a document viewer for document formats like pdf, ps, djvu"
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=96f2f8d5ee576a2163977938ea36fa7b"
4SECTION = "x11/office"
5DEPENDS = " \
6 adwaita-icon-theme \
7 appstream-glib \
8 cairo \
Patrick Williams8e7b46e2023-05-01 14:19:06 -05009 desktop-file-utils-native \
Andrew Geissler517393d2023-01-13 08:55:19 -060010 dbus \
11 gdk-pixbuf \
12 glib-2.0 \
13 gnome-common-native \
14 gnome-desktop \
15 gsettings-desktop-schemas \
16 gspell \
17 gstreamer1.0-plugins-base \
18 gtk+3 \
19 libarchive \
20 libhandy \
21 libsecret \
22 libxml2 \
23 poppler \
24 yelp-tools-native \
25 zlib \
26"
27
Andrew Geissler517393d2023-01-13 08:55:19 -060028
Andrew Geissler5082cc72023-09-11 08:41:39 -040029inherit gnomebase itstool gnome-help pkgconfig gsettings gobject-introspection gettext mime-xdg gi-docgen features_check gtk-icon-cache
Andrew Geissler517393d2023-01-13 08:55:19 -060030
31REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
32
33def gnome_verdir(v):
34 return oe.utils.trim_version(v, 1)
35
Andrew Geissler220dafd2023-10-04 10:18:08 -050036SRC_URI[archive.sha256sum] = "d18647d4275cbddf0d32817b1d04e307342a85be914ec4dad2d8082aaf8aa4a8"
Andrew Geissler517393d2023-01-13 08:55:19 -060037
38GTKDOC_MESON_OPTION = "gtk_doc"
39
40PACKAGECONFIG ??= ""
41PACKAGECONFIG[nautilus] = "-Dnautilus=true,-Dnautilus=false,nautilus"
42
43RDEPENDS:${PN} += "glib-2.0-utils"
44RRECOMMENDS:${PN} = "adwaita-icon-theme"
45
46PACKAGES =+ "${PN}-nautilus-extension"
47
Andrew Geissler3eeda902023-05-19 10:14:02 -050048do_install:prepend() {
Patrick Williamsac13d5f2023-11-24 18:59:46 -060049 sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/libview/ev-view-type-builtins.c
50 sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/libdocument/ev-document-type-builtins.c
Andrew Geissler3eeda902023-05-19 10:14:02 -050051}
52
Andrew Geissler517393d2023-01-13 08:55:19 -060053FILES:${PN} += "${datadir}/dbus-1 \
54 ${datadir}/metainfo \
55 ${datadir}/thumbnailers \
56 ${systemd_user_unitdir} \
57"
58FILES:${PN}-nautilus-extension = "${libdir}/nautilus/*/*so"