orc: fix packaging, recipe style issues and factor into .inc
authorKoen Kooi <koen@openembedded.org>
Mon, 15 Mar 2010 09:15:07 +0000 (10:15 +0100)
committerKoen Kooi <koen@openembedded.org>
Mon, 15 Mar 2010 09:15:07 +0000 (10:15 +0100)
recipes/orc/orc.inc [new file with mode: 0644]
recipes/orc/orc_0.4.3.bb

diff --git a/recipes/orc/orc.inc b/recipes/orc/orc.inc
new file mode 100644 (file)
index 0000000..7d48806
--- /dev/null
@@ -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)
+}
+
index be322b7..6da5789 100644 (file)
@@ -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}