summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2003-07-17 10:33:57 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2003-07-17 10:33:57 +0000
commit8a68a861915d0e408d8cf4f58a2c53256cbaae76 (patch)
tree82a8009e6150bb7b31810be91ad1b4d2ef400af4 /media-libs/libemf
parentInitial import (diff)
downloadhistorical-8a68a861915d0e408d8cf4f58a2c53256cbaae76.tar.gz
historical-8a68a861915d0e408d8cf4f58a2c53256cbaae76.tar.bz2
historical-8a68a861915d0e408d8cf4f58a2c53256cbaae76.zip
Initial import
Diffstat (limited to 'media-libs/libemf')
-rw-r--r--media-libs/libemf/Manifest5
-rw-r--r--media-libs/libemf/files/digest-libemf-1.01
-rw-r--r--media-libs/libemf/files/libEMF-1.0-gcc3.patch75
-rw-r--r--media-libs/libemf/libemf-1.0.ebuild32
-rw-r--r--media-libs/libemf/metadata.xml8
5 files changed, 120 insertions, 1 deletions
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>