diff mbox

SV: [base] nspr upgrade to 4.10.6.

Message ID BD22328D0EB182418C2A0952DC2454F8791B9271@VMPREVAS1.prevas.se
State Not Applicable
Headers show

Commit Message

kim.hansen@prevas.dk Dec. 19, 2014, 8:51 a.m. UTC
Hi Mads,

I know you have already had multiple tries with this one. The recipe looks fine, but:

- commit message need to follow the standard
- i need more information on the patches. Why are they there? Where are they from? Have anyone tried to take them upstream?

The latter is to start moving us in a direction where we do not carry around more and more patches that we do not know when we can drop. See my proposal about patch headers here on the mailing list.

/Kim
diff mbox

Patch

diff --git a/recipes/nspr/nspr_4.10.6.oe b/recipes/nspr/nspr_4.10.6.oe
new file mode 100644
index 0000000..a1a5dc3
--- /dev/null
+++ b/recipes/nspr/nspr_4.10.6.oe
@@ -0,0 +1,59 @@ 
+SUMMARY = "Netscape portable runtime, or NSPR, a platform abstraction library"
+DESCRIPTION = """
+NSPR, a platform abstraction library, makes all operating systems it supports
+appear the same to (for example) Mozilla-style web-browsers. NSPR provides platform
+independence for non-GUI operating system facilities
+"""
+HOMEPAGE = "https://developer.mozilla.org/docs/NSPR"
+LICENSE = "MPL"
+
+RECIPE_TYPES = "machine native"
+
+SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${PN}-${PV}.tar.gz"
+SRC_URI:>machine += " file://nsinstall.patch"
+
+inherit pkgconfig autotools auto-package-libs auto-package-utils
+
+DEPENDS += "libstdc++ libdl librt libpthread "
+DEPENDS:>machine += " native:nspr-nsinstall"
+
+EXTRA_OECONF:>machine = ""
+
+EXTRA_OECONF += " \
+       --enable-mdupdate \
+       --enable-64bit \
+"
+
+S = "${SRCDIR}/${PN}-${PV}/${PN}"
+
+NSINSTALL_POST_FUNC = ""
+NSINSTALL_POST_FUNC:native = "do_install_nsinstall"
+do_install[postfuncs] += "${NSINSTALL_POST_FUNC}"
+do_install_nsinstall() {
+       install -d ${D}/${bindir}
+       install -m 0755 ${S}/config/nsinstall ${D}/${bindir}
+}
+
+
+
+AUTO_PACKAGE_UTILS = "nspr-config nsinstall"
+
+FILES_${PN}-nspr-config += " ${bindir}/compile-et.pl "
+FILES_${PN}-nspr-config += " ${bindir}/prerr.properties "
+
+AUTO_PACKAGE_UTILS_RDEPENDS += "${PN}"
+
+# This package only creates .so files. These are
+# what we need in the 'main package'
+SOLIBS = ".so"
+SOLIBSDEV = ".so.*"
+
+AUTO_PACKAGE_LIBS = "nspr4 plc4 plds4"
+AUTO_PACKAGE_LIB_RDEPENDS = "libpthread libdl librt libc"
+
+RDEPENDS_${PN} = "libnspr4 libplc4 libplds4"
+
+RDEPENDS_${PN}-plc4 = "libnspr4"
+RDEPENDS_${PN}-plds4 = "libnspr4"
+
+DEPENDS_${PN} = "${LIBS_AUTO_PACKAGES}"
diff --git a/recipes/nspr/nspr_4.10.6.oe.sig b/recipes/nspr/nspr_4.10.6.oe.sig
new file mode 100644
index 0000000..8aacd1c
--- /dev/null
+++ b/recipes/nspr/nspr_4.10.6.oe.sig
@@ -0,0 +1 @@ 
+9f3f278f7f31574b2cdbb99d9703c58e51cd3e1c  nspr-4.10.6.tar.gz