public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libcaca/
Date: Fri,  9 Sep 2022 07:59:39 +0000 (UTC)	[thread overview]
Message-ID: <1662710348.899d5b5e60fe55be227ca30d0267e54c7665e0c3.soap@gentoo> (raw)

commit:     899d5b5e60fe55be227ca30d0267e54c7665e0c3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  9 07:59:08 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Sep  9 07:59:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=899d5b5e

media-libs/libcaca: limit multilib features, drop masked java & mono support

No reverse dependencies need these.

Gist is:
```
-		$(use_enable slang)
-		$(use_enable ncurses)
-		$(use_enable X x11)
-		$(use_with X x)
+		$(multilib_native_use_enable slang)
+		$(multilib_native_use_enable ncurses)
+		$(multilib_native_use_enable X x11)
+		$(multilib_native_use_with X x)
```

Java and mono support in this package have been broken
for a long time, so hard-disable it.

Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/libcaca/libcaca-0.99_beta19-r9.ebuild | 143 +++++++++++++++++++++++
 1 file changed, 143 insertions(+)

diff --git a/media-libs/libcaca/libcaca-0.99_beta19-r9.ebuild b/media-libs/libcaca/libcaca-0.99_beta19-r9.ebuild
new file mode 100644
index 000000000000..29de0d6f6dee
--- /dev/null
+++ b/media-libs/libcaca/libcaca-0.99_beta19-r9.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+RUBY_OPTIONAL=yes
+
+inherit autotools ruby-ng flag-o-matic toolchain-funcs multilib-minimal
+
+MY_P=${P/_/.}
+DESCRIPTION="A library that creates colored ASCII-art graphics"
+HOMEPAGE="http://libcaca.zoy.org/"
+SRC_URI="http://libcaca.zoy.org/files/${PN}/${MY_P}.tar.gz"
+S="${WORKDIR}/all/${MY_P}"
+
+LICENSE="GPL-2 ISC LGPL-2.1 WTFPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+IUSE="doc imlib ncurses opengl ruby slang static-libs test truetype X"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE=""
+
+DEPEND="
+	imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] )
+	ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )
+	opengl? (
+		>=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
+		>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+		>=media-libs/freeglut-2.8.1[${MULTILIB_USEDEP}]
+		truetype? ( >=media-libs/ftgl-2.1.3_rc5 )
+	)
+	slang? ( >=sys-libs/slang-2.2.4-r1 )
+	X? (
+		>=x11-libs/libX11-1.6.2
+		>=x11-libs/libXt-1.1.4
+	)
+"
+BDEPEND="
+	virtual/pkgconfig
+	doc? (
+		app-doc/doxygen
+		virtual/latex-base
+		>=dev-texlive/texlive-fontsrecommended-2012
+		>=dev-texlive/texlive-latexextra-2012
+		dev-texlive/texlive-latexrecommended
+	)
+	test? ( dev-util/cppunit )
+"
+
+DOCS=( AUTHORS ChangeLog NEWS NOTES README THANKS )
+
+PATCHES=(
+	# Fix out of source tests
+	"${FILESDIR}"/${PN}-0.99_beta18-fix-tests.patch
+	# Debian patches
+	"${FILESDIR}/CVE-2018-20544.patch"
+	"${FILESDIR}/CVE-2018-20545+20547+20549.patch"
+	"${FILESDIR}/CVE-2018-20546+20547.patch"
+	"${FILESDIR}/canvas-fix-an-integer-overflow-in-caca_resize.patch"
+	"${FILESDIR}/Fix-a-problem-in-the-caca_resize-overflow-detection-.patch"
+	"${FILESDIR}/100_doxygen.diff"
+	# Fix doxygen docs install, bug 543870
+	"${FILESDIR}/fix-css-path.patch"
+)
+
+pkg_setup() {
+	use ruby && ruby-ng_pkg_setup
+}
+
+src_prepare() {
+	# bug #339962
+	sed -i -e '/doxygen_tests = check-doxygen/d' test/Makefile.am || die
+
+	sed -i \
+		-e 's:-g -O2 -fno-strength-reduce -fomit-frame-pointer::' \
+		-e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
+		configure.ac || die
+
+	if ! use truetype; then
+		sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die
+	fi
+
+	if use imlib && ! use X; then
+		append-cflags -DX_DISPLAY_MISSING
+	fi
+
+	# bug #653400
+	append-cxxflags -std=c++11
+
+	# bug #601902
+	append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)"
+
+	# fix docs install path, bug 543870#c14
+	sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
+
+	default
+	eautoreconf
+}
+
+multilib_src_configure() {
+	if multilib_is_native_abi; then
+		# bug #44128
+		export VARTEXFONTS="${T}/fonts"
+
+		# bug #329651
+		use ruby && use ruby_targets_${USE_RUBY} && export RUBY=$(ruby_implementation_command ${USE_RUBY})
+	fi
+
+	local myeconfargs=(
+		$(use_enable static-libs static)
+		$(multilib_native_use_enable slang)
+		$(multilib_native_use_enable ncurses)
+		$(multilib_native_use_enable X x11)
+		$(multilib_native_use_with X x)
+		--x-libraries=/usr/$(get_libdir)
+		$(use_enable opengl gl)
+		--enable-cxx
+		$(use_enable imlib imlib2)
+		$(use_enable test cppunit)
+		--disable-java
+		$(multilib_native_use_enable ruby)
+		--disable-python
+		--disable-csharp
+		$(multilib_native_use_enable doc)
+	)
+
+	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+	emake V=1
+}
+
+multilib_src_test() {
+	emake V=1 -j1 check
+}
+
+multilib_src_install_all() {
+	einstalldocs
+
+	find "${ED}" -name '*.la' -delete || die
+}


             reply	other threads:[~2022-09-09  7:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09  7:59 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-20 18:37 [gentoo-commits] repo/gentoo:master commit in: media-libs/libcaca/ Sam James
2023-03-31  5:32 罗百科
2022-11-19  4:50 WANG Xuerui
2022-11-07 21:10 Ionen Wolkens
2022-10-10 22:06 Sam James
2022-10-10 22:06 Sam James
2022-07-29  4:17 Sam James
2021-10-02 22:52 James Le Cuirot
2021-06-18 14:56 Sam James
2021-06-18 14:33 Sam James
2021-06-03 22:52 Sam James
2021-05-28 14:40 Sergei Trofimovich
2021-05-28  0:29 Sam James
2021-05-27 19:22 Sam James
2021-05-25 19:10 Agostino Sarubbo
2021-05-25 18:58 Agostino Sarubbo
2021-05-25 16:55 Sam James
2021-05-25  8:25 Yixun Lan
2021-03-02  5:47 Sam James
2021-03-01 17:40 Sam James
2021-03-01 17:40 Sam James
2021-03-01 17:34 Sam James
2020-08-22  8:04 Michał Górny
2019-11-05 18:31 Michał Górny
2019-11-04 12:19 Mikle Kolyada
2019-11-04 12:19 Mikle Kolyada
2018-06-30 11:29 David Seifert
2018-06-30 11:29 David Seifert
2018-06-28 13:55 Mikle Kolyada
2017-06-16 10:37 Alexis Ballier
2017-01-15 20:45 Jeroen Roovers
2016-12-20 19:21 Tobias Klausmann
2016-12-07  6:42 Jason Zaman
2016-10-28  4:54 Markus Meier
2016-10-16 17:45 Tobias Klausmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1662710348.899d5b5e60fe55be227ca30d0267e54c7665e0c3.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox