diff options
-rw-r--r-- | app-text/xdvik/ChangeLog | 11 | ||||
-rw-r--r-- | app-text/xdvik/files/xdvik.png | bin | 0 -> 798 bytes | |||
-rw-r--r-- | app-text/xdvik/xdvik-22.84.14-r1.ebuild | 124 |
3 files changed, 133 insertions, 2 deletions
diff --git a/app-text/xdvik/ChangeLog b/app-text/xdvik/ChangeLog index a0241d1b592a..d761dcb370f6 100644 --- a/app-text/xdvik/ChangeLog +++ b/app-text/xdvik/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/xdvik -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.62 2008/12/20 02:34:20 aballier Exp $ +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.63 2009/02/08 11:07:00 aballier Exp $ + +*xdvik-22.84.14-r1 (08 Feb 2009) + + 08 Feb 2009; Alexis Ballier <aballier@gentoo.org> +files/xdvik.png, + +xdvik-22.84.14-r1.ebuild: + Add a desktop entry, by Pacho Ramos <pacho@condmat1.ciencias.uniovi.es>, + bug #250693 20 Dec 2008; Alexis Ballier <aballier@gentoo.org> xdvik-22.84.14.ebuild: update homepage, by Pacho Ramos <pacho@condmat1.ciencias.uniovi.es>, bug diff --git a/app-text/xdvik/files/xdvik.png b/app-text/xdvik/files/xdvik.png Binary files differnew file mode 100644 index 000000000000..ff180e1e12f5 --- /dev/null +++ b/app-text/xdvik/files/xdvik.png diff --git a/app-text/xdvik/xdvik-22.84.14-r1.ebuild b/app-text/xdvik/xdvik-22.84.14-r1.ebuild new file mode 100644 index 000000000000..fbc4faf37190 --- /dev/null +++ b/app-text/xdvik/xdvik-22.84.14-r1.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.84.14-r1.ebuild,v 1.1 2009/02/08 11:07:00 aballier Exp $ + +inherit eutils flag-o-matic elisp-common toolchain-funcs + +XDVIK_JP="${P}-j1.40.patch.gz" + +DESCRIPTION="DVI previewer for X Window System" +HOMEPAGE="http://xdvi.sourceforge.net/ http://xdvi.sourceforge.jp/" +SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz + cjk? ( mirror://sourceforge.jp/xdvi/31972/${XDVIK_JP} )" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +SLOT="0" +LICENSE="GPL-2" +IUSE="cjk motif neXt Xaw3d emacs" + +RDEPEND=">=media-libs/t1lib-5.0.2 + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + motif? ( x11-libs/openmotif ) + !motif? ( neXt? ( x11-libs/neXtaw ) + !neXt? ( Xaw3d? ( x11-libs/Xaw3d ) ) ) + cjk? ( || ( app-text/texlive-core app-text/ptex ) + >=media-libs/freetype-2 + >=media-fonts/kochi-substitute-20030809-r3 ) + !cjk? ( virtual/latex-base ) + !<app-text/texlive-2007" +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 +} + +src_compile() { + tc-export CC AR RANLIB + + local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN') + local myconf toolkit + + if use motif ; then + 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-system-kpathsea \ + --with-kpathsea-include=/usr/include/kpathsea \ + --with-xdvi-x-toolkit="${toolkit}" \ + ${myconf} || die "econf failed" + + cd texk/xdvik + emake kpathsea_dir="/usr/include/kpathsea" 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 kpathsea_dir="/usr/include/kpathsea" texmf="${D}${TEXMF_PATH}" || die "install failed" + + mv "${D}${TEXMF_PATH}/xdvi/XDvi" "${D}etc/X11/app-defaults" || die "failed to move config file" + dosym {/etc/X11/app-defaults,"${TEXMF_PATH}/xdvi"}/XDvi || die "failed to symlink config file" + for i in $(find "${D}${TEXMF_PATH}/xdvi" -type f -maxdepth 1) ; do + mv ${i} "${D}etc/texmf/xdvi" || die "failed to move $i" + dosym {/etc/texmf,"${TEXMF_PATH}"}/xdvi/$(basename ${i}) || die "failed to symlink $i" + done + + dodoc BUGS FAQ README.* || die "dodoc failed" + if use cjk; then + dodoc CHANGES.xdvik-jp || die "dodoc failed" + docinto READMEs + dodoc READMEs/* || die "dodoc failed" + fi + + use emacs && elisp-install tex-utils *.el *.elc + doicon "${FILESDIR}/${PN}.png" + make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer" + echo "MimeType=application/x-dvi;" >> "${D}"usr/share/applications/xdvi-"${PN}".desktop +} + +pkg_postinst() { + if use emacs; then + elog "Add" + elog " (add-to-list 'load-path \"${SITELISP}/tex-utils\")" + elog " (require 'xdvi-search)" + elog "to your ~/.emacs file" + fi +} |