Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Evince is a document viewer for document formats like pdf, ps, djvu" |
| 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=96f2f8d5ee576a2163977938ea36fa7b" |
| 4 | SECTION = "x11/office" |
| 5 | DEPENDS = "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 | |
| 7 | inherit gnome pkgconfig gtk-icon-cache gsettings gobject-introspection distro_features_check systemd |
| 8 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | SRC_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 | " |
| 14 | SRC_URI[archive.md5sum] = "66aa1766eaaa37536e48def11a0e67a3" |
| 15 | SRC_URI[archive.sha256sum] = "0955d22d85c9f6d322b6cbb464f1cc4c352db619017ec95dad4cc5c3440f73e1" |
| 16 | |
| 17 | EXTRA_OECONF = "--enable-thumbnailer" |
| 18 | |
| 19 | do_compile_prepend() { |
| 20 | export GIR_EXTRA_LIBS_PATH="${B}/libdocument/.libs" |
| 21 | } |
| 22 | |
| 23 | |
| 24 | do_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 | |
| 39 | PACKAGECONFIG ??= "" |
| 40 | PACKAGECONFIG[nautilus] = "--enable-nautilus,--disable-nautilus,nautilus" |
| 41 | PACKAGECONFIG[browser-plugin] = "--enable-browser-plugin,--disable-browser-plugin," |
| 42 | |
| 43 | SYSTEMD_SERVICE_${PN} = "evince.service" |
| 44 | |
| 45 | RDEPENDS_${PN} += "glib-2.0-utils" |
| 46 | RRECOMMMENDS_${PN} = "adwaita-icon-theme" |
| 47 | |
| 48 | PACKAGES =+ "${PN}-nautilus-extension" |
| 49 | PACKAGES =+ "${PN}-browser-plugin" |
| 50 | |
| 51 | FILES_${PN} += "${datadir}/dbus-1 \ |
| 52 | ${datadir}/metainfo \ |
| 53 | ${datadir}/thumbnailers \ |
| 54 | ${systemd_unitdir}/systemd/user/evince.service \ |
| 55 | " |
| 56 | FILES_${PN}-dbg += "${libdir}/*/*/.debug \ |
| 57 | ${libdir}/*/*/*/.debug" |
| 58 | FILES_${PN}-dev += "${libdir}/nautilus/extensions-2.0/*.la \ |
| 59 | ${libdir}/evince/*/backends/*.la" |
| 60 | FILES_${PN}-staticdev += "${libdir}/nautilus/extensions-2.0/*.a \ |
| 61 | ${libdir}/evince/*/backends/*.a" |
| 62 | FILES_${PN}-nautilus-extension = "${libdir}/nautilus/*/*so" |
| 63 | FILES_${PN}-browser-plugin = "${libdir}/mozilla/*/*so" |