public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2007-10-14  7:47 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2007-10-14  7:47 UTC (permalink / raw
  To: gentoo-commits

aballier    07/10/14 07:47:10

  Added:                texlive-module.eclass
  Log:
  add texlive module eclass

Revision  Changes    Path
1.1                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.1&content-type=text/plain

Index: texlive-module.eclass
===================================================================
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.1 2007/10/14 07:47:10 aballier Exp $

#
# Original Author: Alexis Ballier <aballier@gentoo.org>
# Purpose: Provide generic install functions so that modular texlive's texmf ebuilds will
# only have to inherit this eclass.
# Ebuilds have to provide TEXLIVE_MODULE_CONTENTS variable that contains the list
# of packages that it will install.
# TEXLIVE_MODULE_CONTENTS will be expanded to SRC_URI : 
#	foo -> texlive-module-foo-${PV}.zip
# What is assumed is that it unpacks texmf and texmf-dist directories to
# ${WORKDIR}.
#

inherit texlive-common

HOMEPAGE="http://www.tug.org/texlive/"

for i in ${TEXLIVE_MODULE_CONTENTS}; do
	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
done

COMMON_DEPEND=">=app-text/texlive-core-${PV}
	${TEXLIVE_MODULES_DEPS}"

DEPEND="${COMMON_DEPEND}
	app-arch/unzip"

RDEPEND="${COMMON_DEPEND}"

IUSE="doc"

S="${WORKDIR}"

# src_compile, exported function:
# Will look for format.foo.cnf and build foo format files using fmtutil
# (provided by texlive-core). The compiled format files will be sent to
# texmf-var/web2c, like fmtutil defaults to but with some trick to stay in the
# sandbox
# The next step is to generate config files that are to be installed in
# /etc/texmf; texmf-update script will take care of merging the different config
# files for different packages in a single one used by the whole tex installation.

texlive-module_src_compile() {
	# Build format files
	for i in texmf/fmtutil/format*.cnf; do
		if [ -f "${i}" ]; then
			einfo "Building format ${i}"
			TEXMFHOME="${S}/texmf:${S}/texmf-dist"\
				fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
				|| die "failed to build format ${i}"
		fi
	done

	# Generate config files
	for i in "${S}"/texmf/lists/*;
	do
		grep '^!' "${i}" | tr ' ' '=' |sort|uniq >> "${T}/jobs"
	done

	for j in $(<"${T}/jobs");
	do
		command=$(echo ${j} | sed 's/.\(.*\)=.*/\1/')
		parameter=$(echo ${j} | sed 's/.*=\(.*\)/\1/')
		case "${command}" in
			addMap)
				echo "Map ${parameter}" >> "${S}/${PN}.cfg";;
			addMixedMap)
				echo "MixedMap ${parameter}" >> "${S}/${PN}.cfg";;
			addDvipsMap)
				echo "p	+${parameter}" >> "${S}/${PN}-config.ps";;
			addDvipdfmMap)
				echo "f	${parameter}" >> "${S}/${PN}-config";;
		esac
	done
}

# src_install, exported function:
# Install texmf and config files to the system

texlive-module_src_install() {
	insinto /usr/share
	[ -d texmf ] && doins -r texmf
	[ -d texmf-dist ] && doins -r texmf-dist
	[ -d texmf-var ] && doins -r texmf-var
	use doc && [ -d texmf-doc ] && doins -r texmf-doc

	insinto /etc/texmf/updmap.d
	[ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg"
	insinto /etc/texmf/dvips/config
	[ -f "${S}/${PN}-config.ps" ] && doins "${S}/${PN}-config.ps"
	insinto /etc/texmf/dvipdfm/config
	[ -f "${S}/${PN}-config" ] && doins "${S}/${PN}-config"

	texlive-common_handle_config_files
}

# pkg_postinst and pkg_postrm, exported functions:
# run texmf-update to ensure the tex installation is consistent with the
# installed texmf trees.

texlive-module_pkg_postinst() {
	if [ "$ROOT" = "/" ] ; then
		/usr/sbin/texmf-update
	fi
}

texlive-module_pkg_postrm() {
	if [ "$ROOT" = "/" ] ; then
		/usr/sbin/texmf-update
	fi
}

EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2007-10-17 14:34 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2007-10-17 14:34 UTC (permalink / raw
  To: gentoo-commits

aballier    07/10/17 14:34:10

  Modified:             texlive-module.eclass
  Log:
  install formats in TEXMFSYSVAR, otherwise kpathsea will not find them

Revision  Changes    Path
1.2                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.1&r2=1.2

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- texlive-module.eclass	14 Oct 2007 07:47:10 -0000	1.1
+++ texlive-module.eclass	17 Oct 2007 14:34:09 -0000	1.2
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.1 2007/10/14 07:47:10 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.2 2007/10/17 14:34:09 aballier Exp $
 
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -84,8 +84,11 @@
 	insinto /usr/share
 	[ -d texmf ] && doins -r texmf
 	[ -d texmf-dist ] && doins -r texmf-dist
-	[ -d texmf-var ] && doins -r texmf-var
 	use doc && [ -d texmf-doc ] && doins -r texmf-doc
+	
+	TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)"
+	insinto "${TEXMFSYSVAR}"
+	[ -d texmf-var ] && doins -r texmf-var/*
 
 	insinto /etc/texmf/updmap.d
 	[ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg"



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2007-10-20 17:15 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2007-10-20 17:15 UTC (permalink / raw
  To: gentoo-commits

aballier    07/10/20 17:15:25

  Modified:             texlive-module.eclass
  Log:
  also remove texmf/doc directory if doc useflag is not set, will save much more space if you dont want the documention

Revision  Changes    Path
1.4                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.3&r2=1.4

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- texlive-module.eclass	20 Oct 2007 12:51:25 -0000	1.3
+++ texlive-module.eclass	20 Oct 2007 17:15:24 -0000	1.4
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.3 2007/10/20 12:51:25 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.4 2007/10/20 17:15:24 aballier Exp $
 
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -86,10 +86,16 @@
 	done
 
 	insinto /usr/share
+	if use doc; then
+		[ -d texmf-doc ] && doins -r texmf-doc
+	else
+		[ -d texmf/doc ] && rm -rf texmf/doc
+		[ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
+	fi
+
 	[ -d texmf ] && doins -r texmf
 	[ -d texmf-dist ] && doins -r texmf-dist
-	use doc && [ -d texmf-doc ] && doins -r texmf-doc
-	
+
 	TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)"
 	insinto "${TEXMFSYSVAR}"
 	[ -d texmf-var ] && doins -r texmf-var/*



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2007-10-27 14:30 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2007-10-27 14:30 UTC (permalink / raw
  To: gentoo-commits

aballier    07/10/27 14:30:39

  Modified:             texlive-module.eclass
  Log:
  dont try to be too clever with TEXMFSYSVAR, it should not be modified, install paths should definitely not be dependant on tex configuration and consistent among themselves; thus hardcode default path for TEXMFSYSVAR

Revision  Changes    Path
1.5                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.4&r2=1.5

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- texlive-module.eclass	20 Oct 2007 17:15:24 -0000	1.4
+++ texlive-module.eclass	27 Oct 2007 14:30:38 -0000	1.5
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.4 2007/10/20 17:15:24 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.5 2007/10/27 14:30:38 aballier Exp $
 
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -96,8 +96,7 @@
 	[ -d texmf ] && doins -r texmf
 	[ -d texmf-dist ] && doins -r texmf-dist
 
-	TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)"
-	insinto "${TEXMFSYSVAR}"
+	insinto /var/lib/texmf
 	[ -d texmf-var ] && doins -r texmf-var/*
 
 	insinto /etc/texmf/updmap.d



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2007-12-02 22:47 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2007-12-02 22:47 UTC (permalink / raw
  To: gentoo-commits

aballier    07/12/02 22:47:10

  Modified:             texlive-module.eclass
  Log:
  install dvips config files in dvips.d; no module installs such files, only texlive-core for now, but better safe than sorry if this happens after dvips config files handling has been switched to texmf-update

Revision  Changes    Path
1.6                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.5&r2=1.6

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- texlive-module.eclass	27 Oct 2007 14:30:38 -0000	1.5
+++ texlive-module.eclass	2 Dec 2007 22:47:10 -0000	1.6
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.5 2007/10/27 14:30:38 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.6 2007/12/02 22:47:10 aballier Exp $
 
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -101,7 +101,7 @@
 
 	insinto /etc/texmf/updmap.d
 	[ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg"
-	insinto /etc/texmf/dvips/config
+	insinto /etc/texmf/dvips.d
 	[ -f "${S}/${PN}-config.ps" ] && doins "${S}/${PN}-config.ps"
 	insinto /etc/texmf/dvipdfm/config
 	[ -f "${S}/${PN}-config" ] && doins "${S}/${PN}-config"



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-01-20  0:14 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-01-20  0:14 UTC (permalink / raw
  To: gentoo-commits

aballier    08/01/20 00:14:46

  Modified:             texlive-module.eclass
  Log:
  Check for texmf-update before trying to execute it, otherwise display a warning, bug #206537

Revision  Changes    Path
1.7                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.6&r2=1.7

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- texlive-module.eclass	2 Dec 2007 22:47:10 -0000	1.6
+++ texlive-module.eclass	20 Jan 2008 00:14:45 -0000	1.7
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.6 2007/12/02 22:47:10 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.7 2008/01/20 00:14:45 aballier Exp $
 
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -114,14 +114,22 @@
 # installed texmf trees.
 
 texlive-module_pkg_postinst() {
-	if [ "$ROOT" = "/" ] ; then
+	if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
 		/usr/sbin/texmf-update
+	else
+		ewarn "Cannot run texmf-update for some reason."
+		ewarn "Your texmf tree might be inconsistent with your configuration"
+		ewarn "Please try to figure what has happened"
 	fi
 }
 
 texlive-module_pkg_postrm() {
-	if [ "$ROOT" = "/" ] ; then
+	if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
 		/usr/sbin/texmf-update
+	else
+		ewarn "Cannot run texmf-update for some reason."
+		ewarn "Your texmf tree might be inconsistent with your configuration"
+		ewarn "Please try to figure what has happened"
 	fi
 }
 



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-07-03 21:06 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-07-03 21:06 UTC (permalink / raw
  To: gentoo-commits

aballier    08/07/03 21:06:25

  Modified:             texlive-module.eclass
  Log:
  start to make room for TeX Live 2008 and simplify the jobs parser.

Revision  Changes    Path
1.9                  eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.8&r2=1.9

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- texlive-module.eclass	14 Feb 2008 09:02:11 -0000	1.8
+++ texlive-module.eclass	3 Jul 2008 21:06:25 -0000	1.9
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.8 2008/02/14 09:02:11 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.9 2008/07/03 21:06:25 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -30,15 +30,24 @@
 
 HOMEPAGE="http://www.tug.org/texlive/"
 
-for i in ${TEXLIVE_MODULE_CONTENTS}; do
-	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
-done
-
 COMMON_DEPEND=">=app-text/texlive-core-${PV}
 	${TEXLIVE_MODULES_DEPS}"
 
+# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
+# .tar.lzma
+if [ -z "${PV##2007*}" ] ; then
+for i in ${TEXLIVE_MODULE_CONTENTS}; do
+	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
+done
 DEPEND="${COMMON_DEPEND}
 	app-arch/unzip"
+else
+for i in ${TEXLIVE_MODULE_CONTENTS}; do
+	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+done
+DEPEND="${COMMON_DEPEND}
+	app-arch/lzma-utils"
+fi
 
 RDEPEND="${COMMON_DEPEND}"
 
@@ -69,15 +78,24 @@
 	done
 
 	# Generate config files
+	# TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
+	if [ -z "${PV##2007*}" ] ; then
 	for i in "${S}"/texmf/lists/*;
 	do
-		grep '^!' "${i}" | tr ' ' '=' |sort|uniq >> "${T}/jobs"
+		grep '^!' "${i}" | sed -e 's/^!//' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
 	done
+	else
+	for i in "${S}"/tlpkg/tlpobj/*;
+	do
+		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
+	done
+	fi
 
-	for j in $(<"${T}/jobs");
+	for i in $(<"${T}/jobs");
 	do
-		command=$(echo ${j} | sed 's/.\(.*\)=.*/\1/')
-		parameter=$(echo ${j} | sed 's/.*=\(.*\)/\1/')
+		j="$(echo $i | tr '@' ' ')"
+		command=${j%% *}
+		parameter=${j#* }
 		case "${command}" in
 			addMap)
 				echo "Map ${parameter}" >> "${S}/${PN}.cfg";;
@@ -87,6 +105,14 @@
 				echo "p	+${parameter}" >> "${S}/${PN}-config.ps";;
 			addDvipdfmMap)
 				echo "f	${parameter}" >> "${S}/${PN}-config";;
+			AddHyphen)
+				ewarn "Sorry, $command not implemented yet.";;
+			BuildFormat)
+				elog "Format $parameter already built.";;
+			BuildLanguageDat)
+				elog "Language file $parameter already generated.";;
+			*)
+				die "No rule to proccess ${command}. Please file a bug."
 		esac
 	done
 }
@@ -111,6 +137,7 @@
 
 	[ -d texmf ] && doins -r texmf
 	[ -d texmf-dist ] && doins -r texmf-dist
+	[ -d tlpkg ] && doins -r tlpkg
 
 	insinto /var/lib/texmf
 	[ -d texmf-var ] && doins -r texmf-var/*



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-07-03 22:33 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-07-03 22:33 UTC (permalink / raw
  To: gentoo-commits

aballier    08/07/03 22:33:01

  Modified:             texlive-module.eclass
  Log:
  remove doc useflag from documentation packages, it does not make much sense for them, thanks to Pacho Ramos <pacho@condmat1.ciencias.uniovi.es>, bug #223617.

Revision  Changes    Path
1.10                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.9&r2=1.10

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- texlive-module.eclass	3 Jul 2008 21:06:25 -0000	1.9
+++ texlive-module.eclass	3 Jul 2008 22:33:00 -0000	1.10
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.9 2008/07/03 21:06:25 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.10 2008/07/03 22:33:00 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -51,7 +51,7 @@
 
 RDEPEND="${COMMON_DEPEND}"
 
-IUSE="doc"
+[ -z "${PN##*documentation*}" ] || IUSE="doc"
 
 S="${WORKDIR}"
 
@@ -128,7 +128,7 @@
 	done
 
 	insinto /usr/share
-	if use doc; then
+	if [ -z "${PN##*documentation*}" ] || use doc; then
 		[ -d texmf-doc ] && doins -r texmf-doc
 	else
 		[ -d texmf/doc ] && rm -rf texmf/doc



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-07-03 22:36 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-07-03 22:36 UTC (permalink / raw
  To: gentoo-commits

aballier    08/07/03 22:36:13

  Modified:             texlive-module.eclass
  Log:
  update comments about tl2008's way of distributing packages

Revision  Changes    Path
1.11                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.10&r2=1.11

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- texlive-module.eclass	3 Jul 2008 22:33:00 -0000	1.10
+++ texlive-module.eclass	3 Jul 2008 22:36:12 -0000	1.11
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.10 2008/07/03 22:33:00 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.11 2008/07/03 22:36:12 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -24,7 +24,8 @@
 # The list of packages that will be installed. This variable will be expanded to
 # SRC_URI:
 #
-# foo -> texlive-module-foo-${PV}.zip
+# For TeX Live 2007: foo -> texlive-module-foo-${PV}.zip
+# For TeX Live 2008: foo -> texlive-module-foo-${PV}.tar.lzma
 
 inherit texlive-common
 



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-07-14 16:42 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-07-14 16:42 UTC (permalink / raw
  To: gentoo-commits

aballier    08/07/14 16:42:48

  Modified:             texlive-module.eclass
  Log:
  Add source useflag for texlive2008

Revision  Changes    Path
1.12                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.11&r2=1.12

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- texlive-module.eclass	3 Jul 2008 22:36:12 -0000	1.11
+++ texlive-module.eclass	14 Jul 2008 16:42:48 -0000	1.12
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.11 2008/07/03 22:36:12 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.12 2008/07/14 16:42:48 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -34,6 +34,8 @@
 COMMON_DEPEND=">=app-text/texlive-core-${PV}
 	${TEXLIVE_MODULES_DEPS}"
 
+IUSE=""
+
 # TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
 # .tar.lzma
 if [ -z "${PV##2007*}" ] ; then
@@ -48,11 +50,12 @@
 done
 DEPEND="${COMMON_DEPEND}
 	app-arch/lzma-utils"
+IUSE="${IUSE} source"
 fi
 
 RDEPEND="${COMMON_DEPEND}"
 
-[ -z "${PN##*documentation*}" ] || IUSE="doc"
+[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
 
 S="${WORKDIR}"
 
@@ -138,7 +141,7 @@
 
 	[ -d texmf ] && doins -r texmf
 	[ -d texmf-dist ] && doins -r texmf-dist
-	[ -d tlpkg ] && doins -r tlpkg
+	[ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && doins -r tlpkg
 
 	insinto /var/lib/texmf
 	[ -d texmf-var ] && doins -r texmf-var/*



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-07-15 10:33 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-07-15 10:33 UTC (permalink / raw
  To: gentoo-commits

aballier    08/07/15 10:33:40

  Modified:             texlive-module.eclass
  Log:
  Add TEXLIVE_MODULE_DOC_CONTENTS and TEXLIVE_MODULE_SRC_CONTENTS support for texlive 2008 and document it.

Revision  Changes    Path
1.13                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.12&r2=1.13

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- texlive-module.eclass	14 Jul 2008 16:42:48 -0000	1.12
+++ texlive-module.eclass	15 Jul 2008 10:33:40 -0000	1.13
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.12 2008/07/14 16:42:48 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.13 2008/07/15 10:33:40 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -27,6 +27,18 @@
 # For TeX Live 2007: foo -> texlive-module-foo-${PV}.zip
 # For TeX Live 2008: foo -> texlive-module-foo-${PV}.tar.lzma
 
+# @ECLASS-VARIABLE: TEXLIVE_MODULE_DOC_CONTENTS
+# @DESCRIPTION:
+# The list of packages that will be installed if the doc useflag is enabled.
+# Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
+# valid for TeX Live 2008
+
+# @ECLASS-VARIABLE: TEXLIVE_MODULE_SRC_CONTENTS
+# @DESCRIPTION:
+# The list of packages that will be installed if the source useflag is enabled.
+# Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
+# valid for TeX Live 2008
+
 inherit texlive-common
 
 HOMEPAGE="http://www.tug.org/texlive/"
@@ -51,6 +63,22 @@
 DEPEND="${COMMON_DEPEND}
 	app-arch/lzma-utils"
 IUSE="${IUSE} source"
+
+# Forge doc SRC_URI
+[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? ("
+for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do
+	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+done
+[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )"
+
+# Forge source SRC_URI
+if [ -n "${TEXLIVE_MODULE_SRC_CONTENTS}" ] ; then
+	SRC_URI="${SRC_URI} source? ("
+	for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
+		SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+	done
+	SRC_URI="${SRC_URI} )"
+fi
 fi
 
 RDEPEND="${COMMON_DEPEND}"



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-08-21 13:04 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-08-21 13:04 UTC (permalink / raw
  To: gentoo-commits

aballier    08/08/21 13:04:22

  Modified:             texlive-module.eclass
  Log:
  drop (more or less) useless messages to einfo instead of elog

Revision  Changes    Path
1.14                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.13&r2=1.14

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- texlive-module.eclass	15 Jul 2008 10:33:40 -0000	1.13
+++ texlive-module.eclass	21 Aug 2008 13:04:21 -0000	1.14
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.13 2008/07/15 10:33:40 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.14 2008/08/21 13:04:21 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -140,9 +140,9 @@
 			AddHyphen)
 				ewarn "Sorry, $command not implemented yet.";;
 			BuildFormat)
-				elog "Format $parameter already built.";;
+				einfo "Format $parameter already built.";;
 			BuildLanguageDat)
-				elog "Language file $parameter already generated.";;
+				einfo "Language file $parameter already generated.";;
 			*)
 				die "No rule to proccess ${command}. Please file a bug."
 		esac






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-08-22 11:31 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-08-22 11:31 UTC (permalink / raw
  To: gentoo-commits

aballier    08/08/22 11:31:40

  Modified:             texlive-module.eclass
  Log:
  Implement the AddHyphen instruction of tlpobjs for TeX Live 2008. This creates language.foo.def and language.foo.dat files required for hyphenations support.

Revision  Changes    Path
1.15                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.14&r2=1.15

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- texlive-module.eclass	21 Aug 2008 13:04:21 -0000	1.14
+++ texlive-module.eclass	22 Aug 2008 11:31:40 -0000	1.15
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.14 2008/08/21 13:04:21 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.15 2008/08/22 11:31:40 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -8,7 +8,7 @@
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
 # @BLURB: Provide generic install functions so that modular texlive's texmf ebuild will only have to inherit this eclass
-# @DESCRIPTION: 
+# @DESCRIPTION:
 # Purpose: Provide generic install functions so that modular texlive's texmf ebuilds will
 # only have to inherit this eclass.
 # Ebuilds have to provide TEXLIVE_MODULE_CONTENTS variable that contains the list
@@ -87,6 +87,47 @@
 
 S="${WORKDIR}"
 
+
+# @FUNCTION: texlive-module_make_language_def_lines
+# @DESCRIPTION:
+# Only valid for TeXLive 2008.
+# Creates a language.${PN}.def entry to put in /etc/texmf/langauge.def.d
+# It parses the AddHyphen directive of tlpobj files to create it.
+
+texlive-module_make_language_def_lines() {
+	local lefthyphenmin righthyphenmin synonyms name file
+	eval $@
+	einfo "Generating language.def entry for $@"
+	[ -z "$lefthyphenmin" ] && lefthyphenmin="2"
+	[ -z "$righthyphenmin" ] && righthyphenmin="3"
+	echo "\\addlanguage{$name}{$file}{}{$lefthyphenmin}{$righthyphenmin}" >> "${S}/language.${PN}.def"
+	if [ -n "$synonyms" ] ; then
+		for i in $(echo $synonyms | tr ',' ' ') ; do
+			einfo "Generating language.def synonym $i for $@"
+			echo "\\addlanguage{$i}{$file}{}{$lefthyphenmin}{$righthyphenmin}" >> "${S}/language.${PN}.def"
+		done
+	fi
+}
+
+# @FUNCTION: texlive-module_make_language_dat_lines
+# @DESCRIPTION:
+# Only valid for TeXLive 2008.
+# Creates a language.${PN}.dat entry to put in /etc/texmf/langauge.dat.d
+# It parses the AddHyphen directive of tlpobj files to create it.
+
+texlive-module_make_language_dat_lines() {
+	local lefthyphenmin righthyphenmin synonyms name file
+	eval $@
+	einfo "Generating language.dat entry for $@"
+	echo "$name $file" >> "${S}/language.${PN}.dat"
+	if [ -n "$synonyms" ] ; then
+		for i in $(echo $synonyms | tr ',' ' ') ; do
+			einfo "Generating language.dat synonym $i for $@"
+			echo "=$i" >> "${S}/language.${PN}.dat"
+		done
+	fi
+}
+
 # @FUNCTION: texlive-module_src_compile
 # @DESCRIPTION:
 # exported function:
@@ -138,7 +179,8 @@
 			addDvipdfmMap)
 				echo "f	${parameter}" >> "${S}/${PN}-config";;
 			AddHyphen)
-				ewarn "Sorry, $command not implemented yet.";;
+				texlive-module_make_language_def_lines "$parameter"
+				texlive-module_make_language_dat_lines "$parameter";;
 			BuildFormat)
 				einfo "Format $parameter already built.";;
 			BuildLanguageDat)
@@ -181,6 +223,16 @@
 	insinto /etc/texmf/dvipdfm/config
 	[ -f "${S}/${PN}-config" ] && doins "${S}/${PN}-config"
 
+	if [ -f "${S}/language.${PN}.def" ] ; then
+		insinto /etc/texmf/language.def.d
+		doins "${S}/language.${PN}.def"
+	fi
+
+	if [ -f "${S}/language.${PN}.dat" ] ; then
+		insinto /etc/texmf/language.dat.d
+		doins "${S}/language.${PN}.dat"
+	fi
+
 	texlive-common_handle_config_files
 }
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-08-22 11:32 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-08-22 11:32 UTC (permalink / raw
  To: gentoo-commits

aballier    08/08/22 11:32:30

  Modified:             texlive-module.eclass
  Log:
  fix typo in comments

Revision  Changes    Path
1.16                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.15&r2=1.16

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- texlive-module.eclass	22 Aug 2008 11:31:40 -0000	1.15
+++ texlive-module.eclass	22 Aug 2008 11:32:30 -0000	1.16
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.15 2008/08/22 11:31:40 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.16 2008/08/22 11:32:30 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -91,7 +91,7 @@
 # @FUNCTION: texlive-module_make_language_def_lines
 # @DESCRIPTION:
 # Only valid for TeXLive 2008.
-# Creates a language.${PN}.def entry to put in /etc/texmf/langauge.def.d
+# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_def_lines() {
@@ -112,7 +112,7 @@
 # @FUNCTION: texlive-module_make_language_dat_lines
 # @DESCRIPTION:
 # Only valid for TeXLive 2008.
-# Creates a language.${PN}.dat entry to put in /etc/texmf/langauge.dat.d
+# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_dat_lines() {






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-09-02 10:00 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-09-02 10:00 UTC (permalink / raw
  To: gentoo-commits

aballier    08/09/02 10:00:06

  Modified:             texlive-module.eclass
  Log:
  document TEXLIVE_MODULE_BINSCRIPTS

Revision  Changes    Path
1.18                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.18&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.18&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.17&r2=1.18

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- texlive-module.eclass	2 Sep 2008 09:56:31 -0000	1.17
+++ texlive-module.eclass	2 Sep 2008 10:00:06 -0000	1.18
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.17 2008/09/02 09:56:31 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.18 2008/09/02 10:00:06 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -39,6 +39,12 @@
 # Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
 # valid for TeX Live 2008
 
+# @ECLASS-VARIABLE: TEXLIVE_MODULE_BINSCRIPTS
+# @DESCRIPTION:
+# A space separated list of files that are in fact scripts installed in the
+# texmf tree and that we want to be available directly. They will be installed in
+# /usr/bin.
+
 inherit texlive-common
 
 HOMEPAGE="http://www.tug.org/texlive/"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-10-31 15:16 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-10-31 15:16 UTC (permalink / raw
  To: gentoo-commits

aballier    08/10/31 15:16:28

  Modified:             texlive-module.eclass
  Log:
  Use TEXLIVE_MODULES_DEPS only for TeX Live 2007

Revision  Changes    Path
1.19                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.19&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.19&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.18&r2=1.19

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- texlive-module.eclass	2 Sep 2008 10:00:06 -0000	1.18
+++ texlive-module.eclass	31 Oct 2008 15:16:28 -0000	1.19
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.18 2008/09/02 10:00:06 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.19 2008/10/31 15:16:28 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -49,8 +49,7 @@
 
 HOMEPAGE="http://www.tug.org/texlive/"
 
-COMMON_DEPEND=">=app-text/texlive-core-${PV}
-	${TEXLIVE_MODULES_DEPS}"
+COMMON_DEPEND=">=app-text/texlive-core-${PV}"
 
 IUSE=""
 
@@ -60,6 +59,8 @@
 for i in ${TEXLIVE_MODULE_CONTENTS}; do
 	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
 done
+COMMON_DEPEND="${COMMON_DEPEND}
+	${TEXLIVE_MODULES_DEPS}"
 DEPEND="${COMMON_DEPEND}
 	app-arch/unzip"
 else






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2008-11-06 19:02 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2008-11-06 19:02 UTC (permalink / raw
  To: gentoo-commits

aballier    08/11/06 19:02:41

  Modified:             texlive-module.eclass
  Log:
  Use cp -pR for installing the texmf tree so that file permissions are preserved. Bug #245117

Revision  Changes    Path
1.20                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.20&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.20&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.19&r2=1.20

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- texlive-module.eclass	31 Oct 2008 15:16:28 -0000	1.19
+++ texlive-module.eclass	6 Nov 2008 19:02:41 -0000	1.20
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.19 2008/10/31 15:16:28 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.20 2008/11/06 19:02:41 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -208,17 +208,17 @@
 		[ -f "${i}" ] && etexlinks "${i}"
 	done
 
-	insinto /usr/share
+	dodir /usr/share
 	if [ -z "${PN##*documentation*}" ] || use doc; then
-		[ -d texmf-doc ] && doins -r texmf-doc
+		[ -d texmf-doc ] && cp -pR texmf-doc "${D}/usr/share/"
 	else
 		[ -d texmf/doc ] && rm -rf texmf/doc
 		[ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
 	fi
 
-	[ -d texmf ] && doins -r texmf
-	[ -d texmf-dist ] && doins -r texmf-dist
-	[ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && doins -r tlpkg
+	[ -d texmf ] && cp -pR texmf "${D}/usr/share/"
+	[ -d texmf-dist ] && cp -pR texmf-dist "${D}/usr/share/"
+	[ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/"
 
 	insinto /var/lib/texmf
 	[ -d texmf-var ] && doins -r texmf-var/*






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2009-06-08 10:05 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2009-06-08 10:05 UTC (permalink / raw
  To: gentoo-commits

aballier    09/06/08 10:05:04

  Modified:             texlive-module.eclass
  Log:
  add the generated formats to the list of directories to search while building them

Revision  Changes    Path
1.21                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.21&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.21&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.20&r2=1.21

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- texlive-module.eclass	6 Nov 2008 19:02:41 -0000	1.20
+++ texlive-module.eclass	8 Jun 2009 10:05:04 -0000	1.21
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.20 2008/11/06 19:02:41 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.21 2009/06/08 10:05:04 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -151,7 +151,7 @@
 	for i in texmf/fmtutil/format*.cnf; do
 		if [ -f "${i}" ]; then
 			einfo "Building format ${i}"
-			TEXMFHOME="${S}/texmf:${S}/texmf-dist"\
+			TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
 				fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
 				|| die "failed to build format ${i}"
 		fi






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2009-06-21 10:34 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2009-06-21 10:34 UTC (permalink / raw
  To: gentoo-commits

aballier    09/06/21 10:34:44

  Modified:             texlive-module.eclass
  Log:
  drop tl 2007 install support as all ebuilds are gone now

Revision  Changes    Path
1.22                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.22&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.22&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.21&r2=1.22

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- texlive-module.eclass	8 Jun 2009 10:05:04 -0000	1.21
+++ texlive-module.eclass	21 Jun 2009 10:34:44 -0000	1.22
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.21 2009/06/08 10:05:04 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.22 2009/06/21 10:34:44 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -55,15 +55,6 @@
 
 # TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
 # .tar.lzma
-if [ -z "${PV##2007*}" ] ; then
-for i in ${TEXLIVE_MODULE_CONTENTS}; do
-	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
-done
-COMMON_DEPEND="${COMMON_DEPEND}
-	${TEXLIVE_MODULES_DEPS}"
-DEPEND="${COMMON_DEPEND}
-	app-arch/unzip"
-else
 for i in ${TEXLIVE_MODULE_CONTENTS}; do
 	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
 done
@@ -86,7 +77,6 @@
 	done
 	SRC_URI="${SRC_URI} )"
 fi
-fi
 
 RDEPEND="${COMMON_DEPEND}"
 
@@ -159,17 +149,10 @@
 
 	# Generate config files
 	# TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
-	if [ -z "${PV##2007*}" ] ; then
-	for i in "${S}"/texmf/lists/*;
-	do
-		grep '^!' "${i}" | sed -e 's/^!//' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
-	done
-	else
 	for i in "${S}"/tlpkg/tlpobj/*;
 	do
 		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
 	done
-	fi
 
 	for i in $(<"${T}/jobs");
 	do
@@ -218,7 +201,7 @@
 
 	[ -d texmf ] && cp -pR texmf "${D}/usr/share/"
 	[ -d texmf-dist ] && cp -pR texmf-dist "${D}/usr/share/"
-	[ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/"
+	[ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/"
 
 	insinto /var/lib/texmf
 	[ -d texmf-var ] && doins -r texmf-var/*






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2009-08-10  7:38 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2009-08-10  7:38 UTC (permalink / raw
  To: gentoo-commits

aballier    09/08/10 07:38:02

  Modified:             texlive-module.eclass
  Log:
  Set VARTEXFONTS to some sandboxed location when building formats, it cannot hurt and may fix bug #280914

Revision  Changes    Path
1.23                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.23&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.23&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.22&r2=1.23

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- texlive-module.eclass	21 Jun 2009 10:34:44 -0000	1.22
+++ texlive-module.eclass	10 Aug 2009 07:38:02 -0000	1.23
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.22 2009/06/21 10:34:44 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.23 2009/08/10 07:38:02 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -141,7 +141,7 @@
 	for i in texmf/fmtutil/format*.cnf; do
 		if [ -f "${i}" ]; then
 			einfo "Building format ${i}"
-			TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
+			VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
 				fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
 				|| die "failed to build format ${i}"
 		fi






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2009-08-14 11:52 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2009-08-14 11:52 UTC (permalink / raw
  To: gentoo-commits

aballier    09/08/14 11:52:38

  Modified:             texlive-module.eclass
  Log:
  Ignore TEXINPUTS from the environment when building formats, should fix bug #262177

Revision  Changes    Path
1.24                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.24&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.24&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.23&r2=1.24

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- texlive-module.eclass	10 Aug 2009 07:38:02 -0000	1.23
+++ texlive-module.eclass	14 Aug 2009 11:52:38 -0000	1.24
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.23 2009/08/10 07:38:02 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.24 2009/08/14 11:52:38 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -142,7 +142,7 @@
 		if [ -f "${i}" ]; then
 			einfo "Building format ${i}"
 			VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
-				fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
+				env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
 				|| die "failed to build format ${i}"
 		fi
 	done






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2009-08-19  7:43 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2009-08-19  7:43 UTC (permalink / raw
  To: gentoo-commits

aballier    09/08/19 07:43:20

  Modified:             texlive-module.eclass
  Log:
  Update lzma deps to allow xz-utils too, bug #279871

Revision  Changes    Path
1.25                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.25&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.25&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.24&r2=1.25

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- texlive-module.eclass	14 Aug 2009 11:52:38 -0000	1.24
+++ texlive-module.eclass	19 Aug 2009 07:43:20 -0000	1.25
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.24 2009/08/14 11:52:38 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.25 2009/08/19 07:43:20 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -59,7 +59,7 @@
 	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
 done
 DEPEND="${COMMON_DEPEND}
-	app-arch/lzma-utils"
+	|| ( app-arch/xz-utils app-arch/lzma-utils )"
 IUSE="${IUSE} source"
 
 # Forge doc SRC_URI






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2009-11-12 19:04 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2009-11-12 19:04 UTC (permalink / raw
  To: gentoo-commits

aballier    09/11/12 19:04:02

  Modified:             texlive-module.eclass
  Log:
  Be sure to delete ls-R files if they happen to be created, bug #280978

Revision  Changes    Path
1.26                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.26&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.26&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.25&r2=1.26

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- texlive-module.eclass	19 Aug 2009 07:43:20 -0000	1.25
+++ texlive-module.eclass	12 Nov 2009 19:04:01 -0000	1.26
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.25 2009/08/19 07:43:20 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.26 2009/11/12 19:04:01 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -179,6 +179,10 @@
 				die "No rule to proccess ${command}. Please file a bug."
 		esac
 	done
+
+	# Delete ls-R files, these should not be created but better be certain they
+	# do not end up being installed.
+	find . -name 'ls-R' -delete
 }
 
 # @FUNCTION: texlive-module_src_install






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-07 18:17 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-07 18:17 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/07 18:17:35

  Modified:             texlive-module.eclass
  Log:
  Add SRC_URI support for TeX Live 2009

Revision  Changes    Path
1.27                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.27&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.27&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.26&r2=1.27

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- texlive-module.eclass	12 Nov 2009 19:04:01 -0000	1.26
+++ texlive-module.eclass	7 Jan 2010 18:17:35 -0000	1.27
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.26 2009/11/12 19:04:01 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.27 2010/01/07 18:17:35 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -51,21 +51,28 @@
 
 COMMON_DEPEND=">=app-text/texlive-core-${PV}"
 
-IUSE=""
+IUSE="source"
+
+# TeX Live 2008 was providing .tar.lzma files of CTAN packages. For 2009 they are now
+# .tar.xz
+if [ "${PV#2008}" != "${PV}" ]; then
+	PKGEXT=tar.lzma
+	DEPEND="${COMMON_DEPEND}
+		|| ( app-arch/xz-utils app-arch/lzma-utils )"
+else
+	PKGEXT=tar.xz
+	DEPEND="${COMMON_DEPEND}
+		app-arch/xz-utils"
+fi
 
-# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
-# .tar.lzma
 for i in ${TEXLIVE_MODULE_CONTENTS}; do
-	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
 done
-DEPEND="${COMMON_DEPEND}
-	|| ( app-arch/xz-utils app-arch/lzma-utils )"
-IUSE="${IUSE} source"
 
 # Forge doc SRC_URI
 [ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? ("
 for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do
-	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+	SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
 done
 [ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )"
 
@@ -73,7 +80,7 @@
 if [ -n "${TEXLIVE_MODULE_SRC_CONTENTS}" ] ; then
 	SRC_URI="${SRC_URI} source? ("
 	for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
-		SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+		SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
 	done
 	SRC_URI="${SRC_URI} )"
 fi






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-07 18:42 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-07 18:42 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/07 18:42:48

  Modified:             texlive-module.eclass
  Log:
  give unpack support for tl2009

Revision  Changes    Path
1.28                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.28&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.28&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.27&r2=1.28

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- texlive-module.eclass	7 Jan 2010 18:17:35 -0000	1.27
+++ texlive-module.eclass	7 Jan 2010 18:42:47 -0000	1.28
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.27 2010/01/07 18:17:35 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.28 2010/01/07 18:42:47 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -91,10 +91,28 @@
 
 S="${WORKDIR}"
 
+if [ "${PV#2008}" == "${PV}" ]; then
+
+# @FUNCTION: texlive-module_src_unpack
+# @DESCRIPTION:
+# Only for TeX Live 2009.
+# Gives tar.xz unpack support until we can use an EAPI with that support.
+
+texlive-module_src_unpack() {
+	local i s
+	for i in ${A}
+	do
+		s="${DISTDIR%/}/${i}"
+		einfo "Unpacking ${s} to ${PWD}"
+		test -s "${s}" || die "${s} does not exist"
+		xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
+	done
+}
+
+fi
 
 # @FUNCTION: texlive-module_make_language_def_lines
 # @DESCRIPTION:
-# Only valid for TeXLive 2008.
 # Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d
 # It parses the AddHyphen directive of tlpobj files to create it.
 
@@ -270,4 +288,8 @@
 	fi
 }
 
+if [ "${PV#2008}" != "${PV}" ]; then
 EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
+else
+EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
+fi






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-07 19:13 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-07 19:13 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/07 19:13:01

  Modified:             texlive-module.eclass
  Log:
  relocate 'RELOC' files when unpacking

Revision  Changes    Path
1.29                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.29&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.29&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.28&r2=1.29

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- texlive-module.eclass	7 Jan 2010 18:42:47 -0000	1.28
+++ texlive-module.eclass	7 Jan 2010 19:13:01 -0000	1.29
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.28 2010/01/07 18:42:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.29 2010/01/07 19:13:01 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -98,6 +98,8 @@
 # Only for TeX Live 2009.
 # Gives tar.xz unpack support until we can use an EAPI with that support.
 
+RELOC_TARGET=texmf-dist
+
 texlive-module_src_unpack() {
 	local i s
 	for i in ${A}
@@ -107,6 +109,14 @@
 		test -s "${s}" || die "${s} does not exist"
 		xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
 	done
+	grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
+	{ for i in $(<"${T}/reloclist"); do  dirname $i; done; } | uniq | sort -r > "${T}/dirlist"
+	for i in $(<"${T}/dirlist"); do
+		[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
+	done
+	for i in $(<"${T}/reloclist"); do
+		mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
+	done
 }
 
 fi






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-07 19:16 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-07 19:16 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/07 19:16:53

  Modified:             texlive-module.eclass
  Log:
  build the formats after looking for jobs in the tlpkgs so that the AddFormat directive will work

Revision  Changes    Path
1.30                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.30&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.30&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.29&r2=1.30

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- texlive-module.eclass	7 Jan 2010 19:13:01 -0000	1.29
+++ texlive-module.eclass	7 Jan 2010 19:16:52 -0000	1.30
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.29 2010/01/07 19:13:01 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.30 2010/01/07 19:16:52 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -172,16 +172,6 @@
 # files for different packages in a single one used by the whole tex installation.
 
 texlive-module_src_compile() {
-	# Build format files
-	for i in texmf/fmtutil/format*.cnf; do
-		if [ -f "${i}" ]; then
-			einfo "Building format ${i}"
-			VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
-				env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
-				|| die "failed to build format ${i}"
-		fi
-	done
-
 	# Generate config files
 	# TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
 	for i in "${S}"/tlpkg/tlpobj/*;
@@ -215,6 +205,16 @@
 		esac
 	done
 
+	# Build format files
+	for i in texmf/fmtutil/format*.cnf; do
+		if [ -f "${i}" ]; then
+			einfo "Building format ${i}"
+			VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
+				env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
+				|| die "failed to build format ${i}"
+		fi
+	done
+
 	# Delete ls-R files, these should not be created but better be certain they
 	# do not end up being installed.
 	find . -name 'ls-R' -delete






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-07 20:31 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-07 20:31 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/07 20:31:16

  Modified:             texlive-module.eclass
  Log:
  Handle the AddFormat directive of TeX Live 2009

Revision  Changes    Path
1.31                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.31&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.31&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.30&r2=1.31

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- texlive-module.eclass	7 Jan 2010 19:16:52 -0000	1.30
+++ texlive-module.eclass	7 Jan 2010 20:31:15 -0000	1.31
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.30 2010/01/07 19:16:52 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.31 2010/01/07 20:31:15 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -121,6 +121,25 @@
 
 fi
 
+# @FUNCTION: texlive-module_add_format
+# @DESCRIPTION:
+# Creates/appends to a format.${PN}.cnf file for fmtutil.
+# This will make fmtutil generate the formats when asked and allow the remaining
+# src_compile phase to build the formats
+
+texlive-module_add_format() {
+	local name engine mode patterns options
+	eval $@
+	einfo "Appending to format.${PN}.cnf for $@"
+	[ -d texmf/fmtutil ] || mkdir -p texmf/fmtutil
+	[ -f texmf/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf/fmtutil/format.${PN}.cnf; }
+	if [ "${mode}" == "disabled" ]; then
+		printf "#! " >> texmf/fmtutil/format.${PN}.cnf
+	fi
+	[ -z "${patterns}" ] && patterns="-"
+	printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf/fmtutil/format.${PN}.cnf
+}
+
 # @FUNCTION: texlive-module_make_language_def_lines
 # @DESCRIPTION:
 # Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d
@@ -196,6 +215,8 @@
 			AddHyphen)
 				texlive-module_make_language_def_lines "$parameter"
 				texlive-module_make_language_dat_lines "$parameter";;
+			AddFormat)
+				texlive-module_add_format "$parameter";;
 			BuildFormat)
 				einfo "Format $parameter already built.";;
 			BuildLanguageDat)






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-07 20:36 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-07 20:36 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/07 20:36:23

  Modified:             texlive-module.eclass
  Log:
  sort is not needed, remaining of a (failed) attempt to manually clean up

Revision  Changes    Path
1.32                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.32&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.32&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.31&r2=1.32

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- texlive-module.eclass	7 Jan 2010 20:31:15 -0000	1.31
+++ texlive-module.eclass	7 Jan 2010 20:36:23 -0000	1.32
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.31 2010/01/07 20:31:15 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.32 2010/01/07 20:36:23 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -110,7 +110,7 @@
 		xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
 	done
 	grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
-	{ for i in $(<"${T}/reloclist"); do  dirname $i; done; } | uniq | sort -r > "${T}/dirlist"
+	{ for i in $(<"${T}/reloclist"); do  dirname $i; done; } | uniq > "${T}/dirlist"
 	for i in $(<"${T}/dirlist"); do
 		[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
 	done






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-13  9:42 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-01-13  9:42 UTC (permalink / raw
  To: gentoo-commits

aballier    10/01/13 09:42:11

  Modified:             texlive-module.eclass
  Log:
  Update documentation wrt 2009 additions

Revision  Changes    Path
1.33                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.33&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.33&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.32&r2=1.33

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- texlive-module.eclass	7 Jan 2010 20:36:23 -0000	1.32
+++ texlive-module.eclass	13 Jan 2010 09:42:10 -0000	1.33
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.32 2010/01/07 20:36:23 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.33 2010/01/13 09:42:10 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -24,20 +24,20 @@
 # The list of packages that will be installed. This variable will be expanded to
 # SRC_URI:
 #
-# For TeX Live 2007: foo -> texlive-module-foo-${PV}.zip
 # For TeX Live 2008: foo -> texlive-module-foo-${PV}.tar.lzma
+# For TeX Live 2009: foo -> texlive-module-foo-${PV}.tar.xz
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_DOC_CONTENTS
 # @DESCRIPTION:
 # The list of packages that will be installed if the doc useflag is enabled.
 # Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
-# valid for TeX Live 2008
+# valid for TeX Live 2008 and later
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_SRC_CONTENTS
 # @DESCRIPTION:
 # The list of packages that will be installed if the source useflag is enabled.
 # Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
-# valid for TeX Live 2008
+# valid for TeX Live 2008 and later
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_BINSCRIPTS
 # @DESCRIPTION:






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-01-13 15:16 Christian Faulhammer (fauli)
  0 siblings, 0 replies; 63+ messages in thread
From: Christian Faulhammer (fauli) @ 2010-01-13 15:16 UTC (permalink / raw
  To: gentoo-commits

fauli       10/01/13 15:16:49

  Modified:             texlive-module.eclass
  Log:
  Introduce TL_PV to override TeXLive dependency

Revision  Changes    Path
1.34                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.34&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.34&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.33&r2=1.34

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- texlive-module.eclass	13 Jan 2010 09:42:10 -0000	1.33
+++ texlive-module.eclass	13 Jan 2010 15:16:49 -0000	1.34
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.33 2010/01/13 09:42:10 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.34 2010/01/13 15:16:49 fauli Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -45,11 +45,17 @@
 # texmf tree and that we want to be available directly. They will be installed in
 # /usr/bin.
 
+# @ECLASS-VARIABLE: TL_PV
+# @DESCRIPTION:
+# Normally the module's PV reflects the TeXLive release it belongs to.
+# If this is not the case, TL_PV takes the version number for the
+# needed app-text/texlive-core.
+
 inherit texlive-common
 
 HOMEPAGE="http://www.tug.org/texlive/"
 
-COMMON_DEPEND=">=app-text/texlive-core-${PV}"
+COMMON_DEPEND=">=app-text/texlive-core-${TL_PV:-${PV}}"
 
 IUSE="source"
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-11 18:26 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-11 18:26 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/11 18:26:33

  Modified:             texlive-module.eclass
  Log:
  Use unpack if our EAPI allows to unpack .xz files

Revision  Changes    Path
1.35                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.35&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.35&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.34&r2=1.35

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- texlive-module.eclass	13 Jan 2010 15:16:49 -0000	1.34
+++ texlive-module.eclass	11 Oct 2010 18:26:33 -0000	1.35
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.34 2010/01/13 15:16:49 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.35 2010/10/11 18:26:33 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -107,14 +107,18 @@
 RELOC_TARGET=texmf-dist
 
 texlive-module_src_unpack() {
-	local i s
-	for i in ${A}
-	do
-		s="${DISTDIR%/}/${i}"
-		einfo "Unpacking ${s} to ${PWD}"
-		test -s "${s}" || die "${s} does not exist"
-		xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
-	done
+	if has "${EAPI:-0}" 0 1 2 ; then
+		local i s
+		for i in ${A}
+		do
+			s="${DISTDIR%/}/${i}"
+			einfo "Unpacking ${s} to ${PWD}"
+			test -s "${s}" || die "${s} does not exist"
+			xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
+		done
+	else
+		unpack ${A}
+	fi
 	grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
 	{ for i in $(<"${T}/reloclist"); do  dirname $i; done; } | uniq > "${T}/dirlist"
 	for i in $(<"${T}/dirlist"); do






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-11 20:44 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-11 20:44 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/11 20:44:19

  Modified:             texlive-module.eclass
  Log:
  Strip \t too, one can see tlpobjs with \t in TeX Live 2010

Revision  Changes    Path
1.36                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.36&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.36&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.35&r2=1.36

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- texlive-module.eclass	11 Oct 2010 18:26:33 -0000	1.35
+++ texlive-module.eclass	11 Oct 2010 20:44:19 -0000	1.36
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.35 2010/10/11 18:26:33 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.36 2010/10/11 20:44:19 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -205,7 +205,7 @@
 	# TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
 	for i in "${S}"/tlpkg/tlpobj/*;
 	do
-		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
+		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' \t' '@@' |sort|uniq >> "${T}/jobs"
 	done
 
 	for i in $(<"${T}/jobs");






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 16:38 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 16:38 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 16:38:26

  Modified:             texlive-module.eclass
  Log:
  make_language_..._lines: declare more variables as local, these are used in TeX Live 2010

Revision  Changes    Path
1.37                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.37&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.37&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.36&r2=1.37

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- texlive-module.eclass	11 Oct 2010 20:44:19 -0000	1.36
+++ texlive-module.eclass	23 Oct 2010 16:38:26 -0000	1.37
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.36 2010/10/11 20:44:19 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.37 2010/10/23 16:38:26 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -156,7 +156,7 @@
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_def_lines() {
-	local lefthyphenmin righthyphenmin synonyms name file
+	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions
 	eval $@
 	einfo "Generating language.def entry for $@"
 	[ -z "$lefthyphenmin" ] && lefthyphenmin="2"
@@ -177,7 +177,7 @@
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_dat_lines() {
-	local lefthyphenmin righthyphenmin synonyms name file
+	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions
 	eval $@
 	einfo "Generating language.dat entry for $@"
 	echo "$name $file" >> "${S}/language.${PN}.dat"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 21:47 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 21:47 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 21:47:07

  Modified:             texlive-module.eclass
  Log:
  Generate language.dat.lua files for TeX Live 2010

Revision  Changes    Path
1.38                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.38&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.38&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.37&r2=1.38

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- texlive-module.eclass	23 Oct 2010 16:38:26 -0000	1.37
+++ texlive-module.eclass	23 Oct 2010 21:47:07 -0000	1.38
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.37 2010/10/23 16:38:26 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.38 2010/10/23 21:47:07 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -156,7 +156,7 @@
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_def_lines() {
-	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions
+	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
 	eval $@
 	einfo "Generating language.def entry for $@"
 	[ -z "$lefthyphenmin" ] && lefthyphenmin="2"
@@ -177,7 +177,7 @@
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_dat_lines() {
-	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions
+	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
 	eval $@
 	einfo "Generating language.dat entry for $@"
 	echo "$name $file" >> "${S}/language.${PN}.dat"
@@ -189,6 +189,40 @@
 	fi
 }
 
+# @FUNCTION: texlive-module_synonyms_to_language_lua_line
+# @DESCRIPTION:
+# Helper function for texlive-module_make_language_lua_lines to generate a
+# correctly formatted synonyms entry for language.lua.dat
+
+texlive-module_synonyms_to_language_lua_line() {
+	local prev=""
+	for i in $(echo $@ | tr ',' ' ') ; do
+		printf "${prev} '%s'" $i
+		prev=","
+	done
+}
+
+# @FUNCTION: texlive-module_make_language_lua_lines
+# @DESCRIPTION:
+# Only valid for TeXLive 2010.
+# Creates a language.${PN}.dat entry to put in /etc/texmf/language.lua.d
+# It parses the AddHyphen directive of tlpobj files to create it.
+
+texlive-module_make_language_lua_lines() {
+	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
+	local dest="${S}/language.${PN}.dat.lua"
+	eval $@
+	einfo "Generating language.lua.dat entry for $@"
+	printf "\t['%s'] = {\n" "$name"                                                                 >> "$dest"
+	printf "\t\tloader = '%s',\n" "$file"                                                           >> "$dest"
+	printf "\t\tlefthyphenmin = %s,\n\t\trighthyphenmin = %s,\n" "$lefthyphenmin" "$righthyphenmin" >> "$dest"
+	printf "\t\tsynonyms = {%s },\n" "$(texlive-module_synonyms_to_language_lua_line "$synonyms")"  >> "$dest"
+	[ -n "$file_patterns"   ] && printf "\t\tpatterns = '%s',\n" "$file_patterns"                   >> "$dest"
+	[ -n "$file_exceptions" ] && printf "\t\thyphenation = '%s',\n"	"$file_exceptions"              >> "$dest"
+	[ -n "$luaspecial"      ] && printf "\t\tspecial = '%s',\n" "$luaspecial"                       >> "$dest"
+	printf "\t},\n"                                                                                 >> "$dest"
+}
+
 # @FUNCTION: texlive-module_src_compile
 # @DESCRIPTION:
 # exported function:
@@ -224,7 +258,9 @@
 				echo "f	${parameter}" >> "${S}/${PN}-config";;
 			AddHyphen)
 				texlive-module_make_language_def_lines "$parameter"
-				texlive-module_make_language_dat_lines "$parameter";;
+				texlive-module_make_language_dat_lines "$parameter"
+				[ "${PV#2008}" = "${PV}" -a "${PV#2009}" = "${PV}" ] && texlive-module_make_language_lua_lines "$parameter"
+				;;
 			AddFormat)
 				texlive-module_add_format "$parameter";;
 			BuildFormat)
@@ -292,6 +328,12 @@
 		insinto /etc/texmf/language.dat.d
 		doins "${S}/language.${PN}.dat"
 	fi
+
+	if [ -f "${S}/language.${PN}.dat.lua" ] ; then
+		insinto /etc/texmf/language.dat.lua.d
+		doins "${S}/language.${PN}.dat.lua"
+	fi
+
 	[ -n "${TEXLIVE_MODULE_BINSCRIPTS}" ] && dobin_texmf_scripts ${TEXLIVE_MODULE_BINSCRIPTS}
 
 	texlive-common_handle_config_files






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 21:48 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 21:48 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 21:48:18

  Modified:             texlive-module.eclass
  Log:
  Make the description match what the function does...

Revision  Changes    Path
1.39                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.39&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.39&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.38&r2=1.39

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- texlive-module.eclass	23 Oct 2010 21:47:07 -0000	1.38
+++ texlive-module.eclass	23 Oct 2010 21:48:18 -0000	1.39
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.38 2010/10/23 21:47:07 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.39 2010/10/23 21:48:18 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -205,7 +205,7 @@
 # @FUNCTION: texlive-module_make_language_lua_lines
 # @DESCRIPTION:
 # Only valid for TeXLive 2010.
-# Creates a language.${PN}.dat entry to put in /etc/texmf/language.lua.d
+# Creates a language.${PN}.dat.lua entry to put in /etc/texmf/language.dat.lua.d
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_lua_lines() {






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 22:41 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 22:41 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 22:41:44

  Modified:             texlive-module.eclass
  Log:
  Improve some comments

Revision  Changes    Path
1.40                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.40&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.40&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.39&r2=1.40

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- texlive-module.eclass	23 Oct 2010 21:48:18 -0000	1.39
+++ texlive-module.eclass	23 Oct 2010 22:41:44 -0000	1.40
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.39 2010/10/23 21:48:18 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.40 2010/10/23 22:41:44 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -14,8 +14,11 @@
 # Ebuilds have to provide TEXLIVE_MODULE_CONTENTS variable that contains the list
 # of packages that it will install. (See below)
 #
-# What is assumed is that it unpacks texmf and texmf-dist directories to
-# ${WORKDIR}.
+# For TeX Live versions prior to 2009, the ebuild was supposed to unpack the
+# texmf and texmf-dist directories to ${WORKDIR} (which is what the default
+# src_unpack does).
+# Starting from TeX Live 2009, the eclass provides a src_unpack function taking
+# care of unpacking and relocating the files that need it.
 #
 # It inherits texlive-common
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:18 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:18 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:18:31

  Modified:             texlive-module.eclass
  Log:
  We do not need the double = here

Revision  Changes    Path
1.41                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.41&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.41&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.40&r2=1.41

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- texlive-module.eclass	23 Oct 2010 22:41:44 -0000	1.40
+++ texlive-module.eclass	23 Oct 2010 23:18:31 -0000	1.41
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.40 2010/10/23 22:41:44 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.41 2010/10/23 23:18:31 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -100,7 +100,7 @@
 
 S="${WORKDIR}"
 
-if [ "${PV#2008}" == "${PV}" ]; then
+if [ "${PV#2008}" = "${PV}" ]; then
 
 # @FUNCTION: texlive-module_src_unpack
 # @DESCRIPTION:
@@ -146,7 +146,7 @@
 	einfo "Appending to format.${PN}.cnf for $@"
 	[ -d texmf/fmtutil ] || mkdir -p texmf/fmtutil
 	[ -f texmf/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf/fmtutil/format.${PN}.cnf; }
-	if [ "${mode}" == "disabled" ]; then
+	if [ "${mode}" = "disabled" ]; then
 		printf "#! " >> texmf/fmtutil/format.${PN}.cnf
 	fi
 	[ -z "${patterns}" ] && patterns="-"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:19 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:19 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:19:29

  Modified:             texlive-module.eclass
  Log:
  it is language.dat.lua not language.lua.dat

Revision  Changes    Path
1.42                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.42&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.42&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.41&r2=1.42

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- texlive-module.eclass	23 Oct 2010 23:18:31 -0000	1.41
+++ texlive-module.eclass	23 Oct 2010 23:19:29 -0000	1.42
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.41 2010/10/23 23:18:31 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.42 2010/10/23 23:19:29 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -195,7 +195,7 @@
 # @FUNCTION: texlive-module_synonyms_to_language_lua_line
 # @DESCRIPTION:
 # Helper function for texlive-module_make_language_lua_lines to generate a
-# correctly formatted synonyms entry for language.lua.dat
+# correctly formatted synonyms entry for language.dat.lua
 
 texlive-module_synonyms_to_language_lua_line() {
 	local prev=""
@@ -215,7 +215,7 @@
 	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
 	local dest="${S}/language.${PN}.dat.lua"
 	eval $@
-	einfo "Generating language.lua.dat entry for $@"
+	einfo "Generating language.dat.lua entry for $@"
 	printf "\t['%s'] = {\n" "$name"                                                                 >> "$dest"
 	printf "\t\tloader = '%s',\n" "$file"                                                           >> "$dest"
 	printf "\t\tlefthyphenmin = %s,\n\t\trighthyphenmin = %s,\n" "$lefthyphenmin" "$righthyphenmin" >> "$dest"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:21 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:21 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:21:10

  Modified:             texlive-module.eclass
  Log:
  improve a comment

Revision  Changes    Path
1.43                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.43&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.43&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.42&r2=1.43

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- texlive-module.eclass	23 Oct 2010 23:19:29 -0000	1.42
+++ texlive-module.eclass	23 Oct 2010 23:21:10 -0000	1.43
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.42 2010/10/23 23:19:29 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.43 2010/10/23 23:21:10 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -238,8 +238,8 @@
 # files for different packages in a single one used by the whole tex installation.
 
 texlive-module_src_compile() {
-	# Generate config files
-	# TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
+	# Generate config files from the tlpobj files provided by TeX Live 2008 and
+	# later
 	for i in "${S}"/tlpkg/tlpobj/*;
 	do
 		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' \t' '@@' |sort|uniq >> "${T}/jobs"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:22 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:22 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:22:47

  Modified:             texlive-module.eclass
  Log:
  improve another comment

Revision  Changes    Path
1.44                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.44&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.44&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.43&r2=1.44

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- texlive-module.eclass	23 Oct 2010 23:21:10 -0000	1.43
+++ texlive-module.eclass	23 Oct 2010 23:22:47 -0000	1.44
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.43 2010/10/23 23:21:10 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.44 2010/10/23 23:22:47 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -229,13 +229,14 @@
 # @FUNCTION: texlive-module_src_compile
 # @DESCRIPTION:
 # exported function:
-# Will look for format.foo.cnf and build foo format files using fmtutil
+# Generates the config files that are to be installed in /etc/texmf;
+# texmf-update script will take care of merging the different config files for
+# different packages in a single one used by the whole tex installation.
+# 
+# Once the config files are generated, we build the format files using fmtutil
 # (provided by texlive-core). The compiled format files will be sent to
 # texmf-var/web2c, like fmtutil defaults to but with some trick to stay in the
-# sandbox
-# The next step is to generate config files that are to be installed in
-# /etc/texmf; texmf-update script will take care of merging the different config
-# files for different packages in a single one used by the whole tex installation.
+# sandbox.
 
 texlive-module_src_compile() {
 	# Generate config files from the tlpobj files provided by TeX Live 2008 and






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:24 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:24 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:24:40

  Modified:             texlive-module.eclass
  Log:
  Remove the restriction for tl 2008 since we dont support 2007 anymore

Revision  Changes    Path
1.45                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.45&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.45&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.44&r2=1.45

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- texlive-module.eclass	23 Oct 2010 23:22:47 -0000	1.44
+++ texlive-module.eclass	23 Oct 2010 23:24:40 -0000	1.45
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.44 2010/10/23 23:22:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.45 2010/10/23 23:24:40 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -175,7 +175,6 @@
 
 # @FUNCTION: texlive-module_make_language_dat_lines
 # @DESCRIPTION:
-# Only valid for TeXLive 2008.
 # Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d
 # It parses the AddHyphen directive of tlpobj files to create it.
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:25 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:25 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:25:58

  Modified:             texlive-module.eclass
  Log:
  mention tl2010 in a comment

Revision  Changes    Path
1.46                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.46&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.46&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.45&r2=1.46

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- texlive-module.eclass	23 Oct 2010 23:24:40 -0000	1.45
+++ texlive-module.eclass	23 Oct 2010 23:25:58 -0000	1.46
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.45 2010/10/23 23:24:40 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.46 2010/10/23 23:25:58 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -62,8 +62,8 @@
 
 IUSE="source"
 
-# TeX Live 2008 was providing .tar.lzma files of CTAN packages. For 2009 they are now
-# .tar.xz
+# TeX Live 2008 was providing .tar.lzma files of CTAN packages.
+# For 2009 and 2010 they are now .tar.xz
 if [ "${PV#2008}" != "${PV}" ]; then
 	PKGEXT=tar.lzma
 	DEPEND="${COMMON_DEPEND}






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:26 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:26 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:26:38

  Modified:             texlive-module.eclass
  Log:
  improve yet another comment

Revision  Changes    Path
1.47                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.47&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.47&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.46&r2=1.47

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- texlive-module.eclass	23 Oct 2010 23:25:58 -0000	1.46
+++ texlive-module.eclass	23 Oct 2010 23:26:38 -0000	1.47
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.46 2010/10/23 23:25:58 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.47 2010/10/23 23:26:38 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -104,7 +104,7 @@
 
 # @FUNCTION: texlive-module_src_unpack
 # @DESCRIPTION:
-# Only for TeX Live 2009.
+# Only for TeX Live 2009 and later.
 # Gives tar.xz unpack support until we can use an EAPI with that support.
 
 RELOC_TARGET=texmf-dist






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:28 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:28 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:28:24

  Modified:             texlive-module.eclass
  Log:
  Describe what src_unpack does

Revision  Changes    Path
1.48                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.48&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.48&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.47&r2=1.48

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- texlive-module.eclass	23 Oct 2010 23:26:38 -0000	1.47
+++ texlive-module.eclass	23 Oct 2010 23:28:24 -0000	1.48
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.47 2010/10/23 23:26:38 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.48 2010/10/23 23:28:24 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -106,6 +106,8 @@
 # @DESCRIPTION:
 # Only for TeX Live 2009 and later.
 # Gives tar.xz unpack support until we can use an EAPI with that support.
+# If EAPI supports tar.xz then it calls unpack instead of its own unpacker.
+# After unpacking, the files that need to relocated are moved accordingly.
 
 RELOC_TARGET=texmf-dist
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:30 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:30 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:30:14

  Modified:             texlive-module.eclass
  Log:
  Improve descriptions

Revision  Changes    Path
1.49                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.49&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.49&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.48&r2=1.49

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- texlive-module.eclass	23 Oct 2010 23:28:24 -0000	1.48
+++ texlive-module.eclass	23 Oct 2010 23:30:14 -0000	1.49
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.48 2010/10/23 23:28:24 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.49 2010/10/23 23:30:14 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -139,6 +139,7 @@
 # @FUNCTION: texlive-module_add_format
 # @DESCRIPTION:
 # Creates/appends to a format.${PN}.cnf file for fmtutil.
+# It parses the AddFormat directive of tlpobj files to create it.
 # This will make fmtutil generate the formats when asked and allow the remaining
 # src_compile phase to build the formats
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:31 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:31 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:31:59

  Modified:             texlive-module.eclass
  Log:
  Cosmetics

Revision  Changes    Path
1.50                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.50&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.50&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.49&r2=1.50

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- texlive-module.eclass	23 Oct 2010 23:30:14 -0000	1.49
+++ texlive-module.eclass	23 Oct 2010 23:31:59 -0000	1.50
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.49 2010/10/23 23:30:14 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.50 2010/10/23 23:31:59 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -141,7 +141,7 @@
 # Creates/appends to a format.${PN}.cnf file for fmtutil.
 # It parses the AddFormat directive of tlpobj files to create it.
 # This will make fmtutil generate the formats when asked and allow the remaining
-# src_compile phase to build the formats
+# src_compile phase to build the formats.
 
 texlive-module_add_format() {
 	local name engine mode patterns options
@@ -158,7 +158,7 @@
 
 # @FUNCTION: texlive-module_make_language_def_lines
 # @DESCRIPTION:
-# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d
+# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d.
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_def_lines() {
@@ -178,7 +178,7 @@
 
 # @FUNCTION: texlive-module_make_language_dat_lines
 # @DESCRIPTION:
-# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d
+# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d.
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_dat_lines() {
@@ -197,7 +197,7 @@
 # @FUNCTION: texlive-module_synonyms_to_language_lua_line
 # @DESCRIPTION:
 # Helper function for texlive-module_make_language_lua_lines to generate a
-# correctly formatted synonyms entry for language.dat.lua
+# correctly formatted synonyms entry for language.dat.lua.
 
 texlive-module_synonyms_to_language_lua_line() {
 	local prev=""
@@ -210,7 +210,8 @@
 # @FUNCTION: texlive-module_make_language_lua_lines
 # @DESCRIPTION:
 # Only valid for TeXLive 2010.
-# Creates a language.${PN}.dat.lua entry to put in /etc/texmf/language.dat.lua.d
+# Creates a language.${PN}.dat.lua entry to put in
+# /etc/texmf/language.dat.lua.d.
 # It parses the AddHyphen directive of tlpobj files to create it.
 
 texlive-module_make_language_lua_lines() {
@@ -296,7 +297,7 @@
 # @FUNCTION: texlive-module_src_install
 # @DESCRIPTION:
 # exported function:
-# Install texmf and config files to the system
+# Installs texmf and config files to the system.
 
 texlive-module_src_install() {
 	for i in texmf/fmtutil/format*.cnf; do
@@ -348,7 +349,7 @@
 # @FUNCTION: texlive-module_pkg_postinst
 # @DESCRIPTION:
 # exported function:
-# run texmf-update to ensure the tex installation is consistent with the
+# Run texmf-update to ensure the tex installation is consistent with the
 # installed texmf trees.
 
 texlive-module_pkg_postinst() {
@@ -364,7 +365,7 @@
 # @FUNCTION: texlive-module_pkg_postrm
 # @DESCRIPTION:
 # exported function:
-# run texmf-update to ensure the tex installation is consistent with the
+# Run texmf-update to ensure the tex installation is consistent with the
 # installed texmf trees.
 
 texlive-module_pkg_postrm() {






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:37 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:37 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:37:24

  Modified:             texlive-module.eclass
  Log:
  Cosmetics

Revision  Changes    Path
1.51                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.51&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.51&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.50&r2=1.51

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- texlive-module.eclass	23 Oct 2010 23:31:59 -0000	1.50
+++ texlive-module.eclass	23 Oct 2010 23:37:24 -0000	1.51
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.50 2010/10/23 23:31:59 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.51 2010/10/23 23:37:24 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -20,7 +20,7 @@
 # Starting from TeX Live 2009, the eclass provides a src_unpack function taking
 # care of unpacking and relocating the files that need it.
 #
-# It inherits texlive-common
+# It inherits texlive-common.
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_CONTENTS
 # @DESCRIPTION:
@@ -34,13 +34,13 @@
 # @DESCRIPTION:
 # The list of packages that will be installed if the doc useflag is enabled.
 # Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
-# valid for TeX Live 2008 and later
+# valid for TeX Live 2008 and later.
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_SRC_CONTENTS
 # @DESCRIPTION:
 # The list of packages that will be installed if the source useflag is enabled.
 # Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
-# valid for TeX Live 2008 and later
+# valid for TeX Live 2008 and later.
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_BINSCRIPTS
 # @DESCRIPTION:






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:51 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:51 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:51:01

  Modified:             texlive-module.eclass
  Log:
  Cosmetics, again and again

Revision  Changes    Path
1.52                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.52&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.52&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.51&r2=1.52

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- texlive-module.eclass	23 Oct 2010 23:37:24 -0000	1.51
+++ texlive-module.eclass	23 Oct 2010 23:51:01 -0000	1.52
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.51 2010/10/23 23:37:24 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.52 2010/10/23 23:51:01 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -107,7 +107,7 @@
 # Only for TeX Live 2009 and later.
 # Gives tar.xz unpack support until we can use an EAPI with that support.
 # If EAPI supports tar.xz then it calls unpack instead of its own unpacker.
-# After unpacking, the files that need to relocated are moved accordingly.
+# After unpacking, the files that need to be relocated are moved accordingly.
 
 RELOC_TARGET=texmf-dist
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-23 23:51 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-23 23:51 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/23 23:51:58

  Modified:             texlive-module.eclass
  Log:
  Cosmetics, again and again

Revision  Changes    Path
1.53                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.53&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.53&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.52&r2=1.53

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- texlive-module.eclass	23 Oct 2010 23:51:01 -0000	1.52
+++ texlive-module.eclass	23 Oct 2010 23:51:58 -0000	1.53
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.52 2010/10/23 23:51:01 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.53 2010/10/23 23:51:58 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -124,6 +124,7 @@
 	else
 		unpack ${A}
 	fi
+
 	grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
 	{ for i in $(<"${T}/reloclist"); do  dirname $i; done; } | uniq > "${T}/dirlist"
 	for i in $(<"${T}/dirlist"); do






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-24  0:41 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-24  0:41 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/24 00:41:41

  Modified:             texlive-module.eclass
  Log:
  Add default values for left/righthyphenmin in language.dat.lua too

Revision  Changes    Path
1.54                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.54&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.54&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.53&r2=1.54

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- texlive-module.eclass	23 Oct 2010 23:51:58 -0000	1.53
+++ texlive-module.eclass	24 Oct 2010 00:41:41 -0000	1.54
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.53 2010/10/23 23:51:58 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.54 2010/10/24 00:41:41 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -219,6 +219,8 @@
 	local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
 	local dest="${S}/language.${PN}.dat.lua"
 	eval $@
+	[ -z "$lefthyphenmin"  ] && lefthyphenmin="2"
+	[ -z "$righthyphenmin" ] && righthyphenmin="3"
 	einfo "Generating language.dat.lua entry for $@"
 	printf "\t['%s'] = {\n" "$name"                                                                 >> "$dest"
 	printf "\t\tloader = '%s',\n" "$file"                                                           >> "$dest"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-10-24 16:26 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-10-24 16:26 UTC (permalink / raw
  To: gentoo-commits

aballier    10/10/24 16:26:36

  Modified:             texlive-module.eclass
  Log:
  Use etexmf-update

Revision  Changes    Path
1.55                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.55&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.55&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.54&r2=1.55

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- texlive-module.eclass	24 Oct 2010 00:41:41 -0000	1.54
+++ texlive-module.eclass	24 Oct 2010 16:26:36 -0000	1.55
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.54 2010/10/24 00:41:41 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.55 2010/10/24 16:26:36 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -356,13 +356,7 @@
 # installed texmf trees.
 
 texlive-module_pkg_postinst() {
-	if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
-		/usr/sbin/texmf-update
-	else
-		ewarn "Cannot run texmf-update for some reason."
-		ewarn "Your texmf tree might be inconsistent with your configuration"
-		ewarn "Please try to figure what has happened"
-	fi
+	etexmf-update
 }
 
 # @FUNCTION: texlive-module_pkg_postrm
@@ -372,13 +366,7 @@
 # installed texmf trees.
 
 texlive-module_pkg_postrm() {
-	if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
-		/usr/sbin/texmf-update
-	else
-		ewarn "Cannot run texmf-update for some reason."
-		ewarn "Your texmf tree might be inconsistent with your configuration"
-		ewarn "Please try to figure what has happened"
-	fi
+	etexmf-update
 }
 
 if [ "${PV#2008}" != "${PV}" ]; then






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-11-07 19:24 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-11-07 19:24 UTC (permalink / raw
  To: gentoo-commits

aballier    10/11/07 19:24:18

  Modified:             texlive-module.eclass
  Log:
  Set umask before unpacking to avoid installing world writable files, bugs #338881, #310039 and #309997

Revision  Changes    Path
1.56                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.56&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.56&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.55&r2=1.56

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- texlive-module.eclass	24 Oct 2010 16:26:36 -0000	1.55
+++ texlive-module.eclass	7 Nov 2010 19:24:18 -0000	1.56
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.55 2010/10/24 16:26:36 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.56 2010/11/07 19:24:18 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -114,6 +114,9 @@
 texlive-module_src_unpack() {
 	if has "${EAPI:-0}" 0 1 2 ; then
 		local i s
+		# Avoid installing world writable files 
+		# Bugs #309997, #310039, #338881
+		umask 022
 		for i in ${A}
 		do
 			s="${DISTDIR%/}/${i}"






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2010-11-07 19:46 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2010-11-07 19:46 UTC (permalink / raw
  To: gentoo-commits

aballier    10/11/07 19:46:55

  Modified:             texlive-module.eclass
  Log:
  Introduce TL_MODULE_INFORMATION variable for displaying postinst messages.

Revision  Changes    Path
1.57                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.57&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.57&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.56&r2=1.57

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- texlive-module.eclass	7 Nov 2010 19:24:18 -0000	1.56
+++ texlive-module.eclass	7 Nov 2010 19:46:55 -0000	1.57
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.56 2010/11/07 19:24:18 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.57 2010/11/07 19:46:55 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -54,6 +54,11 @@
 # If this is not the case, TL_PV takes the version number for the
 # needed app-text/texlive-core.
 
+# @ECLASS-VARIABLE: TL_MODULE_INFORMATION
+# @DESCRIPTION:
+# Information to display about the package.
+# e.g. for enabling/disabling a feature
+
 inherit texlive-common
 
 HOMEPAGE="http://www.tug.org/texlive/"
@@ -360,6 +365,7 @@
 
 texlive-module_pkg_postinst() {
 	etexmf-update
+	[ -n "${TL_MODULE_INFORMATION}" ] && elog "${TL_MODULE_INFORMATION}"
 }
 
 # @FUNCTION: texlive-module_pkg_postrm






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2011-02-17 13:21 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2011-02-17 13:21 UTC (permalink / raw
  To: gentoo-commits

aballier    11/02/17 13:21:43

  Modified:             texlive-module.eclass
  Log:
  inherit base in texlive-module so that we can easily add patches with EAPI>=2

Revision  Changes    Path
1.58                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.58&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.58&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.57&r2=1.58

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- texlive-module.eclass	7 Nov 2010 19:46:55 -0000	1.57
+++ texlive-module.eclass	17 Feb 2011 13:21:43 -0000	1.58
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.57 2010/11/07 19:46:55 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.58 2011/02/17 13:21:43 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -20,7 +20,8 @@
 # Starting from TeX Live 2009, the eclass provides a src_unpack function taking
 # care of unpacking and relocating the files that need it.
 #
-# It inherits texlive-common.
+# It inherits texlive-common and base for supporting patching via the PATCHES
+# bash array with EAPI>=2.
 
 # @ECLASS-VARIABLE: TEXLIVE_MODULE_CONTENTS
 # @DESCRIPTION:
@@ -59,7 +60,7 @@
 # Information to display about the package.
 # e.g. for enabling/disabling a feature
 
-inherit texlive-common
+inherit texlive-common base
 
 HOMEPAGE="http://www.tug.org/texlive/"
 






^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2012-07-26 16:30 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2012-07-26 16:30 UTC (permalink / raw
  To: gentoo-commits

aballier    12/07/26 16:30:37

  Modified:             texlive-module.eclass
  Log:
  Add support for addKanjiMap (needed for TeX Live 2012)

Revision  Changes    Path
1.62                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.62&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.62&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.61&r2=1.62

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- texlive-module.eclass	22 Mar 2012 12:03:54 -0000	1.61
+++ texlive-module.eclass	26 Jul 2012 16:30:37 -0000	1.62
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.61 2012/03/22 12:03:54 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.62 2012/07/26 16:30:37 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -256,6 +256,8 @@
 				echo "Map ${parameter}" >> "${S}/${PN}.cfg";;
 			addMixedMap)
 				echo "MixedMap ${parameter}" >> "${S}/${PN}.cfg";;
+			addKanjiMap)
+				echo "KanjiMap ${parameter}" >> "${S}/${PN}.cfg";;
 			addDvipsMap)
 				echo "p	+${parameter}" >> "${S}/${PN}-config.ps";;
 			addDvipdfmMap)





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2012-07-26 16:40 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2012-07-26 16:40 UTC (permalink / raw
  To: gentoo-commits

aballier    12/07/26 16:40:47

  Modified:             texlive-module.eclass
  Log:
  Use # as parsing magic symbol instead of @, the latter is used in TeX Live 2012.

Revision  Changes    Path
1.63                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.63&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.63&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.62&r2=1.63

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- texlive-module.eclass	26 Jul 2012 16:30:37 -0000	1.62
+++ texlive-module.eclass	26 Jul 2012 16:40:47 -0000	1.63
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.62 2012/07/26 16:30:37 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.63 2012/07/26 16:40:47 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -243,12 +243,12 @@
 	# later
 	for i in "${S}"/tlpkg/tlpobj/*;
 	do
-		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' \t' '@@' |sort|uniq >> "${T}/jobs"
+		grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' \t' '##' |sort|uniq >> "${T}/jobs"
 	done
 
 	for i in $(<"${T}/jobs");
 	do
-		j="$(echo $i | tr '@' ' ')"
+		j="$(echo $i | tr '#' ' ')"
 		command=${j%% *}
 		parameter=${j#* }
 		case "${command}" in





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2013-06-26 19:22 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2013-06-26 19:22 UTC (permalink / raw
  To: gentoo-commits

aballier    13/06/26 19:22:27

  Modified:             texlive-module.eclass
  Log:
  create texmf-var/web2c before trying to build the formats if it does not exist. this is required by texlive 2013

Revision  Changes    Path
1.64                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.64&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.64&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.63&r2=1.64

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- texlive-module.eclass	26 Jul 2012 16:40:47 -0000	1.63
+++ texlive-module.eclass	26 Jun 2013 19:22:27 -0000	1.64
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.63 2012/07/26 16:40:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.64 2013/06/26 19:22:27 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -282,6 +282,8 @@
 	for i in texmf/fmtutil/format*.cnf; do
 		if [ -f "${i}" ]; then
 			einfo "Building format ${i}"
+			[ -d texmf-var ] || mkdir texmf-var
+			[ -d texmf-var/web2c ] || mkdir texmf-var/web2c
 			VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
 				env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
 				|| die "failed to build format ${i}"





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2013-06-28 12:43 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2013-06-28 12:43 UTC (permalink / raw
  To: gentoo-commits

aballier    13/06/28 12:43:54

  Modified:             texlive-module.eclass
  Log:
  Add support for TEXLIVE_MODULE_BINLINKS so that I can fix bug #473584 for TeX Live 2013.

Revision  Changes    Path
1.65                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.65&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.65&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.64&r2=1.65

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- texlive-module.eclass	26 Jun 2013 19:22:27 -0000	1.64
+++ texlive-module.eclass	28 Jun 2013 12:43:54 -0000	1.65
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.64 2013/06/26 19:22:27 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.65 2013/06/28 12:43:54 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -45,6 +45,11 @@
 # texmf tree and that we want to be available directly. They will be installed in
 # /usr/bin.
 
+# @ECLASS-VARIABLE: TEXLIVE_MODULE_BINLINKS
+# @DESCRIPTION:
+# A space separated list of links to add for BINSCRIPTS.
+# The systax is: foo:bar to create a symlink bar -> foo.
+
 # @ECLASS-VARIABLE: TL_PV
 # @DESCRIPTION:
 # Normally the module's PV reflects the TeXLive release it belongs to.
@@ -343,6 +348,12 @@
 	fi
 
 	[ -n "${TEXLIVE_MODULE_BINSCRIPTS}" ] && dobin_texmf_scripts ${TEXLIVE_MODULE_BINSCRIPTS}
+	if [ -n "${TEXLIVE_MODULE_BINLINKS}" ] ; then
+		for i in ${TEXLIVE_MODULE_BINLINKS} ; do
+			[ -f "${ED}/usr/bin/${i%:*}" ] || die "Trying to install an invalid	BINLINK. This should not happen. Please file a bug."
+			dosym ${i%:*} /usr/bin/${i#*:} 
+		done
+	fi
 
 	texlive-common_handle_config_files
 }





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2013-07-05 22:43 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2013-07-05 22:43 UTC (permalink / raw
  To: gentoo-commits

aballier    13/07/05 22:43:41

  Modified:             texlive-module.eclass
  Log:
  install the fmtutil.d files in texmf-dist and run tl-handle-config-files on texmf-dist too since texlive 2013 dropped support for /usr/share/texmf

Revision  Changes    Path
1.66                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.66&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.66&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.65&r2=1.66

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- texlive-module.eclass	28 Jun 2013 12:43:54 -0000	1.65
+++ texlive-module.eclass	5 Jul 2013 22:43:41 -0000	1.66
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.65 2013/06/28 12:43:54 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.66 2013/07/05 22:43:41 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -147,13 +147,13 @@
 	local name engine mode patterns options
 	eval $@
 	einfo "Appending to format.${PN}.cnf for $@"
-	[ -d texmf/fmtutil ] || mkdir -p texmf/fmtutil
-	[ -f texmf/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf/fmtutil/format.${PN}.cnf; }
+	[ -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; }
 	if [ "${mode}" = "disabled" ]; then
-		printf "#! " >> texmf/fmtutil/format.${PN}.cnf
+		printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf
 	fi
 	[ -z "${patterns}" ] && patterns="-"
-	printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf/fmtutil/format.${PN}.cnf
+	printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf-dist/fmtutil/format.${PN}.cnf
 }
 
 # @FUNCTION: texlive-module_make_language_def_lines
@@ -284,7 +284,7 @@
 	done
 
 	# Build format files
-	for i in texmf/fmtutil/format*.cnf; do
+	for i in texmf-dist/fmtutil/format*.cnf; do
 		if [ -f "${i}" ]; then
 			einfo "Building format ${i}"
 			[ -d texmf-var ] || mkdir texmf-var
@@ -306,7 +306,7 @@
 # Installs texmf and config files to the system.
 
 texlive-module_src_install() {
-	for i in texmf/fmtutil/format*.cnf; do
+	for i in texmf-dist/fmtutil/format*.cnf; do
 		[ -f "${i}" ] && etexlinks "${i}"
 	done
 
@@ -356,6 +356,7 @@
 	fi
 
 	texlive-common_handle_config_files
+	TEXMF_PATH=${TEXMF_DIST_PATH} texlive-common_handle_config_files
 }
 
 # @FUNCTION: texlive-module_pkg_postinst





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2014-03-09 18:56 Ulrich Mueller (ulm)
  0 siblings, 0 replies; 63+ messages in thread
From: Ulrich Mueller (ulm) @ 2014-03-09 18:56 UTC (permalink / raw
  To: gentoo-commits

ulm         14/03/09 18:56:00

  Modified:             texlive-module.eclass
  Log:
  Whitespace.

Revision  Changes    Path
1.69                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.69&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.69&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.68&r2=1.69

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- texlive-module.eclass	9 Mar 2014 18:54:44 -0000	1.68
+++ texlive-module.eclass	9 Mar 2014 18:56:00 -0000	1.69
@@ -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.68 2014/03/09 18:54:44 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.69 2014/03/09 18:56:00 ulm Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -356,7 +356,7 @@
 	if [ -n "${TEXLIVE_MODULE_BINLINKS}" ] ; then
 		for i in ${TEXLIVE_MODULE_BINLINKS} ; do
 			[ -f "${ED}/usr/bin/${i%:*}" ] || die "Trying to install an invalid	BINLINK. This should not happen. Please file a bug."
-			dosym ${i%:*} /usr/bin/${i#*:} 
+			dosym ${i%:*} /usr/bin/${i#*:}
 		done
 	fi
 





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2014-11-04 10:32 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2014-11-04 10:32 UTC (permalink / raw
  To: gentoo-commits

aballier    14/11/04 10:32:30

  Modified:             texlive-module.eclass
  Log:
  improve a comment

Revision  Changes    Path
1.70                 eclass/texlive-module.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.70&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.70&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.69&r2=1.70

Index: texlive-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- texlive-module.eclass	9 Mar 2014 18:56:00 -0000	1.69
+++ texlive-module.eclass	4 Nov 2014 10:32:30 -0000	1.70
@@ -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.69 2014/03/09 18:56:00 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.70 2014/11/04 10:32:30 aballier Exp $
 
 # @ECLASS: texlive-module.eclass
 # @MAINTAINER:
@@ -214,7 +214,7 @@
 
 # @FUNCTION: texlive-module_make_language_lua_lines
 # @DESCRIPTION:
-# Only valid for TeXLive 2010.
+# Only valid for TeXLive 2010 and later.
 # Creates a language.${PN}.dat.lua entry to put in
 # /etc/texmf/language.dat.lua.d.
 # It parses the AddHyphen directive of tlpobj files to create it.





^ permalink raw reply	[flat|nested] 63+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
@ 2015-07-30 12:59 Alexis Ballier (aballier)
  0 siblings, 0 replies; 63+ messages in thread
From: Alexis Ballier (aballier) @ 2015-07-30 12:59 UTC (permalink / raw
  To: gentoo-commits

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





^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2015-07-30 12:59 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-28 12:43 [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass Alexis Ballier (aballier)
  -- strict thread matches above, loose matches on Subject: below --
2015-07-30 12:59 Alexis Ballier (aballier)
2014-11-04 10:32 Alexis Ballier (aballier)
2014-03-09 18:56 Ulrich Mueller (ulm)
2013-07-05 22: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)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox