From 8ba94db1fe69019bb2d3b4f50fe9d1ccf3d94b3a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Feb 2023 08:00:22 +0000 Subject: gentoo auto-resync : 15:02:2023 - 08:00:21 --- app-text/Manifest.gz | Bin 49051 -> 49063 bytes app-text/xdvik/Manifest | 3 + .../files/xdvik-22.87.06-configure-clang16.patch | 51 +++++++++ app-text/xdvik/xdvik-22.87.06.ebuild | 114 +++++++++++++++++++++ 4 files changed, 168 insertions(+) create mode 100644 app-text/xdvik/files/xdvik-22.87.06-configure-clang16.patch create mode 100644 app-text/xdvik/xdvik-22.87.06.ebuild (limited to 'app-text') diff --git a/app-text/Manifest.gz b/app-text/Manifest.gz index 069ea3570747..9faf5ccbbc58 100644 Binary files a/app-text/Manifest.gz and b/app-text/Manifest.gz differ diff --git a/app-text/xdvik/Manifest b/app-text/xdvik/Manifest index 56f8f140a353..57884456f189 100644 --- a/app-text/xdvik/Manifest +++ b/app-text/xdvik/Manifest @@ -1,5 +1,8 @@ AUX xdvik-22.87.03-freetype2-config.patch 1019 BLAKE2B a675a238fb147dcb67eda572b9a3b1e1b1ab630726464eb740240be0815b9a9da5e5f7a8a6d404648f060995c64efb02acbb67fc907dd6139c6817f0bdb5a946 SHA512 be5b7de6957c5bb2ad884e5b3a6a21f074b84b6be08f519b80a24dacd8630b2bc75dc64e225dba388d17a01bfed6784b2862db2e6bab4b73a1f6d4aebf23a9c6 +AUX xdvik-22.87.06-configure-clang16.patch 1275 BLAKE2B 6d3e3108330ab2098b8712146d0c6c0aa866da21291562f69707219e098d3effb1b9404fe014e6f860fd5c65ae0d1d9bb5ced185f995ded7f71263dec7b8fb17 SHA512 bd0e59ca66d113510a35917a2ba0c1118d276a558836213e7a9e0485465a029e25abdd44131793e7697639f4c6617dc208494debaf8366144931e77c4e344dd2 AUX xdvik.xpm 3125 BLAKE2B 97990fbd5b22e51319c3f55bfe16808b01f215a92185a170620c8c0ef1dc44906e38af48ad056d4fb40a1777f92a88afaa0f80c0b36e7dd770954f7009d261a3 SHA512 697c888c481d7cbe7b42980d2ae93a8d25d781f926970d9040f8fbc6a37545349fbdbe2e8c98fb686e5a5ebe9a7a5ff661793d3a264fd8641182b0397365517d DIST xdvik-22.87.03.tar.gz 4760306 BLAKE2B d242696fadf2980cd307d4a172d2af06d98d07b090279440117f869c9a623bcade8745d7a4d3c108c4eafbdeaadefb8d5ba1ea00bdf77d350cbf83c49c2ca0fb SHA512 d4d418d78658f16d4d278e387ed484b291afc8623b00acaf4110e9f123ed76568714ad50f80588373657f412e8fff36f3e76b3e43f69756d46f031c0f2269a88 +DIST xdvik-22.87.06.tar.gz 5922131 BLAKE2B 88821b7642d2d79158f5b49a7d23dad2209750a44d2b75f131d77a5ee326670d2a9cf09246ea9226a386bce429890459625d87df697599529de1bfc32438bf64 SHA512 93fb231f20ef76e170ae954d076ac5421669b3db71e3a96561626736d516f639227e3e502012ba4612fd238172b82f512985c571702d6c0ce078e60a67e5b19f EBUILD xdvik-22.87.03-r4.ebuild 2857 BLAKE2B 8e6c0ed78bcd16c9ae0e96544e4b29d8cf136c4ee59853587eabdfe2f41a4a77382b7bfa80c00fe11bd9098e7a84f3e30f1a3bc51fc30744bd2a47f334d550d2 SHA512 b9264180fae4c2206cd84a3268fc7718b6a93633041be8b3cdf4490c22d9e2d60f2a14375b87093efccc4bfdaa463f82ee8c7d9d5dc553398b7b9bcb9c75156e +EBUILD xdvik-22.87.06.ebuild 2875 BLAKE2B 691a0b69150fa88f3c8dde0f44e1f02eefc37cb0f4a4c56ae4b1f3eada5d1b5d18a9d5448663740181839d2b7c0baf23d93a12a7b4d4b588b61097ffcab2ec35 SHA512 ebd3f2142e5e27397cae7b8048fd570f74def0e55487d6383c1df540217c53f65cc6799bfe22ac8b8deed97d618b98bcee4fb6274c51b3654f9c4c9e5a05721e MISC metadata.xml 595 BLAKE2B 200debd0214e5985f3f59cabdac72252b556edef5224c77f5dbd91de347f57ab492dd0f7ce846c335179344bc9215b02af61572ff859c9c44ca947235ce5062b SHA512 bf925b9c9738c62f26ebbb2f88782597d6cee471a19258b553e0dc7aa397443149adfceba6cfcdd045196eecc3319541b980850ba5e572f51266da1945b65e4a diff --git a/app-text/xdvik/files/xdvik-22.87.06-configure-clang16.patch b/app-text/xdvik/files/xdvik-22.87.06-configure-clang16.patch new file mode 100644 index 000000000000..c3b3f0b98bdb --- /dev/null +++ b/app-text/xdvik/files/xdvik-22.87.06-configure-clang16.patch @@ -0,0 +1,51 @@ +https://github.com/TeX-Live/texlive-source/commit/bb307f8bd91c5ea4f191b9c788056470626893b7 + +From bb307f8bd91c5ea4f191b9c788056470626893b7 Mon Sep 17 00:00:00 2001 +From: Karl Berry +Date: Thu, 2 Feb 2023 22:57:47 +0000 +Subject: [PATCH] avoid implicit wait and exit declarations for C99 + +git-svn-id: svn://tug.org/texlive/trunk/Build/source@65717 c570f23f-e606-0410-a88d-b1316a301751 +--- a/configure ++++ b/configure +@@ -16406,6 +16406,9 @@ else $as_nop + #ifdef HAVE_UNISTD_H + #include + #endif ++#ifdef HAVE_SYS_WAIT_H ++#include ++#endif + #ifdef HAVE_VFORK_H + #include + #endif +@@ -16427,7 +16430,7 @@ main (void) + + while (wait(&status) != child) + ; +- exit( ++ _exit( + /* Was there some problem with vforking? */ + child < 0 + +--- a/m4/xdvi-func-setsid-in-fork.m4 ++++ b/m4/xdvi-func-setsid-in-fork.m4 +@@ -22,6 +22,9 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], + #ifdef HAVE_UNISTD_H + #include + #endif ++#ifdef HAVE_SYS_WAIT_H ++#include ++#endif + #ifdef HAVE_VFORK_H + #include + #endif]], +@@ -40,7 +43,7 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], + + while (wait(&status) != child) + ; +- exit( ++ _exit( + /* Was there some problem with vforking? */ + child < 0 + + diff --git a/app-text/xdvik/xdvik-22.87.06.ebuild b/app-text/xdvik/xdvik-22.87.06.ebuild new file mode 100644 index 000000000000..37263ea0b5f1 --- /dev/null +++ b/app-text/xdvik/xdvik-22.87.06.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2023 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 ~loong ~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 + cd "${S}" || die + eapply "${FILESDIR}"/${PN}-22.87.06-configure-clang16.patch + 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 +} -- cgit v1.2.3