From: "Alexis Ballier (aballier)" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
Date: Thu, 30 Jul 2015 12:59:10 +0000 (UTC) [thread overview]
Message-ID: <20150730125910.0C966C3@oystercatcher.gentoo.org> (raw)
aballier 15/07/30 12:59:10
Modified: texlive-module.eclass
Log:
Add support for TEXLIVE_MODULE_OPTIONAL_ENGINE eclass variable to allow disabling some tex engines from ebuilds. Part of bug #542620
Revision Changes Path
1.71 eclass/texlive-module.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.71&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.71&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.70&r2=1.71
Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- texlive-module.eclass 4 Nov 2014 10:32:30 -0000 1.70
+++ texlive-module.eclass 30 Jul 2015 12:59:09 -0000 1.71
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.70 2014/11/04 10:32:30 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.71 2015/07/30 12:59:09 aballier Exp $
# @ECLASS: texlive-module.eclass
# @MAINTAINER:
@@ -110,6 +110,17 @@
[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
+# @ECLASS-VARIABLE: TEXLIVE_MODULE_OPTIONAL_ENGINE
+# @DESCRIPTION:
+# A space separated list of Tex engines that can be made optional.
+# e.g. "luatex luajittex"
+
+if [ -n "${TEXLIVE_MODULE_OPTIONAL_ENGINE}" ] ; then
+ for engine in ${TEXLIVE_MODULE_OPTIONAL_ENGINE} ; do
+ IUSE="${IUSE} +${engine}"
+ done
+fi
+
S="${WORKDIR}"
# @FUNCTION: texlive-module_src_unpack
@@ -154,6 +165,7 @@
einfo "Appending to format.${PN}.cnf for $@"
[ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil
[ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; }
+ [ -n "${TEXLIVE_MODULE_OPTIONAL_ENGINE}" ] && has ${engine} ${TEXLIVE_MODULE_OPTIONAL_ENGINE} && use !${engine} && mode="disabled"
if [ "${mode}" = "disabled" ]; then
printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf
fi
next reply other threads:[~2015-07-30 12:59 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 12:59 Alexis Ballier (aballier) [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-11-04 10:32 [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass Alexis Ballier (aballier)
2014-03-09 18:56 Ulrich Mueller (ulm)
2013-07-05 22:43 Alexis Ballier (aballier)
2013-06-28 12:43 Alexis Ballier (aballier)
2013-06-26 19:22 Alexis Ballier (aballier)
2012-07-26 16:40 Alexis Ballier (aballier)
2012-07-26 16:30 Alexis Ballier (aballier)
2011-02-17 13:21 Alexis Ballier (aballier)
2010-11-07 19:46 Alexis Ballier (aballier)
2010-11-07 19:24 Alexis Ballier (aballier)
2010-10-24 16:26 Alexis Ballier (aballier)
2010-10-24 0:41 Alexis Ballier (aballier)
2010-10-23 23:51 Alexis Ballier (aballier)
2010-10-23 23:51 Alexis Ballier (aballier)
2010-10-23 23:37 Alexis Ballier (aballier)
2010-10-23 23:31 Alexis Ballier (aballier)
2010-10-23 23:30 Alexis Ballier (aballier)
2010-10-23 23:28 Alexis Ballier (aballier)
2010-10-23 23:26 Alexis Ballier (aballier)
2010-10-23 23:25 Alexis Ballier (aballier)
2010-10-23 23:24 Alexis Ballier (aballier)
2010-10-23 23:22 Alexis Ballier (aballier)
2010-10-23 23:21 Alexis Ballier (aballier)
2010-10-23 23:19 Alexis Ballier (aballier)
2010-10-23 23:18 Alexis Ballier (aballier)
2010-10-23 22:41 Alexis Ballier (aballier)
2010-10-23 21:48 Alexis Ballier (aballier)
2010-10-23 21:47 Alexis Ballier (aballier)
2010-10-23 16:38 Alexis Ballier (aballier)
2010-10-11 20:44 Alexis Ballier (aballier)
2010-10-11 18:26 Alexis Ballier (aballier)
2010-01-13 15:16 Christian Faulhammer (fauli)
2010-01-13 9:42 Alexis Ballier (aballier)
2010-01-07 20:36 Alexis Ballier (aballier)
2010-01-07 20:31 Alexis Ballier (aballier)
2010-01-07 19:16 Alexis Ballier (aballier)
2010-01-07 19:13 Alexis Ballier (aballier)
2010-01-07 18:42 Alexis Ballier (aballier)
2010-01-07 18:17 Alexis Ballier (aballier)
2009-11-12 19:04 Alexis Ballier (aballier)
2009-08-19 7:43 Alexis Ballier (aballier)
2009-08-14 11:52 Alexis Ballier (aballier)
2009-08-10 7:38 Alexis Ballier (aballier)
2009-06-21 10:34 Alexis Ballier (aballier)
2009-06-08 10:05 Alexis Ballier (aballier)
2008-11-06 19:02 Alexis Ballier (aballier)
2008-10-31 15:16 Alexis Ballier (aballier)
2008-09-02 10:00 Alexis Ballier (aballier)
2008-08-22 11:32 Alexis Ballier (aballier)
2008-08-22 11:31 Alexis Ballier (aballier)
2008-08-21 13:04 Alexis Ballier (aballier)
2008-07-15 10:33 Alexis Ballier (aballier)
2008-07-14 16:42 Alexis Ballier (aballier)
2008-07-03 22:36 Alexis Ballier (aballier)
2008-07-03 22:33 Alexis Ballier (aballier)
2008-07-03 21:06 Alexis Ballier (aballier)
2008-01-20 0:14 Alexis Ballier (aballier)
2007-12-02 22:47 Alexis Ballier (aballier)
2007-10-27 14:30 Alexis Ballier (aballier)
2007-10-20 17:15 Alexis Ballier (aballier)
2007-10-17 14:34 Alexis Ballier (aballier)
2007-10-14 7:47 Alexis Ballier (aballier)
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=20150730125910.0C966C3@oystercatcher.gentoo.org \
--to=aballier@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