summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/xdvik/ChangeLog10
-rw-r--r--app-text/xdvik/files/digest-xdvik-22.84.106
-rw-r--r--app-text/xdvik/files/xdvik-asneeded.patch11
-rw-r--r--app-text/xdvik/metadata.xml4
-rw-r--r--app-text/xdvik/xdvik-22.84.10.ebuild125
5 files changed, 154 insertions, 2 deletions
diff --git a/app-text/xdvik/ChangeLog b/app-text/xdvik/ChangeLog
index de6d0e3efff9..0c313264f3e8 100644
--- a/app-text/xdvik/ChangeLog
+++ b/app-text/xdvik/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/xdvik
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.23 2005/01/01 16:42:52 eradicator Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.24 2006/10/07 17:02:22 exg Exp $
+
+*xdvik-22.84.10 (07 Oct 2006)
+
+ 07 Oct 2006; Emanuele Giaquinta <exg@gentoo.org>
+ +files/xdvik-asneeded.patch, metadata.xml, +xdvik-22.84.10.ebuild:
+ Version bump.
20 Nov 2004; Mamoru KOMACHI <usata@gentoo.org> -xdvik-22.84.3-r1.ebuild,
-xdvik-22.84.3.ebuild:
diff --git a/app-text/xdvik/files/digest-xdvik-22.84.10 b/app-text/xdvik/files/digest-xdvik-22.84.10
new file mode 100644
index 000000000000..ebbd14e4a9f1
--- /dev/null
+++ b/app-text/xdvik/files/digest-xdvik-22.84.10
@@ -0,0 +1,6 @@
+MD5 42e2ec7cc7f9d074b951bdadc5701bad xdvik-22.84.10-j1.33.patch.gz 128939
+RMD160 2c03aec8b23496b31fa59ddaac5d1bbf8626bd0b xdvik-22.84.10-j1.33.patch.gz 128939
+SHA256 d9309df009f014cd617dc8ef3bc54d180c6df2dec34286e2c3ad01f65175c87b xdvik-22.84.10-j1.33.patch.gz 128939
+MD5 31a01ea9be9ab581c2f23a0c914a2b36 xdvik-22.84.10.tar.gz 1910572
+RMD160 2040cff601cb18324d922c18150ef8a9245907de xdvik-22.84.10.tar.gz 1910572
+SHA256 51c14912fc31c6028dffb9555308f44de4cfc19f0e2ad91e27694d5798111eb6 xdvik-22.84.10.tar.gz 1910572
diff --git a/app-text/xdvik/files/xdvik-asneeded.patch b/app-text/xdvik/files/xdvik-asneeded.patch
new file mode 100644
index 000000000000..6ce038c39287
--- /dev/null
+++ b/app-text/xdvik/files/xdvik-asneeded.patch
@@ -0,0 +1,11 @@
+--- libs/t1lib/t1lib.ac.old 2006-10-06 23:36:51.094634023 +0200
++++ libs/t1lib/t1lib.ac 2006-10-06 23:37:12.240359125 +0200
+@@ -30,7 +30,7 @@
+ -lz -lm)
+ fi
+
+- LDFLAGS="$LDFLAGS $EXTRA_LIBT1_LIBDIR -lt1 -lm"
++ LIBS="$LIBS -lt1 -lm"
+ if test "$with_system_t1lib" = yes; then
+ AC_MSG_CHECKING(whether installed T1 lib is >= v 1.3.1 )
+ AC_TRY_RUN([
diff --git a/app-text/xdvik/metadata.xml b/app-text/xdvik/metadata.xml
index 0b51bcaad3cb..e75580b526c3 100644
--- a/app-text/xdvik/metadata.xml
+++ b/app-text/xdvik/metadata.xml
@@ -7,6 +7,10 @@
<email>usata@gentoo.org</email>
<name>Mamoru KOMACHI</name>
</maintainer>
+<maintainer>
+ <email>exg@gentoo.org</email>
+ <name>Emanuele Giaquinta</name>
+</maintainer>
<longdescription>
XDVIK is a dvi previewer on X with kpathsea support. It also supports
multibyte character rendering via Xft2 (or VFlib2).
diff --git a/app-text/xdvik/xdvik-22.84.10.ebuild b/app-text/xdvik/xdvik-22.84.10.ebuild
new file mode 100644
index 000000000000..b2a8775ea03f
--- /dev/null
+++ b/app-text/xdvik/xdvik-22.84.10.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.84.10.ebuild,v 1.1 2006/10/07 17:02:22 exg Exp $
+
+WANT_AUTOCONF=2.1
+
+inherit eutils flag-o-matic elisp-common autotools
+
+IUSE="cjk lesstif motif neXt Xaw3d emacs"
+
+XDVIK_JP="${P}-j1.33.patch.gz"
+
+DESCRIPTION="DVI previewer for X Window System"
+SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz
+ cjk? ( mirror://sourceforge.jp/xdvi/20703/${XDVIK_JP} )"
+HOMEPAGE="http://sourceforge.net/projects/xdvi/
+ http://xdvi.sourceforge.jp/"
+
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+RDEPEND=">=media-libs/t1lib-5.0.2
+ x11-libs/libXau
+ x11-libs/libXpm
+ motif? ( lesstif? ( x11-libs/lesstif )
+ !lesstif? ( x11-libs/openmotif ) )
+ !motif? ( neXt? ( x11-libs/neXtaw )
+ !neXt? ( Xaw3d? ( x11-libs/Xaw3d ) ) )
+ cjk? ( app-text/ptex
+ >=media-libs/freetype-2
+ >=media-fonts/kochi-substitute-20030809-r3 )
+ !cjk? ( virtual/tetex )"
+DEPEND="${RDEPEND}"
+
+src_unpack () {
+
+ unpack ${P}.tar.gz
+ cd "${S}"
+ if use cjk ; then
+ epatch ${DISTDIR}/${XDVIK_JP}
+ cat >>${S}/texk/xdvik/vfontmap.sample<<-EOF
+
+ # TrueType fonts
+ min /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ nmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ goth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ tmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ tgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ ngoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ jis /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ jisg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ dm /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ dg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ mgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ fmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
+ fgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
+ EOF
+ fi
+ epatch "${FILESDIR}"/${PN}-asneeded.patch
+ cd texk/xdvik
+ eautoconf -m ../etc/autoconf
+}
+
+src_compile () {
+
+ local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN')
+ local myconf toolkit
+
+ if use cjk ; then
+ export CPPFLAGS="${CPPFLAGS} -I/usr/include/freetype2"
+ myconf="${myconf} --with-vflib=vf2ft"
+ fi
+
+ if use motif ; then
+ if use lesstif ; then
+ append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif
+ export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif"
+ fi
+ toolkit="motif"
+ elif use neXt ; then
+ toolkit="neXtaw"
+ elif use Xaw3d ; then
+ toolkit="xaw3d"
+ else
+ toolkit="xaw"
+ fi
+
+ econf --disable-multiplatform \
+ --enable-t1lib \
+ --enable-gf \
+ --with-system-t1lib \
+ --with-xdvi-x-toolkit="${toolkit}" \
+ ${myconf} || die "econf failed"
+
+ cd texk/xdvik
+ make texmf=${TEXMF_PATH} || die
+ use emacs && elisp-compile xdvi-search.el
+}
+
+src_install () {
+
+ dodir /etc/texmf/xdvi /etc/X11/app-defaults
+
+ local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN')
+
+ cd ${S}/texk/xdvik
+ einstall texmf=${D}${TEXMF_PATH} || die "install failed"
+
+ mv ${D}${TEXMF_PATH}/xdvi/XDvi ${D}etc/X11/app-defaults
+ dosym {/etc/X11/app-defaults,${TEXMF_PATH}}/XDvi
+ for i in $(find ${D}${TEXMF_PATH}/xdvi -type f -maxdepth 1) ; do
+ mv $i ${D}etc/texmf/xdvi
+ dosym {/etc/texmf,${TEXMF_PATH}}/xdvi/$(basename $i)
+ done
+
+ dodoc BUGS FAQ README.*
+ if use cjk; then
+ dodoc CHANGES.xdvik-jp
+ docinto READMEs
+ dodoc READMEs/*
+ fi
+
+ use emacs && elisp-install tex-utils *.el *.elc
+}