blob: 01f581a35ef381cec11b2532c43f0c346abc15bc [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "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 = "gtk+3 libsecret ${@bb.utils.contains('DISTRO_FEATURES','x11','gnome-desktop3','',d)} poppler gstreamer1.0-plugins-base orc adwaita-icon-theme intltool-native gnome-common-native"
6
7inherit gnome pkgconfig gtk-icon-cache gsettings gobject-introspection distro_features_check systemd
8
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \
10 file://0001-help-remove-YELP-macro.patch \
11 file://0001-Add-format-attribute-to-_synctex_malloc.patch \
12 file://0001-add-a-formatting-attribute-check.patch \
13 "
14SRC_URI[archive.md5sum] = "66aa1766eaaa37536e48def11a0e67a3"
15SRC_URI[archive.sha256sum] = "0955d22d85c9f6d322b6cbb464f1cc4c352db619017ec95dad4cc5c3440f73e1"
16
17EXTRA_OECONF = "--enable-thumbnailer"
18
19do_compile_prepend() {
20 export GIR_EXTRA_LIBS_PATH="${B}/libdocument/.libs"
21}
22
23
24do_install_append() {
25 install -d ${D}${datadir}/pixmaps
26 install -m 0755 ${S}/data/icons/48x48/apps/evince.png ${D}${datadir}/pixmaps/
27 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}
28 then
29 install -d ${D}${systemd_unitdir}/system
30 mv ${D}${systemd_user_unitdir}/evince.service ${D}${systemd_system_unitdir}/evince.service
31 else
32 rm -rf ${D}${libdir}/systemd/user/evince.service
33 fi
34 rmdir --ignore-fail-on-non-empty ${D}${systemd_user_unitdir}
35 rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}/systemd
36 rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}
37}
38
39PACKAGECONFIG ??= ""
40PACKAGECONFIG[nautilus] = "--enable-nautilus,--disable-nautilus,nautilus"
41PACKAGECONFIG[browser-plugin] = "--enable-browser-plugin,--disable-browser-plugin,"
42
43SYSTEMD_SERVICE_${PN} = "evince.service"
44
45RDEPENDS_${PN} += "glib-2.0-utils"
46RRECOMMMENDS_${PN} = "adwaita-icon-theme"
47
48PACKAGES =+ "${PN}-nautilus-extension"
49PACKAGES =+ "${PN}-browser-plugin"
50
51FILES_${PN} += "${datadir}/dbus-1 \
52 ${datadir}/metainfo \
53 ${datadir}/thumbnailers \
54 ${systemd_unitdir}/systemd/user/evince.service \
55 "
56FILES_${PN}-dbg += "${libdir}/*/*/.debug \
57 ${libdir}/*/*/*/.debug"
58FILES_${PN}-dev += "${libdir}/nautilus/extensions-2.0/*.la \
59 ${libdir}/evince/*/backends/*.la"
60FILES_${PN}-staticdev += "${libdir}/nautilus/extensions-2.0/*.a \
61 ${libdir}/evince/*/backends/*.a"
62FILES_${PN}-nautilus-extension = "${libdir}/nautilus/*/*so"
63FILES_${PN}-browser-plugin = "${libdir}/mozilla/*/*so"