From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xdvik/
Date: Sat, 14 May 2022 00:47:27 +0000 (UTC) [thread overview]
Message-ID: <1652489133.119f2ff74998a57d25770ed806f9371c8fbbecad.sam@gentoo> (raw)
commit: 119f2ff74998a57d25770ed806f9371c8fbbecad
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 15:28:35 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 14 00:45:33 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119f2ff7
app-text/xdvik: [QA] inline ESYSROOT, EAPI 8
ESYSROOT is SYSROOT/EPREFIX in >= EAPI 7
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-text/xdvik/xdvik-22.87.03-r4.ebuild | 114 ++++++++++++++++++++++++++++++++
1 file changed, 114 insertions(+)
diff --git a/app-text/xdvik/xdvik-22.87.03-r4.ebuild b/app-text/xdvik/xdvik-22.87.03-r4.ebuild
new file mode 100644
index 000000000000..1d19d16bb0f7
--- /dev/null
+++ b/app-text/xdvik/xdvik-22.87.03-r4.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop elisp-common flag-o-matic toolchain-funcs xdg
+
+DESCRIPTION="DVI previewer for X Window System"
+HOMEPAGE="http://xdvi.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz"
+S="${WORKDIR}"/${P}/texk/xdvik
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="motif neXt Xaw3d emacs"
+
+DEPEND=">=media-libs/freetype-2.9.1-r2:2
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ emacs? ( >=app-editors/emacs-23.1:* )
+ motif? ( >=x11-libs/motif-2.3:0 )
+ !motif? (
+ neXt? ( x11-libs/neXtaw )
+ !neXt? (
+ Xaw3d? ( x11-libs/libXaw3d )
+ !Xaw3d? ( x11-libs/libXaw )
+ )
+ )
+ dev-libs/kpathsea:="
+RDEPEND="${DEPEND}
+ virtual/latex-base
+ !<app-text/texlive-2007"
+BDEPEND="sys-devel/flex
+ virtual/yacc
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ # Make sure system kpathsea headers are used
+ cd "${WORKDIR}/${P}/texk/kpathsea" || die
+ local i
+ for i in *.h ; do
+ echo "#include_next \"$i\"" > ${i} || die
+ done
+
+ cd "${WORKDIR}/${P}" || die
+ eapply "${FILESDIR}"/${P}-freetype2-config.patch
+ cd "${S}" || die
+ eautoreconf
+}
+
+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="${ESYSROOT}"/usr/include \
+ --x-libraries="${ESYSROOT}"/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 ../../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() {
+ xdg_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
+}
next reply other threads:[~2022-05-14 0:47 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-14 0:47 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-09 8:26 [gentoo-commits] repo/gentoo:master commit in: app-text/xdvik/ Florian Schmaus
2024-08-25 14:17 Andreas K. Hüttel
2024-06-18 12:23 Florian Schmaus
2024-02-27 15:18 Florian Schmaus
2023-07-07 21:53 Conrad Kostecki
2023-05-27 13:31 Arthur Zamarin
2023-05-27 10:13 Sam James
2023-05-23 0:10 Sam James
2023-05-19 17:50 Sam James
2023-05-19 17:45 Sam James
2023-05-19 17:45 Sam James
2023-05-19 10:42 Arthur Zamarin
2023-05-05 10:43 Arthur Zamarin
2023-03-24 14:08 Arthur Zamarin
2023-02-23 15:28 Pacho Ramos
2022-12-08 7:38 WANG Xuerui
2022-08-02 18:47 Arthur Zamarin
2022-08-02 16:01 Arthur Zamarin
2022-08-02 16:01 Arthur Zamarin
2022-08-02 7:48 Joonas Niilola
2021-12-13 18:37 Arthur Zamarin
2020-09-11 9:38 Mikle Kolyada
2020-08-30 1:13 Sam James
2020-08-28 10:26 Mikle Kolyada
2018-10-10 23:58 Naohiro Aota
2018-03-21 21:41 Ulrich Müller
2017-09-28 17:18 Mike Gilbert
2017-08-24 15:53 Michał Górny
2017-06-21 13:54 Alexis Ballier
2017-06-17 19:15 Sergei Trofimovich
2017-06-17 11:11 Alexis Ballier
2017-02-17 8:17 Michael Weber
2017-01-29 15:24 Fabian Groffen
2017-01-22 15:25 Agostino Sarubbo
2017-01-22 8:18 Tobias Klausmann
2017-01-21 21:53 Agostino Sarubbo
2017-01-21 21:41 Agostino Sarubbo
2016-04-05 11:29 Alexis Ballier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1652489133.119f2ff74998a57d25770ed806f9371c8fbbecad.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox