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 5E10715808B for ; Sun, 13 Feb 2022 21:08:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E221E08A0; Sun, 13 Feb 2022 21:08:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 39055E08A8 for ; Sun, 13 Feb 2022 21:08:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 576BB343367 for ; Sun, 13 Feb 2022 21:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A90D52D6 for ; Sun, 13 Feb 2022 21:08:28 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1644786437.5a4f7390ae5f55f09281378d28c4503c9b44ce92.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/t1lib/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/t1lib/t1lib-5.1.2-r3.ebuild X-VCS-Directories: media-libs/t1lib/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 5a4f7390ae5f55f09281378d28c4503c9b44ce92 X-VCS-Branch: master Date: Sun, 13 Feb 2022 21:08:28 +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: c6949f90-4afe-4973-9a7b-062ff35bff22 X-Archives-Hash: 46ec5f5d55707945af5e32ad0a66d90b commit: 5a4f7390ae5f55f09281378d28c4503c9b44ce92 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Feb 13 00:00:41 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Feb 13 21:07:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4f7390 media-libs/t1lib: fix DeprecatedInsinto Signed-off-by: Conrad Kostecki gentoo.org> media-libs/t1lib/t1lib-5.1.2-r3.ebuild | 79 ++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/media-libs/t1lib/t1lib-5.1.2-r3.ebuild b/media-libs/t1lib/t1lib-5.1.2-r3.ebuild new file mode 100644 index 000000000000..59f9ec97632a --- /dev/null +++ b/media-libs/t1lib/t1lib-5.1.2-r3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit flag-o-matic libtool toolchain-funcs + +DESCRIPTION="A Type 1 Font Rasterizer Library for UNIX/X11" +HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics/" +SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz" + +LICENSE="LGPL-2 GPL-2" +SLOT="5" +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" +IUSE="X doc static-libs" + +RDEPEND="X? ( + x11-libs/libXaw + x11-libs/libX11 + x11-libs/libXt + )" +DEPEND="${RDEPEND} + doc? ( virtual/latex-base ) + X? ( x11-base/xorg-proto )" + +PATCHES=( + "${FILESDIR}"/${PN}-5.1.1-parallel.patch + "${FILESDIR}"/${PN}-do-not-install-t1lib_doc-r1.patch + "${FILESDIR}"/${PN}-5.1.2-format-security.patch + "${FILESDIR}"/${PN}-5.1.2-CVE-2010-2642_2011-0433_2011-5244.patch + "${FILESDIR}"/${PN}-5.1.2-CVE-2011-0764.patch + "${FILESDIR}"/${PN}-5.1.2-CVE-2011-1552_1553_1554.patch +) + +src_prepare() { + default + + sed -i -e "s:dvips:#dvips:" "${S}"/doc/Makefile.in + sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" "${S}"/xglyph/xglyph.c + # Needed for sane .so versionning on fbsd. Please don't drop. + elibtoolize +} + +src_configure() { + econf \ + --datadir="${EPREFIX}/etc" \ + $(use_enable static-libs static) \ + $(use_with X x) +} + +src_compile() { + local myopt="" + tc-export CC + + use alpha && append-flags -mieee + + if ! use doc; then + myopt="without_doc" + else + VARTEXFONTS=${T}/fonts + fi + + emake ${myopt} +} + +src_install() { + default + + if ! use static-libs; then + find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die + fi + + dodoc Changes README* + if use doc; then + docinto pdf + dodoc doc/*.pdf + docompress -x /usr/share/doc/${PF}/pdf + fi +}