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