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