diff options
author | Ryan Hill <rhill@gentoo.org> | 2009-10-10 06:56:58 +0000 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2009-10-10 06:56:58 +0000 |
commit | 5cbdaa366b77490ffd58864ada1bb13ee88faf65 (patch) | |
tree | 1079be09dbf7338cd1400584da59ab2d9ba5c9c8 /media-libs/libemf | |
parent | mod_fastcgi: New snapshot from upstream. (diff) | |
download | historical-5cbdaa366b77490ffd58864ada1bb13ee88faf65.tar.gz historical-5cbdaa366b77490ffd58864ada1bb13ee88faf65.tar.bz2 historical-5cbdaa366b77490ffd58864ada1bb13ee88faf65.zip |
Version bump. Fix build on amd64 and alpha with Fedora patch and keyword
~amd64.
Package-Manager: portage-2.2_rc44/cvs/Linux x86_64
Diffstat (limited to 'media-libs/libemf')
-rw-r--r-- | media-libs/libemf/ChangeLog | 11 | ||||
-rw-r--r-- | media-libs/libemf/Manifest | 15 | ||||
-rw-r--r-- | media-libs/libemf/files/libemf-1.0.4-amd64-alpha.patch | 95 | ||||
-rw-r--r-- | media-libs/libemf/libemf-1.0.4.ebuild | 35 |
4 files changed, 153 insertions, 3 deletions
diff --git a/media-libs/libemf/ChangeLog b/media-libs/libemf/ChangeLog index 57d3c48382da..cf5c0edc236a 100644 --- a/media-libs/libemf/ChangeLog +++ b/media-libs/libemf/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/libemf -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.24 2008/04/23 10:54:10 phosphan Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.25 2009/10/10 06:56:58 dirtyepic Exp $ + +*libemf-1.0.4 (10 Oct 2009) + + 10 Oct 2009; Ryan Hill <dirtyepic@gentoo.org> +libemf-1.0.4.ebuild, + +files/libemf-1.0.4-amd64-alpha.patch: + Version bump. Fix build on amd64 and alpha with Fedora patch and keyword + ~amd64. 23 Apr 2008; Patrick Kursawe <phosphan@gentoo.org> +files/libemf-1.0.3-gcc4.3.patch, -files/libEMF-1.0-amd64.patch, diff --git a/media-libs/libemf/Manifest b/media-libs/libemf/Manifest index 6c15235c5768..a7b3961df0ef 100644 --- a/media-libs/libemf/Manifest +++ b/media-libs/libemf/Manifest @@ -1,5 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX libemf-1.0.3-gcc4.3.patch 137 RMD160 44c5bcf680a8775edfde53118e0504cbd6633142 SHA1 2bf653acd701c6a9c1a8ffc5e5a43c63bfb96e11 SHA256 d8db91aab5300b9db67284a875b4def0b2802a7561654df5b9d4b31cc24727a2 +AUX libemf-1.0.4-amd64-alpha.patch 3194 RMD160 6fde096e5d9d210c984ad756b148eb8387bde502 SHA1 f04bcd6aa74631c605ab2900adc6af5de6c0944e SHA256 c3a2d16f7861801082a2ef6fab1e6d449ab07752a9dacd66d9dc1df893a1b220 DIST libEMF-1.0.3.tar.gz 763070 RMD160 11a0d3348795a6ec2992466588f73b8c80ae3abf SHA1 0f01f1af2a49b6f68549b1e78fe315e1a96bcc5b SHA256 cc42093624a108c7720346a628e2af16990bcc6b96217a219bb0406a2b2317f2 +DIST libEMF-1.0.4.tar.gz 818060 RMD160 a93842ac19797af58ae451d9629fd5bd359bc141 SHA1 e73f0725f10455ed00026df04bf4798137bf6a1f SHA256 71f6a72ec7b9693217da2b366ac39655803b5f07d4600d7636e827f3b16c66ff EBUILD libemf-1.0.3.ebuild 821 RMD160 01b379efb02953d04259a9b92c3fa1378f0a423c SHA1 3b3838d8ca74c1b979dcaf3f2ef8bf21e77cb9de SHA256 cec731e12f3958ddbce3b7a24e4a09d42bda39699b93fdbdfe108e84a7b20f57 -MISC ChangeLog 3239 RMD160 06d4b090ef314d2cf41f9a82fc4447d958234d32 SHA1 abc32831ce13e61caef9b122e92da4c44766984a SHA256 fa07946201bb27f409cffc26356da41dd7b5b2a1e33e04fceca936ccd864584a +EBUILD libemf-1.0.4.ebuild 810 RMD160 3ae0e1c8a6fa94b6f53d85ce718e3911542e6635 SHA1 db21fa75a3b59514bd05c8abed938512a3ceb32d SHA256 d03b29964a434b07adf965a9e27fddac0f77618c7d50001aec9fca2c0863453b +MISC ChangeLog 3466 RMD160 e88b8c333121dcd3f72f1226ea370e76ae9fa3fd SHA1 ed0a1dadf24497d964bcc1793b9fcabeca9170bb SHA256 f948b1f93d889f9dcbdb9a94864021056374fbe49d663bcff7216f5cb9031c5e MISC metadata.xml 224 RMD160 d646bef174a902fd1910871e794292c44f292052 SHA1 411f9bc454756fe51f5ff5033b73f91b0b07a204 SHA256 c2d7984543cf5a2770459f930dc78cbe0a220cb3297123dc108b225edc33a822 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkrQMH8ACgkQiqiDRvmkBmJJqwCfdhJxanPhYcv/2SJvw+MnU095 +EUQAn1hfNnr9TII7dWQYKgQRnbOUQELJ +=JkXY +-----END PGP SIGNATURE----- diff --git a/media-libs/libemf/files/libemf-1.0.4-amd64-alpha.patch b/media-libs/libemf/files/libemf-1.0.4-amd64-alpha.patch new file mode 100644 index 000000000000..6f809a957e76 --- /dev/null +++ b/media-libs/libemf/files/libemf-1.0.4-amd64-alpha.patch @@ -0,0 +1,95 @@ +--- a/include/libEMF/wine/winbase.h ++++ b/include/libEMF/wine/winbase.h +@@ -1802,6 +1802,7 @@ LONG WINAPI InterlockedIncrement(PLONG); + VOID WINAPI SetLastError(DWORD); + #endif /* __i386__ && __GNUC__ */ + ++#if 0 + /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */ + static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID *dest, PVOID xchg, PVOID compare ) + { +@@ -1812,6 +1813,7 @@ static inline PVOID WINAPI InterlockedExchangePointer( PVOID *dest, PVOID val ) + { + return (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val ); + } ++#endif + + #ifdef __WINE__ + #define GetCurrentProcess() ((HANDLE)0xffffffff) +--- a/include/libEMF/wine/winnt.h ++++ b/include/libEMF/wine/winnt.h +@@ -29,10 +29,14 @@ + + /* Architecture dependent settings. */ + /* These are hardcoded to avoid dependencies on config.h in Winelib apps. */ +-#if defined(__i386__) ++#if defined(__i386__) || defined(__x86_64__) + # undef WORDS_BIGENDIAN + # undef BITFIELDS_BIGENDIAN + # define ALLOW_UNALIGNED_ACCESS ++#elif defined(__alpha__) ++# undef WORDS_BIGENDIAN ++# undef BITFIELDS_BIGENDIAN ++# undef ALLOW_UNALIGNED_ACCESS + #elif defined(__sparc__) + # define WORDS_BIGENDIAN + # define BITFIELDS_BIGENDIAN +@@ -222,8 +226,13 @@ typedef unsigned short USHORT, *PUSHORT, *LPUSHORT; + typedef unsigned short WORD, *PWORD, *LPWORD; + typedef int INT, *PINT, *LPINT; + typedef unsigned int UINT, *PUINT, *LPUINT; ++#if defined(_LP64) || defined(__alpha__) ++typedef unsigned int DWORD, *PDWORD, *LPDWORD; ++typedef unsigned int ULONG, *PULONG, *LPULONG; ++#else + typedef unsigned long DWORD, *PDWORD, *LPDWORD; + typedef unsigned long ULONG, *PULONG, *LPULONG; ++#endif + typedef float FLOAT, *PFLOAT, *LPFLOAT; + typedef double DOUBLE, *PDOUBLE, *LPDOUBLE; + typedef double DATE; +@@ -263,7 +272,11 @@ typedef VOID *PVOID, *LPVOID; + typedef BYTE BOOLEAN, *PBOOLEAN; + typedef char CHAR, *PCHAR; + typedef short SHORT, *PSHORT; ++#if defined(_LP64) || defined(__alpha__) ++typedef int LONG, *PLONG, *LPLONG; ++#else + typedef long LONG, *PLONG, *LPLONG; ++#endif + + /* Some systems might have wchar_t, but we really need 16 bit characters */ + #ifndef WINE_WCHAR_DEFINED +@@ -652,8 +665,13 @@ typedef CONTEXT86 CONTEXT; + + #endif /* __i386__ */ + ++#ifdef __x86_64__ ++#define CONTEXT_FULL 1 ++typedef struct _CONTEXT CONTEXT; ++#endif ++ + /* Alpha context definitions */ +-#ifdef _ALPHA_ ++#if defined(__alpha__) + + #define CONTEXT_ALPHA 0x00020000 + +--- a/libemf/libemf.h ++++ b/libemf/libemf.h +@@ -306,6 +306,7 @@ namespace EMF { + fread( &word, sizeof(INT16), 1, fp_ ); + return *this; + } ++#if !(defined(_LP64) || defined(__alpha__)) + /*! + * Output a double word (long) to the stream (swabbed). + * \param word word (long) to output. +@@ -374,6 +375,7 @@ namespace EMF { + fread( &long_, sizeof(LONG), 1, fp_ ); + return *this; + } ++#endif + /*! + * Output a (long) int to the stream (swabbed). + * \param int_ (long) int to output. diff --git a/media-libs/libemf/libemf-1.0.4.ebuild b/media-libs/libemf/libemf-1.0.4.ebuild new file mode 100644 index 000000000000..6b734e9c5b71 --- /dev/null +++ b/media-libs/libemf/libemf-1.0.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.4.ebuild,v 1.1 2009/10/10 06:56:58 dirtyepic Exp $ + +EAPI=2 + +inherit eutils + +MY_P="${P/emf/EMF}" +DESCRIPTION="Library implementation of ECMA-234 API for the generation of enhanced metafiles." +HOMEPAGE="http://libemf.sourceforge.net/" +SRC_URI="mirror://sourceforge/libemf/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-amd64-alpha.patch +} + +src_configure() { + econf --enable-editing +} + +src_install() { + emake DESTDIR="${D}" install || die + use doc && dohtml doc/html/* + dodoc README NEWS AUTHORS ChangeLog +} |