[oe-commits] Koen Kooi : orc: fix packaging, recipe style issues and factor into .inc

git version control git at git.openembedded.org
Mon Mar 15 09:54:22 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: da0036099b326b09b3dc8b845a2ddbe8936009e4
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=da0036099b326b09b3dc8b845a2ddbe8936009e4

Author: Koen Kooi <koen at openembedded.org>
Date:   Mon Mar 15 10:15:07 2010 +0100

orc: fix packaging, recipe style issues and factor into .inc

---

 recipes/orc/orc.inc      |   18 ++++++++++++++++++
 recipes/orc/orc_0.4.3.bb |   17 +++++------------
 2 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/recipes/orc/orc.inc b/recipes/orc/orc.inc
new file mode 100644
index 0000000..7d48806
--- /dev/null
+++ b/recipes/orc/orc.inc
@@ -0,0 +1,18 @@
+DESCRIPTION = "orc - The Oil Runtime Compiler"
+HOMEPAGE = "http://code.entropywave.com/projects/orc/"
+
+SRC_URI = "http://code.entropywave.com/download/orc/orc-${PV}.tar.gz;name=orc"
+
+inherit autotools pkgconfig
+
+BBCLASSEXTEND = "native"
+
+PACKAGES =+ "orc-examples"
+FILES_orc-examples = "${libdir}/orc/*"
+FILES_${PN} = "${bindir}/*"
+
+python populate_packages_prepend () {
+	libdir = bb.data.expand('${libdir}', d)
+	do_split_packages(d, libdir, '^lib(.*)\.so\.*', 'lib%s', 'ORC %s library', extra_depends='', allow_links=True)
+}
+
diff --git a/recipes/orc/orc_0.4.3.bb b/recipes/orc/orc_0.4.3.bb
index be322b7..6da5789 100644
--- a/recipes/orc/orc_0.4.3.bb
+++ b/recipes/orc/orc_0.4.3.bb
@@ -1,18 +1,11 @@
-DESCRIPTION = "orc - The Oil Runtime Compiler"
-HOMEPAGE = "http://code.entropywave.com/projects/orc/"
-PR = "r0"
+require orc.inc
 
-SRC_URI = "http://code.entropywave.com/download/orc/orc-0.4.3.tar.gz;name=orc043targz"
-SRC_URI[orc043targz.md5sum] = "9b2e7030c8df8a0d371115869fe5685a"
-SRC_URI[orc043targz.sha256sum] = "4c0266d81da67fef0b2abd5e624a9ab0db5de04eb23c3ab24e22f5f9ceeefbfe"
+PR = "r1"
+
+SRC_URI[orc.md5sum] = "9b2e7030c8df8a0d371115869fe5685a"
+SRC_URI[orc.sha256sum] = "4c0266d81da67fef0b2abd5e624a9ab0db5de04eb23c3ab24e22f5f9ceeefbfe"
 
 SRC_URI += "file://03_orcutils.patch;patch=1 \
 	file://99_autoreconf.patch;patch=1"
 
-inherit autotools pkgconfig
-
-BBCLASSEXTEND = "native"
-
-PACKAGES += "liborc"
 
-PACKAGES_liborc = ${libdir}





More information about the Openembedded-commits mailing list