diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-07-17 10:33:57 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-07-17 10:33:57 +0000 |
commit | 1470b343cb862c7d06cef2874288d53de313ad3a (patch) | |
tree | 0bf6e55a29a966eb32bbc9506e99d8fc1f4a0f6d /media-libs/libemf | |
parent | Initial import (diff) | |
download | gentoo-2-1470b343cb862c7d06cef2874288d53de313ad3a.tar.gz gentoo-2-1470b343cb862c7d06cef2874288d53de313ad3a.tar.bz2 gentoo-2-1470b343cb862c7d06cef2874288d53de313ad3a.zip |
Initial import
Diffstat (limited to 'media-libs/libemf')
-rw-r--r-- | media-libs/libemf/ChangeLog | 11 | ||||
-rw-r--r-- | media-libs/libemf/Manifest | 5 | ||||
-rw-r--r-- | media-libs/libemf/files/digest-libemf-1.0 | 1 | ||||
-rw-r--r-- | media-libs/libemf/files/libEMF-1.0-gcc3.patch | 75 | ||||
-rw-r--r-- | media-libs/libemf/libemf-1.0.ebuild | 32 | ||||
-rw-r--r-- | media-libs/libemf/metadata.xml | 8 |
6 files changed, 131 insertions, 1 deletions
diff --git a/media-libs/libemf/ChangeLog b/media-libs/libemf/ChangeLog new file mode 100644 index 000000000000..50e1aaeca75a --- /dev/null +++ b/media-libs/libemf/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-libs/libemf +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.1 2003/07/17 10:33:47 phosphan Exp $ + +*libemf-1.0 (17 Jul 2003) + + 17 Jul 2003; Patrick Kursawe <phosphan@gentoo.org> libemf-1.0.ebuild, + metadata.xml, files/libEMF-1.0-gcc3.patch: + Initial import, used by chemtool-1.6 - patch for gcc3 by Stanislav Brabec + <sbrabec@users.sourceforge.net> + diff --git a/media-libs/libemf/Manifest b/media-libs/libemf/Manifest index e5539b5c9224..832a3a207ed4 100644 --- a/media-libs/libemf/Manifest +++ b/media-libs/libemf/Manifest @@ -1,2 +1,5 @@ -MD5 3958278a6ecf309688fb16216e6179ec libemf-1.0.ebuild 595 +MD5 57317ea9d7b5e318b7220b4e16a459b5 libemf-1.0.ebuild 792 +MD5 8dbedbbac544b57f0b644399afeb1c68 ChangeLog 473 +MD5 b742040acaeddc3798a21739bd59e8aa metadata.xml 224 +MD5 3b1d4fe080501e571622229464654b95 files/libEMF-1.0-gcc3.patch 2429 MD5 5dd26ee62faddde9ae039b314d8e0850 files/digest-libemf-1.0 62 diff --git a/media-libs/libemf/files/digest-libemf-1.0 b/media-libs/libemf/files/digest-libemf-1.0 new file mode 100644 index 000000000000..b2731db8811f --- /dev/null +++ b/media-libs/libemf/files/digest-libemf-1.0 @@ -0,0 +1 @@ +MD5 5424c4ffb93cea58cd4d54d308b42fed libEMF-1.0.tar.gz 641815 diff --git a/media-libs/libemf/files/libEMF-1.0-gcc3.patch b/media-libs/libemf/files/libEMF-1.0-gcc3.patch new file mode 100644 index 000000000000..05def36322c0 --- /dev/null +++ b/media-libs/libemf/files/libEMF-1.0-gcc3.patch @@ -0,0 +1,75 @@ +diff -ru libEMF-1.0/libemf/libemf.cpp libEMF-1.0-new/libemf/libemf.cpp +--- libEMF-1.0/libemf/libemf.cpp 2002-01-29 04:37:54.000000000 +0100 ++++ libEMF-1.0-new/libemf/libemf.cpp 2002-11-20 19:03:37.000000000 +0100 +@@ -48,7 +48,7 @@ + be32 = !be16; + + if ( be32 != be16 ) { +- cerr << "endian-ness not consistent between short's and int's!" << endl; ++ std::cerr << "endian-ness not consistent between short's and int's!" << std::endl; + ::abort(); + } + +@@ -849,7 +849,7 @@ + if ( dc->fp ) { + + std::for_each( dc->records.begin(), dc->records.end(), +- std::bind2nd( std::mem_fun1( &EMF::METARECORD::serialize ), ++ std::bind2nd( mem_fun1( &EMF::METARECORD::serialize ), + dc->ds ) ); + fclose( dc->fp ); + +@@ -896,7 +896,7 @@ + if ( dc->fp ) { + + std::for_each( dc->records.begin(), dc->records.end(), +- std::bind2nd( std::mem_fun1( &EMF::METARECORD::serialize ), ++ std::bind2nd( mem_fun1( &EMF::METARECORD::serialize ), + dc->ds ) ); + } + +@@ -1032,7 +1032,7 @@ + if ( feof( fp ) ) break; + + if ( emr.nSize == 0 ) { +- cerr << "GetEnhMetaFileW error: record size == 0. cannot continue" << endl; ++ std::cerr << "GetEnhMetaFileW error: record size == 0. cannot continue" << std::endl; + fclose( fp ); + return 0; + } +@@ -1050,8 +1050,8 @@ + dc->appendRecord( record ); + } + else +- cerr << "GetEnhMetaFileW warning: read unknown record type " << emr.iType +- << " of size " << emr.nSize << endl; ++ std::cerr << "GetEnhMetaFileW warning: read unknown record type " << emr.iType ++ << " of size " << emr.nSize << std::endl; + + // Regardless, position ourselves at the next record. + fseek( fp, next_position, SEEK_SET ); +@@ -1108,7 +1108,7 @@ + if ( dc == 0 ) return; + + std::for_each( dc->records.begin(), dc->records.end(), +- std::mem_fun( &EMF::METARECORD::edit ) ); ++ mem_fun( &EMF::METARECORD::edit ) ); + #endif /* ENABLE_EDITING */ + } + +diff -ru libEMF-1.0.orig/libemf/libemf.h libEMF-1.0/libemf/libemf.h +--- libEMF-1.0.orig/libemf/libemf.h 2002-01-29 05:54:27.000000000 +0100 ++++ libEMF-1.0/libemf/libemf.h 2002-11-20 19:08:00.000000000 +0100 +@@ -21,10 +21,12 @@ + #ifndef _LIBEMF_H + #define _LIBEMF_H 1 + ++#include <iostream> + #include <cmath> + #include <vector> + #include <map> + #include <functional> ++#include <backward/function.h> + #include <algorithm> + + #include <config.h> diff --git a/media-libs/libemf/libemf-1.0.ebuild b/media-libs/libemf/libemf-1.0.ebuild new file mode 100644 index 000000000000..e1172a1db16e --- /dev/null +++ b/media-libs/libemf/libemf-1.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.ebuild,v 1.1 2003/07/17 10:33:47 phosphan Exp $ + +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/${PN}/${MY_P}.tar.gz" +LICENSE="LGPL-2.1 GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + patch -p0 < ${FILESDIR}/${MY_P}-gcc3.patch || die "patch failed" +} + +src_compile() { + econf --enable-editing + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dohtml doc/html/* + dodoc README NEWS AUTHORS ChangeLog +} diff --git a/media-libs/libemf/metadata.xml b/media-libs/libemf/metadata.xml new file mode 100644 index 000000000000..bce3a70882f8 --- /dev/null +++ b/media-libs/libemf/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>phosphan@gentoo.org</email> +</maintainer> +</pkgmetadata> |