diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-04-05 13:27:04 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-04-05 13:27:04 +0200 |
commit | f5a896b17fdf8594fd8a7da36d7af5fdee58917a (patch) | |
tree | fe15ba3ea4cf751952906370b5af5f483820bbe5 /app-text/xdvik | |
parent | dev-libs/sdformat: bump to 4.1.0 (diff) | |
download | gentoo-f5a896b17fdf8594fd8a7da36d7af5fdee58917a.tar.gz gentoo-f5a896b17fdf8594fd8a7da36d7af5fdee58917a.tar.bz2 gentoo-f5a896b17fdf8594fd8a7da36d7af5fdee58917a.zip |
app-text/xdvik: bump to 22.87.03
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'app-text/xdvik')
-rw-r--r-- | app-text/xdvik/Manifest | 1 | ||||
-rw-r--r-- | app-text/xdvik/xdvik-22.87.03.ebuild | 102 |
2 files changed, 103 insertions, 0 deletions
diff --git a/app-text/xdvik/Manifest b/app-text/xdvik/Manifest index fb266ac326b5..9bf7cb354f34 100644 --- a/app-text/xdvik/Manifest +++ b/app-text/xdvik/Manifest @@ -1,3 +1,4 @@ DIST xdvik-22.85.tar.gz 4128828 SHA256 91f08103e53ab46efc83053e648bdd07aa100043233dadcb7384efc83fa2dde8 SHA512 9220bac0dea21d617b4ea7129ca8133fd447fb1adc26c699970cae7d3e168e32f4745b0936d18d8f769f3926c526e085f0c92a4d99d5faff8301e3c4ebc297b5 WHIRLPOOL 57ffc2d6a326b754b63aed54836c05b2e9431b01faba6d9bdc347b07094a62a7569d7746f556366b282808cc93a41a81cbda4fd82cdf4972133f8addc74e4e75 DIST xdvik-22.86.tar.gz 4412419 SHA256 a3dffb8d878e6039ebc168d3bd82d194912dac53177673f818d0baac2dc27203 SHA512 f2cf15b8f94ae1a43b749fc9355eac1b427a41d690299ad4a221d51ef21eb0adcf6986c13f03d8c681e6cc2522229a2843b5c6f1ad359c5f0a28933e6d11c8eb WHIRLPOOL 8031f1ddc0eb8de415446752c07c0b7a22f35ffcd6f44a2b025cdb1bf1593bbe37306da5c93d620fe9f00b14fd6fc061c0f432afd7294ccf774e5e4e4fbd8f9d +DIST xdvik-22.87.03.tar.gz 4760306 SHA256 a1b8631b6650c534cf8dc584a9f106b5df0771613743139c8a644a19f14611fc SHA512 d4d418d78658f16d4d278e387ed484b291afc8623b00acaf4110e9f123ed76568714ad50f80588373657f412e8fff36f3e76b3e43f69756d46f031c0f2269a88 WHIRLPOOL da8227daa34ac69b60c447e3c929aaf353697add104245b64815b2f42ad03c189c353c7b4d34359f5897a26e5dd811fa3ef21254ee18c243d557860f697bfba6 DIST xdvik-22.87.tar.gz 4600576 SHA256 920a20928b4360a1ab83843cffb98c129a54c6462ee014d0e5c4b209b8840ea7 SHA512 cb0c15e88ce42b25cd5edfc8fb84a8afdcc821a6444ba1c5f9f1365a7f62e57cbf37729b276de033b4abfd0f6fe32fa5789f6efd5a0c042e1195c4dc971c8b9f WHIRLPOOL 06ff8d6920ece92d711a432ed19998290f7bda30ad545b3c2bceb505f0fa3a03d680d6694f60a49c44d1b13b1429b45f6c451ec3f0d8f2723b74190065fc9417 diff --git a/app-text/xdvik/xdvik-22.87.03.ebuild b/app-text/xdvik/xdvik-22.87.03.ebuild new file mode 100644 index 000000000000..65a63faa1465 --- /dev/null +++ b/app-text/xdvik/xdvik-22.87.03.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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/libXi + 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 + virtual/pkgconfig + ${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() { + has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)" + + 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 +} |