commit:     3cb87af8c5d060b0082840d8babd79005ec7ca9b
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Apr  6 13:44:58 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 13 09:17:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cb87af8

media-libs/t1lib: EAPI8 bump, fix bug #845306

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>

Closes: https://bugs.gentoo.org/845306
Closes: https://github.com/gentoo/gentoo/pull/36139
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 media-libs/t1lib/t1lib-5.1.2-r4.ebuild | 79 ++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)

diff --git a/media-libs/t1lib/t1lib-5.1.2-r4.ebuild 
b/media-libs/t1lib/t1lib-5.1.2-r4.ebuild
new file mode 100644
index 000000000000..c9f251b91a39
--- /dev/null
+++ b/media-libs/t1lib/t1lib-5.1.2-r4.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic libtool toolchain-funcs
+
+DESCRIPTION="Type 1 Font Rasterizer Library for UNIX/X11"
+HOMEPAGE="https://www.t1lib.org/";
+SRC_URI="https://www.ibiblio.org/pub/Linux/libs/graphics/${P}.tar.gz";
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="5"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x64-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 || die
+       sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" 
"${S}"/xglyph/xglyph.c || die
+       # 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}" -type f \( -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
+}

Reply via email to