blob: ed4fb637205a436fb46274abe349026bfd4f2290 [file] [log] [blame]
Brad Bishop23eaf032019-11-20 05:15:02 -05001SUMMARY = "Evince is a document viewer for document formats like pdf, ps, djvu"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=96f2f8d5ee576a2163977938ea36fa7b"
4SECTION = "x11/office"
5DEPENDS = " \
6 gnome-common-native \
7 yelp-tools-native \
8 appstream-glib \
9 gtk+3 \
10 gspell \
11 libsecret \
12 poppler \
13 gstreamer1.0-plugins-base \
14 orc \
15 adwaita-icon-theme \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070016 libhandy \
Brad Bishop23eaf032019-11-20 05:15:02 -050017 ${@bb.utils.contains('DISTRO_FEATURES','x11','gnome-desktop3','',d)} \
18"
19
Andrew Geissler89770b02020-06-13 10:40:47 -050020GNOMEBASEBUILDCLASS = "meson"
Brad Bishop23eaf032019-11-20 05:15:02 -050021
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070022inherit gnomebase itstool gnome-help pkgconfig gsettings gobject-introspection gettext mime-xdg gtk-doc
Andrew Geissler89770b02020-06-13 10:40:47 -050023
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070024def gnome_verdir(v):
25 return oe.utils.trim_version(v, 1)
26
Patrick Williams213cb262021-08-07 19:21:33 -050027SRC_URI[archive.sha256sum] = "33420500e0e060f178a435063197d42dae7b67e39cc437a96510a33ddf7e95fb"
Brad Bishop23eaf032019-11-20 05:15:02 -050028
Andrew Geissler89770b02020-06-13 10:40:47 -050029GTKDOC_MESON_OPTION = "gtk_doc"
30
31EXTRA_OEMESON = " \
32 -Dsystemduserunitdir=no \
Brad Bishop23eaf032019-11-20 05:15:02 -050033"
34
Patrick Williams213cb262021-08-07 19:21:33 -050035do_compile:prepend() {
Brad Bishop23eaf032019-11-20 05:15:02 -050036 export GIR_EXTRA_LIBS_PATH="${B}/libdocument/.libs"
37}
38
39PACKAGECONFIG ??= ""
Andrew Geissler89770b02020-06-13 10:40:47 -050040PACKAGECONFIG[nautilus] = "-Dnautilus=true,-Dnautilus=false,nautilus"
41PACKAGECONFIG[browser-plugin] = "-Dbrowser_plugin=true,-Dbrowser_plugin=false"
Brad Bishop23eaf032019-11-20 05:15:02 -050042
Patrick Williams213cb262021-08-07 19:21:33 -050043RDEPENDS:${PN} += "glib-2.0-utils"
Brad Bishop23eaf032019-11-20 05:15:02 -050044RRECOMMMENDS_${PN} = "adwaita-icon-theme"
45
46PACKAGES =+ "${PN}-nautilus-extension"
47PACKAGES =+ "${PN}-browser-plugin"
48
Patrick Williams213cb262021-08-07 19:21:33 -050049FILES:${PN} += "${datadir}/dbus-1 \
Brad Bishop23eaf032019-11-20 05:15:02 -050050 ${datadir}/metainfo \
51 ${datadir}/thumbnailers \
52"
Patrick Williams213cb262021-08-07 19:21:33 -050053FILES:${PN}-nautilus-extension = "${libdir}/nautilus/*/*so"
54FILES:${PN}-browser-plugin = "${libdir}/mozilla/*/*so"