[Lunar-commits] <moonbase> nspr: added to provide Netscape Portable Runtime

Terry Chan tchan at lunar-linux.org
Mon Jan 4 17:47:32 CET 2010


commit f95fed5b96ac3f4e42fa29a2591313813ce433fc
Author: Terry Chan <tchan at lunar-linux.org>
Date:   Mon Jan 4 10:47:32 2010 -0600

    nspr: added to provide Netscape Portable Runtime
---
 libs/nspr/BUILD   |   33 +++++++++++++++++++++++++++++++++
 libs/nspr/DEPENDS |    1 +
 libs/nspr/DETAILS |   19 +++++++++++++++++++
 3 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/libs/nspr/BUILD b/libs/nspr/BUILD
new file mode 100644
index 0000000..5df2c4a
--- /dev/null
+++ b/libs/nspr/BUILD
@@ -0,0 +1,33 @@
+(
+
+  patch_it $SOURCE_CACHE/$SOURCE2 1 &&
+
+  if [ "`arch`" == "x86_64" ]; then
+    OPTS="$OPTS --enable-64bit"
+  fi &&
+
+  OPTS="$OPTS --libdir=/usr/lib/nspr --enable-system-sqlite --with-mozilla --with-pthreads"
+  mkdir build inst &&
+  sedit 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' mozilla/nsprpub/config/rules.mk &&
+
+  cd build &&
+  ../mozilla/nsprpub/configure --build=$BUILD            \
+                               --prefix=/usr             \
+                               --sysconfdir=/etc         \
+                               --localstatedir=/var      \
+                               --infodir=/usr/share/info \
+                               --mandir=/usr/share/man   \
+                               $OPTS &&
+  default_make &&
+
+  cd /usr/lib/nspr &&
+  for file in *.so; do
+    mv ${file} ${file}.${MINOR_VER}
+    ln -s ${file}.${MINOR_VER} ${file}
+  done &&
+
+  install -m 755 $SOURCE_DIRECTORY/build/config/nspr-config /usr/bin/ &&
+  cp -a $SOURCE_DIRECTORY/build/config/nspr.pc /usr/lib/pkgconfig/ &&
+  rm /usr/bin/prerr.properties
+
+) > $C_FIFO 2>&1
diff --git a/libs/nspr/DEPENDS b/libs/nspr/DEPENDS
new file mode 100644
index 0000000..1f6ab23
--- /dev/null
+++ b/libs/nspr/DEPENDS
@@ -0,0 +1 @@
+depends sqlite
diff --git a/libs/nspr/DETAILS b/libs/nspr/DETAILS
new file mode 100644
index 0000000..ff19598
--- /dev/null
+++ b/libs/nspr/DETAILS
@@ -0,0 +1,19 @@
+          MODULE=nspr
+         VERSION=4.8.2
+       MINOR_VER=2
+          SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE2=$MODULE-4.8-pkgconfig-gentoo.patch
+      SOURCE_URL=http://ftp.mozilla.org/pub/mozilla.org/$MODULE/releases/v${VERSION}/src/
+     SOURCE2_URL=$PATCH_URL
+      SOURCE_VFY=sha1:14af8f12a0975630a13f5aa3c890e92960a0be93
+     SOURCE2_VFY=sha1:c41c608247aa712f783a1ec8ea2943b79dee44eb
+        WEB_SITE=http://www.mozilla.org/projects/nspr
+         ENTERED=20100104
+         UPDATED=20100104
+           PSAFE="no"
+           SHORT="Netscape Portable Runtime (NSPR)"
+cat << EOF
+This provides a platform-neutral API for system level and libc like functions.
+The API is used in the Mozilla clients and many of Red Hat's, Sun's, and other
+software offerings.
+EOF


More information about the Lunar-commits mailing list