summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-09-03 18:48:18 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-09-03 18:48:18 +0000
commitf385185b826b82f1d47ee3aa080712aa270b8252 (patch)
treebda79c872a2d0952ab3a152d0dfbaf271e0a5229 /dev-tex
parentstable ppc64, bug 213696 (diff)
downloadhistorical-f385185b826b82f1d47ee3aa080712aa270b8252.tar.gz
historical-f385185b826b82f1d47ee3aa080712aa270b8252.tar.bz2
historical-f385185b826b82f1d47ee3aa080712aa270b8252.zip
Initial import. Standalone pdftex patched to use poppler.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.3 x86_64
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/luatex/Manifest15
-rw-r--r--dev-tex/pdftex/ChangeLog10
-rw-r--r--dev-tex/pdftex/Manifest15
-rw-r--r--dev-tex/pdftex/files/pdftex-1.40.9-poppler.patch65
-rw-r--r--dev-tex/pdftex/metadata.xml13
-rw-r--r--dev-tex/pdftex/pdftex-1.40.9.ebuild100
6 files changed, 218 insertions, 0 deletions
diff --git a/dev-tex/luatex/Manifest b/dev-tex/luatex/Manifest
new file mode 100644
index 000000000000..e47e6a8b4fb8
--- /dev/null
+++ b/dev-tex/luatex/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST luatex-beta-0.29.0.tar.bz2 6779262 RMD160 ead18a95a6d0b4d1bfaddac76d3a268f85a7d674 SHA1 a964581f1a240126da71324a52e583b8172e61ed SHA256 5f92b7ae8d93a57f6d5a157254ca4c3abd7ae612d40c256d130ea3f98aae9746
+DIST luatex-patches-1.tar.bz2 4342 RMD160 35e95f05398b87966e922a3b8f7ac6a2ef52f919 SHA1 bc0e6097eeff3b670a01ac13f21d01c0e5fe92a6 SHA256 011f293f5271012ff6f68678bc70910f02262f959d8a375444ed189683c02ea2
+EBUILD luatex-0.29.0.ebuild 3923 RMD160 1205271ac7c71bed7cf393296c26fa27bd4afa8f SHA1 705e20ecd9c385f4656b881c9cf8d95b0fc0c65f SHA256 2d30ded751cb7123e49ed6d22f2e60c87048d5cac672c6b25102266f9322ebb5
+MISC ChangeLog 458 RMD160 b08915bc58bf5c1ac3357a6f644508f59da88b1e SHA1 2cd6d99282b49513eb699b1f95a7d4fd8df159e6 SHA256 0792fbcd6e426eb3f7d2624ffcc9550b6f00abbff95468b3d5816cc82eda7c89
+MISC metadata.xml 336 RMD160 0ea7c1246551ffee8e6960e806a66a231e1d3cc7 SHA1 ca5b152307b89eb030607b9d4862c270d248dfa0 SHA256 126018a4822f911e52afe63656a10f2a7b0b938ea106f2a2caef00bdc18a845f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAki+3RUACgkQvFcC4BYPU0qUPwCgpClQdzIPhPzEXAolT6KsaMOl
+16EAn15CxnC/9Sea3c6WMSEtNOrhJFoj
+=mVtN
+-----END PGP SIGNATURE-----
diff --git a/dev-tex/pdftex/ChangeLog b/dev-tex/pdftex/ChangeLog
new file mode 100644
index 000000000000..4ff36d29ba0a
--- /dev/null
+++ b/dev-tex/pdftex/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-tex/pdftex
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/pdftex/ChangeLog,v 1.1 2008/09/03 18:48:17 aballier Exp $
+
+*pdftex-1.40.9 (03 Sep 2008)
+
+ 03 Sep 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/pdftex-1.40.9-poppler.patch, +metadata.xml, +pdftex-1.40.9.ebuild:
+ Initial import. Standalone pdftex patched to use poppler.
+
diff --git a/dev-tex/pdftex/Manifest b/dev-tex/pdftex/Manifest
new file mode 100644
index 000000000000..7934b7523649
--- /dev/null
+++ b/dev-tex/pdftex/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX pdftex-1.40.9-poppler.patch 2855 RMD160 ae883ff7dbafd9452aa3d52233df3af2e5f2e30f SHA1 cb76325eb46aca46c16828907a7f62a830d13703 SHA256 e701f2627e81c5723e0a99487e3275008cba3448207ebd35a55bb4ed829da12d
+DIST pdftex-1.40.9.tar.bz2 3899364 RMD160 09df8924b478a26a4816a55ae97822127bb1c476 SHA1 8302ef0c9651ff293916505b122ad59db955e318 SHA256 78e17e070c27b6645db291fa1d7b390d19bf090bca4326806ed292c9809dc27c
+EBUILD pdftex-1.40.9.ebuild 2485 RMD160 37ddcbb2af3524754ab8f14df2a67979c501cc20 SHA1 4f62ad295deaa244df0072207d590a14785413d4 SHA256 f974c89cf96b000034aab9b696abea86f9fb9d0b09eda8ea878e10305c5e02c6
+MISC ChangeLog 422 RMD160 43b9336aed89a4642a6bd17a9d0481eb36eccb48 SHA1 f1da55e59f1ce5bdd8e4b71b2d671699e29003b8 SHA256 c0fffb8ff41b0800e182a3ab688ee8148ecf05f4155116edde863b24753da370
+MISC metadata.xml 638 RMD160 59e3769086396359f1a50ee60b6702555770e33e SHA1 f9a566b850466987e74d5c16c345c54506ae4a0d SHA256 b28290517ed75fbaaa0282cdca3692f11635d173ee5dc5cb342f6071dbb3d3ea
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAki+2/gACgkQvFcC4BYPU0qZOwCglMkXePDH0znUfp7of01Em//u
+oakAoMmUPdn+zPHh8XIKPg7MxEUgs3YT
+=REPt
+-----END PGP SIGNATURE-----
diff --git a/dev-tex/pdftex/files/pdftex-1.40.9-poppler.patch b/dev-tex/pdftex/files/pdftex-1.40.9-poppler.patch
new file mode 100644
index 000000000000..eb8aa50bf94b
--- /dev/null
+++ b/dev-tex/pdftex/files/pdftex-1.40.9-poppler.patch
@@ -0,0 +1,65 @@
+Index: pdftex-1.40.9/src/texk/web2c/pdftexdir/pdftoepdf.cc
+===================================================================
+--- pdftex-1.40.9.orig/src/texk/web2c/pdftexdir/pdftoepdf.cc
++++ pdftex-1.40.9/src/texk/web2c/pdftexdir/pdftoepdf.cc
+@@ -24,8 +24,9 @@ Franklin Street, Fifth Floor, Boston, MA
+ #include <stdio.h>
+ #include <string.h>
+ #include <ctype.h>
+-#include <aconf.h>
+-#include <GString.h>
++#include <dirent.h>
++#include <poppler-config.h>
++#include <GooString.h>
+ #include <gmem.h>
+ #include <gfile.h>
+ #include <config.h>
+@@ -159,7 +160,7 @@ static PdfDocument *find_add_document(ch
+ fprintf(stderr, "\npdfTeX Debug: Creating %s (%d)\n", p->file_name,
+ p->occurences);
+ #endif
+- GString *docName = new GString(p->file_name);
++ GooString *docName = new GooString(p->file_name);
+ p->doc = new PDFDoc(docName); // takes ownership of docName
+ if (!p->doc->isOk() || !p->doc->okToPrint()) {
+ pdftex_fail("xpdf: reading PDF image failed");
+@@ -520,7 +521,7 @@ static void copyObject(Object * obj)
+ int i, l, c;
+ Ref ref;
+ char *p;
+- GString *s;
++ GooString *s;
+ if (obj->isBool()) {
+ pdf_printf("%s", obj->getBool()? "true" : "false");
+ } else if (obj->isInt()) {
+@@ -713,7 +714,7 @@ read_pdf_info(char *image_name, char *pa
+ epdf_num_pages = pdf_doc->doc->getCatalog()->getNumPages();
+ if (page_name) {
+ // get page by name
+- GString name(page_name);
++ GooString name(page_name);
+ LinkDest *link = pdf_doc->doc->findDest(&name);
+ if (link == 0 || !link->isOk())
+ pdftex_fail("PDF inclusion: invalid destination <%s>", page_name);
+Index: pdftex-1.40.9/src/texk/web2c/pdftexdir/utils.c
+===================================================================
+--- pdftex-1.40.9.orig/src/texk/web2c/pdftexdir/utils.c
++++ pdftex-1.40.9/src/texk/web2c/pdftexdir/utils.c
+@@ -35,7 +35,7 @@ Franklin Street, Fifth Floor, Boston, MA
+ #include "zlib.h"
+ #include "ptexlib.h"
+ #include "png.h"
+-#include "xpdf/config.h" /* just to get the xpdf version */
++#include <poppler/poppler-config.h> /* just to get the poppler version */
+
+ static const char _svn_version[] =
+ "$Id: pdftex-1.40.9-poppler.patch,v 1.1 2008/09/03 18:48:18 aballier Exp $ $URL: svn://192.168.0.1/svnroot/pdftex/branches/stable/source/src/texk/web2c/pdftexdir/utils.c $";
+@@ -1267,7 +1267,7 @@ void initversionstring(char **versions)
+ (void) asprintf(versions,
+ "Compiled with libpng %s; using libpng %s\n"
+ "Compiled with zlib %s; using zlib %s\n"
+- "Compiled with xpdf version %s\n",
++ "Compiled with poppler version %s\n",
+ PNG_LIBPNG_VER_STRING, png_libpng_ver,
+ ZLIB_VERSION, zlib_version, xpdfVersion);
+ }
diff --git a/dev-tex/pdftex/metadata.xml b/dev-tex/pdftex/metadata.xml
new file mode 100644
index 000000000000..ec725e3d2591
--- /dev/null
+++ b/dev-tex/pdftex/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<longdescription lang="en">
+ An extended version of eTeX that can create PDF directly from TeX source
+ files and enhance the result of TeX typesetting with the help of PDF. When
+ PDF output is not selected, pdfTeX produces normal DVI output, otherwise
+ it produces PDF output that looks identical to the DVI output. An important
+ aspect of this project is to investigate alternative justification
+ algorithms, optionally making use of multiple master fonts.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/pdftex/pdftex-1.40.9.ebuild b/dev-tex/pdftex/pdftex-1.40.9.ebuild
new file mode 100644
index 000000000000..f51297df38ae
--- /dev/null
+++ b/dev-tex/pdftex/pdftex-1.40.9.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/pdftex/pdftex-1.40.9.ebuild,v 1.1 2008/09/03 18:48:17 aballier Exp $
+
+inherit libtool toolchain-funcs eutils multilib
+
+DESCRIPTION="Standalone (patched to use poppler) version of pdftex"
+HOMEPAGE="http://www.pdftex.org/"
+SLOT="0"
+LICENSE="GPL-2"
+
+SRC_URI="http://sarovar.org/download.php/1240/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=app-text/poppler-0.8
+ media-libs/libpng
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${P}/src"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-poppler.patch"
+ elibtoolize
+}
+
+src_compile() {
+ tc-export CC CXX AR RANLIB
+
+ econf \
+ --without-cxx-runtime-hack \
+ --without-aleph \
+ --without-bibtex8 \
+ --without-cjkutils \
+ --without-detex \
+ --without-dialog \
+ --without-dtl \
+ --without-dvi2tty \
+ --without-dvidvi \
+ --without-dviljk \
+ --without-dvipdfm \
+ --without-dvipdfmx \
+ --without-dvipng \
+ --without-dvipos \
+ --without-dvipsk \
+ --without-etex \
+ --without-gsftopk \
+ --without-lacheck \
+ --without-lcdf-typetools \
+ --without-makeindexk \
+ --without-mkocp-default \
+ --without-mkofm-default \
+ --without-musixflx \
+ --without-omega \
+ --without-pdfopen \
+ --without-ps2eps \
+ --without-ps2pkm \
+ --without-psutils \
+ --without-sam2p \
+ --without-seetexk \
+ --without-t1utils \
+ --without-tetex \
+ --without-tex4htk \
+ --without-texi2html \
+ --without-texinfo \
+ --without-texlive \
+ --without-ttf2pk \
+ --without-tth \
+ --without-xdv2pdf \
+ --without-xdvik \
+ --without-xdvipdfmx \
+ --without-xetex \
+ --disable-largefile \
+ --with-system-zlib \
+ --with-system-pnglib \
+ --disable-multiplatform
+
+ cd "${S}/texk/web2c"
+ emake \
+ LIBXPDFDEP="" LDLIBXPDF="$(pkg-config --libs poppler)" \
+ LIBXPDFSRCDIR="/usr/include/poppler" LIBXPDFDIR="/usr/include/poppler" \
+ ZLIBSRCDIR="." \
+ pdftex || die "emake pdftex failed"
+}
+
+src_install() {
+ cd "${S}/texk/web2c"
+ emake bindir="${D}/usr/bin" \
+ LIBXPDFDEP="" LDLIBXPDF="$(pkg-config --libs poppler)" \
+ LIBXPDFSRCDIR="/usr/include/poppler" LIBXPDFDIR="/usr/include/poppler" \
+ ZLIBSRCDIR="." \
+ install-pdftex || die "install pdftex failed"
+ # Rename it
+ mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}" || die "renaming failed"
+}