summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-02-08 11:07:00 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-02-08 11:07:00 +0000
commit8b432ad7285f84c39446319e66459652016113a1 (patch)
tree0ea80ce7993dd8d077e878ceadb19e8a8f23206c /app-text/xdvik
parentFix wrong var name. (diff)
downloadhistorical-8b432ad7285f84c39446319e66459652016113a1.tar.gz
historical-8b432ad7285f84c39446319e66459652016113a1.tar.bz2
historical-8b432ad7285f84c39446319e66459652016113a1.zip
Add a desktop entry, by Pacho Ramos <pacho@condmat1.ciencias.uniovi.es>, bug #250693
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'app-text/xdvik')
-rw-r--r--app-text/xdvik/ChangeLog11
-rw-r--r--app-text/xdvik/Manifest10
-rw-r--r--app-text/xdvik/files/xdvik.pngbin0 -> 798 bytes
-rw-r--r--app-text/xdvik/xdvik-22.84.14-r1.ebuild124
4 files changed, 139 insertions, 6 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/Manifest b/app-text/xdvik/Manifest
index 521063e19680..824476e39b7f 100644
--- a/app-text/xdvik/Manifest
+++ b/app-text/xdvik/Manifest
@@ -1,15 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX xdvik.png 798 RMD160 b037217ce158c280019eac65aee6fe699f4c111b SHA1 e60a01c232b3b13bcf52e8118295bbc292bd6ae2 SHA256 87fc7b3f9623f613617b6f9157773029508714a56d1fd806805741ab93b2d3c9
DIST xdvik-22.84.14-j1.40.patch.gz 128380 RMD160 2ca532aa61f98485b71b49f2875df8be340b79a4 SHA1 dad05ea6e4c527b30d7f60a78e2197f9e9dbaafc SHA256 d5f18effe55bc920983728af225e53759167538db78757b811b8ed3e08ddf07a
DIST xdvik-22.84.14.tar.gz 2016256 RMD160 a19920fcc9e4e5d2878b16e65fa95bab5f034b74 SHA1 1ca7f0c7930d24c3e10cc1d7115abed7dd39e95e SHA256 2f09905989b3b4365e6778eedb8fa0cbc278abecc3188f5419f108e580dd9dcf
+EBUILD xdvik-22.84.14-r1.ebuild 4008 RMD160 70629a0ae66701fd922c1b7abc48e50ce8b50c1b SHA1 6c041abb138b204f26b912c64c67b4cb436eab22 SHA256 3d9b80f863ecb25d9c548caa4dca89a7bdedd9257054839dd8e3bbc338a0b82d
EBUILD xdvik-22.84.14.ebuild 3818 RMD160 0f1d4feca064d32c88a2c90b1e882c0b7233a6fb SHA1 4e4b387cde3b10b27b94245b5c12ec8c7b3410af SHA256 6ddced84087eac18982ed8ae6df0c8bb5e0f7bb03c0e76e13ddb33f767c522ca
-MISC ChangeLog 8349 RMD160 484aaecb58a7fe8cf8b1c24285648b5fbb074141 SHA1 a3c6cfc8bedffd5e3bbbaa30eeb539f9d871b25e SHA256 63fbf2bf4ea7af2a4f3cf0c1fa8d81612f79d44928f8e0fbf801185883395e04
+MISC ChangeLog 8572 RMD160 203d4aa84fdc226e08d13000ee2697c8b1ae6511 SHA1 6d7bf69683ed581aa95f0cfc5db3429bf049bc5a SHA256 6c903a3d66d868735d4a887981dec55fe189eac6bb256049aaed191eab7bfe62
MISC metadata.xml 351 RMD160 e0236b45acbcf41ef7883fd7e6779730e7850912 SHA1 7265aefd4237e321a3b5ae216e9bd79a7f20f156 SHA256 1348cd17584c52004c3d87ad5f2af2a6f87d921ffdeb1675827d8cb978ebad55
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAklMWbIACgkQvFcC4BYPU0ow6gCgsGQdx1dpC29VsyceXP4x1aWP
-7U8An3M1/Lot4Jghlw8kefMhuDC9qXTJ
-=JjSv
+iEYEARECAAYFAkmOvOAACgkQvFcC4BYPU0qJEwCgs+N/VlmkksnCXpzIM16seBmE
+i/cAoLkoHJMmY62akWlFraz7G91JFAJp
+=ynFN
-----END PGP SIGNATURE-----
diff --git a/app-text/xdvik/files/xdvik.png b/app-text/xdvik/files/xdvik.png
new file mode 100644
index 000000000000..ff180e1e12f5
--- /dev/null
+++ b/app-text/xdvik/files/xdvik.png
Binary files differ
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
+}