summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/gmp/ChangeLog8
-rw-r--r--dev-libs/gmp/Manifest27
-rw-r--r--dev-libs/gmp/files/digest-gmp-4.2.26
-rw-r--r--dev-libs/gmp/files/gmp-4.2.2-ABI-multilib.patch262
-rw-r--r--dev-libs/gmp/gmp-4.2.2.ebuild76
5 files changed, 371 insertions, 8 deletions
diff --git a/dev-libs/gmp/ChangeLog b/dev-libs/gmp/ChangeLog
index 0eb40772e375..cad00df724c7 100644
--- a/dev-libs/gmp/ChangeLog
+++ b/dev-libs/gmp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/gmp
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.86 2007/04/04 21:58:11 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.87 2007/11/12 06:20:33 vapier Exp $
+
+*gmp-4.2.2 (12 Nov 2007)
+
+ 12 Nov 2007; Mike Frysinger <vapier@gentoo.org>
+ +files/gmp-4.2.2-ABI-multilib.patch, +gmp-4.2.2.ebuild:
+ Version bump #198851.
*gmp-4.2.1-r1 (04 Apr 2007)
diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index cb3d95eb39a4..bd5deb81f4bc 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -37,16 +37,26 @@ AUX gmp-4.2.1-s390.diff 1848 RMD160 04eecb2aaae4c444841e40b33abd38a662254632 SHA
MD5 ddce691e68e722e03ea65d228ac650ea files/gmp-4.2.1-s390.diff 1848
RMD160 04eecb2aaae4c444841e40b33abd38a662254632 files/gmp-4.2.1-s390.diff 1848
SHA256 13c6b01e71534af2c353d79b7afd171f158b8fa6e3299e0f7c0335e516ce67ec files/gmp-4.2.1-s390.diff 1848
+AUX gmp-4.2.2-ABI-multilib.patch 12425 RMD160 b30e1a237252663199457f5f020de7fb81118e2a SHA1 d716749bad6f7996f6862bc8468eb2c7b6c89c42 SHA256 deac10a8fd120e3b8d2a566c5babfea3cf7e6ecf6cc234fe7787b4ffecacb521
+MD5 2260f164acfa1f44f58418ef491b02a7 files/gmp-4.2.2-ABI-multilib.patch 12425
+RMD160 b30e1a237252663199457f5f020de7fb81118e2a files/gmp-4.2.2-ABI-multilib.patch 12425
+SHA256 deac10a8fd120e3b8d2a566c5babfea3cf7e6ecf6cc234fe7787b4ffecacb521 files/gmp-4.2.2-ABI-multilib.patch 12425
DIST gmp-4.2.1.tar.bz2 1726453 RMD160 831e02a36ac7b466857f8fafeffad7d51f7656e7 SHA1 00a97f0ec1eb1d9429ab5c64be6889e8a497425e SHA256 d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941
+DIST gmp-4.2.2.tar.bz2 1747068 RMD160 4021720f78b02244197c0c49522289e7fe81aad9 SHA1 8c5f9798956f9b0162a25a56477a3566a92abc72 SHA256 2b2c0aacafa2dc41f4604b381349d49596921e38a58bf782b0d70b33f548657b
DIST gmp-man-4.2.1.pdf 996792 RMD160 3f8ea92b95e985d09ed8d5b45952ccf98fbd9dac SHA1 e1f3f84b38d6c459220dbd14015d440cd59195d1 SHA256 3bee6b5285eea339a5ea949cd9db12fe5f676f15beff8ae9cbee0011be24beef
+DIST gmp-man-4.2.2.pdf 1002466 RMD160 20b37f581d5c993fcc3e092123d5554efc8b2a81 SHA1 706dfd027e208b089f95bf9ff494d298dfa5b4b7 SHA256 44a5dcfbf1bef54c5244e2a1960c479e18b9740849daffb844472c60bc8e962c
EBUILD gmp-4.2.1-r1.ebuild 2016 RMD160 d865c70c7f17e486b1b048c623106437196cb4a5 SHA1 e575a9f57294a2522f0321420f21648516bb20e4 SHA256 01df134f9dddec7bb49a81f5768732d58a0441161e723ebf9a00f0126f354fd6
MD5 37babbcd3ba2ce7540674e4eff2da6fa gmp-4.2.1-r1.ebuild 2016
RMD160 d865c70c7f17e486b1b048c623106437196cb4a5 gmp-4.2.1-r1.ebuild 2016
SHA256 01df134f9dddec7bb49a81f5768732d58a0441161e723ebf9a00f0126f354fd6 gmp-4.2.1-r1.ebuild 2016
-MISC ChangeLog 11939 RMD160 c43568508faa5d21ae570b56ac1310aa1decc240 SHA1 86678d07cccd15d0daa5c0592ddeed9192347680 SHA256 579df7a45b5ed4e867e00063690467fd1966ae67558fc9e4285a860715f9b7b4
-MD5 561437387f651ac10a63e0b24f94e5e2 ChangeLog 11939
-RMD160 c43568508faa5d21ae570b56ac1310aa1decc240 ChangeLog 11939
-SHA256 579df7a45b5ed4e867e00063690467fd1966ae67558fc9e4285a860715f9b7b4 ChangeLog 11939
+EBUILD gmp-4.2.2.ebuild 2071 RMD160 c78ffc056ad9061405b6199dde4f996e1b71000b SHA1 03a547a351699f2139c7dc64c34e18b9c8cf1c70 SHA256 f3f2b58f5cebec0839465fc6719b9d3ca1c858e3793d5a03729cc4b33e0f1ac9
+MD5 07b200082df2f716dbef2658620a20b9 gmp-4.2.2.ebuild 2071
+RMD160 c78ffc056ad9061405b6199dde4f996e1b71000b gmp-4.2.2.ebuild 2071
+SHA256 f3f2b58f5cebec0839465fc6719b9d3ca1c858e3793d5a03729cc4b33e0f1ac9 gmp-4.2.2.ebuild 2071
+MISC ChangeLog 12098 RMD160 294e9895e0034ae74d2d591e87496e26b88fc174 SHA1 daea7611bcff0dd748cdf3d43a6d346d8bc8c625 SHA256 faf7a0f37b6b0e752cf57a76022e0e43c5b71893b7ae1f9528293a507c21be75
+MD5 8b0f03891087555873cfd2a4f58b5395 ChangeLog 12098
+RMD160 294e9895e0034ae74d2d591e87496e26b88fc174 ChangeLog 12098
+SHA256 faf7a0f37b6b0e752cf57a76022e0e43c5b71893b7ae1f9528293a507c21be75 ChangeLog 12098
MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a
MD5 567094e03359ffc1c95af7356395228d metadata.xml 162
RMD160 d002486a43522f2116b1d9d59828c484956d66e2 metadata.xml 162
@@ -54,10 +64,13 @@ SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a metadata
MD5 d87bd044c3923c0796531c3bf8576c9f files/digest-gmp-4.2.1-r1 467
RMD160 98ab335c8f75e99dfd7ddc3d8997efb97f8ef99e files/digest-gmp-4.2.1-r1 467
SHA256 72f6e7bb87de1a79792e7c22a78d0e16956ec7e0b80a13c7de181b691a627db9 files/digest-gmp-4.2.1-r1 467
+MD5 203df286877232dda96666c1abbe91b2 files/digest-gmp-4.2.2 470
+RMD160 890354997798a8be41dc740edc71d36daf1d7e8c files/digest-gmp-4.2.2 470
+SHA256 27bde6c49ed102d25de9c703a01b3c7af726a6568578274df649fe485c8998fe files/digest-gmp-4.2.2 470
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHCQxRp/wUKkr7RBoRAqwQAJ9FixesRCtrvf/PYzbgCglHfgE3PwCeNNiQ
-gDKeXAD2UWqUK4v2Z5jpqDQ=
-=4rt3
+iD8DBQFHN/C5p/wUKkr7RBoRAjU4AJ99fEfmleoNXcH1KFolorqqr/WkqgCfeQ08
+PS4RUaYpY7js0914JnUF1Iw=
+=ackM
-----END PGP SIGNATURE-----
diff --git a/dev-libs/gmp/files/digest-gmp-4.2.2 b/dev-libs/gmp/files/digest-gmp-4.2.2
new file mode 100644
index 000000000000..ef5b8da4f0cf
--- /dev/null
+++ b/dev-libs/gmp/files/digest-gmp-4.2.2
@@ -0,0 +1,6 @@
+MD5 7ce52531644e6d12f16911b7e3151f3f gmp-4.2.2.tar.bz2 1747068
+RMD160 4021720f78b02244197c0c49522289e7fe81aad9 gmp-4.2.2.tar.bz2 1747068
+SHA256 2b2c0aacafa2dc41f4604b381349d49596921e38a58bf782b0d70b33f548657b gmp-4.2.2.tar.bz2 1747068
+MD5 7f2b56c5146ba97f939a6a70fde86b77 gmp-man-4.2.2.pdf 1002466
+RMD160 20b37f581d5c993fcc3e092123d5554efc8b2a81 gmp-man-4.2.2.pdf 1002466
+SHA256 44a5dcfbf1bef54c5244e2a1960c479e18b9740849daffb844472c60bc8e962c gmp-man-4.2.2.pdf 1002466
diff --git a/dev-libs/gmp/files/gmp-4.2.2-ABI-multilib.patch b/dev-libs/gmp/files/gmp-4.2.2-ABI-multilib.patch
new file mode 100644
index 000000000000..efded7bcfdc6
--- /dev/null
+++ b/dev-libs/gmp/files/gmp-4.2.2-ABI-multilib.patch
@@ -0,0 +1,262 @@
+Gentoo uses ABI env var already
+
+--- gmp-4.2.1/configure
++++ gmp-4.2.1/configure
+@@ -489,7 +489,7 @@
+ # include <unistd.h>
+ #endif"
+
+-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WANT_MPBSD_TRUE WANT_MPBSD_FALSE GMP_NAIL_BITS ABI HAVE_HOST_CPU_FAMILY_power HAVE_HOST_CPU_FAMILY_powerpc GMP_LDFLAGS LIBGMP_LDFLAGS LIBGMPXX_LDFLAGS SPEED_CYCLECOUNTER_OBJ CALLING_CONVENTIONS_OBJS DEFN_LONG_LONG_LIMB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CC_FOR_BUILD CPP_FOR_BUILD EXEEXT_FOR_BUILD U_FOR_BUILD LIBM_FOR_BUILD CCAS CXX CXXFLAGS ac_ct_CXX WANT_CXX_TRUE WANT_CXX_FALSE CXXCPP EGREP U ANSI2KNR AR ac_ct_AR LIBGMP_DLL SED LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP LIBTOOL ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE LIBM TAL_OBJECT M4 BITS_PER_MP_LIMB mpn_objs_in_libmp mpn_objects mpn_objs_in_libgmp gmp_srclinks TUNE_SQR_OBJ HAVE_CLOCK_01 HAVE_CPUTIME_01 HAVE_GETRUSAGE_01 HAVE_GETTIMEOFDAY_01 HAVE_SIGACTION_01 HAVE_SIGALTSTACK_01 HAVE_SIGSTACK_01 HAVE_SYS_RESOURCE_H_01 HAVE_STACK_T_01 LIBCURSES WITH_READLINE_01 LIBREADLINE YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WANT_MPBSD_TRUE WANT_MPBSD_FALSE GMP_NAIL_BITS GMPABI HAVE_HOST_CPU_FAMILY_power HAVE_HOST_CPU_FAMILY_powerpc GMP_LDFLAGS LIBGMP_LDFLAGS LIBGMPXX_LDFLAGS SPEED_CYCLECOUNTER_OBJ CALLING_CONVENTIONS_OBJS DEFN_LONG_LONG_LIMB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CC_FOR_BUILD CPP_FOR_BUILD EXEEXT_FOR_BUILD U_FOR_BUILD LIBM_FOR_BUILD CCAS CXX CXXFLAGS ac_ct_CXX WANT_CXX_TRUE WANT_CXX_FALSE CXXCPP EGREP U ANSI2KNR AR ac_ct_AR LIBGMP_DLL SED LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP LIBTOOL ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE LIBM TAL_OBJECT M4 BITS_PER_MP_LIMB mpn_objs_in_libmp mpn_objects mpn_objs_in_libgmp gmp_srclinks TUNE_SQR_OBJ HAVE_CLOCK_01 HAVE_CPUTIME_01 HAVE_GETRUSAGE_01 HAVE_GETTIMEOFDAY_01 HAVE_SIGACTION_01 HAVE_SIGALTSTACK_01 HAVE_SIGSTACK_01 HAVE_SYS_RESOURCE_H_01 HAVE_STACK_T_01 LIBCURSES WITH_READLINE_01 LIBREADLINE YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
+ ac_subst_files=''
+
+ # Initialize some variables set by options.
+@@ -930,10 +930,10 @@
+ ac_env_target_alias_value=$target_alias
+ ac_cv_env_target_alias_set=${target_alias+set}
+ ac_cv_env_target_alias_value=$target_alias
+-ac_env_ABI_set=${ABI+set}
+-ac_env_ABI_value=$ABI
+-ac_cv_env_ABI_set=${ABI+set}
+-ac_cv_env_ABI_value=$ABI
++ac_env_GMPABI_set=${GMPABI+set}
++ac_env_GMPABI_value=$GMPABI
++ac_cv_env_GMPABI_set=${GMPABI+set}
++ac_cv_env_GMPABI_value=$GMPABI
+ ac_env_CC_set=${CC+set}
+ ac_env_CC_value=$CC
+ ac_cv_env_CC_set=${CC+set}
+@@ -1091,7 +1091,7 @@
+ include additional configurations [automatic]
+
+ Some influential environment variables:
+- ABI desired ABI (for processors supporting more than one ABI)
++ GMPABI desired ABI (for processors supporting more than one ABI)
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+@@ -2670,7 +2670,7 @@
+ # (64-bit), but not both, so there's no option to choose the desired
+ # mode, we must instead detect which of the two it is. This is done by
+ # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
+- # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
++ # GMPABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
+ #
+ gcc_cflags="-O2"
+ gcc_cflags_optlist="arch"
+@@ -2694,11 +2694,11 @@
+ # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
+ # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
+ #
+- # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
++ # We don't use -mpa-risc-2-0 in GMPABI=1.0 because 64-bit registers may not
+ # be saved by the kernel on an old system. Actually gcc (as of 3.2)
+ # only adds a few float instructions with -mpa-risc-2-0, so it would
+ # probably be safe, but let's not take the chance. In any case, a
+- # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
++ # configuration like --host=hppa2.0 GMPABI=1.0 is far from optimal.
+ #
+ case $host_cpu in
+ hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
+@@ -2733,9 +2733,9 @@
+ cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
+ cc_20n_testlist="hpc-hppa-2-0"
+
+- # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
++ # GMPABI=2.0w is available for hppa2.0w and hppa2.0, but not for
+ # hppa2.0n, on the assumption that that the latter indicates a
+- # desire for ABI=2.0n.
++ # desire for GMPABI=2.0n.
+ case $host in
+ hppa2.0n-*-*) ;;
+ *)
+@@ -3203,7 +3203,7 @@
+ # mode, but not set our ABI. For some reason it's sparc where this
+ # keeps coming up, presumably users there are accustomed to driving the
+ # compiler mode that way. The effect of our testlist setting is to
+- # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
++ # reject GMPABI=64 in favour of GMPABI=32 if the user has forced the flags to
+ # 32-bit mode.
+ #
+ abilist="32"
+@@ -3308,12 +3308,12 @@
+ case $host_cpu in
+ sparc64 | sparcv9* | ultrasparc*)
+ case $host in
+- # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
+- # registers properly, so ABI=32 is left as the only choice.
++ # Solaris 6 and earlier cannot run GMPABI=64 since it doesn't save
++ # registers properly, so GMPABI=32 is left as the only choice.
+ #
+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
+
+- # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
++ # BSD sparc64 ports are 64-bit-only systems, so GMPABI=64 is the only
+ # choice. In fact they need no special compiler flags, gcc -m64
+ # is the default, but it doesn't hurt to add it. v9 CPUs always
+ # use the sparc64 port, since the plain 32-bit sparc ports don't
+@@ -3399,7 +3399,7 @@
+ # -O, but lets assume that's no longer true.
+ #
+ # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
+- # the default in such a build (we think), so -m32 is essential for ABI=32.
++ # the default in such a build (we think), so -m32 is essential for GMPABI=32.
+ # This is, of course, done for any $host_cpu, not just x86_64, so we can
+ # get such a gcc into the right mode to cross-compile to say i486-*-*.
+ #
+@@ -3639,7 +3639,7 @@
+
+ cat >&5 <<EOF
+ User:
+-ABI=$ABI
++GMPABI=$GMPABI
+ CC=$CC
+ CFLAGS=$CFLAGS_or_unset
+ CPPFLAGS=$CPPFLAGS_or_unset
+@@ -3660,24 +3660,24 @@
+ # If the user specifies an ABI then it must be in $abilist, after that
+ # $abilist is restricted to just that choice.
+ #
+-if test -n "$ABI"; then
++if test -n "$GMPABI"; then
+ found=no
+ for abi in $abilist; do
+- if test $abi = "$ABI"; then found=yes; break; fi
++ if test $abi = "$GMPABI"; then found=yes; break; fi
+ done
+ if test $found = no; then
+- { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
+-echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
++ { { echo "$as_me:$LINENO: error: GMPABI=$GMPABI is not among the following valid choices: $abilist" >&5
++echo "$as_me: error: GMPABI=$GMPABI is not among the following valid choices: $abilist" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+- abilist="$ABI"
++ abilist="$GMPABI"
+ fi
+
+ found_compiler=no
+
+ for abi in $abilist; do
+
+- echo "checking ABI=$abi"
++ echo "checking GMPABI=$abi"
+
+ # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
+ # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
+@@ -5128,7 +5128,7 @@
+ # For -march settings which enable SSE2 we exclude certain bad
+ # gcc versions and we need an OS knowing how to save xmm regs.
+ #
+- # This is only for ABI=32, any 64-bit gcc is good and any OS
++ # This is only for GMPABI=32, any 64-bit gcc is good and any OS
+ # knowing x86_64 will know xmm.
+ #
+ # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
+@@ -6368,16 +6368,16 @@
+ done
+ fi
+
+- ABI="$abi"
++ GMPABI="$abi"
+ CC="$cc"
+ CFLAGS="$cflags"
+ CPPFLAGS="$cppflags"
+
+
+ # Could easily have this in config.h too, if desired.
+- ABI_nodots=`echo $ABI | sed 's/\./_/'`
++ GMPABI_nodots=`echo $GMPABI | sed 's/\./_/'`
+
+-echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
++echo "define_not_for_expansion(\`HAVE_ABI_$GMPABI_nodots')" >> $gmp_tmpconfigm4p
+
+
+
+@@ -8830,12 +8830,12 @@
+ # If there's any sse2 or mmx in the path, check whether the assembler
+ # supports it, and remove if not.
+ #
+-# We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
++# We only need this in GMPABI=32, for GMPABI=64 on x86_64 we can assume a new
+ # enough assembler.
+ #
+ case $host in
+ i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | athlon64-*-* | core2-*-* | x86_64-*-*)
+- if test "$ABI" = 32; then
++ if test "$GMPABI" = 32; then
+ case "$path $fat_path" in
+ *mmx*) echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
+ echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
+@@ -9019,7 +9019,7 @@
+
+ cat >&5 <<EOF
+ Decided:
+-ABI=$ABI
++GMPABI=$GMPABI
+ CC=$CC
+ CFLAGS=$CFLAGS
+ CPPFLAGS=$CPPFLAGS
+@@ -9028,7 +9028,7 @@
+ CXXFLAGS=$CXXFLAGS
+ path=$path
+ EOF
+-echo "using ABI=\"$ABI\""
++echo "using GMPABI=\"$GMPABI\""
+ echo " CC=\"$CC\""
+ echo " CFLAGS=\"$CFLAGS\""
+ echo " CPPFLAGS=\"$CPPFLAGS\""
+@@ -30005,7 +30005,7 @@
+
+ case $host in
+ *-*-aix*)
+- case $ABI in
++ case $GMPABI in
+ 64 | aix64)
+ echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
+ ;;
+@@ -30015,7 +30015,7 @@
+ esac
+ ;;
+ *-*-linux* | *-*-*bsd*)
+- case $ABI in
++ case $GMPABI in
+ mode64)
+ echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
+ ;;
+@@ -30025,7 +30025,7 @@
+ esac
+ ;;
+ *-*-darwin*)
+- case $ABI in
++ case $GMPABI in
+ mode64)
+ echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
+ ;;
+@@ -30048,7 +30048,7 @@
+
+ ;;
+ sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
+- case $ABI in
++ case $GMPABI in
+ 64)
+
+ echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
+@@ -30130,7 +30130,7 @@
+ echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
+
+
+- case $ABI in
++ case $GMPABI in
+ 32)
+
+ echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
+@@ -34032,7 +34032,7 @@
+ s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t
+ s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t
+ s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t
+-s,@ABI@,$ABI,;t t
++s,@GMPABI@,$GMPABI,;t t
+ s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t
+ s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t
+ s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t
diff --git a/dev-libs/gmp/gmp-4.2.2.ebuild b/dev-libs/gmp/gmp-4.2.2.ebuild
new file mode 100644
index 000000000000..17a273aa9546
--- /dev/null
+++ b/dev-libs/gmp/gmp-4.2.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-4.2.2.ebuild,v 1.1 2007/11/12 06:20:33 vapier Exp $
+
+inherit flag-o-matic eutils libtool
+
+DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers"
+HOMEPAGE="http://gmplib.org/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2
+ doc? ( http://gmplib.org/${PN}-man-${PV}.pdf )"
+
+LICENSE="LGPL-3"
+SLOT="0"
+#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="doc nocxx"
+
+RDEPEND=""
+DEPEND=""
+
+src_unpack () {
+ unpack ${A}
+ cd "${S}"
+ [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV}
+ epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch
+ epatch "${FILESDIR}"/${PN}-4.2.2-ABI-multilib.patch
+ epatch "${FILESDIR}"/${PN}-4.2.1-s390.diff
+
+ sed -i -e 's:ABI = @ABI@:GMPABI = @GMPABI@:' \
+ Makefile.in */Makefile.in */*/Makefile.in
+
+ # note: we cannot run autotools here as gcc depends on this package
+ elibtoolize
+}
+
+src_compile() {
+ # GMP believes hppa2.0 is 64bit
+ local is_hppa_2_0
+ if [[ ${CHOST} == hppa2.0-* ]] ; then
+ is_hppa_2_0=1
+ export CHOST=${CHOST/2.0/1.1}
+ fi
+
+ # ABI mappings (needs all architectures supported)
+ case ${ABI} in
+ 32|x86) export GMPABI=32;;
+ 64|amd64|n64) export GMPABI=64;;
+ o32|n32) export GMPABI=${ABI};;
+ esac
+
+ econf \
+ --localstatedir=/var/state/gmp \
+ --disable-mpfr \
+ --disable-mpbsd \
+ $(use_enable !nocxx cxx) \
+ || die "configure failed"
+
+ # Fix the ABI for hppa2.0
+ if [[ -n ${is_hppa_2_0} ]] ; then
+ sed -i \
+ -e 's:pa32/hppa1_1:pa32/hppa2_0:' \
+ "${S}"/config.h || die
+ export CHOST=${CHOST/1.1/2.0}
+ fi
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README
+ dodoc doc/configuration doc/isa_abi_headache
+ dohtml -r doc
+
+ use doc && cp "${DISTDIR}"/gmp-man-${PV}.pdf "${D}"/usr/share/doc/${PF}/
+}