From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1120418-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 254E0138334 for <garchives@archives.gentoo.org>; Mon, 4 Nov 2019 12:19:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 549F3E0AED; Mon, 4 Nov 2019 12:19:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A91AE0AED for <gentoo-commits@lists.gentoo.org>; Mon, 4 Nov 2019 12:19:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A280C34C863 for <gentoo-commits@lists.gentoo.org>; Mon, 4 Nov 2019 12:19:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 455908A8 for <gentoo-commits@lists.gentoo.org>; Mon, 4 Nov 2019 12:19:29 +0000 (UTC) From: "Mikle Kolyada" <zlogene@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikle Kolyada" <zlogene@gentoo.org> Message-ID: <1572869963.17926890d484691ab648e8bedf47e300f78c7fd2.zlogene@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libcaca/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libcaca/libcaca-0.99_beta19-r1.ebuild X-VCS-Directories: media-libs/libcaca/ X-VCS-Committer: zlogene X-VCS-Committer-Name: Mikle Kolyada X-VCS-Revision: 17926890d484691ab648e8bedf47e300f78c7fd2 X-VCS-Branch: master Date: Mon, 4 Nov 2019 12:19:29 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8f5b7431-5ab4-46f4-88a9-6b1627fbcfe1 X-Archives-Hash: e58cdeb72cb6826be95c4a0a635c5b9a commit: 17926890d484691ab648e8bedf47e300f78c7fd2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> AuthorDate: Mon Nov 4 12:09:36 2019 +0000 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> CommitDate: Mon Nov 4 12:19:23 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17926890 media-libs/libcaca: migrate from dev-tex/xcolor Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> media-libs/libcaca/libcaca-0.99_beta19-r1.ebuild | 153 +++++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/media-libs/libcaca/libcaca-0.99_beta19-r1.ebuild b/media-libs/libcaca/libcaca-0.99_beta19-r1.ebuild new file mode 100644 index 00000000000..e173dd94144 --- /dev/null +++ b/media-libs/libcaca/libcaca-0.99_beta19-r1.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +RUBY_OPTIONAL=yes +#USE_RUBY=ruby20 + +inherit autotools ruby-ng eutils flag-o-matic mono-env multilib java-pkg-opt-2 python-single-r1 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" + +LICENSE="GPL-2 ISC LGPL-2.1 WTFPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86" +IUSE="cxx doc imlib java mono ncurses opengl python ruby slang static-libs test truetype X" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" +# ruby? ( ruby_targets_${USE_RUBY} ) + +COMMON_DEPEND="imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] ) + mono? ( dev-lang/mono ) + 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 ) + ) + python? ( ${PYTHON_DEPS} ) + slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] ) + X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] )" +# ruby? ( $(ruby_implementations_depend) ) +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.5 )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + virtual/latex-base + >=dev-texlive/texlive-fontsrecommended-2012 + >=dev-texlive/texlive-latexextra-2012 + dev-texlive/texlive-latexrecommended + ) + java? ( >=virtual/jdk-1.5 ) + test? ( dev-util/cppunit )" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS ChangeLog NEWS NOTES README THANKS ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + java-pkg-opt-2_pkg_setup + use mono && mono-env_pkg_setup +} + +src_unpack() { + default +} + +src_prepare() { + sed -i -e '/doxygen_tests = check-doxygen/d' test/Makefile.am || die #339962 + + sed -i \ + -e 's:-g -O2 -fno-strength-reduce -fomit-frame-pointer::' \ + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ + configure.ac || die + + sed -i \ + -e 's:$(JAVAC):$(JAVAC) $(JAVACFLAGS):' \ + -e 's:libcaca_java_la_CPPFLAGS =:libcaca_java_la_CPPFLAGS = -I$(top_srcdir)/caca:' \ + java/Makefile.am || 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 + + # Removed 'has_version '>=dev-texlive/texlive-latex-2013' &&' that prefixed this + # patch before wrt #517474 + epatch "${FILESDIR}"/${PN}-0.99_beta18-latex_hacks.patch + + # fix out of source tests + epatch "${FILESDIR}"/${PN}-0.99_beta18-fix-tests.patch + + eautoreconf + + java-pkg-opt-2_src_prepare +} + +multilib_src_configure() { + if multilib_is_native_abi; then + if use java; then + export JAVACFLAGS="$(java-pkg_javac-args)" + export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)" + fi + + use mono && export CSC="$(type -P gmcs)" #329651 + export VARTEXFONTS="${T}/fonts" #44128 + use ruby && use ruby_targets_${USE_RUBY} && export RUBY=$(ruby_implementation_command ${USE_RUBY}) + fi + + ECONF_SOURCE="${S}" \ + econf \ + $(use_enable static-libs static) \ + $(use_enable slang) \ + $(use_enable ncurses) \ + $(use_enable X x11) $(use_with X x) --x-libraries=/usr/$(get_libdir) \ + $(use_enable opengl gl) \ + $(use_enable cxx) \ + $(use_enable imlib imlib2) \ + $(use_enable test cppunit) \ + $(multilib_native_use_enable java) \ + $(multilib_native_use_enable ruby) \ + $(multilib_native_use_enable python) \ + $(multilib_native_use_enable mono csharp) \ + $(multilib_native_use_enable doc) +} + +multilib_src_compile() { + local _java_makeopts + use java && _java_makeopts="-j1" #480864 + emake V=1 ${_java_makeopts} +} + +multilib_src_test() { + emake V=1 -j1 check +} + +multilib_src_install() { + emake V=1 DESTDIR="${D}" install + + if multilib_is_native_abi && use java; then + java-pkg_newjar java/libjava.jar + fi +} + +multilib_src_install_all() { + einstalldocs + rm -rf "${D}"/usr/share/java + prune_libtool_files --modules +}