summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2004-10-23 13:57:10 +0000
committerJoseph Jezak <josejx@gentoo.org>2004-10-23 13:57:10 +0000
commit9e6b61dc6f081b9685c394b67754b1b02ad30557 (patch)
treee18b21c7b09801da9d6f71b93c0245c7206ee4d8
parentupdate needed by base-policy-20041023 (Manifest recommit) (diff)
downloadgentoo-2-9e6b61dc6f081b9685c394b67754b1b02ad30557.tar.gz
gentoo-2-9e6b61dc6f081b9685c394b67754b1b02ad30557.tar.bz2
gentoo-2-9e6b61dc6f081b9685c394b67754b1b02ad30557.zip
Initial import, bug #50822
-rw-r--r--net-libs/gecko-sdk/ChangeLog7
-rw-r--r--net-libs/gecko-sdk/Manifest2
-rw-r--r--net-libs/gecko-sdk/files/digest-gecko-sdk-1.7.31
-rw-r--r--net-libs/gecko-sdk/files/mozilla-1.3-fix-RAW-target.patch12
-rw-r--r--net-libs/gecko-sdk/files/mozilla-alpha-xpcom-subs-fix.patch139
-rw-r--r--net-libs/gecko-sdk/gecko-sdk-1.7.3.ebuild87
-rw-r--r--net-libs/gecko-sdk/metadata.xml9
7 files changed, 257 insertions, 0 deletions
diff --git a/net-libs/gecko-sdk/ChangeLog b/net-libs/gecko-sdk/ChangeLog
new file mode 100644
index 000000000000..89aa375ae9e9
--- /dev/null
+++ b/net-libs/gecko-sdk/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for net-libs/gecko-sdk
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/gecko-sdk/ChangeLog,v 1.1 2004/10/23 13:57:10 josejx Exp $
+
+ 23 Oct 2004; Joseph Jezak <josejx@gentoo.org> :
+ Initial import, bug #50822
+
diff --git a/net-libs/gecko-sdk/Manifest b/net-libs/gecko-sdk/Manifest
new file mode 100644
index 000000000000..fed8a24a9b0b
--- /dev/null
+++ b/net-libs/gecko-sdk/Manifest
@@ -0,0 +1,2 @@
+MD5 2a2e3f2213f8dbbfd87ca37bdb42be54 gecko-sdk-1.7.3.ebuild 2093
+MD5 640ad02464c41c9b820db9b59c7eeaec files/digest-gecko-sdk-1.7.3 75
diff --git a/net-libs/gecko-sdk/files/digest-gecko-sdk-1.7.3 b/net-libs/gecko-sdk/files/digest-gecko-sdk-1.7.3
new file mode 100644
index 000000000000..a10c327f101f
--- /dev/null
+++ b/net-libs/gecko-sdk/files/digest-gecko-sdk-1.7.3
@@ -0,0 +1 @@
+MD5 15cb68da1d58f055f871b77ff655df77 mozilla-source-1.7.3.tar.bz2 29716200
diff --git a/net-libs/gecko-sdk/files/mozilla-1.3-fix-RAW-target.patch b/net-libs/gecko-sdk/files/mozilla-1.3-fix-RAW-target.patch
new file mode 100644
index 000000000000..5951496e9893
--- /dev/null
+++ b/net-libs/gecko-sdk/files/mozilla-1.3-fix-RAW-target.patch
@@ -0,0 +1,12 @@
+--- mozilla/xpinstall/packager/Makefile.in.orig 2003-02-23 14:41:08.000000000 +0200
++++ mozilla/xpinstall/packager/Makefile.in 2003-02-23 14:41:36.000000000 +0200
+@@ -87,6 +87,9 @@
+ ifeq ($(MOZ_PKG_FORMAT),DEB)
+ PKG_SUFFIX = .deb
+ endif
++ifeq ($(MOZ_PKG_FORMAT),RAW)
++MAKE_SDK = echo
++endif
+
+ TARGETS = $(PACKAGE) $(SDK)
+
diff --git a/net-libs/gecko-sdk/files/mozilla-alpha-xpcom-subs-fix.patch b/net-libs/gecko-sdk/files/mozilla-alpha-xpcom-subs-fix.patch
new file mode 100644
index 000000000000..c7f95467438a
--- /dev/null
+++ b/net-libs/gecko-sdk/files/mozilla-alpha-xpcom-subs-fix.patch
@@ -0,0 +1,139 @@
+--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp 2002-04-10 05:37:38.000000000 +0200
++++ mozilla-alpha/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp 2002-10-06 10:44:59.000000000 +0200
+@@ -20,6 +20,7 @@
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
++ * Glen Nakamura <glen@imodulo.com>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+@@ -37,16 +38,14 @@
+
+ /* Platform specific code to invoke XPCOM methods on native objects */
+
+-/* contributed by Glen Nakamura <glen.nakamura@usa.net> */
+-
+ #include "xptcprivate.h"
+
+ /* Prototype specifies unmangled function name and disables unused warning */
+-static void
++void
+ invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s)
+ __asm__("invoke_copy_to_stack") __attribute__((unused));
+
+-static void
++void
+ invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s)
+ {
+ const PRUint8 NUM_ARG_REGS = 6-1; // -1 for "this" pointer
+@@ -163,7 +162,11 @@
+ "bis $16,$16,$1\n\t" /* load "this" */
+ "ldq $2,16($15)\n\t" /* load "methodIndex" */
+ "ldq $1,0($1)\n\t" /* load vtable */
++#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */
++ "s8addq $2,$31,$2\n\t" /* vtable index = "methodIndex" * 8 */
++#else /* not G++ V3 ABI */
+ "s8addq $2,16,$2\n\t" /* vtable index = "methodIndex" * 8 + 16 */
++#endif /* G++ V3 ABI */
+ "addq $1,$2,$1\n\t"
+ "ldq $27,0($1)\n\t" /* load address of function */
+ "jsr $26,($27),0\n\t" /* call virtual function */
+@@ -176,4 +179,3 @@
+ "ret $31,($26),1\n\t"
+ ".end XPTC_InvokeByIndex"
+ );
+-
+--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_alpha.cpp 2002-04-10 05:37:42.000000000 +0200
++++ mozilla-alpha/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_alpha.cpp 2002-10-06 10:45:10.000000000 +0200
+@@ -20,6 +20,7 @@
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
++ * Glen Nakamura <glen@imodulo.com>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+@@ -37,16 +38,14 @@
+
+ /* Implement shared vtbl methods. */
+
+-/* contributed by Glen Nakamura <glen.nakamura@usa.net> */
+-
+ #include "xptcprivate.h"
+
+ /* Prototype specifies unmangled function name and disables unused warning */
+-static nsresult
++nsresult
+ PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args)
+ __asm__("PrepareAndDispatch") __attribute__((unused));
+
+-static nsresult
++nsresult
+ PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args)
+ {
+ const PRUint8 PARAM_BUFFER_COUNT = 16;
+@@ -188,23 +187,45 @@
+ * nsresult nsXPTCStubBase::Stub##n()
+ * Sets register $1 to "methodIndex" and jumps to SharedStub.
+ */
++#define STUB_MANGLED_ENTRY(n, symbol) \
++ "#### Stub"#n" ####" "\n\t" \
++ ".text" "\n\t" \
++ ".align 5" "\n\t" \
++ ".globl " symbol "\n\t" \
++ ".ent " symbol "\n" \
++symbol ":" "\n\t" \
++ ".frame $30,0,$26,0" "\n\t" \
++ "ldgp $29,0($27)" "\n" \
++"$" symbol "..ng:" "\n\t" \
++ ".prologue 1" "\n\t" \
++ "lda $1,"#n "\n\t" \
++ "br $31,$SharedStub..ng" "\n\t" \
++ ".end " symbol
++
++#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */
++
++#define STUB_ENTRY(n) \
++__asm__( \
++ ".if "#n" < 10" "\n\t" \
++ STUB_MANGLED_ENTRY(n, "_ZN14nsXPTCStubBase5Stub"#n"Ev") "\n\t" \
++ ".elseif "#n" < 100" "\n\t" \
++ STUB_MANGLED_ENTRY(n, "_ZN14nsXPTCStubBase6Stub"#n"Ev") "\n\t" \
++ ".elseif "#n" < 1000" "\n\t" \
++ STUB_MANGLED_ENTRY(n, "_ZN14nsXPTCStubBase7Stub"#n"Ev") "\n\t" \
++ ".else" "\n\t" \
++ ".err \"Stub"#n" >= 1000 not yet supported.\"" "\n\t" \
++ ".endif" \
++ );
++
++#else /* not G++ V3 ABI */
++
+ #define STUB_ENTRY(n) \
+ __asm__( \
+- "#### Stub"#n" ####\n" \
+-".text\n\t" \
+- ".align 5\n\t" \
+- ".globl Stub"#n"__14nsXPTCStubBase\n\t" \
+- ".ent Stub"#n"__14nsXPTCStubBase\n" \
+-"Stub"#n"__14nsXPTCStubBase:\n\t" \
+- ".frame $30,0,$26,0\n\t" \
+- "ldgp $29,0($27)\n" \
+-"$Stub"#n"__14nsXPTCStubBase..ng:\n\t" \
+- ".prologue 1\n\t" \
+- "lda $1,"#n"\n\t" \
+- "br $31,$SharedStub..ng\n\t" \
+- ".end Stub"#n"__14nsXPTCStubBase" \
++ STUB_MANGLED_ENTRY(n, "Stub"#n"__14nsXPTCStubBase") \
+ );
+
++#endif /* G++ V3 ABI */
++
+ #define SENTINEL_ENTRY(n) \
+ nsresult nsXPTCStubBase::Sentinel##n() \
+ { \
+@@ -213,4 +234,3 @@
+ }
+
+ #include "xptcstubsdef.inc"
+-
diff --git a/net-libs/gecko-sdk/gecko-sdk-1.7.3.ebuild b/net-libs/gecko-sdk/gecko-sdk-1.7.3.ebuild
new file mode 100644
index 000000000000..f96d854833e9
--- /dev/null
+++ b/net-libs/gecko-sdk/gecko-sdk-1.7.3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/gecko-sdk/gecko-sdk-1.7.3.ebuild,v 1.1 2004/10/23 13:57:10 josejx Exp $
+
+unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179
+inherit flag-o-matic gcc eutils nsplugins mozilla-launcher mozilla makeedit
+
+IUSE="java crypt gtk2 ssl"
+# Internal USE flags that I do not really want to advertise ...
+IUSE="${IUSE} mozcalendar moznoirc moznomail moznocompose moznoxft"
+
+EMVER="0.86.0"
+IPCVER="1.0.8"
+
+# handle _rc versions
+MY_PV=${PV/_alpha/a} # handle alpha
+MY_PV=${MY_PV/_beta/b} # handle beta
+MY_PV=${MY_PV/_rc/rc} # handle rc
+
+DESCRIPTION="Gecko SDK"
+HOMEPAGE="http://www.mozilla.org"
+SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla${MY_PV}/src/mozilla-source-${MY_PV}.tar.bz2"
+KEYWORDS="ppc"
+SLOT="0"
+LICENSE="MPL-1.1 NPL-1.1"
+RDEPEND=""
+DEPEND="java? ( >=dev-java/java-config-0.2.0 )
+ dev-lang/perl"
+
+S="${WORKDIR}/mozilla"
+
+src_unpack() {
+ typeset x
+
+ unpack ${A} || die "unpack failed"
+ cd ${S} || die
+
+ if [[ $(gcc-major-version) -eq 3 ]]; then
+ # ABI Patch for alpha/xpcom for gcc-3.x
+ if [[ ${ARCH} == alpha ]]; then
+ epatch ${FILESDIR}/mozilla-alpha-xpcom-subs-fix.patch
+ fi
+ fi
+
+ # Fix logic error when using RAW target
+ # <azarah@gentoo.org> (23 Feb 2003)
+ epatch ${FILESDIR}/mozilla-1.3-fix-RAW-target.patch
+
+ WANT_AUTOCONF=2.1 autoconf || die
+}
+
+src_compile() {
+ local myconf
+
+ ####################################
+ #
+ # myconf, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ # mozilla_conf comes from mozilla.eclass
+ mozilla_conf
+
+ myconf="${myconf} \
+ --prefix=/usr/lib/mozilla \
+ --with-default-mozilla-five-home=/usr/lib/mozilla"
+
+ ####################################
+ #
+ # Configure and build Mozilla
+ #
+ ####################################
+
+ ./configure ${myconf} || die
+
+ # This removes extraneous CFLAGS from the Makefiles to reduce RAM
+ # requirements while compiling
+ edit_makefiles
+
+ emake || die
+}
+
+src_install(){
+ cd ${S}/dist
+ mkdir -p ${D}/usr/share
+ cp -RL sdk ${D}/usr/share/gecko-sdk
+}
diff --git a/net-libs/gecko-sdk/metadata.xml b/net-libs/gecko-sdk/metadata.xml
new file mode 100644
index 000000000000..d8b6700bc579
--- /dev/null
+++ b/net-libs/gecko-sdk/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mozilla</herd>
+<maintainer>
+ <email>josejx@gentoo.org</email>
+ <name>Joseph Jezak</name>
+</maintainer>
+</pkgmetadata>