[oe-commits] Thomas Zimmermann : epdfview: add icon for shr and recipe for svn version

git version control git at git.openembedded.org
Tue Dec 8 12:41:20 UTC 2009


Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: fb55f52daad5c8f12a6c8a40a1ff2977b7dd6b6b
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=fb55f52daad5c8f12a6c8a40a1ff2977b7dd6b6b

Author: Thomas Zimmermann <zimmermann at vdm-design.de>
Date:   Fri Sep 18 10:12:37 2009 +0000

epdfview: add icon for shr and recipe for svn version

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 conf/distro/include/sane-srcrevs.inc |    2 +-
 recipes/epdfview/epdfview_0.1.7.bb   |   15 ++++++++++++-
 recipes/epdfview/epdfview_svn.bb     |   37 ++++++++++++++++++++++++++++++++++
 recipes/epdfview/files/acroread.png  |  Bin 0 -> 7670 bytes
 4 files changed, 52 insertions(+), 2 deletions(-)

diff --git a/conf/distro/include/sane-srcrevs.inc b/conf/distro/include/sane-srcrevs.inc
index 22fa976..5a24362 100644
--- a/conf/distro/include/sane-srcrevs.inc
+++ b/conf/distro/include/sane-srcrevs.inc
@@ -66,7 +66,7 @@ SRCREV_pn-elf2flt ?= "1786"
 SRCREV_pn-elmdentica ?= "171"
 SRCREV_pn-enlazar ?= "37"
 SRCREV_pn-enotes ?= "19"
-SRCREV_pn-epdfview ?= "345"
+SRCREV_pn-epdfview ?= "346"
 SRCREV_pn-epiphany ?= "7837"
 SRCREV_pn-essential-dialer ?= "194"
 SRCREV_pn-etk-theme-neo ?= "1cc80e26a4558dfc2268b349d9a1f468e515bcfb"
diff --git a/recipes/epdfview/epdfview_0.1.7.bb b/recipes/epdfview/epdfview_0.1.7.bb
index 1cd59f7..fd1b61f 100644
--- a/recipes/epdfview/epdfview_0.1.7.bb
+++ b/recipes/epdfview/epdfview_0.1.7.bb
@@ -5,7 +5,10 @@ SECTION = "x11/applications"
 DEPENDS = "poppler gtk+ cups"
 
 SRC_URI = "http://www.emma-soft.com/projects/epdfview/chrome/site/releases/epdfview-${PV}.tar.bz2 \
-	  "
+          "
+
+SRC_URI_append_shr = "file://acroread.png \
+                     "
 
 inherit autotools
 
@@ -13,3 +16,13 @@ do_compile_append () {
 	sed -i 's|\$.*prefix./|/usr/|' data/epdfview.desktop
 }
 
+do_compile_append_shr () {
+	sed -i 's/Icon=.*/Icon=acroread/' data/epdfview.desktop
+}
+
+do_install_append_shr () {
+	install -d ${D}${datadir}/pixmaps/
+	install -m 0644 ${WORKDIR}/acroread.png ${D}${datadir}/pixmaps/
+}
+
+FILES_${PN}_append_shr = "${datadir}/pixmaps/acroread.png"
\ No newline at end of file
diff --git a/recipes/epdfview/epdfview_svn.bb b/recipes/epdfview/epdfview_svn.bb
new file mode 100644
index 0000000..1c8e9e9
--- /dev/null
+++ b/recipes/epdfview/epdfview_svn.bb
@@ -0,0 +1,37 @@
+DESCRIPTION = "A minimal PDF viewer based on gtk and poppler"
+HOMEPAGE = "http://www.emma-soft.com/projects/epdfview/"
+LICENSE = "GPLv2"
+SECTION = "x11/applications"
+DEPENDS = "poppler gtk+ cups"
+
+PV = "0.1.7+svnr${SRCPV}"
+PR = "r0"
+
+SRC_URI = "svn://svn.emma-soft.com/epdfview;module=trunk;proto=svn \
+	  "
+SRC_URI_append_shr = "file://acroread.png \
+                     "
+
+S = "${WORKDIR}/trunk"
+
+inherit autotools
+
+do_configure_prepend() {
+	sh autogen.sh
+}
+
+do_compile_append () {
+	sed -i 's|\$.*prefix./|/usr/|' data/epdfview.desktop
+}
+
+do_compile_append_shr () {
+	sed -i 's/Icon=.*/Icon=acroread/' data/epdfview.desktop
+}
+
+do_install_append_shr () {
+	install -d ${D}${datadir}/pixmaps/
+	install -m 0644 ${WORKDIR}/acroread.png ${D}${datadir}/pixmaps/
+}
+
+FILES_${PN}_append_shr = "${datadir}/pixmaps/acroread.png \
+                         "
diff --git a/recipes/epdfview/files/acroread.png b/recipes/epdfview/files/acroread.png
new file mode 100644
index 0000000..0189fe3
Binary files /dev/null and b/recipes/epdfview/files/acroread.png differ





More information about the Openembedded-commits mailing list