summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-04-12 19:13:36 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-04-12 19:13:36 +0000
commit9a73848587dc221a25c3bf963bedd579ff3c421c (patch)
tree5905bf7eda9c81581111fd93c32f2695adb275d1
parentmore DESCRIPTION (bug #129708) (diff)
downloadhistorical-9a73848587dc221a25c3bf963bedd579ff3c421c.tar.gz
historical-9a73848587dc221a25c3bf963bedd579ff3c421c.tar.bz2
historical-9a73848587dc221a25c3bf963bedd579ff3c421c.zip
Update amd64 patch for 1.0.3 and add ~amd64.
Package-Manager: portage-2.1_pre7-r4
-rw-r--r--media-libs/libemf/ChangeLog6
-rw-r--r--media-libs/libemf/Manifest23
-rw-r--r--media-libs/libemf/files/libEMF-1.0.3-amd64.patch87
-rw-r--r--media-libs/libemf/libemf-1.0.3.ebuild9
4 files changed, 120 insertions, 5 deletions
diff --git a/media-libs/libemf/ChangeLog b/media-libs/libemf/ChangeLog
index 015365bd67de..f39f181bbb47 100644
--- a/media-libs/libemf/ChangeLog
+++ b/media-libs/libemf/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/libemf
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.16 2006/03/29 19:00:23 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.17 2006/04/12 19:13:36 chutzpah Exp $
+
+ 12 Apr 2006; Patrick McLean <chutzpah@gentoo.org>
+ +files/libEMF-1.0.3-amd64.patch, libemf-1.0.3.ebuild:
+ Update amd64 patch for 1.0.3 and add ~amd64.
29 Mar 2006; Markus Rothe <corsair@gentoo.org> libemf-1.0.3.ebuild:
Added ~ppc64; bug #127328
diff --git a/media-libs/libemf/Manifest b/media-libs/libemf/Manifest
index 22026ddee474..7260bc74191e 100644
--- a/media-libs/libemf/Manifest
+++ b/media-libs/libemf/Manifest
@@ -1,8 +1,27 @@
-MD5 65373dcc3a6b1a25040f0a88a95a0ba7 ChangeLog 2044
+MD5 a18cefc9133a6663a6b50511fa1c6d9b ChangeLog 2201
+RMD160 31ccd2024076f6a37229b192a89f7f9c6fbde72b ChangeLog 2201
+SHA256 ff27d8fbf83780749849f7eec1ca89a7e0a8da19624660e0cb422ac5031bfbc4 ChangeLog 2201
MD5 5dd26ee62faddde9ae039b314d8e0850 files/digest-libemf-1.0 62
+RMD160 48ef2030a0858b3e0bbfa58dafaf92979b4559cd files/digest-libemf-1.0 62
+SHA256 d4a1dbba571c51e6628547edbecd10a66af0935c999234ba5208c98a4d626016 files/digest-libemf-1.0 62
MD5 28051fcd17d265c7ef469df6e9255cbd files/digest-libemf-1.0.3 64
+RMD160 af2a66a9fb37dcb2e30f46b732447492f3340383 files/digest-libemf-1.0.3 64
+SHA256 c22c2566e77e31b3cbe4813eda72c34d2ce7330fc8ef6fc00ef728fbc8542725 files/digest-libemf-1.0.3 64
MD5 da0b56d85ef634877fc9be4d56503463 files/libEMF-1.0-amd64.patch 2362
+RMD160 b752f19fb7be45ca9cca0f86486e63b601873feb files/libEMF-1.0-amd64.patch 2362
+SHA256 0b505fe1eb50ee134c51078a084dcdf58974752a0aaf9f96cb721a054084a955 files/libEMF-1.0-amd64.patch 2362
MD5 3b1d4fe080501e571622229464654b95 files/libEMF-1.0-gcc3.patch 2429
-MD5 b772c5a185a2fcbe71e7ea967549cb54 libemf-1.0.3.ebuild 726
+RMD160 639d347956ed32ec4d51dfaf03d5977ae667c597 files/libEMF-1.0-gcc3.patch 2429
+SHA256 c0c044dd35ca4462f0f122d6c8b5a34b3fa6fdfa29c7a2c7f7da93e0de4cbc07 files/libEMF-1.0-gcc3.patch 2429
+MD5 3fd0f96616e9674c19d375203ba3f6bc files/libEMF-1.0.3-amd64.patch 3044
+RMD160 beafca26c191a7d7fc7db9a319c972c48f56dcf7 files/libEMF-1.0.3-amd64.patch 3044
+SHA256 175e3ce5a0c47c80c34436031ad030791b700ffd9b1dc900e56f50281dffad17 files/libEMF-1.0.3-amd64.patch 3044
+MD5 2f13e4ca9fa16b2994c95c9996893c67 libemf-1.0.3.ebuild 807
+RMD160 bfc24efaa1a221014e2d6c24bf0c68b95f06ed65 libemf-1.0.3.ebuild 807
+SHA256 84a90fa39fdfd1b7cb715e21aa7234e675544b49d17a3b82cf65a53e7effa542 libemf-1.0.3.ebuild 807
MD5 d80621c5abfdb14176edcab1ad6bc50e libemf-1.0.ebuild 842
+RMD160 4b70e7c48ca060a9c82bf3b0a97748390533bbd9 libemf-1.0.ebuild 842
+SHA256 b3f5a5a1a3289ad08ec78b2aaadf87830aa6568155e479eb951ccd84d8ee9a1a libemf-1.0.ebuild 842
MD5 b742040acaeddc3798a21739bd59e8aa metadata.xml 224
+RMD160 d646bef174a902fd1910871e794292c44f292052 metadata.xml 224
+SHA256 c2d7984543cf5a2770459f930dc78cbe0a220cb3297123dc108b225edc33a822 metadata.xml 224
diff --git a/media-libs/libemf/files/libEMF-1.0.3-amd64.patch b/media-libs/libemf/files/libEMF-1.0.3-amd64.patch
new file mode 100644
index 000000000000..ea7b9657e3b5
--- /dev/null
+++ b/media-libs/libemf/files/libEMF-1.0.3-amd64.patch
@@ -0,0 +1,87 @@
+diff -ur libEMF-1.0.3-orig/include/libEMF/wine/winnt.h libEMF-1.0.3/include/libEMF/wine/winnt.h
+--- libEMF-1.0.3-orig/include/libEMF/wine/winnt.h 2006-04-12 14:49:11.000000000 -0400
++++ libEMF-1.0.3/include/libEMF/wine/winnt.h 2006-04-12 15:07:05.000000000 -0400
+@@ -41,6 +41,10 @@
+ # define WORDS_BIGENDIAN
+ # define BITFIELDS_BIGENDIAN
+ # undef ALLOW_UNALIGNED_ACCESS
++#elif defined(__x86_64__)
++# undef WORDS_BIGENDIAN
++# undef BITFIELDS_BIGENDIAN
++# define ALLOW_UNALIGNED_ACCESS
+ #elif !defined(RC_INVOKED)
+ # error Unknown CPU architecture!
+ #endif
+@@ -222,8 +226,13 @@
+ typedef unsigned short WORD, *PWORD, *LPWORD;
+ typedef int INT, *PINT, *LPINT;
+ typedef unsigned int UINT, *PUINT, *LPUINT;
++#if !defined(__x86_64__)
+ typedef unsigned long DWORD, *PDWORD, *LPDWORD;
+ typedef unsigned long ULONG, *PULONG, *LPULONG;
++#else /* defined(__x86_64__) */
++typedef unsigned int DWORD, *PDWORD, *LPDWORD;
++typedef unsigned int ULONG, *PULONG, *LPULONG;
++#endif /* !defined(__x86_64__) */
+ typedef float FLOAT, *PFLOAT, *LPFLOAT;
+ typedef double DOUBLE, *PDOUBLE, *LPDOUBLE;
+ typedef double DATE;
+@@ -263,7 +272,11 @@
+ typedef BYTE BOOLEAN, *PBOOLEAN;
+ typedef char CHAR, *PCHAR;
+ typedef short SHORT, *PSHORT;
++#if !defined(__x86_64__)
+ typedef long LONG, *PLONG, *LPLONG;
++#else /* defined(__x86_64__) */
++typedef int LONG, *PLONG, *LPLONG;
++#endif /* !defined(__x86_64__) */
+
+ /* Some systems might have wchar_t, but we really need 16 bit characters */
+ #ifndef WINE_WCHAR_DEFINED
+@@ -1047,6 +1060,11 @@
+
+ #endif /* __sparc__ */
+
++#if defined(__x86_64__)
++#define CONTEXT_FULL 1
++typedef struct _CONTEXT CONTEXT;
++#endif
++
+ #if !defined(CONTEXT_FULL) && !defined(RC_INVOKED)
+ #error You need to define a CONTEXT for your CPU
+ #endif
+diff -ur libEMF-1.0.3-orig/libemf/libemf.h libEMF-1.0.3/libemf/libemf.h
+--- libEMF-1.0.3-orig/libemf/libemf.h 2006-04-12 14:49:11.000000000 -0400
++++ libEMF-1.0.3/libemf/libemf.h 2006-04-12 15:03:19.000000000 -0400
+@@ -340,6 +340,7 @@
+ fread( &dword, sizeof(DWORD), 1, fp_ );
+ return *this;
+ }
++#if !defined(__x86_64__)
+ /*!
+ * Output a long int to the stream (swabbed).
+ * \param long long int to output.
+@@ -374,6 +375,7 @@
+ fread( &long_, sizeof(LONG), 1, fp_ );
+ return *this;
+ }
++#endif
+ /*!
+ * Output a (long) int to the stream (swabbed).
+ * \param int_ (long) int to output.
+@@ -408,6 +410,7 @@
+ fread( &int_, sizeof(INT), 1, fp_ );
+ return *this;
+ }
++#if !defined(__x86_64__)
+ /*!
+ * Output a (long) unsigned int to the stream (swabbed).
+ * \param uint (long) unsigned int to output.
+@@ -442,6 +445,7 @@
+ fread( &uint, sizeof(UINT), 1, fp_ );
+ return *this;
+ }
++#endif
+ /*!
+ * Output a single precision float to the stream (swabbed).
+ * \param float_ single precision float to output.
diff --git a/media-libs/libemf/libemf-1.0.3.ebuild b/media-libs/libemf/libemf-1.0.3.ebuild
index 989fb0dfe401..fe47bebf813f 100644
--- a/media-libs/libemf/libemf-1.0.3.ebuild
+++ b/media-libs/libemf/libemf-1.0.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.3.ebuild,v 1.3 2006/03/29 19:00:23 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.3.ebuild,v 1.4 2006/04/12 19:13:36 chutzpah Exp $
inherit eutils
@@ -11,13 +11,18 @@ SRC_URI="mirror://sourceforge/pstoedit/${MY_P}.tar.gz"
LICENSE="LGPL-2.1 GPL-2"
SLOT="0"
-KEYWORDS="~ppc ~ppc64 ~x86"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${MY_P}
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${MY_P}-amd64.patch"
+}
+
src_compile() {
econf --enable-editing || die
emake || die