diff options
author | Naohiro Aota <naota@gentoo.org> | 2012-05-16 08:49:22 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2012-05-16 08:49:22 +0000 |
commit | 3e9859831b164434cd854212c06273cfa4e087bb (patch) | |
tree | bb12522a57c479584b61d16b37ade7d0731ad9c3 /app-text/xdvik | |
parent | Reduce versions around. (diff) | |
download | gentoo-2-3e9859831b164434cd854212c06273cfa4e087bb.tar.gz gentoo-2-3e9859831b164434cd854212c06273cfa4e087bb.tar.bz2 gentoo-2-3e9859831b164434cd854212c06273cfa4e087bb.zip |
Add new USE flag Xaw. Set REQUIRED_USE to select one of possible toolkit. #372473
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'app-text/xdvik')
-rw-r--r-- | app-text/xdvik/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/xdvik/metadata.xml | 3 | ||||
-rw-r--r-- | app-text/xdvik/xdvik-22.85-r1.ebuild | 98 |
3 files changed, 109 insertions, 1 deletions
diff --git a/app-text/xdvik/ChangeLog b/app-text/xdvik/ChangeLog index 7cd5b44896da..8ba5575d47ae 100644 --- a/app-text/xdvik/ChangeLog +++ b/app-text/xdvik/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/xdvik # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.83 2012/05/09 15:07:10 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.84 2012/05/16 08:49:22 naota Exp $ + +*xdvik-22.85-r1 (16 May 2012) + + 16 May 2012; Naohiro Aota <naota@gentoo.org> +xdvik-22.85-r1.ebuild, + metadata.xml: + Add new USE flag Xaw. Set REQUIRED_USE to select one of possible toolkit. + #372473 09 May 2012; Alexis Ballier <aballier@gentoo.org> xdvik-22.85.ebuild: keyword ~amd64-fbsd diff --git a/app-text/xdvik/metadata.xml b/app-text/xdvik/metadata.xml index 7cea18becba8..92ba90a0abfd 100644 --- a/app-text/xdvik/metadata.xml +++ b/app-text/xdvik/metadata.xml @@ -7,4 +7,7 @@ XDVIK is a dvi previewer on X with kpathsea support. It also supports multibyte character rendering via Xft2 (or VFlib2). </longdescription> + <use> + <flag name="Xaw">Use Xaw toolkit.</flag> + </use> </pkgmetadata> diff --git a/app-text/xdvik/xdvik-22.85-r1.ebuild b/app-text/xdvik/xdvik-22.85-r1.ebuild new file mode 100644 index 000000000000..f4a13ab9e9f0 --- /dev/null +++ b/app-text/xdvik/xdvik-22.85-r1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.85-r1.ebuild,v 1.1 2012/05/16 08:49:22 naota Exp $ + +EAPI=4 +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 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +SLOT="0" +LICENSE="GPL-2" +IUSE="motif neXt Xaw Xaw3d emacs" +REQUIRED_USE="^^ ( motif neXt Xaw Xaw3d )" + +RDEPEND=">=media-libs/t1lib-5.0.2 + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + motif? ( >=x11-libs/openmotif-2.3:0 ) + neXt? ( x11-libs/neXtaw ) + Xaw3d? ( x11-libs/libXaw3d ) + Xaw? ( x11-libs/libXaw ) + dev-libs/kpathsea" +DEPEND="sys-devel/flex + virtual/yacc + ${RDEPEND}" +RDEPEND="${RDEPEND} + virtual/latex-base + !<app-text/texlive-2007" +TEXMF_PATH=/usr/share/texmf +S=${WORKDIR}/${P}/texk/xdvik + +src_prepare() { + epatch "${FILESDIR}/${P}-mksedscript.patch" \ + "${FILESDIR}/${P}-mksedscript_gentoo.patch" + # Make sure system kpathsea headers are used + cd "${WORKDIR}/${P}/texk/kpathsea" + for i in *.h ; do echo "#include_next \"$i\"" > $i; done +} + +src_configure() { + local toolkit + + if use motif ; then + toolkit="motif" + elif use neXt ; then + toolkit="neXtaw" + elif use Xaw3d ; then + toolkit="xaw3d" + elif use Xaw ; then + toolkit="xaw" + else + die "Please specify one of motif, neXtaw, Xaw3d or Xaw to your USE flag." + fi + + econf \ + --with-system-t1lib \ + --with-system-kpathsea \ + --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea \ + --with-xdvi-x-toolkit="${toolkit}" +} + +src_compile() { + emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea" texmf="${EPREFIX}${TEXMF_PATH}" + use emacs && elisp-compile xdvi-search.el +} + +src_install() { + emake DESTDIR="${D}" install + + dodir /etc/texmf/xdvi /etc/X11/app-defaults + mv "${ED}${TEXMF_PATH}/xdvi/XDvi" "${ED}etc/X11/app-defaults" || die "failed to move config file" + dosym {/etc/X11/app-defaults,"${TEXMF_PATH}/xdvi"}/XDvi + for i in $(find "${ED}${TEXMF_PATH}/xdvi" -maxdepth 1 -type f) ; do + mv ${i} "${ED}etc/texmf/xdvi" || die "failed to move $i" + dosym {/etc/texmf,"${TEXMF_PATH}"}/xdvi/$(basename ${i}) + done + + dodoc BUGS FAQ README.* + + use emacs && elisp-install tex-utils *.el *.elc + + doicon "${FILESDIR}"/${PN}.xpm + make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer" + echo "MimeType=application/x-dvi;" >> "${ED}"usr/share/applications/xdvi-"${PN}".desktop +} + +pkg_postinst() { + if use emacs; then + elog "Add" + elog " (add-to-list 'load-path \"${EPREFIX}${SITELISP}/tex-utils\")" + elog " (require 'xdvi-search)" + elog "to your ~/.emacs file" + fi +} |