summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-tex/qtexengine/ChangeLog11
-rw-r--r--dev-tex/qtexengine/files/qtexengine-0.2-dynlib.patch13
-rw-r--r--dev-tex/qtexengine/files/qtexengine-0.2-interpolate.patch13
-rw-r--r--dev-tex/qtexengine/metadata.xml9
-rw-r--r--dev-tex/qtexengine/qtexengine-0.2.ebuild42
5 files changed, 88 insertions, 0 deletions
diff --git a/dev-tex/qtexengine/ChangeLog b/dev-tex/qtexengine/ChangeLog
new file mode 100644
index 000000000000..6fbf9bc98a57
--- /dev/null
+++ b/dev-tex/qtexengine/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-tex/qtexengine
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/qtexengine/ChangeLog,v 1.1 2010/01/01 10:20:50 ssuominen Exp $
+
+*qtexengine-0.2 (01 Jan 2010)
+
+ 01 Jan 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +qtexengine-0.2.ebuild, +files/qtexengine-0.2-dynlib.patch,
+ +files/qtexengine-0.2-interpolate.patch:
+ Initial commit.
+
diff --git a/dev-tex/qtexengine/files/qtexengine-0.2-dynlib.patch b/dev-tex/qtexengine/files/qtexengine-0.2-dynlib.patch
new file mode 100644
index 000000000000..bc880ab6062a
--- /dev/null
+++ b/dev-tex/qtexengine/files/qtexengine-0.2-dynlib.patch
@@ -0,0 +1,13 @@
+diff --git a/config.pri b/config.pri
+index 5d53579..bb36060 100644
+--- a/config.pri
++++ b/config.pri
+@@ -2,7 +2,7 @@ CONFIG += qt warn_on thread
+ CONFIG += release
+
+ # Comment the lines bellow if you want to build QTeXEngine statically
+-#CONFIG += QTeXEngineDll
++CONFIG += QTeXEngineDll
+
+
+
diff --git a/dev-tex/qtexengine/files/qtexengine-0.2-interpolate.patch b/dev-tex/qtexengine/files/qtexengine-0.2-interpolate.patch
new file mode 100644
index 000000000000..c9e2823d6443
--- /dev/null
+++ b/dev-tex/qtexengine/files/qtexengine-0.2-interpolate.patch
@@ -0,0 +1,13 @@
+diff --git a/src/QTeXPaintEngine.cpp b/src/QTeXPaintEngine.cpp
+index 3c54c02..9651bd3 100644
+--- a/src/QTeXPaintEngine.cpp
++++ b/src/QTeXPaintEngine.cpp
+@@ -409,7 +409,7 @@ void QTeXPaintEngine::drawPixmap(const QPixmap &pix, const QRectF &r)
+
+ t << "\\pgfputat";
+ t << pgfPoint(convertPoint(painter()->worldMatrix().map(r.bottomLeft())));
+- t << "{\\pgfimage[interpolate=true,width=";
++ t << "{\\pgfimage[interpolate=false,width=";
+
+ QString u = unit();
+ t << QString::number(r.width()*resFactorX()) + u + ",height=";
diff --git a/dev-tex/qtexengine/metadata.xml b/dev-tex/qtexengine/metadata.xml
new file mode 100644
index 000000000000..7ce270433c50
--- /dev/null
+++ b/dev-tex/qtexengine/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <maintainer>
+ <email>ssuominen@gentoo.org</email>
+ <name>Samuli Suominen</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-tex/qtexengine/qtexengine-0.2.ebuild b/dev-tex/qtexengine/qtexengine-0.2.ebuild
new file mode 100644
index 000000000000..d4767f242b12
--- /dev/null
+++ b/dev-tex/qtexengine/qtexengine-0.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/qtexengine/qtexengine-0.2.ebuild,v 1.1 2010/01/01 10:20:50 ssuominen Exp $
+
+EAPI=2
+inherit eutils qt4
+
+MY_PN=QTeXEngine
+
+DESCRIPTION="TeX support for Qt"
+HOMEPAGE="http://soft.proindependent.com/qtexengine/"
+SRC_URI="mirror://berlios/qtiplot/${MY_PN}-${PV}-opensource.zip"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-3"
+IUSE=""
+
+RDEPEND="x11-libs/qt-gui:4"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_PN}
+
+PATCHES=( "${FILESDIR}/${P}-interpolate.patch"
+ "${FILESDIR}/${P}-dynlib.patch" )
+
+src_configure() {
+ eqmake4 QTeXEngine.pro
+}
+
+src_compile() {
+ emake sub-src-all || die
+}
+
+src_install() {
+ dolib.so lib${MY_PN}.so* || die
+ insinto /usr/include
+ doins src/${MY_PN}.h || die
+ dodoc CHANGES.txt
+ dohtml -r ./doc/html/*
+}