diff options
author | Alexis Ballier <aballier@gentoo.org> | 2009-10-03 09:32:31 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2009-10-03 09:32:31 +0000 |
commit | b36d6b49814be0a4bfbef737e5848ed79707e842 (patch) | |
tree | 28553929157746caa8509eff0e21e123195b79af /app-text/xdvik/xdvik-22.84.16.ebuild | |
parent | add ~arm, bug #285952 (diff) | |
download | historical-b36d6b49814be0a4bfbef737e5848ed79707e842.tar.gz historical-b36d6b49814be0a4bfbef737e5848ed79707e842.tar.bz2 historical-b36d6b49814be0a4bfbef737e5848ed79707e842.zip |
version bump, drop cjk patches they cause more harm than good
Package-Manager: portage-2.2_rc42/cvs/Linux x86_64
Diffstat (limited to 'app-text/xdvik/xdvik-22.84.16.ebuild')
-rw-r--r-- | app-text/xdvik/xdvik-22.84.16.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/app-text/xdvik/xdvik-22.84.16.ebuild b/app-text/xdvik/xdvik-22.84.16.ebuild new file mode 100644 index 000000000000..13baef8fa38c --- /dev/null +++ b/app-text/xdvik/xdvik-22.84.16.ebuild @@ -0,0 +1,92 @@ +# 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.16.ebuild,v 1.1 2009/10/03 09:32:30 aballier Exp $ + +inherit eutils flag-o-matic elisp-common toolchain-funcs + +DESCRIPTION="DVI previewer for X Window System" +HOMEPAGE="http://xdvi.sourceforge.net/" +SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +SLOT="0" +LICENSE="GPL-2" +IUSE="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 ) ) ) + virtual/latex-base + !<app-text/texlive-2007" +DEPEND="${RDEPEND}" +TEXMF_PATH=/usr/share/texmf +S=${WORKDIR}/${P}/texk/xdvik + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-open-mode.patch" +} + +src_compile() { + cd "${WORKDIR}/${P}" + + tc-export CC AR RANLIB + + local 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}" + + cd "${S}" + emake kpathsea_dir="/usr/include/kpathsea" texmf="${TEXMF_PATH}" || die + use emacs && elisp-compile xdvi-search.el +} + +src_install() { + einstall kpathsea_dir="/usr/include/kpathsea" texmf="${D}${TEXMF_PATH}" || die "install failed" + + dodir /etc/texmf/xdvi /etc/X11/app-defaults + 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" + + 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 +} |