Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xdvik/
Date: Fri, 11 Sep 2020 09:38:30
Message-Id: 1599817074.bad39fe22734ce2a024aaf2e27a5834c87a757f4.zlogene@gentoo
1 commit: bad39fe22734ce2a024aaf2e27a5834c87a757f4
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 09:37:54 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 09:37:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bad39fe2
7
8 app-text/xdvik: Drop old
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-text/xdvik/xdvik-22.87.03-r1.ebuild | 109 --------------------------------
14 1 file changed, 109 deletions(-)
15
16 diff --git a/app-text/xdvik/xdvik-22.87.03-r1.ebuild b/app-text/xdvik/xdvik-22.87.03-r1.ebuild
17 deleted file mode 100644
18 index cfe5d3eb3bb..00000000000
19 --- a/app-text/xdvik/xdvik-22.87.03-r1.ebuild
20 +++ /dev/null
21 @@ -1,109 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -inherit elisp-common eutils flag-o-matic multilib toolchain-funcs xdg-utils
27 -
28 -DESCRIPTION="DVI previewer for X Window System"
29 -HOMEPAGE="http://xdvi.sourceforge.net/"
30 -SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz"
31 -
32 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
33 -SLOT="0"
34 -LICENSE="GPL-2"
35 -IUSE="motif neXt Xaw3d emacs"
36 -
37 -RDEPEND="media-libs/freetype:2
38 - x11-libs/libX11
39 - x11-libs/libXi
40 - x11-libs/libXmu
41 - x11-libs/libXpm
42 - x11-libs/libXt
43 - emacs? ( >=app-editors/emacs-23.1:* )
44 - motif? ( >=x11-libs/motif-2.3:0 )
45 - !motif? (
46 - neXt? ( x11-libs/neXtaw )
47 - !neXt? (
48 - Xaw3d? ( x11-libs/libXaw3d )
49 - !Xaw3d? ( x11-libs/libXaw )
50 - )
51 - )
52 - dev-libs/kpathsea"
53 -DEPEND="sys-devel/flex
54 - virtual/yacc
55 - virtual/pkgconfig
56 - ${RDEPEND}"
57 -RDEPEND="${RDEPEND}
58 - virtual/latex-base
59 - !<app-text/texlive-2007"
60 -S=${WORKDIR}/${P}/texk/xdvik
61 -
62 -src_prepare() {
63 - local i
64 - # Make sure system kpathsea headers are used
65 - cd "${WORKDIR}/${P}/texk/kpathsea"
66 - for i in *.h ; do echo "#include_next \"$i\"" > $i; done
67 -}
68 -
69 -src_configure() {
70 - has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
71 -
72 - local toolkit
73 -
74 - if use motif ; then
75 - toolkit="motif"
76 - use neXt && ewarn "neXt USE flag ignored (superseded by motif)"
77 - use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by motif)"
78 - elif use neXt ; then
79 - toolkit="neXtaw"
80 - use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by neXt)"
81 - elif use Xaw3d ; then
82 - toolkit="xaw3d"
83 - else
84 - toolkit="xaw"
85 - fi
86 -
87 - econf \
88 - --with-system-freetype2 \
89 - --with-system-kpathsea \
90 - --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea \
91 - --with-xdvi-x-toolkit="${toolkit}" \
92 - --x-includes="${SYSROOT}${EPREFIX}"/usr/include \
93 - --x-libraries="${SYSROOT}${EPREFIX}"/usr/$(get_libdir)
94 -}
95 -
96 -src_compile() {
97 - emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea"
98 - use emacs && elisp-compile xdvi-search.el
99 -}
100 -
101 -src_install() {
102 - dodir /usr/share/texmf-dist/dvips/config
103 -
104 - emake DESTDIR="${D}" install
105 -
106 - dosym ../../texmf-dist/xdvi/XDvi /usr/share/X11/app-defaults/XDvi
107 -
108 - dodoc BUGS FAQ README.*
109 -
110 - use emacs && elisp-install tex-utils *.el *.elc
111 -
112 - doicon "${FILESDIR}"/${PN}.xpm
113 - make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer"
114 - echo "MimeType=application/x-dvi;" >> "${ED}"usr/share/applications/xdvi-"${PN}".desktop
115 -}
116 -
117 -pkg_postinst() {
118 - xdg_desktop_database_update
119 -
120 - if use emacs; then
121 - elog "Add"
122 - elog " (add-to-list 'load-path \"${EPREFIX}${SITELISP}/tex-utils\")"
123 - elog " (require 'xdvi-search)"
124 - elog "to your ~/.emacs file"
125 - fi
126 -}
127 -
128 -pkg_postrm() {
129 - xdg_desktop_database_update
130 -}