From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1D434158090 for ; Sat, 14 May 2022 00:47:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17BB2E08CD; Sat, 14 May 2022 00:47:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA1E0E08CD for ; Sat, 14 May 2022 00:47:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 01B4A3415EB for ; Sat, 14 May 2022 00:47:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9FCC7466 for ; Sat, 14 May 2022 00:47:27 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1652489133.119f2ff74998a57d25770ed806f9371c8fbbecad.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xdvik/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/xdvik/xdvik-22.87.03-r4.ebuild X-VCS-Directories: app-text/xdvik/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 119f2ff74998a57d25770ed806f9371c8fbbecad X-VCS-Branch: master Date: Sat, 14 May 2022 00:47:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aa203b8a-0b0a-4b3d-9380-7f93d05220e4 X-Archives-Hash: 30b58f9ab8f1335807e7f90b111f35b8 commit: 119f2ff74998a57d25770ed806f9371c8fbbecad Author: Sam James gentoo org> AuthorDate: Tue Apr 19 15:28:35 2022 +0000 Commit: Sam James gentoo 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 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 + ! ${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 +}