# ChangeLog for dev-libs/nspr
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.78 2007/04/20 12:09:39 redhatter Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.79 2007/04/20 13:22:26 armin76 Exp $
+
+ 20 Apr 2007; Raúl Porcel <armin76@gentoo.org>
+ -files/nspr-4.3-amd64.patch, -files/nspr-4.4.1-hppa.patch,
+ -files/nspr-4.4.1-ppc64.patch, -files/nspr-4.6.3-fbsd62.patch,
+ -nspr-4.6.3.ebuild, -nspr-4.6.3-r1.ebuild, -nspr-4.6.4.ebuild,
+ -nspr-4.6.4-r3.ebuild:
+ Cleanup
20 Apr 2007; Stuart Longland <redhatter@gentoo.org> nspr-4.6.5-r1.ebuild:
Tested and marked stable on mips as per bug #169751
+++ /dev/null
-MD5 d529cf2d1676e4c38bf7d530098865e6 nspr-4.6.3.tar.gz 1301965
-RMD160 b9cdde13afabfc6af02817781b2ca274ce5588b6 nspr-4.6.3.tar.gz 1301965
-SHA256 69f323e359a4751c883fbfc3affe5ea255fc89e77107e97736d2440bc22010d1 nspr-4.6.3.tar.gz 1301965
+++ /dev/null
-MD5 d529cf2d1676e4c38bf7d530098865e6 nspr-4.6.3.tar.gz 1301965
-RMD160 b9cdde13afabfc6af02817781b2ca274ce5588b6 nspr-4.6.3.tar.gz 1301965
-SHA256 69f323e359a4751c883fbfc3affe5ea255fc89e77107e97736d2440bc22010d1 nspr-4.6.3.tar.gz 1301965
+++ /dev/null
-MD5 43db60ab2ff1599c17d3a3f55caa7d47 nspr-4.6.4.tar.gz 1301886
-RMD160 d893554bc49c13787ec33bd2c7580f51bf8e89ac nspr-4.6.4.tar.gz 1301886
-SHA256 49e12321adb3eacf8dac5f799ab52fb1a797021fcb2893736e7bfbd517a02413 nspr-4.6.4.tar.gz 1301886
+++ /dev/null
-MD5 43db60ab2ff1599c17d3a3f55caa7d47 nspr-4.6.4.tar.gz 1301886
-RMD160 d893554bc49c13787ec33bd2c7580f51bf8e89ac nspr-4.6.4.tar.gz 1301886
-SHA256 49e12321adb3eacf8dac5f799ab52fb1a797021fcb2893736e7bfbd517a02413 nspr-4.6.4.tar.gz 1301886
+++ /dev/null
-diff -ruN mozilla.old/nsprpub/configure mozilla/nsprpub/configure
---- mozilla.old/nsprpub/configure 2003-05-19 15:05:42.000000000 -0400
-+++ mozilla/nsprpub/configure 2003-09-27 16:20:55.085325144 -0400
-@@ -3729,6 +3729,9 @@
- ia64)
- PR_MD_ASFILES=os_Linux_ia64.s
- ;;
-+ x86_64)
-+ PR_MD_ASFILES=os_Linux_x86_64.s
-+ ;;
- m68k)
- CFLAGS="$CFLAGS -m68020-60"
- CXXFLAGS="$CXXFLAGS -m68020-60"
-diff -ruN mozilla.old/nsprpub/configure.in mozilla/nsprpub/configure.in
---- mozilla.old/nsprpub/configure.in 2003-05-19 15:05:48.000000000 -0400
-+++ mozilla/nsprpub/configure.in 2003-09-27 16:20:55.077326360 -0400
-@@ -1218,6 +1218,9 @@
- ia64)
- PR_MD_ASFILES=os_Linux_ia64.s
- ;;
-+ x86_64)
-+ PR_MD_ASFILES=os_Linux_x86_64.s
-+ ;;
- m68k)
- CFLAGS="$CFLAGS -m68020-60"
- CXXFLAGS="$CXXFLAGS -m68020-60"
-diff -ruN mozilla.old/nsprpub/pr/include/md/_linux.cfg mozilla/nsprpub/pr/include/md/_linux.cfg
---- mozilla.old/nsprpub/pr/include/md/_linux.cfg 2003-02-26 18:53:38.000000000 -0500
-+++ mozilla/nsprpub/pr/include/md/_linux.cfg 2003-09-27 16:20:55.053330008 -0400
-@@ -182,6 +182,52 @@
- #define PR_BYTES_PER_WORD_LOG2 3
- #define PR_BYTES_PER_DWORD_LOG2 3
-
-+#elif defined(__x86_64__)
-+
-+#define IS_LITTLE_ENDIAN 1
-+#undef IS_BIG_ENDIAN
-+#define IS_64
-+
-+#define PR_BYTES_PER_BYTE 1
-+#define PR_BYTES_PER_SHORT 2
-+#define PR_BYTES_PER_INT 4
-+#define PR_BYTES_PER_INT64 8
-+#define PR_BYTES_PER_LONG 8
-+#define PR_BYTES_PER_FLOAT 4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD 8
-+#define PR_BYTES_PER_DWORD 8
-+
-+#define PR_BITS_PER_BYTE 8
-+#define PR_BITS_PER_SHORT 16
-+#define PR_BITS_PER_INT 32
-+#define PR_BITS_PER_INT64 64
-+#define PR_BITS_PER_LONG 64
-+#define PR_BITS_PER_FLOAT 32
-+#define PR_BITS_PER_DOUBLE 64
-+#define PR_BITS_PER_WORD 64
-+
-+#define PR_BITS_PER_BYTE_LOG2 3
-+#define PR_BITS_PER_SHORT_LOG2 4
-+#define PR_BITS_PER_INT_LOG2 5
-+#define PR_BITS_PER_INT64_LOG2 6
-+#define PR_BITS_PER_LONG_LOG2 6
-+#define PR_BITS_PER_FLOAT_LOG2 5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2 6
-+
-+#define PR_ALIGN_OF_SHORT 2
-+#define PR_ALIGN_OF_INT 4
-+#define PR_ALIGN_OF_LONG 8
-+#define PR_ALIGN_OF_INT64 8
-+#define PR_ALIGN_OF_FLOAT 4
-+#define PR_ALIGN_OF_DOUBLE 8
-+#define PR_ALIGN_OF_POINTER 8
-+#define PR_ALIGN_OF_WORD 8
-+
-+#define PR_BYTES_PER_WORD_LOG2 3
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
- #elif defined(__mc68000__)
-
- #undef IS_LITTLE_ENDIAN
-diff -ruN mozilla.old/nsprpub/pr/include/md/_linux.h mozilla/nsprpub/pr/include/md/_linux.h
---- mozilla.old/nsprpub/pr/include/md/_linux.h 2003-02-26 18:53:39.000000000 -0500
-+++ mozilla/nsprpub/pr/include/md/_linux.h 2003-09-27 16:20:55.053330008 -0400
-@@ -49,6 +49,8 @@
- #define _PR_SI_ARCHITECTURE "alpha"
- #elif defined(__ia64__)
- #define _PR_SI_ARCHITECTURE "ia64"
-+#elif defined(__x86_64__)
-+#define _PR_SI_ARCHITECTURE "x86-64"
- #elif defined(__mc68000__)
- #define _PR_SI_ARCHITECTURE "m68k"
- #elif defined(__sparc__)
-@@ -107,6 +109,19 @@
- #define _MD_ATOMIC_SET _PR_ia64_AtomicSet
- #endif
-
-+#if defined(__x86_64__)
-+#define _PR_HAVE_ATOMIC_OPS
-+#define _MD_INIT_ATOMIC()
-+extern PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val);
-+#define _MD_ATOMIC_INCREMENT _PR_x86_64_AtomicIncrement
-+extern PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val);
-+#define _MD_ATOMIC_DECREMENT _PR_x86_64_AtomicDecrement
-+extern PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val);
-+#define _MD_ATOMIC_ADD _PR_x86_64_AtomicAdd
-+extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
-+#define _MD_ATOMIC_SET _PR_x86_64_AtomicSet
-+#endif
-+
- #define USE_SETJMP
- #if defined(__GLIBC__) && __GLIBC__ >= 2
- #define _PR_POLL_AVAILABLE
-diff -ruN mozilla.old/nsprpub/pr/src/io/prprf.c mozilla/nsprpub/pr/src/io/prprf.c
---- mozilla.old/nsprpub/pr/src/io/prprf.c 2003-02-26 18:53:42.000000000 -0500
-+++ mozilla/nsprpub/pr/src/io/prprf.c 2003-09-27 16:20:55.068327728 -0400
-@@ -51,7 +51,10 @@
- ** Note: on some platforms va_list is defined as an array,
- ** and requires array notation.
- */
--#if (defined(LINUX) && defined(__powerpc__)) || \
-+#if (defined(LINUX) && defined(__x86_64__))
-+#include <stdarg.h>
-+#define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
-+#elif (defined(LINUX) && defined(__powerpc__)) || \
- (defined(LINUX) && defined(__s390__)) || \
- (defined(LINUX) && defined(__s390x__)) || \
- defined(WIN16) || defined(QNX) || \
-diff -ruN mozilla.old/nsprpub/pr/src/md/unix/os_Linux_x86_64.s mozilla/nsprpub/pr/src/md/unix/os_Linux_x86_64.s
---- mozilla.old/nsprpub/pr/src/md/unix/os_Linux_x86_64.s 1969-12-31 19:00:00.000000000 -0500
-+++ mozilla/nsprpub/pr/src/md/unix/os_Linux_x86_64.s 2003-09-27 16:20:55.068327728 -0400
-@@ -0,0 +1,91 @@
-+/ -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
-+/
-+/ The contents of this file are subject to the Mozilla Public
-+/ License Version 1.1 (the "License"); you may not use this file
-+/ except in compliance with the License. You may obtain a copy of
-+/ the License at http://www.mozilla.org/MPL/
-+/
-+/ Software distributed under the License is distributed on an "AS
-+/ IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-+/ implied. See the License for the specific language governing
-+/ rights and limitations under the License.
-+/
-+/ The Original Code is the Netscape Portable Runtime (NSPR).
-+/
-+/ The Initial Developer of the Original Code is Netscape
-+/ Communications Corporation. Portions created by Netscape are
-+/ Copyright (C) 2000 Netscape Communications Corporation. All
-+/ Rights Reserved.
-+/
-+/ Contributor(s):
-+/
-+/ Alternatively, the contents of this file may be used under the
-+/ terms of the GNU General Public License Version 2 or later (the
-+/ "GPL"), in which case the provisions of the GPL are applicable
-+/ instead of those above. If you wish to allow use of your
-+/ version of this file only under the terms of the GPL and not to
-+/ allow others to use your version of this file under the MPL,
-+/ indicate your decision by deleting the provisions above and
-+/ replace them with the notice and other provisions required by
-+/ the GPL. If you do not delete the provisions above, a recipient
-+/ may use your version of this file under either the MPL or the
-+/ GPL.
-+/
-+
-+/ PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val)
-+/
-+/ Atomically increment the integer pointed to by 'val' and return
-+/ the result of the increment.
-+/
-+ .text
-+ .globl _PR_x86_64_AtomicIncrement
-+ .align 4
-+_PR_x86_64_AtomicIncrement:
-+ movl $1, %eax
-+ lock
-+ xaddl %eax, (%rdi)
-+ incl %eax
-+ ret
-+
-+/ PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val)
-+/
-+/ Atomically decrement the integer pointed to by 'val' and return
-+/ the result of the decrement.
-+/
-+ .text
-+ .globl _PR_x86_64_AtomicDecrement
-+ .align 4
-+_PR_x86_64_AtomicDecrement:
-+ movl $-1, %eax
-+ lock
-+ xaddl %eax, (%rdi)
-+ decl %eax
-+ ret
-+
-+/ PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval)
-+/
-+/ Atomically set the integer pointed to by 'val' to the new
-+/ value 'newval' and return the old value.
-+ .text
-+ .globl _PR_x86_64_AtomicSet
-+ .align 4
-+_PR_x86_64_AtomicSet:
-+ movl %esi, %eax
-+ lock
-+ xchgl %eax, (%rdi)
-+ ret
-+
-+/ PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val)
-+/
-+/ Atomically add 'val' to the integer pointed to by 'ptr'
-+/ and return the result of the addition.
-+/
-+ .text
-+ .globl _PR_x86_64_AtomicAdd
-+ .align 4
-+_PR_x86_64_AtomicAdd:
-+ movl %esi, %eax
-+ lock
-+ xaddl %eax, (%rdi)
-+ addl %esi, %eax
-+ ret
+++ /dev/null
-diff -uNr nspr-4.4.1.orig/mozilla/nsprpub/config/Linux.mk nspr-4.4.1/mozilla/nsprpub/config/Linux.mk
---- nspr-4.4.1.orig/mozilla/nsprpub/config/Linux.mk 2004-04-05 15:09:53.000000000 +0000
-+++ nspr-4.4.1/mozilla/nsprpub/config/Linux.mk 2004-04-05 15:10:21.000000000 +0000
-@@ -66,12 +66,17 @@
- ifeq (86,$(findstring 86,$(OS_TEST)))
- CPU_ARCH := x86
- else
-+ifeq ($(OS_TEST),parisc)
-+OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE
-+CPU_ARCH = hppa
-+else
- ifeq (,$(filter-out arm% sa110,$(OS_TEST)))
- CPU_ARCH := arm
- else
- CPU_ARCH := $(OS_TEST)
- endif
- endif
-+endif
- CPU_ARCH_TAG = _$(CPU_ARCH)
-
- CC = gcc
-diff -uNr nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.cfg nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg
---- nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.cfg 2004-04-05 15:09:54.000000000 +0000
-+++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg 2004-04-05 15:10:21.000000000 +0000
-@@ -414,6 +414,96 @@
- #define PR_BYTES_PER_WORD_LOG2 2
- #define PR_BYTES_PER_DWORD_LOG2 3
-
-+#elif defined(__hppa__)
-+
-+#undef IS_LITTLE_ENDIAN
-+#define IS_BIG_ENDIAN 1
-+
-+#define PR_BYTES_PER_BYTE 1
-+#define PR_BYTES_PER_SHORT 2
-+#define PR_BYTES_PER_INT 4
-+#define PR_BYTES_PER_INT64 8
-+#define PR_BYTES_PER_LONG 4
-+#define PR_BYTES_PER_FLOAT 4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD 4
-+#define PR_BYTES_PER_DWORD 8
-+
-+#define PR_BITS_PER_BYTE 8
-+#define PR_BITS_PER_SHORT 16
-+#define PR_BITS_PER_INT 32
-+#define PR_BITS_PER_INT64 64
-+#define PR_BITS_PER_LONG 32
-+#define PR_BITS_PER_FLOAT 32
-+#define PR_BITS_PER_DOUBLE 64
-+#define PR_BITS_PER_WORD 32
-+
-+#define PR_BITS_PER_BYTE_LOG2 3
-+#define PR_BITS_PER_SHORT_LOG2 4
-+#define PR_BITS_PER_INT_LOG2 5
-+#define PR_BITS_PER_INT64_LOG2 6
-+#define PR_BITS_PER_LONG_LOG2 5
-+#define PR_BITS_PER_FLOAT_LOG2 5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2 5
-+
-+#define PR_ALIGN_OF_SHORT 2
-+#define PR_ALIGN_OF_INT 4
-+#define PR_ALIGN_OF_LONG 4
-+#define PR_ALIGN_OF_INT64 8
-+#define PR_ALIGN_OF_FLOAT 4
-+#define PR_ALIGN_OF_DOUBLE 8
-+#define PR_ALIGN_OF_POINTER 4
-+#define PR_ALIGN_OF_WORD 4
-+
-+#define PR_BYTES_PER_WORD_LOG2 2
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
-+#elif defined(__hppa__)
-+
-+#undef IS_LITTLE_ENDIAN
-+#define IS_BIG_ENDIAN 1
-+
-+#define PR_BYTES_PER_BYTE 1
-+#define PR_BYTES_PER_SHORT 2
-+#define PR_BYTES_PER_INT 4
-+#define PR_BYTES_PER_INT64 8
-+#define PR_BYTES_PER_LONG 4
-+#define PR_BYTES_PER_FLOAT 4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD 4
-+#define PR_BYTES_PER_DWORD 8
-+
-+#define PR_BITS_PER_BYTE 8
-+#define PR_BITS_PER_SHORT 16
-+#define PR_BITS_PER_INT 32
-+#define PR_BITS_PER_INT64 64
-+#define PR_BITS_PER_LONG 32
-+#define PR_BITS_PER_FLOAT 32
-+#define PR_BITS_PER_DOUBLE 64
-+#define PR_BITS_PER_WORD 32
-+
-+#define PR_BITS_PER_BYTE_LOG2 3
-+#define PR_BITS_PER_SHORT_LOG2 4
-+#define PR_BITS_PER_INT_LOG2 5
-+#define PR_BITS_PER_INT64_LOG2 6
-+#define PR_BITS_PER_LONG_LOG2 5
-+#define PR_BITS_PER_FLOAT_LOG2 5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2 5
-+
-+#define PR_ALIGN_OF_SHORT 2
-+#define PR_ALIGN_OF_INT 4
-+#define PR_ALIGN_OF_LONG 4
-+#define PR_ALIGN_OF_INT64 8
-+#define PR_ALIGN_OF_FLOAT 4
-+#define PR_ALIGN_OF_DOUBLE 8
-+#define PR_ALIGN_OF_POINTER 4
-+#define PR_ALIGN_OF_WORD 4
-+
-+#define PR_BYTES_PER_WORD_LOG2 2
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
- #elif defined(__s390__)
-
- #define IS_BIG_ENDIAN 1
-diff -uNr nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.h nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h
---- nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.h 2004-04-05 15:09:54.000000000 +0000
-+++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h 2004-04-05 15:12:45.000000000 +0000
-@@ -63,6 +63,8 @@
- #define _PR_SI_ARCHITECTURE "s390"
- #elif defined(__s390x__)
- #define _PR_SI_ARCHITECTURE "s390x"
-+#elif defined(__hppa__)
-+#define _PR_SI_ARCHITECTURE "hppa"
- #else
- #error "Unknown CPU architecture"
- #endif
+++ /dev/null
---- nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg.orig 2003-01-23 18:03:19.000000000 +0100
-+++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg 2004-10-28 17:23:36.137131376 +0200
-@@ -45,7 +45,53 @@
-
- #define PR_AF_INET6 10 /* same as AF_INET6 */
-
--#ifdef __powerpc__
-+#ifdef __powerpc64__
-+
-+#undef IS_LITTLE_ENDIAN
-+#define IS_BIG_ENDIAN 1
-+#define IS_64
-+
-+#define PR_BYTES_PER_BYTE 1
-+#define PR_BYTES_PER_SHORT 2
-+#define PR_BYTES_PER_INT 4
-+#define PR_BYTES_PER_INT64 8
-+#define PR_BYTES_PER_LONG 8
-+#define PR_BYTES_PER_FLOAT 4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD 8
-+#define PR_BYTES_PER_DWORD 8
-+
-+#define PR_BITS_PER_BYTE 8
-+#define PR_BITS_PER_SHORT 16
-+#define PR_BITS_PER_INT 32
-+#define PR_BITS_PER_INT64 64
-+#define PR_BITS_PER_LONG 64
-+#define PR_BITS_PER_FLOAT 32
-+#define PR_BITS_PER_DOUBLE 64
-+#define PR_BITS_PER_WORD 64
-+
-+#define PR_BITS_PER_BYTE_LOG2 3
-+#define PR_BITS_PER_SHORT_LOG2 4
-+#define PR_BITS_PER_INT_LOG2 5
-+#define PR_BITS_PER_INT64_LOG2 6
-+#define PR_BITS_PER_LONG_LOG2 6
-+#define PR_BITS_PER_FLOAT_LOG2 5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2 6
-+
-+#define PR_ALIGN_OF_SHORT 2
-+#define PR_ALIGN_OF_INT 4
-+#define PR_ALIGN_OF_LONG 8
-+#define PR_ALIGN_OF_INT64 8
-+#define PR_ALIGN_OF_FLOAT 4
-+#define PR_ALIGN_OF_DOUBLE 8
-+#define PR_ALIGN_OF_POINTER 8
-+#define PR_ALIGN_OF_WORD 8
-+
-+#define PR_BYTES_PER_WORD_LOG2 3
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
-+#elif defined(__powerpc__)
-
- #undef IS_LITTLE_ENDIAN
- #define IS_BIG_ENDIAN 1
-
---- nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h.orig 2004-10-28 17:28:02.931175520 +0200
-+++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h 2004-10-28 17:28:52.716195584 +0200
-@@ -43,7 +43,9 @@
-
- #define PR_LINKER_ARCH "linux"
- #define _PR_SI_SYSNAME "LINUX"
--#ifdef __powerpc__
-+#ifdef __powerpc64__
-+#define _PR_SI_ARCHITECTURE "ppc64"
-+#elif defined(__powerpc__)
- #define _PR_SI_ARCHITECTURE "ppc"
- #elif defined(__alpha)
- #define _PR_SI_ARCHITECTURE "alpha"
+++ /dev/null
-Index: nspr-4.6.3/mozilla/nsprpub/pr/src/misc/prnetdb.c
-===================================================================
---- nspr-4.6.3.orig/mozilla/nsprpub/pr/src/misc/prnetdb.c
-+++ nspr-4.6.3/mozilla/nsprpub/pr/src/misc/prnetdb.c
-@@ -108,6 +108,11 @@ PRLock *_pr_dnsLock = NULL;
- #define _PR_HAVE_GETPROTO_R_INT
- #endif
-
-+#if __FreeBSD_version >= 602000
-+#define _PR_HAVE_GETPROTO_R
-+#define _PR_HAVE_5_ARG_GETPROTO_R
-+#endif
-+
- #if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2)
- #define _PR_HAVE_GETPROTO_R
- #define _PR_HAVE_5_ARG_GETPROTO_R
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.6.3-r1.ebuild,v 1.2 2007/03/08 14:23:13 beandog Exp $
-
-inherit eutils gnuconfig multilib
-
-DESCRIPTION="Netscape Portable Runtime"
-HOMEPAGE="http://www.mozilla.org/projects/nspr/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="ipv6 debug"
-
-DEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- mkdir build inst
- epatch "${FILESDIR}"/${PN}-4.6.1-config.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-prtime.patch
- epatch "${FILESDIR}"/${PN}-4.6.3-fbsd62.patch
- gnuconfig_update
-}
-
-src_compile() {
- cd build
-
- if use amd64 || use ppc64 || use ia64 || use s390; then
- myconf="${myconf} --enable-64bit"
- else
- myconf=""
- fi
-
- if use ipv6; then
- myconf="${myconf} --enable-ipv6"
- fi
-
- ../mozilla/nsprpub/configure \
- --build=${CBUILD:-${CHOST}} \
- --host=${CHOST} \
- --prefix=/usr \
- --libdir=/usr/$(get_libdir)/nspr \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man \
- $(use_enable debug) \
- ${myconf} || die "./configure failed"
- make || die
-}
-
-src_install () {
- # Their build system is royally fucked, as usual
- MINOR_VERSION=6
- cd ${S}/build
- make install
- insinto /usr
- doins -r dist/*
- rm -rf ${D}/usr/bin/lib*.so
-
- #removing includes/nspr/md as per fedora spec
- # i.e a waste of space!
- rm -rf ${D}/usr/include/nspr/md
-
- # there have been /usr/lib/nspr changes (like the ldpath below), but never
- # have I seen any libraries end up in this directory. lets fix that.
- # note: I tried doing this fix via the build system. It wont work.
- if [ ! -e ${D}/usr/lib/nspr ] ; then
- mkdir -p ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*so* ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*\.a ${D}/usr/lib/nspr
- fi
- # and while we're at it, lets make it actually use the arch's libdir damnit
- if [ "lib" != "$(get_libdir)" ] ; then
- mv ${D}/usr/lib ${D}/usr/$(get_libdir)
- fi
- #and while at it move them to files with versions-ending
- #and link them back :)
- cd ${D}/usr/$(get_libdir)/nspr
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
- # cope with libraries being in /usr/lib/nspr
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nspr" > ${D}/etc/env.d/08nspr
-
- # install nspr-config
- insinto /usr/bin
- doins ${S}/build/config/nspr-config
- chmod a+x ${D}/usr/bin/nspr-config
-
- # create pkg-config file
- insinto /usr/$(get_libdir)/pkgconfig/
- doins ${S}/build/config/nspr.pc
-}
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.6.3.ebuild,v 1.14 2007/03/08 14:23:13 beandog Exp $
-
-inherit eutils gnuconfig multilib
-
-DESCRIPTION="Netscape Portable Runtime"
-HOMEPAGE="http://www.mozilla.org/projects/nspr/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE="ipv6"
-
-DEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- mkdir build inst
- epatch "${FILESDIR}"/${PN}-4.6.1-config.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-prtime.patch
- epatch "${FILESDIR}"/${PN}-4.6.3-fbsd62.patch
- gnuconfig_update
-}
-
-src_compile() {
- cd build
-
- if use amd64 || use ppc64 || use ia64 || use s390; then
- myconf="${myconf} --enable-64bit"
- else
- myconf=""
- fi
-
- if use ipv6; then
- myconf="${myconf} --enable-ipv6"
- fi
-
- ../mozilla/nsprpub/configure \
- --build=${CBUILD:-${CHOST}} \
- --host=${CHOST} \
- --prefix=/usr \
- --libdir=/usr/$(get_libdir)/nspr \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man \
- ${myconf} || die "./configure failed"
- make || die
-}
-
-src_install () {
- # Their build system is royally fucked, as usual
- MINOR_VERSION=6
- cd ${S}/build
- make install
- insinto /usr
- doins -r dist/*
- rm -rf ${D}/usr/bin/lib*.so
-
- #removing includes/nspr/md as per fedora spec
- # i.e a waste of space!
- rm -rf ${D}/usr/include/nspr/md
-
- # there have been /usr/lib/nspr changes (like the ldpath below), but never
- # have I seen any libraries end up in this directory. lets fix that.
- # note: I tried doing this fix via the build system. It wont work.
- if [ ! -e ${D}/usr/lib/nspr ] ; then
- mkdir -p ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*so* ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*\.a ${D}/usr/lib/nspr
- fi
- # and while we're at it, lets make it actually use the arch's libdir damnit
- if [ "lib" != "$(get_libdir)" ] ; then
- mv ${D}/usr/lib ${D}/usr/$(get_libdir)
- fi
- #and while at it move them to files with versions-ending
- #and link them back :)
- cd ${D}/usr/$(get_libdir)/nspr
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
- # cope with libraries being in /usr/lib/nspr
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nspr" > ${D}/etc/env.d/08nspr
-
- # install nspr-config
- insinto /usr/bin
- doins ${S}/build/config/nspr-config
- chmod a+x ${D}/usr/bin/nspr-config
-
- # create pkg-config file
- insinto /usr/$(get_libdir)/pkgconfig/
- doins ${S}/build/config/nspr.pc
-}
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.6.4-r3.ebuild,v 1.2 2007/03/08 14:23:13 beandog Exp $
-
-inherit eutils multilib
-
-DESCRIPTION="Netscape Portable Runtime"
-HOMEPAGE="http://www.mozilla.org/projects/nspr/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="ipv6 debug"
-
-DEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- mkdir build inst
- epatch "${FILESDIR}"/${PN}-4.6.1-config.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-prtime.patch
-}
-
-src_compile() {
- cd build
-
- if use amd64 || use ppc64 || use ia64 || use s390; then
- myconf="${myconf} --enable-64bit"
- else
- myconf=""
- fi
-
- if use ipv6; then
- myconf="${myconf} --enable-ipv6"
- fi
-
- myconf="${myconf} --libdir=/usr/$(get_libdir)/nspr"
-
- ECONF_SOURCE="../mozilla/nsprpub" econf \
- $(use_enable debug) \
- ${myconf} || die "econf failed"
- make || die
-}
-
-src_install () {
- # Their build system is royally fucked, as usual
- MINOR_VERSION=6
- cd ${S}/build
- make install
- insinto /usr
- doins -r dist/*
- rm -rf ${D}/usr/bin/lib*.so
-
- #removing includes/nspr/md as per fedora spec
- # i.e a waste of space!
- rm -rf ${D}/usr/include/nspr/md
-
- # there have been /usr/lib/nspr changes (like the ldpath below), but never
- # have I seen any libraries end up in this directory. lets fix that.
- # note: I tried doing this fix via the build system. It wont work.
- if [ ! -e ${D}/usr/lib/nspr ] ; then
- mkdir -p ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*so* ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*\.a ${D}/usr/lib/nspr
- fi
- # and while we're at it, lets make it actually use the arch's libdir damnit
- if [ "lib" != "$(get_libdir)" ] ; then
- mv ${D}/usr/lib ${D}/usr/$(get_libdir)
- fi
- #and while at it move them to files with versions-ending
- #and link them back :)
- cd ${D}/usr/$(get_libdir)/nspr
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
- # cope with libraries being in /usr/lib/nspr
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nspr" > ${D}/etc/env.d/08nspr
-
- # install nspr-config
- insinto /usr/bin
- doins ${S}/build/config/nspr-config
- chmod a+x ${D}/usr/bin/nspr-config
-
- # create pkg-config file
- insinto /usr/$(get_libdir)/pkgconfig/
- doins ${S}/build/config/nspr.pc
-}
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.6.4.ebuild,v 1.2 2007/03/08 14:23:13 beandog Exp $
-
-inherit eutils gnuconfig multilib
-
-DESCRIPTION="Netscape Portable Runtime"
-HOMEPAGE="http://www.mozilla.org/projects/nspr/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="ipv6 debug"
-
-DEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- mkdir build inst
- epatch "${FILESDIR}"/${PN}-4.6.1-config.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
- epatch "${FILESDIR}"/${PN}-4.6.1-prtime.patch
- gnuconfig_update
-}
-
-src_compile() {
- cd build
-
- if use amd64 || use ppc64 || use ia64 || use s390; then
- myconf="${myconf} --enable-64bit"
- else
- myconf=""
- fi
-
- if use ipv6; then
- myconf="${myconf} --enable-ipv6"
- fi
-
- ../mozilla/nsprpub/configure \
- --build=${CBUILD:-${CHOST}} \
- --host=${CHOST} \
- --prefix=/usr \
- --libdir=/usr/$(get_libdir)/nspr \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man \
- $(use_enable debug) \
- ${myconf} || die "./configure failed"
- make || die
-}
-
-src_install () {
- # Their build system is royally fucked, as usual
- MINOR_VERSION=6
- cd ${S}/build
- make install
- insinto /usr
- doins -r dist/*
- rm -rf ${D}/usr/bin/lib*.so
-
- #removing includes/nspr/md as per fedora spec
- # i.e a waste of space!
- rm -rf ${D}/usr/include/nspr/md
-
- # there have been /usr/lib/nspr changes (like the ldpath below), but never
- # have I seen any libraries end up in this directory. lets fix that.
- # note: I tried doing this fix via the build system. It wont work.
- if [ ! -e ${D}/usr/lib/nspr ] ; then
- mkdir -p ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*so* ${D}/usr/lib/nspr
- mv ${D}/usr/lib/*\.a ${D}/usr/lib/nspr
- fi
- # and while we're at it, lets make it actually use the arch's libdir damnit
- if [ "lib" != "$(get_libdir)" ] ; then
- mv ${D}/usr/lib ${D}/usr/$(get_libdir)
- fi
- #and while at it move them to files with versions-ending
- #and link them back :)
- cd ${D}/usr/$(get_libdir)/nspr
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
- # cope with libraries being in /usr/lib/nspr
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nspr" > ${D}/etc/env.d/08nspr
-
- # install nspr-config
- insinto /usr/bin
- doins ${S}/build/config/nspr-config
- chmod a+x ${D}/usr/bin/nspr-config
-
- # create pkg-config file
- insinto /usr/$(get_libdir)/pkgconfig/
- doins ${S}/build/config/nspr.pc
-}
# ChangeLog for dev-libs/nss
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.92 2007/04/20 12:14:03 redhatter Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.93 2007/04/20 13:26:30 armin76 Exp $
+
+ 20 Apr 2007; Raúl Porcel <armin76@gentoo.org> -nss-3.11.3.ebuild,
+ -nss-3.11.3-r1.ebuild, -nss-3.11.4.ebuild:
+ Cleanup
20 Apr 2007; Stuart Longland <redhatter@gentoo.org> nss-3.11.5.ebuild:
Tested and marked stable on mips
+++ /dev/null
-MD5 196c8d2746bd75d3561d129f64bbf9cf nss-3.11.3.tar.gz 3684552
-RMD160 da84f03f52453a307b27602e4a42205b20c02947 nss-3.11.3.tar.gz 3684552
-SHA256 41278699b80dc3767f3d505f3526e6acb2911fd75bf82167bb3b3753aa5f4c6f nss-3.11.3.tar.gz 3684552
+++ /dev/null
-MD5 196c8d2746bd75d3561d129f64bbf9cf nss-3.11.3.tar.gz 3684552
-RMD160 da84f03f52453a307b27602e4a42205b20c02947 nss-3.11.3.tar.gz 3684552
-SHA256 41278699b80dc3767f3d505f3526e6acb2911fd75bf82167bb3b3753aa5f4c6f nss-3.11.3.tar.gz 3684552
+++ /dev/null
-MD5 74af8ebdf94307f47ff8931adbef9c39 nss-3.11.4.tar.gz 3713920
-RMD160 5047c7f56444b22bc5f64dbaa02576e48ab5ef2a nss-3.11.4.tar.gz 3713920
-SHA256 c50062df123d733f25d4903f42e8855adf51b7324c786c714f7dd1ab9e328f06 nss-3.11.4.tar.gz 3713920
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.11.3-r1.ebuild,v 1.2 2007/03/08 22:18:23 beandog Exp $
-
-inherit eutils flag-o-matic multilib
-
-NSPR_VER="4.6.3"
-RTM_NAME="NSS_${PV//./_}_RTM"
-DESCRIPTION="Mozilla's Netscape Security Services Library that implements PKI support"
-HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE=""
-
-DEPEND="virtual/libc
- app-arch/zip
- >=dev-libs/nspr-${NSPR_VER}"
-
-src_unpack() {
- unpack ${A}
-
- # hack nspr paths
- echo 'INCLUDES += -I${ROOT}/usr/include/nspr -I$(DIST)/include/dbm' \
- >> ${S}/mozilla/security/coreconf/headers.mk || die "failed to append include"
-
- # cope with nspr being in /usr/$(get_libdir)/nspr
- sed -e 's:$(DIST)/lib:${ROOT}/usr/'"$(get_libdir)"/nspr':' \
- -i ${S}/mozilla/security/coreconf/location.mk
-
- # modify install path
- sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
- -i ${S}/mozilla/security/coreconf/source.mk
-
- cd ${S}
- epatch ${FILESDIR}/${PN}-3.11-config.patch
- epatch ${FILESDIR}/${PN}-3.11-config-1.patch
- epatch ${FILESDIR}/${PN}-mips64.patch
-}
-
-src_compile() {
- strip-flags
- if use amd64 || use ppc64 || use ia64 || use s390; then
- export USE_64=1
- fi
- export NSDISTMODE=copy
- cd ${S}/mozilla/security/coreconf
- emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "coreconf make failed"
- cd ${S}/mozilla/security/dbm
- emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "dbm make failed"
- cd ${S}/mozilla/security/nss
- emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "nss make failed"
-}
-
-src_install () {
- MINOR_VERSION=11
- cd ${S}/mozilla/security/dist
-
- # put all *.a files in /usr/lib/nss (because some have conflicting names
- # with existing libraries)
- dodir /usr/$(get_libdir)/nss
- cp -L */lib/*.so ${D}/usr/$(get_libdir)/nss || die "copying shared libs failed"
- cp -L */lib/*.chk ${D}/usr/$(get_libdir)/nss || die "copying chk files failed"
- cp -L */lib/*.a ${D}/usr/$(get_libdir)/nss || die "copying libs failed"
-
- # all the include files
- insinto /usr/include/nss
- doins private/nss/*.h
- doins public/nss/*.h
- cd ${D}/usr/$(get_libdir)/nss
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
-
- # coping with nss being in a different path. We move up priority to
- # ensure that nss/nspr are used specifically before searching elsewhere.
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nss" > ${D}/etc/env.d/08nss
-
- dodir /usr/bin
- dodir /usr/$(get_libdir)/pkgconfig
- cp ${FILESDIR}/nss-config.in ${D}/usr/bin/nss-config
- cp ${FILESDIR}/nss.pc.in ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
- NSS_VMAJOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
- NSS_VMINOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMINOR" | awk '{print $3}'`
- NSS_VPATCH=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VPATCH" | awk '{print $3}'`
-
- sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
- -e "s,@prefix@,/usr,g" \
- -e "s,@exec_prefix@,\$\{prefix},g" \
- -e "s,@includedir@,\$\{prefix}/include/nss,g" \
- -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \
- -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \
- -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \
- -i ${D}/usr/bin/nss-config
- chmod 755 ${D}/usr/bin/nss-config
-
- sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
- -e "s,@prefix@,/usr,g" \
- -e "s,@exec_prefix@,\$\{prefix},g" \
- -e "s,@includedir@,\$\{prefix}/include/nss," \
- -e "s,@NSPR_VERSION@,`nspr-config --version`,g" \
- -e "s,@NSS_VERSION@,$NSS_VMAJOR.$NSS_VMINOR.$NSS_VPATCH,g" \
- -i ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
- chmod 644 ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
-}
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.11.3.ebuild,v 1.13 2007/03/08 22:18:23 beandog Exp $
-
-inherit eutils multilib
-
-NSPR_VER="4.6.3"
-RTM_NAME="NSS_${PV//./_}_RTM"
-DESCRIPTION="Mozilla's Netscape Security Services Library that implements PKI support"
-HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE=""
-
-DEPEND="virtual/libc
- app-arch/zip
- >=dev-libs/nspr-${NSPR_VER}"
-
-src_unpack() {
- unpack ${A}
-
- # hack nspr paths
- echo 'INCLUDES += -I${ROOT}/usr/include/nspr -I$(DIST)/include/dbm' \
- >> ${S}/mozilla/security/coreconf/headers.mk || die "failed to append include"
-
- # cope with nspr being in /usr/$(get_libdir)/nspr
- sed -e 's:$(DIST)/lib:${ROOT}/usr/'"$(get_libdir)"/nspr':' \
- -i ${S}/mozilla/security/coreconf/location.mk
-
- # modify install path
- sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
- -i ${S}/mozilla/security/coreconf/source.mk
-
- cd ${S}
- epatch ${FILESDIR}/${PN}-3.11-config.patch
- epatch ${FILESDIR}/${PN}-3.11-config-1.patch
- epatch ${FILESDIR}/${PN}-mips64.patch
-}
-
-src_compile() {
- if use amd64 || use ppc64 || use ia64 || use s390; then
- export USE_64=1
- fi
- export NSDISTMODE=copy
- cd ${S}/mozilla/security/coreconf
- emake -j1 BUILD_OPT=1 || die "coreconf make failed"
- cd ${S}/mozilla/security/dbm
- emake -j1 BUILD_OPT=1 || die "dbm make failed"
- cd ${S}/mozilla/security/nss
- emake -j1 BUILD_OPT=1 || die "nss make failed"
-}
-
-src_install () {
- MINOR_VERSION=11
- cd ${S}/mozilla/security/dist
-
- # put all *.a files in /usr/lib/nss (because some have conflicting names
- # with existing libraries)
- dodir /usr/$(get_libdir)/nss
- cp -L */lib/*.so ${D}/usr/$(get_libdir)/nss || die "copying shared libs failed"
- cp -L */lib/*.chk ${D}/usr/$(get_libdir)/nss || die "copying chk files failed"
- cp -L */lib/*.a ${D}/usr/$(get_libdir)/nss || die "copying libs failed"
-
- # all the include files
- insinto /usr/include/nss
- doins private/nss/*.h
- doins public/nss/*.h
- cd ${D}/usr/$(get_libdir)/nss
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
-
- # coping with nss being in a different path. We move up priority to
- # ensure that nss/nspr are used specifically before searching elsewhere.
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nss" > ${D}/etc/env.d/08nss
-
- dodir /usr/bin
- dodir /usr/$(get_libdir)/pkgconfig
- cp ${FILESDIR}/nss-config.in ${D}/usr/bin/nss-config
- cp ${FILESDIR}/nss.pc.in ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
- NSS_VMAJOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
- NSS_VMINOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMINOR" | awk '{print $3}'`
- NSS_VPATCH=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VPATCH" | awk '{print $3}'`
-
- sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
- -e "s,@prefix@,/usr,g" \
- -e "s,@exec_prefix@,\$\{prefix},g" \
- -e "s,@includedir@,\$\{prefix}/include/nss,g" \
- -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \
- -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \
- -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \
- -i ${D}/usr/bin/nss-config
- chmod 755 ${D}/usr/bin/nss-config
-
- sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
- -e "s,@prefix@,/usr,g" \
- -e "s,@exec_prefix@,\$\{prefix},g" \
- -e "s,@includedir@,\$\{prefix}/include/nss," \
- -e "s,@NSPR_VERSION@,`nspr-config --version`,g" \
- -e "s,@NSS_VERSION@,$NSS_VMAJOR.$NSS_VMINOR.$NSS_VPATCH,g" \
- -i ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
- chmod 644 ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
-}
+++ /dev/null
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.11.4.ebuild,v 1.3 2007/03/08 22:18:23 beandog Exp $
-
-inherit eutils flag-o-matic multilib
-
-NSPR_VER="4.6.4"
-RTM_NAME="NSS_${PV//./_}_RTM"
-DESCRIPTION="Mozilla's Netscape Security Services Library that implements PKI support"
-HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz"
-
-LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE=""
-
-DEPEND="virtual/libc
- app-arch/zip
- >=dev-libs/nspr-${NSPR_VER}"
-
-src_unpack() {
- unpack ${A}
-
- # hack nspr paths
- echo 'INCLUDES += -I${ROOT}/usr/include/nspr -I$(DIST)/include/dbm' \
- >> ${S}/mozilla/security/coreconf/headers.mk || die "failed to append include"
-
- # cope with nspr being in /usr/$(get_libdir)/nspr
- sed -e 's:$(DIST)/lib:${ROOT}/usr/'"$(get_libdir)"/nspr':' \
- -i ${S}/mozilla/security/coreconf/location.mk
-
- # modify install path
- sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
- -i ${S}/mozilla/security/coreconf/source.mk
-
- cd ${S}
- epatch ${FILESDIR}/${PN}-3.11-config.patch
- epatch ${FILESDIR}/${PN}-3.11-config-1.patch
- epatch ${FILESDIR}/${PN}-mips64.patch
-}
-
-src_compile() {
- strip-flags
- if use amd64 || use ppc64 || use ia64 || use s390; then
- export USE_64=1
- fi
- export NSDISTMODE=copy
- cd ${S}/mozilla/security/coreconf
- emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "coreconf make failed"
- cd ${S}/mozilla/security/dbm
- emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "dbm make failed"
- cd ${S}/mozilla/security/nss
- emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "nss make failed"
-}
-
-src_install () {
- MINOR_VERSION=11
- cd ${S}/mozilla/security/dist
-
- # put all *.a files in /usr/lib/nss (because some have conflicting names
- # with existing libraries)
- dodir /usr/$(get_libdir)/nss
- cp -L */lib/*.so ${D}/usr/$(get_libdir)/nss || die "copying shared libs failed"
- cp -L */lib/*.chk ${D}/usr/$(get_libdir)/nss || die "copying chk files failed"
- cp -L */lib/*.a ${D}/usr/$(get_libdir)/nss || die "copying libs failed"
-
- # all the include files
- insinto /usr/include/nss
- doins private/nss/*.h
- doins public/nss/*.h
- cd ${D}/usr/$(get_libdir)/nss
- for file in *.so; do
- mv ${file} ${file}.${MINOR_VERSION}
- ln -s ${file}.${MINOR_VERSION} ${file}
- done
-
- # coping with nss being in a different path. We move up priority to
- # ensure that nss/nspr are used specifically before searching elsewhere.
- dodir /etc/env.d
- echo "LDPATH=/usr/$(get_libdir)/nss" > ${D}/etc/env.d/08nss
-
- dodir /usr/bin
- dodir /usr/$(get_libdir)/pkgconfig
- cp ${FILESDIR}/nss-config.in ${D}/usr/bin/nss-config
- cp ${FILESDIR}/nss.pc.in ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
- NSS_VMAJOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
- NSS_VMINOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMINOR" | awk '{print $3}'`
- NSS_VPATCH=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VPATCH" | awk '{print $3}'`
-
- sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
- -e "s,@prefix@,/usr,g" \
- -e "s,@exec_prefix@,\$\{prefix},g" \
- -e "s,@includedir@,\$\{prefix}/include/nss,g" \
- -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \
- -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \
- -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \
- -i ${D}/usr/bin/nss-config
- chmod 755 ${D}/usr/bin/nss-config
-
- sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
- -e "s,@prefix@,/usr,g" \
- -e "s,@exec_prefix@,\$\{prefix},g" \
- -e "s,@includedir@,\$\{prefix}/include/nss," \
- -e "s,@NSPR_VERSION@,`nspr-config --version`,g" \
- -e "s,@NSS_VERSION@,$NSS_VMAJOR.$NSS_VMINOR.$NSS_VPATCH,g" \
- -i ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
- chmod 644 ${D}/usr/$(get_libdir)/pkgconfig/nss.pc
-}