From 64e107b9b6058580ff0432107eb37cefb0b2a7d8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 22 Oct 2018 11:09:47 +0100 Subject: gentoo resync : 22.10.2018 --- app-text/xdvik/Manifest | 4 +- .../files/xdvik-22.87.03-freetype2-config.patch | 23 ++++ app-text/xdvik/xdvik-22.87.03-r1.ebuild | 3 +- app-text/xdvik/xdvik-22.87.03-r2.ebuild | 116 +++++++++++++++++++++ 4 files changed, 144 insertions(+), 2 deletions(-) create mode 100644 app-text/xdvik/files/xdvik-22.87.03-freetype2-config.patch create mode 100644 app-text/xdvik/xdvik-22.87.03-r2.ebuild (limited to 'app-text/xdvik') diff --git a/app-text/xdvik/Manifest b/app-text/xdvik/Manifest index f3b9b45b3cbc..5ca545fed7b7 100644 --- a/app-text/xdvik/Manifest +++ b/app-text/xdvik/Manifest @@ -1,4 +1,6 @@ +AUX xdvik-22.87.03-freetype2-config.patch 1019 BLAKE2B a675a238fb147dcb67eda572b9a3b1e1b1ab630726464eb740240be0815b9a9da5e5f7a8a6d404648f060995c64efb02acbb67fc907dd6139c6817f0bdb5a946 SHA512 be5b7de6957c5bb2ad884e5b3a6a21f074b84b6be08f519b80a24dacd8630b2bc75dc64e225dba388d17a01bfed6784b2862db2e6bab4b73a1f6d4aebf23a9c6 AUX xdvik.xpm 3125 BLAKE2B 97990fbd5b22e51319c3f55bfe16808b01f215a92185a170620c8c0ef1dc44906e38af48ad056d4fb40a1777f92a88afaa0f80c0b36e7dd770954f7009d261a3 SHA512 697c888c481d7cbe7b42980d2ae93a8d25d781f926970d9040f8fbc6a37545349fbdbe2e8c98fb686e5a5ebe9a7a5ff661793d3a264fd8641182b0397365517d DIST xdvik-22.87.03.tar.gz 4760306 BLAKE2B d242696fadf2980cd307d4a172d2af06d98d07b090279440117f869c9a623bcade8745d7a4d3c108c4eafbdeaadefb8d5ba1ea00bdf77d350cbf83c49c2ca0fb SHA512 d4d418d78658f16d4d278e387ed484b291afc8623b00acaf4110e9f123ed76568714ad50f80588373657f412e8fff36f3e76b3e43f69756d46f031c0f2269a88 -EBUILD xdvik-22.87.03-r1.ebuild 2759 BLAKE2B 94d4d96f58185f1a9a09b3049d2c20f9512a3e40944dfda58cfa15d5f17c5be3d9db0f3b7a5269edecf5ef0a2a023b72435aa069d16fc3fcc73e4e72e7c9a114 SHA512 1ab69335e01a7e8d5d4620015028041404c77ee8f56cbe0365f2f0b9c33aaaf434ced8999c86708a86f212ec8b6bf7370914fb3208bfb8f95f7cd2aaa4368037 +EBUILD xdvik-22.87.03-r1.ebuild 2782 BLAKE2B d20a9864521e5c6605393c63ecc76649194a4e305b4e9259c2002f963c53c55c29d61a03c5755ba3d5b91a2f8e4d28a03028e180223e0ef36fdf4987b0c4cea9 SHA512 eb072fce7b045f3a4318741935c0c23f40981e84ba5f9f9a8c936050c0537c8ba73b99455a4d0e80c349ae4e5a869d40aaae417175f985f7bbaa719b980f91f9 +EBUILD xdvik-22.87.03-r2.ebuild 2923 BLAKE2B 2e2721893d1e2378e80d81e62910ce5194460e0e4598e0f71a1b27c53899ccf4205d62a28751291117939ea098b762fd61b7f06a799be83a34063350595d158e SHA512 5d5ce903b6d8fd592c151cc06220b145d4db309eeb3a2e7b1d31ad65cb8f1e918068afcdbc2e9f38826d0947cf4d2b82eff0cc370448a59e07da23fc83d6379a MISC metadata.xml 594 BLAKE2B 338b1aedaaf7426ed8bc2b9ae08e03f9fd6170b0714f938fc97a0f4555e8daa385635200bcbea4d0959604fad44db3212bd7436ac70b2e49ba353dd48713e7c6 SHA512 b1563a6578aec4be3df4b47c9914de3ad80a8859e60bce3a9b3e48f1b8bff3c38dd266523c913ab97bafa2c0804ab5003b5a449858582ef934044d80065c5cdd diff --git a/app-text/xdvik/files/xdvik-22.87.03-freetype2-config.patch b/app-text/xdvik/files/xdvik-22.87.03-freetype2-config.patch new file mode 100644 index 000000000000..6387b28c8ba2 --- /dev/null +++ b/app-text/xdvik/files/xdvik-22.87.03-freetype2-config.patch @@ -0,0 +1,23 @@ +--- a/m4/kpse-freetype2-flags.m4 2018-09-19 10:19:06.437789178 +0100 ++++ b/m4/kpse-freetype2-flags.m4 2018-09-19 10:23:48.556050046 +0100 +@@ -21,17 +21,10 @@ + + # KPSE_FREETYPE2_OPTIONS([WITH-SYSTEM]) + # ------------------------------------- +-AC_DEFUN([KPSE_FREETYPE2_OPTIONS], [_KPSE_LIB_OPTIONS([freetype2], [$1], [freetype-config])]) ++AC_DEFUN([KPSE_FREETYPE2_OPTIONS], [_KPSE_LIB_OPTIONS([freetype2], [$1], [pkg-config])]) + + # KPSE_FREETYPE2_SYSTEM_FLAGS + # --------------------------- + AC_DEFUN([KPSE_FREETYPE2_SYSTEM_FLAGS], [dnl +-AC_REQUIRE([AC_CANONICAL_HOST])[]dnl +-AC_CHECK_TOOL([FT2_CONFIG], [freetype-config], [false])[]dnl +-if $FT2_CONFIG --ftversion >/dev/null 2>&1; then +- FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags` +- FREETYPE2_LIBS=`$FT2_CONFIG --libs` +-elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then +- AC_MSG_ERROR([did not find freetype-config required for system freetype2 library]) +-fi +-]) # KPSE_FREETYPE2_SYSTEM_FLAGS ++_KPSE_PKG_CONFIG_FLAGS([freetype2], [freetype2])]) ++ diff --git a/app-text/xdvik/xdvik-22.87.03-r1.ebuild b/app-text/xdvik/xdvik-22.87.03-r1.ebuild index 9c61d7036507..dc814d5d0db8 100644 --- a/app-text/xdvik/xdvik-22.87.03-r1.ebuild +++ b/app-text/xdvik/xdvik-22.87.03-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -19,6 +19,7 @@ RDEPEND="media-libs/freetype:2 x11-libs/libXmu x11-libs/libXpm x11-libs/libXt + emacs? ( virtual/emacs ) motif? ( >=x11-libs/motif-2.3:0 ) !motif? ( neXt? ( x11-libs/neXtaw ) diff --git a/app-text/xdvik/xdvik-22.87.03-r2.ebuild b/app-text/xdvik/xdvik-22.87.03-r2.ebuild new file mode 100644 index 000000000000..34a4d9669b4e --- /dev/null +++ b/app-text/xdvik/xdvik-22.87.03-r2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools elisp-common eutils flag-o-matic multilib toolchain-funcs xdg-utils + +DESCRIPTION="DVI previewer for X Window System" +HOMEPAGE="http://xdvi.sourceforge.net/" +SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +SLOT="0" +LICENSE="GPL-2" +IUSE="motif neXt Xaw3d emacs" + +CDEPEND=">=media-libs/freetype-2.9.1-r2:2 + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + emacs? ( virtual/emacs ) + motif? ( >=x11-libs/motif-2.3:0 ) + !motif? ( + neXt? ( x11-libs/neXtaw ) + !neXt? ( + Xaw3d? ( x11-libs/libXaw3d ) + !Xaw3d? ( x11-libs/libXaw ) + ) + ) + dev-libs/kpathsea" +DEPEND="sys-devel/flex + virtual/yacc + virtual/pkgconfig + ${CDEPEND}" +RDEPEND="${CDEPEND} + virtual/latex-base + ! $i; done + + cd "${WORKDIR}/${P}" + eapply "${FILESDIR}"/${P}-freetype2-config.patch + cd "${S}" + eautoreconf + + eapply_user +} + +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="${SYSROOT}${EPREFIX}"/usr/include \ + --x-libraries="${SYSROOT}${EPREFIX}"/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_desktop_database_update + + 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 +} + +pkg_postrm() { + xdg_desktop_database_update +} -- cgit v1.2.3