diff options
author | Naohiro Aota <naota@gentoo.org> | 2014-04-23 09:19:55 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2014-04-23 09:19:55 +0000 |
commit | f23d9a8908041bcb1862e71454fb6765626cf4fa (patch) | |
tree | a13cfad60d5ea8b52da00c51d11dff217b236092 /app-text/xdvik | |
parent | Mask vst USE flag on all arches except x86 (diff) | |
download | gentoo-2-f23d9a8908041bcb1862e71454fb6765626cf4fa.tar.gz gentoo-2-f23d9a8908041bcb1862e71454fb6765626cf4fa.tar.bz2 gentoo-2-f23d9a8908041bcb1862e71454fb6765626cf4fa.zip |
Version bump wrt #508298
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'app-text/xdvik')
-rw-r--r-- | app-text/xdvik/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/xdvik/xdvik-22.87.ebuild | 98 |
2 files changed, 105 insertions, 2 deletions
diff --git a/app-text/xdvik/ChangeLog b/app-text/xdvik/ChangeLog index daeda8fa6c65..be29440fa026 100644 --- a/app-text/xdvik/ChangeLog +++ b/app-text/xdvik/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/xdvik -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.105 2013/05/18 00:17:33 aballier Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.106 2014/04/23 09:19:55 naota Exp $ + +*xdvik-22.87 (23 Apr 2014) + + 23 Apr 2014; Naohiro Aota <naota@gentoo.org> +xdvik-22.87.ebuild: + Version bump wrt #508298 *xdvik-22.86 (18 May 2013) diff --git a/app-text/xdvik/xdvik-22.87.ebuild b/app-text/xdvik/xdvik-22.87.ebuild new file mode 100644 index 000000000000..ec83aab779d9 --- /dev/null +++ b/app-text/xdvik/xdvik-22.87.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.87.ebuild,v 1.1 2014/04/23 09:19:55 naota Exp $ + +EAPI=5 +inherit eutils flag-o-matic elisp-common toolchain-funcs multilib + +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 ~mips ~ppc ~ppc64 ~s390 ~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 Xaw3d emacs" + +RDEPEND="media-libs/freetype:2 + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + motif? ( >=x11-libs/motif-2.3:0 ) + !motif? ( + neXt? ( x11-libs/neXtaw ) + !neXt? ( + Xaw3d? ( x11-libs/libXaw3d ) + !Xaw3d? ( x11-libs/libXaw ) + ) + ) + dev-libs/kpathsea" +DEPEND="sys-devel/flex + virtual/yacc + ${RDEPEND}" +RDEPEND="${RDEPEND} + virtual/latex-base + !<app-text/texlive-2007" +S=${WORKDIR}/${P}/texk/xdvik + +src_prepare() { + local i + # 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" + use neXt && ewarn "neXt USE flag ignored (superseded by motif)" + use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by motif)" + elif use neXt ; then + toolkit="neXtaw" + use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by neXt)" + elif use Xaw3d ; then + toolkit="xaw3d" + else + toolkit="xaw" + fi + + econf \ + --with-system-freetype2 \ + --with-system-kpathsea \ + --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea \ + --with-xdvi-x-toolkit="${toolkit}" \ + --x-includes="${EPREFIX}"/usr/include \ + --x-libraries="${EPREFIX}"/usr/$(get_libdir) +} + +src_compile() { + emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea" + use emacs && elisp-compile xdvi-search.el +} + +src_install() { + dodir /usr/share/texmf-dist/dvips/config + + emake DESTDIR="${D}" install + + dosym /usr/share/texmf-dist/xdvi/XDvi /usr/share/X11/app-defaults/XDvi + + 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 +} |