libxml2: migrate -native to BBCLASSEXTEND
authorMartin Jansa <Martin.Jansa@gmail.com>
Fri, 26 Feb 2010 11:32:53 +0000 (12:32 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Wed, 3 Mar 2010 13:25:19 +0000 (14:25 +0100)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/libxml/libxml2-native.inc [deleted file]
recipes/libxml/libxml2-native_2.7.3.bb [deleted file]
recipes/libxml/libxml2.inc
recipes/libxml/libxml2_2.7.3.bb

diff --git a/recipes/libxml/libxml2-native.inc b/recipes/libxml/libxml2-native.inc
deleted file mode 100644 (file)
index 82d36b9..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-DESCRIPTION = "GNOME XML library"
-DEPENDS = "python-native"
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libxml2-${PV}"
-
-SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz"
-S = "${WORKDIR}/libxml2-${PV}"
-
-inherit autotools native pkgconfig distutils-native-base
-
-do_configure_prepend () {
-       EXTRA_LIBXML2_OECONF="\
-       --with-python=${PYTHON_DIR} \
-       --without-debug \
-       --without-legacy \
-       --with-catalog \
-       --without-docbook \
-       --with-c14n \
-       "
-}
-
-do_configure (){
-       autotools_do_configure ${EXTRA_LIBXML2_OECONF}
-}
-
-do_install_append() {
-       :
-}
diff --git a/recipes/libxml/libxml2-native_2.7.3.bb b/recipes/libxml/libxml2-native_2.7.3.bb
deleted file mode 100644 (file)
index bcbfb66..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-require libxml2-native.inc
-PR = "r1"
index b324228..62c81bd 100644 (file)
@@ -2,14 +2,26 @@ DESCRIPTION = "GNOME XML Parser library"
 SECTION = "libs"
 PRIORITY = "optional"
 LICENSE = "MIT"
+DEPENDS_virtclass-native = "python-native"
 
-SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz"
+SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=archive"
+S = "${WORKDIR}/${BPN}-${PV}"
 
-INC_PR = "r3"
+INC_PR = "r4"
 
-inherit autotools pkgconfig binconfig
+BBCLASSEXTEND = "native"
 
-EXTRA_OECONF = "--without-python --without-debug --without-legacy --with-catalog --with-docbook --with-c14n"
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "\
+ --without-debug \
+ --without-legacy \
+ --with-catalog \
+ --with-docbook \
+ --with-c14n"
+
+EXTRA_OECONF_append = " --without-python"
+EXTRA_OECONF_append_virtclass-native = " --with-python=${PYTHON_DIR}"
 
 export LDFLAGS += "-ldl"
 
@@ -18,6 +30,9 @@ do_install_append() {
        #this is need it by php during its install
        install -m 0755 xml2-config ${STAGING_BINDIR_CROSS}
 }
+do_install_append_virtclass-native() {
+       :
+}
 
 DEBIANNAME_${PN} = "libxml2"
 
index 5c92770..636ee91 100644 (file)
@@ -1,4 +1,4 @@
 require libxml2.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.0"