Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | LICENSE = "GPLv2 | GPLv3" |
| 2 | LIC_FILES_CHKSUM = "file://COPYING;md5=be0de417af78dd340558810d1ced52e6" |
| 3 | SECTION = "x11/utils" |
| 4 | S = "${WORKDIR}/gnumeric-${PV}" |
| 5 | DEPENDS = "gdk-pixbuf libgsf gtk+3 libxml2 libglade libart-lgpl intltool-native libgnomecanvas libgnomeprint libbonoboui orbit2-native goffice" |
| 6 | SUMMARY = "Gnumeric spreadsheet for GNOME" |
| 7 | |
| 8 | GNOME_COMPRESS_TYPE = "xz" |
| 9 | |
| 10 | inherit gnome pythonnative gobject-introspection |
| 11 | |
| 12 | SRC_URI += "file://do-not-use-srcdir.patch \ |
| 13 | file://0001-configure.in-drop-introspection-macros-replace-them-.patch" |
| 14 | |
| 15 | SRC_URI[archive.md5sum] = "3fd87cca95334b5d8ac922989670fe27" |
| 16 | SRC_URI[archive.sha256sum] = "037b53d909e5d1454b2afda8c4fb1e7838e260343e36d4e36245f4a5d0e04111" |
| 17 | |
| 18 | |
| 19 | EXTRA_OECONF=" --without-perl " |
| 20 | |
| 21 | PACKAGES_DYNAMIC += "gnumeric-plugin-*" |
| 22 | PACKAGES += "libspreadsheet libspreadsheet-dev gnumeric-goffice gnumeric-goffice-dbg" |
| 23 | |
| 24 | FILES_${PN}-dbg += "${libdir}/gnumeric/${PV}/plugins/*/.debug" |
| 25 | FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig" |
| 26 | FILES_${PN}-staticdev = "${libdir}/libspreadsheet.la" |
| 27 | FILES_libspreadsheet = "${libdir}/libspreadsheet-${PV}.so" |
| 28 | FILES_libspreadsheet-dev = "${libdir}/libspreadsheet.so" |
| 29 | FILES_gnumeric-goffice-dbg += "${libdir}/goffice/*/plugins/gnumeric/.debug" |
| 30 | FILES_gnumeric-goffice = "${libdir}/goffice/*/plugins/gnumeric/*" |
| 31 | |
| 32 | # This hack works around the problem mentioned here: |
| 33 | # https://mail.gnome.org/archives/gnumeric-list/2010-February/msg00006.html |
| 34 | do_install_prepend() { |
| 35 | sed -i ${B}/doc/C/Makefile -e 's/\tfor file in $(omffile); do/\t-for file in $(omffile); do/' |
| 36 | } |
| 37 | |
| 38 | python populate_packages_prepend () { |
| 39 | gnumeric_libdir = bb.data.expand('${libdir}/gnumeric/${PV}/plugins', d) |
| 40 | |
| 41 | do_split_packages(d, gnumeric_libdir, '^(.*)/.*$', |
| 42 | output_pattern='gnumeric-plugin-%s', |
| 43 | description='Gnumeric plugin %s', |
| 44 | extra_depends='', |
| 45 | recursive=True, |
| 46 | prepend=True) |
| 47 | } |