summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2010-01-12 19:20:03 +0000
committerUlrich Müller <ulm@gentoo.org>2010-01-12 19:20:03 +0000
commit1f4340096451a33df14437b764dee396f4408ae0 (patch)
treecdab80d9a9bad225c20d7ace0263e24cf847d0d1 /app-text/dvipng
parentppc stable #300241 (diff)
downloadgentoo-2-1f4340096451a33df14437b764dee396f4408ae0.tar.gz
gentoo-2-1f4340096451a33df14437b764dee396f4408ae0.tar.bz2
gentoo-2-1f4340096451a33df14437b764dee396f4408ae0.zip
Add USE flag and dependency for t1lib, fixes bug 297688.
(Portage version: 2.2_rc61/cvs/Linux i686)
Diffstat (limited to 'app-text/dvipng')
-rw-r--r--app-text/dvipng/ChangeLog10
-rw-r--r--app-text/dvipng/dvipng-1.12-r1.ebuild41
-rw-r--r--app-text/dvipng/metadata.xml18
3 files changed, 67 insertions, 2 deletions
diff --git a/app-text/dvipng/ChangeLog b/app-text/dvipng/ChangeLog
index 992e7c9c1621..add8c1a3b024 100644
--- a/app-text/dvipng/ChangeLog
+++ b/app-text/dvipng/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/dvipng
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/dvipng/ChangeLog,v 1.57 2009/05/30 06:40:05 ulm Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/dvipng/ChangeLog,v 1.58 2010/01/12 19:20:03 ulm Exp $
+
+*dvipng-1.12-r1 (12 Jan 2010)
+
+ 12 Jan 2010; Ulrich Mueller <ulm@gentoo.org> +dvipng-1.12-r1.ebuild,
+ metadata.xml:
+ Add USE flag and dependency for t1lib, fixes bug 297688.
30 May 2009; Ulrich Mueller <ulm@gentoo.org> dvipng-1.12.ebuild:
Remove app-text/tetex from dependencies, bug 227443.
diff --git a/app-text/dvipng/dvipng-1.12-r1.ebuild b/app-text/dvipng/dvipng-1.12-r1.ebuild
new file mode 100644
index 000000000000..4140fc8471ae
--- /dev/null
+++ b/app-text/dvipng/dvipng-1.12-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/dvipng/dvipng-1.12-r1.ebuild,v 1.1 2010/01/12 19:20:03 ulm Exp $
+
+EAPI="2"
+inherit eutils
+
+DESCRIPTION="Translate DVI files into PNG or GIF graphics"
+HOMEPAGE="http://dvipng.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="t1lib truetype test"
+
+RDEPEND="media-libs/gd[jpeg,png]
+ media-libs/libpng
+ virtual/latex-base
+ sys-libs/zlib
+ t1lib? ( media-libs/t1lib )
+ truetype? ( >=media-libs/freetype-2.1.5 )"
+DEPEND="${RDEPEND}
+ virtual/texi2dvi
+ test? ( || ( dev-texlive/texlive-fontsrecommended app-text/ptex ) )"
+
+src_configure() {
+ if ! use t1lib; then
+ # The build system autodetects libt1. We don't want that if the
+ # USE flag is not set, so confuse it with a wrong name.
+ sed -i -e 's/T1_InitLib/dIsAbLe&/' configure || die "sed failed"
+ fi
+
+ export VARTEXFONTS="${T}/fonts"
+ econf $(use_with truetype freetype)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc ChangeLog README RELEASE || die "dodoc failed"
+}
diff --git a/app-text/dvipng/metadata.xml b/app-text/dvipng/metadata.xml
index 66a1b49a9afe..c5623d9060a3 100644
--- a/app-text/dvipng/metadata.xml
+++ b/app-text/dvipng/metadata.xml
@@ -3,4 +3,22 @@
<pkgmetadata>
<herd>tex</herd>
<herd>emacs</herd>
+<longdescription>
+ This program makes PNG and/or GIF graphics from DVI files as obtained
+ from TeX and its relatives.
+
+ If GIF support is enabled, GIF output is chosen by using the ‘dvigif’
+ binary or with the ‘--gif’ option.
+
+ It is intended to produce anti-aliased screen-resolution images as fast
+ as is possible. The target audience is people who need to generate and
+ regenerate many images again and again. The primary target is the
+ preview-latex (X)Emacs package, a package to preview formulas from within
+ (X)Emacs. Yes, you get to see your formulas in the (X)Emacs buffer, see
+ &lt;http://www.gnu.org/software/auctex/preview-latex.html&gt;.
+</longdescription>
+<use>
+ <flag name='t1lib'>Enable support for T1lib font rendering
+ (<pkg>media-libs/t1lib</pkg>)</flag>
+</use>
</pkgmetadata>