diff options
Diffstat (limited to 'meta-gnome')
| -rw-r--r-- | meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb | 152 |
1 files changed, 71 insertions, 81 deletions
diff --git a/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb b/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb index 927c33af4f..6e1dc4ef09 100644 --- a/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb +++ b/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb | |||
| @@ -3,75 +3,13 @@ HOMEPAGE = "http://www.abiword.org" | |||
| 3 | SECTION = "x11/office" | 3 | SECTION = "x11/office" |
| 4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecd3ac329fca77e2d0e412bec38e1c20" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecd3ac329fca77e2d0e412bec38e1c20" |
| 6 | DEPENDS = "perl-native wv libgsf libglade libfribidi jpeg libpng libxml2" | 6 | DEPENDS = "perl-native wv libgsf libglade libfribidi jpeg libpng libxml2 \ |
| 7 | librsvg loudmouth libwmf-native gtkmathview asio" | ||
| 7 | RDEPENDS_${PN} = "glibc-gconv-ibm850 glibc-gconv-cp1252 \ | 8 | RDEPENDS_${PN} = "glibc-gconv-ibm850 glibc-gconv-cp1252 \ |
| 8 | glibc-gconv-iso8859-15 glibc-gconv-iso8859-1" | 9 | glibc-gconv-iso8859-15 glibc-gconv-iso8859-1" |
| 10 | RCONFLICTS_${PN} = "${PN}-embedded" | ||
| 9 | 11 | ||
| 10 | SRC_URI = "http://www.abiword.org/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz \ | 12 | SRC_URI = "http://www.abisource.com/downloads/${BPN}/${PV}/source/${BP}.tar.gz \ |
| 11 | file://fix.double.install.patch \ | ||
| 12 | " | ||
| 13 | SRC_URI[md5sum] = "bbc9c124f8072875129bd67092f0fa0b" | ||
| 14 | SRC_URI[sha256sum] = "db34eeb5457fb7572fc76ec2a73cdb4f7a67307e7468b6c4bde820b58c598b3f" | ||
| 15 | |||
| 16 | #want 2.x from 2.x.y for the installation directory | ||
| 17 | SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" | ||
| 18 | |||
| 19 | FILES_${PN} += " \ | ||
| 20 | ${datadir}/icons/* \ | ||
| 21 | ${datadir}/abiword-${SHRT_VER}/glade \ | ||
| 22 | ${datadir}/abiword-${SHRT_VER}/scripts \ | ||
| 23 | ${datadir}/abiword-${SHRT_VER}/system.profile-en \ | ||
| 24 | ${datadir}/abiword-${SHRT_VER}/system.profile-en_GB \ | ||
| 25 | ${datadir}/abiword-${SHRT_VER}/templates/normal.awt \ | ||
| 26 | ${datadir}/abiword-${SHRT_VER}/templates/normal.awt-en_GB \ | ||
| 27 | ${datadir}/abiword-${SHRT_VER}/templates/Employee-Directory.awt \ | ||
| 28 | ${datadir}/abiword-${SHRT_VER}/templates/Business-Report.awt \ | ||
| 29 | ${datadir}/abiword-${SHRT_VER}/templates/Fax-Coversheet.awt \ | ||
| 30 | ${datadir}/abiword-${SHRT_VER}/templates/Resume.awt \ | ||
| 31 | ${datadir}/abiword-${SHRT_VER}/templates/Two-Columns.awt \ | ||
| 32 | ${datadir}/abiword-${SHRT_VER}/templates/Memo.awt \ | ||
| 33 | ${datadir}/abiword-${SHRT_VER}/templates/Press-Release.awt " | ||
| 34 | |||
| 35 | inherit autotools pkgconfig | ||
| 36 | |||
| 37 | PARALLEL_MAKE = "" | ||
| 38 | |||
| 39 | EXTRA_OECONF = " --disable-pspell \ | ||
| 40 | --disable-spellcheck \ | ||
| 41 | --disable-printing \ | ||
| 42 | --disable-exports \ | ||
| 43 | --with-sys-wv" | ||
| 44 | |||
| 45 | # AbiWord configure.ac does not play nicely with autoreconf | ||
| 46 | # so use the autogen.sh script that comes with AbiWord | ||
| 47 | # | ||
| 48 | do_configure() { | ||
| 49 | cd ${S} | ||
| 50 | export NOCONFIGURE="no"; ./autogen.sh | ||
| 51 | oe_runconf | ||
| 52 | } | ||
| 53 | |||
| 54 | |||
| 55 | do_install_append() { | ||
| 56 | install -d ${D}${datadir}/pixmaps/ | ||
| 57 | mv ${D}${datadir}/icons/* ${D}${datadir}/pixmaps/ | ||
| 58 | rmdir ${D}${datadir}/icons | ||
| 59 | } | ||
| 60 | |||
| 61 | PACKAGES += " abiword-clipart abiword-icons abiword-strings abiword-systemprofiles abiword-templates " | ||
| 62 | |||
| 63 | FILES_abiword-clipart += "${datadir}/abiword-${SHRT_VER}/clipart" | ||
| 64 | FILES_abiword-icons += "${datadir}/abiword-${SHRT_VER}/icons" | ||
| 65 | FILES_abiword-strings += "${datadir}/abiword-${SHRT_VER}/AbiWord/strings" | ||
| 66 | FILES_abiword-systemprofiles += "${datadir}/abiword-${SHRT_VER}/AbiWord/system.profile*" | ||
| 67 | FILES_abiword-templates += "${datadir}/abiword-${SHRT_VER}/templates" | ||
| 68 | |||
| 69 | DEPENDS += " librsvg loudmouth libwmf-native gtkmathview asio" | ||
| 70 | RCONFLICTS_${PN} = "abiword-embedded" | ||
| 71 | |||
| 72 | PR = "r4" | ||
| 73 | |||
| 74 | SRC_URI = "http://www.abisource.com/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz;name=abiword \ | ||
| 75 | file://autogen-common.sh \ | 13 | file://autogen-common.sh \ |
| 76 | file://nodolt.patch \ | 14 | file://nodolt.patch \ |
| 77 | file://fix.no.undefined.param.patch \ | 15 | file://fix.no.undefined.param.patch \ |
| @@ -79,9 +17,17 @@ SRC_URI = "http://www.abisource.com/downloads/abiword/${PV}/source/abiword-${PV} | |||
| 79 | 17 | ||
| 80 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecd3ac329fca77e2d0e412bec38e1c20" | 18 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecd3ac329fca77e2d0e412bec38e1c20" |
| 81 | 19 | ||
| 82 | SRC_URI[abiword.md5sum] = "f883b0a7f26229a9c66fd6a1a94381aa" | 20 | SRC_URI[md5sum] = "f883b0a7f26229a9c66fd6a1a94381aa" |
| 83 | SRC_URI[abiword.sha256sum] = "d99089a63a6cfc1a6a4a026be9278028d47d224088d24b1853acb67e95683a15" | 21 | SRC_URI[sha256sum] = "d99089a63a6cfc1a6a4a026be9278028d47d224088d24b1853acb67e95683a15" |
| 22 | |||
| 23 | #want 2.x from 2.x.y for the installation directory | ||
| 24 | SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" | ||
| 25 | |||
| 26 | PR = "r6" | ||
| 27 | |||
| 28 | inherit autotools pkgconfig | ||
| 84 | 29 | ||
| 30 | PARALLEL_MAKE = "" | ||
| 85 | 31 | ||
| 86 | EXTRA_OECONF = " --disable-static \ | 32 | EXTRA_OECONF = " --disable-static \ |
| 87 | --enable-plugins \ | 33 | --enable-plugins \ |
| @@ -92,6 +38,8 @@ EXTRA_OECONF = " --disable-static \ | |||
| 92 | --with-libwmf-config=${STAGING_DIR} \ | 38 | --with-libwmf-config=${STAGING_DIR} \ |
| 93 | " | 39 | " |
| 94 | 40 | ||
| 41 | # AbiWord configure.ac does not play nicely with autoreconf | ||
| 42 | # so use the autogen.sh script that comes with AbiWord | ||
| 95 | do_configure() { | 43 | do_configure() { |
| 96 | install -m 0755 ${WORKDIR}/autogen-common.sh ${S}/autogen-common.sh | 44 | install -m 0755 ${WORKDIR}/autogen-common.sh ${S}/autogen-common.sh |
| 97 | cd ${S} | 45 | cd ${S} |
| @@ -99,11 +47,59 @@ do_configure() { | |||
| 99 | autotools_do_configure | 47 | autotools_do_configure |
| 100 | } | 48 | } |
| 101 | 49 | ||
| 102 | FILES_${PN} += "${libdir}/libabiword-*.so ${datadir}/mime-info ${datadir}/abiword-${SHRT_VER}/certs ${datadir}/abiword-${SHRT_VER}/ui ${datadir}/abiword-${SHRT_VER}/xsl* ${datadir}/abiword-${SHRT_VER}/mime-info ${datadir}/abiword-${SHRT_VER}/Pr*.xml" | 50 | do_install_append() { |
| 103 | FILES_abiword-strings += "${datadir}/abiword-${SHRT_VER}/strings" | 51 | install -d ${D}${datadir}/pixmaps/ |
| 104 | FILES_abiword-systemprofiles += "${datadir}/abiword-${SHRT_VER}/system.profile*" | 52 | mv ${D}${datadir}/icons/* ${D}${datadir}/pixmaps/ |
| 53 | rmdir ${D}${datadir}/icons | ||
| 54 | } | ||
| 55 | |||
| 56 | PACKAGES += " ${PN}-clipart ${PN}-icons ${PN}-strings ${PN}-systemprofiles ${PN}-templates " | ||
| 105 | 57 | ||
| 106 | PACKAGES_DYNAMIC = "abiword-meta abiword-plugin-*" | 58 | FILES_${PN} += " \ |
| 59 | ${libdir}/lib${PN}-*.so \ | ||
| 60 | ${datadir}/mime-info \ | ||
| 61 | ${datadir}/icons/* \ | ||
| 62 | ${datadir}/${PN}-${SHRT_VER}/glade \ | ||
| 63 | ${datadir}/${PN}-${SHRT_VER}/scripts \ | ||
| 64 | ${datadir}/${PN}-${SHRT_VER}/system.profile-en \ | ||
| 65 | ${datadir}/${PN}-${SHRT_VER}/system.profile-en_GB \ | ||
| 66 | ${datadir}/${PN}-${SHRT_VER}/templates/normal.awt \ | ||
| 67 | ${datadir}/${PN}-${SHRT_VER}/templates/normal.awt-en_GB \ | ||
| 68 | ${datadir}/${PN}-${SHRT_VER}/templates/Employee-Directory.awt \ | ||
| 69 | ${datadir}/${PN}-${SHRT_VER}/templates/Business-Report.awt \ | ||
| 70 | ${datadir}/${PN}-${SHRT_VER}/templates/Fax-Coversheet.awt \ | ||
| 71 | ${datadir}/${PN}-${SHRT_VER}/templates/Resume.awt \ | ||
| 72 | ${datadir}/${PN}-${SHRT_VER}/templates/Two-Columns.awt \ | ||
| 73 | ${datadir}/${PN}-${SHRT_VER}/templates/Memo.awt \ | ||
| 74 | ${datadir}/${PN}-${SHRT_VER}/templates/Press-Release.awt \ | ||
| 75 | ${datadir}/${PN}-${SHRT_VER}/certs \ | ||
| 76 | ${datadir}/${PN}-${SHRT_VER}/ui \ | ||
| 77 | ${datadir}/${PN}-${SHRT_VER}/xsl* \ | ||
| 78 | ${datadir}/${PN}-${SHRT_VER}/mime-info \ | ||
| 79 | ${datadir}/${PN}-${SHRT_VER}/Pr*.xml \ | ||
| 80 | " | ||
| 81 | |||
| 82 | # don't steal /usr/lib/libabiword-2.8.so from ${PN} | ||
| 83 | # in this case it's needed in ${PN} | ||
| 84 | FILES_${PN}-dev = " \ | ||
| 85 | ${includedir} \ | ||
| 86 | ${libdir}/pkgconfig \ | ||
| 87 | ${libdir}/${PN}*.la \ | ||
| 88 | ${libdir}/lib${PN}*.la \ | ||
| 89 | ${libdir}/${PN}-${SHRT_VER}/plugins/*.la \ | ||
| 90 | " | ||
| 91 | FILES_${PN}-dbg += "${libdir}/${PN}-${SHRT_VER}/plugins/.debug" | ||
| 92 | FILES_${PN}-doc += "${datadir}/${PN}-*/readme*" | ||
| 93 | |||
| 94 | FILES_${PN}-strings += "${datadir}/${PN}-${SHRT_VER}/strings" | ||
| 95 | FILES_${PN}-systemprofiles += "${datadir}/${PN}-${SHRT_VER}/system.profile*" | ||
| 96 | FILES_${PN}-clipart += "${datadir}/${PN}-${SHRT_VER}/clipart" | ||
| 97 | FILES_${PN}-icons += "${datadir}/${PN}-${SHRT_VER}/icons" | ||
| 98 | FILES_${PN}-strings += "${datadir}/${PN}-${SHRT_VER}/AbiWord/strings" | ||
| 99 | FILES_${PN}-systemprofiles += "${datadir}/${PN}-${SHRT_VER}/AbiWord/system.profile*" | ||
| 100 | FILES_${PN}-templates += "${datadir}/${PN}-${SHRT_VER}/templates" | ||
| 101 | |||
| 102 | PACKAGES_DYNAMIC = "${PN}-meta ${PN}-plugin-*" | ||
| 107 | 103 | ||
| 108 | python populate_packages_prepend () { | 104 | python populate_packages_prepend () { |
| 109 | abiword_libdir = bb.data.expand('${libdir}/abiword-2.8/plugins', d) | 105 | abiword_libdir = bb.data.expand('${libdir}/abiword-2.8/plugins', d) |
| @@ -116,17 +112,11 @@ python populate_packages_prepend () { | |||
| 116 | metapkg_rdepends = [] | 112 | metapkg_rdepends = [] |
| 117 | packages = bb.data.getVar('PACKAGES', d, 1).split() | 113 | packages = bb.data.getVar('PACKAGES', d, 1).split() |
| 118 | for pkg in packages[1:]: | 114 | for pkg in packages[1:]: |
| 119 | if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count("-dev") and not pkg.count("-dbg") and not pkg.count("static") and not pkg.count("locale") and not pkg.count("abiword-doc"): | 115 | if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count("-dev") and not pkg.count("-dbg") and not pkg.count("static") and not pkg.count("locale") and not pkg.count("abiword-doc"): |
| 120 | print "Modifying ", pkg | 116 | print "Modifying ", pkg |
| 121 | metapkg_rdepends.append(pkg) | 117 | metapkg_rdepends.append(pkg) |
| 122 | bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) | 118 | bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) |
| 123 | bb.data.setVar('DESCRIPTION_' + metapkg, 'abiword-plugin meta package', d) | 119 | bb.data.setVar('DESCRIPTION_' + metapkg, 'abiword-plugin meta package', d) |
| 124 | packages.append(metapkg) | 120 | packages.append(metapkg) |
| 125 | bb.data.setVar('PACKAGES', ' '.join(packages), d) | 121 | bb.data.setVar('PACKAGES', ' '.join(packages), d) |
| 126 | } | 122 | } |
| 127 | |||
| 128 | # don't steal /usr/lib/libabiword-2.8.so from ${PN} | ||
| 129 | # in this case it's needed in ${PN} | ||
| 130 | FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/abiword*.la ${libdir}/abiword-${SHRT_VER}/plugins/*.la ${libdir}/libabiword*.la" | ||
| 131 | FILES_${PN}-dbg += "${libdir}/abiword-${SHRT_VER}/plugins/.debug" | ||
| 132 | FILES_${PN}-doc += "${datadir}/abiword-*/readme*" | ||
