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

aballier    07/10/14 07:44:10

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

Revision  Changes    Path
1.1                  eclass/texlive-common.eclass

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

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

#
# Original Author: Alexis Ballier <aballier@gentoo.org>
# Purpose: Provide various functions used by both texlive-core and texlive
# modules.
# Note that this eclass *must* not assume the presence of any standard tex tool
#


TEXMF_PATH=/usr/share/texmf
TEXMF_DIST_PATH=/usr/share/texmf-dist
TEXMF_VAR_PATH=/usr/share/texmf-var

# Has to be called in src_install after having installed the files in ${D}
# This function will move the relevant files to /etc/texmf and symling them
# from their original location. This is to allow easy update of texlive's
# configuration

texlive-common_handle_config_files() {
	# Handle config files properly
	cd "${D}${TEXMF_PATH}"
	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
		if [ "${f#*config}" != "${f}" ] ; then
			continue
		fi
		dodir /etc/texmf/$(dirname ${f}).d
		mv "${D}/${TEXMF_PATH}/${f}" "${D}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed."
		dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
	done
}


# Return if a file is present in the texmf tree
# Call it from the directory containing texmf and texmf-dist

texlive-common_is_file_present_in_texmf() {
	local mark="${T}/$1.found"
	find texmf -name $1 -exec touch "${mark}" \;
	find texmf-dist -name $1 -exec touch "${mark}" \;
	[ -f "${mark}" ]
}



-- 
gentoo-commits@gentoo.org mailing list



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

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass
@ 2007-11-06 23:34 Alexis Ballier (aballier)
  0 siblings, 0 replies; 16+ messages in thread
From: Alexis Ballier (aballier) @ 2007-11-06 23:34 UTC (permalink / raw
  To: gentoo-commits

aballier    07/11/06 23:34:43

  Modified:             texlive-common.eclass
  Log:
  change TEXMF_VAR_PATH to match default configuration, hopefully nothing was using it (yet?)

Revision  Changes    Path
1.3                  eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- texlive-common.eclass	20 Oct 2007 12:51:25 -0000	1.2
+++ texlive-common.eclass	6 Nov 2007 23:34:43 -0000	1.3
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.2 2007/10/20 12:51:25 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.3 2007/11/06 23:34:43 aballier Exp $
 
 #
 # Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -12,7 +12,7 @@
 
 TEXMF_PATH=/usr/share/texmf
 TEXMF_DIST_PATH=/usr/share/texmf-dist
-TEXMF_VAR_PATH=/usr/share/texmf-var
+TEXMF_VAR_PATH=/var/lib/texmf
 
 # Has to be called in src_install after having installed the files in ${D}
 # This function will move the relevant files to /etc/texmf and symling them



-- 
gentoo-commits@gentoo.org mailing list



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

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

aballier    08/07/03 21:01:53

  Modified:             texlive-common.eclass
  Log:
  be nice and dont try to do anything if we have not installed any texmf file

Revision  Changes    Path
1.5                  eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- texlive-common.eclass	14 Feb 2008 09:02:11 -0000	1.4
+++ texlive-common.eclass	3 Jul 2008 21:01:53 -0000	1.5
@@ -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-common.eclass,v 1.4 2008/02/14 09:02:11 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.5 2008/07/03 21:01:53 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -28,6 +28,7 @@
 
 texlive-common_handle_config_files() {
 	# Handle config files properly
+	[ -d "${D}${TEXMF_PATH}" ] || return
 	cd "${D}${TEXMF_PATH}"
 	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
 		if [ "${f#*config}" != "${f}" ] ; then



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



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

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass
@ 2008-08-30 12:33 Alexis Ballier (aballier)
  0 siblings, 0 replies; 16+ messages in thread
From: Alexis Ballier (aballier) @ 2008-08-30 12:33 UTC (permalink / raw
  To: gentoo-commits

aballier    08/08/30 12:33:38

  Modified:             texlive-common.eclass
  Log:
  add a special case for mf in etexlinks too, texlive-core already takes care of it

Revision  Changes    Path
1.6                  eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- texlive-common.eclass	3 Jul 2008 21:01:53 -0000	1.5
+++ texlive-common.eclass	30 Aug 2008 12:33:37 -0000	1.6
@@ -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-common.eclass,v 1.5 2008/07/03 21:01:53 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.6 2008/08/30 12:33:37 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -70,6 +70,9 @@
 			cont-??|metafun|mptopdf)
 				elog "Symlink $1 skipped (special case)"
 				;;
+			mf)
+				elog "Symlink $1 -> $2 skipped (texlive-core takes care of it)"
+				;;
 			*)
 				if [ $1 = $2 ];
 				then






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

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

aballier    08/10/14 06:42:44

  Modified:             texlive-common.eclass
  Log:
  Drop symlinks creation messages to einfo instead of elog, bug #241716

Revision  Changes    Path
1.8                  eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- texlive-common.eclass	2 Sep 2008 09:56:31 -0000	1.7
+++ texlive-common.eclass	14 Oct 2008 06:42:44 -0000	1.8
@@ -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-common.eclass,v 1.7 2008/09/02 09:56:31 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.8 2008/10/14 06:42:44 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -68,20 +68,20 @@
 	while [ $# != 0 ]; do
 		case $1 in
 			cont-??|metafun|mptopdf)
-				elog "Symlink $1 skipped (special case)"
+				einfo "Symlink $1 skipped (special case)"
 				;;
 			mf)
-				elog "Symlink $1 -> $2 skipped (texlive-core takes care of it)"
+				einfo "Symlink $1 -> $2 skipped (texlive-core takes care of it)"
 				;;
 			*)
 				if [ $1 = $2 ];
 				then
-					elog "Symlink $1 -> $2 skipped"
+					einfo "Symlink $1 -> $2 skipped"
 				elif [ -e "${D}/usr/bin/$1" ];
 				then
-					elog "Symlink $1 skipped (file exists)"
+					einfo "Symlink $1 skipped (file exists)"
 				else
-					elog "Making symlink from $1 to $2"
+					einfo "Making symlink from $1 to $2"
 					dosym $2 /usr/bin/$1
 				fi
 				;;






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

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

aballier    08/11/06 19:51:30

  Modified:             texlive-common.eclass
  Log:
  Change a bit the dobin_texmf_scripts behavior to symlink instead of installing the file twice. That saves a few bits and we can afford it now that we ensure the permissions are preserved when installing the texmf tree.

Revision  Changes    Path
1.9                  eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- texlive-common.eclass	14 Oct 2008 06:42:44 -0000	1.8
+++ texlive-common.eclass	6 Nov 2008 19:51:30 -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-common.eclass,v 1.8 2008/10/14 06:42:44 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.9 2008/11/06 19:51:30 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -111,12 +111,14 @@
 # @FUNCTION: dobin_texmf_scripts
 # @USAGE: < file1 file2 ... > 
 # @DESCRIPTION:
-# Installs a script from the texmf tree
+# Symlinks a script from the texmf tree to /usr/bin. Requires permissions to be
+# correctly set for the file that it will point to. 
 
 dobin_texmf_scripts() {
 	while [ $# -gt 0 ] ; do
 		local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]')
-		newbin ${1} $trg || die "failed to install ${1} as $trg"
+		einfo "Installing ${1} as ${trg} bin wrapper"
+		dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg"
 		shift
 	done
 }






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

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

aballier    10/01/08 15:19:20

  Modified:             texlive-common.eclass
  Log:
  Add an einfo when moving config files

Revision  Changes    Path
1.10                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- texlive-common.eclass	6 Nov 2008 19:51:30 -0000	1.9
+++ texlive-common.eclass	8 Jan 2010 15:19:20 -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-common.eclass,v 1.9 2008/11/06 19:51:30 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.10 2010/01/08 15:19:20 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -35,6 +35,7 @@
 			continue
 		fi
 		dodir /etc/texmf/$(dirname ${f}).d
+		einfo "Moving (and symlinking) ${TEXMF_PATH}/${f} to /etc/texmf/$(dirname ${f}).d"
 		mv "${D}/${TEXMF_PATH}/${f}" "${D}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed."
 		dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
 	done






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

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

aballier    10/01/09 16:01:52

  Modified:             texlive-common.eclass
  Log:
  no need to move texmf/doc .cnf/cfg files to /etc

Revision  Changes    Path
1.11                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- texlive-common.eclass	8 Jan 2010 15:19:20 -0000	1.10
+++ texlive-common.eclass	9 Jan 2010 16:01:52 -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-common.eclass,v 1.10 2010/01/08 15:19:20 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.11 2010/01/09 16:01:52 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -31,7 +31,7 @@
 	[ -d "${D}${TEXMF_PATH}" ] || return
 	cd "${D}${TEXMF_PATH}"
 	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
-		if [ "${f#*config}" != "${f}" ] ; then
+		if [ "${f#*config}" != "${f}" -o "${f#doc}" != "${f}" ] ; then
 			continue
 		fi
 		dodir /etc/texmf/$(dirname ${f}).d






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

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

aballier    10/01/09 16:03:22

  Modified:             texlive-common.eclass
  Log:
  we want to move files only, really

Revision  Changes    Path
1.12                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- texlive-common.eclass	9 Jan 2010 16:01:52 -0000	1.11
+++ texlive-common.eclass	9 Jan 2010 16:03:22 -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-common.eclass,v 1.11 2010/01/09 16:01:52 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.12 2010/01/09 16:03:22 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -30,7 +30,7 @@
 	# Handle config files properly
 	[ -d "${D}${TEXMF_PATH}" ] || return
 	cd "${D}${TEXMF_PATH}"
-	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
+	for f in $(find . -name '*.cnf' -type f -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
 		if [ "${f#*config}" != "${f}" -o "${f#doc}" != "${f}" ] ; then
 			continue
 		fi






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

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

aballier    10/10/24 04:35:59

  Modified:             texlive-common.eclass
  Log:
  Let dobin_texmf_scripts die if the link is broken... but only for TeX Live 2010 and later so that we avoid breaking existing ebuilds

Revision  Changes    Path
1.13                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- texlive-common.eclass	9 Jan 2010 16:03:22 -0000	1.12
+++ texlive-common.eclass	24 Oct 2010 04:35:59 -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-common.eclass,v 1.12 2010/01/09 16:03:22 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.13 2010/10/24 04:35:59 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -119,6 +119,9 @@
 	while [ $# -gt 0 ] ; do
 		local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]')
 		einfo "Installing ${1} as ${trg} bin wrapper"
+		if [ "${PV#2008}" = "${PV}" -a "${PV#2009}" = "${PV}" ] ; then
+			[ -x "${D}/usr/share/${1}" ] || die "Trying to install a non existing or non executable symlink to /usr/bin: ${1}"
+		fi
 		dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg"
 		shift
 	done






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

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

aballier    10/10/24 16:22:33

  Modified:             texlive-common.eclass
  Log:
  Add etexmf-update to call texmf-update from ebuilds so that some duplicated code can be factorized

Revision  Changes    Path
1.14                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- texlive-common.eclass	24 Oct 2010 04:35:59 -0000	1.13
+++ texlive-common.eclass	24 Oct 2010 16:22:33 -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-common.eclass,v 1.13 2010/10/24 04:35:59 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.14 2010/10/24 16:22:33 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -126,3 +126,19 @@
 		shift
 	done
 }
+
+# @FUNCTION: etexmf-update
+# @USAGE: In ebuilds' pkg_postinst and pkg_postrm phases
+# @DESCRIPTION:
+# Runs texmf-update if it is available and prints a warning otherwise. This
+# function helps in factorizing some code.
+
+etexmf-update() {
+	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
+}






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

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

aballier    12/03/30 13:50:39

  Modified:             texlive-common.eclass
  Log:
  installing broken links has been non fatal only for texlive prior to 2010, which are now gone, remove the code for these versions and make it always fatal

Revision  Changes    Path
1.17                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- texlive-common.eclass	29 Aug 2011 01:28:10 -0000	1.16
+++ texlive-common.eclass	30 Mar 2012 13:50:39 -0000	1.17
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.16 2011/08/29 01:28:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.17 2012/03/30 13:50:39 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -119,9 +119,7 @@
 	while [ $# -gt 0 ] ; do
 		local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]')
 		einfo "Installing ${1} as ${trg} bin wrapper"
-		if [ "${PV#2008}" = "${PV}" -a "${PV#2009}" = "${PV}" ] ; then
-			[ -x "${D}/usr/share/${1}" ] || die "Trying to install a non existing or non executable symlink to /usr/bin: ${1}"
-		fi
+		[ -x "${D}/usr/share/${1}" ] || die "Trying to install a non existing or non executable symlink to /usr/bin: ${1}"
 		dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg"
 		shift
 	done






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

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass
@ 2012-10-17 12:55 Alexis Ballier (aballier)
  0 siblings, 0 replies; 16+ messages in thread
From: Alexis Ballier (aballier) @ 2012-10-17 12:55 UTC (permalink / raw
  To: gentoo-commits

aballier    12/10/17 12:55:42

  Modified:             texlive-common.eclass
  Log:
  do not warn in etexmf-update if we have not yet installed texlive-core, like when installing kpathsea, bug #429682

Revision  Changes    Path
1.18                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- texlive-common.eclass	30 Mar 2012 13:50:39 -0000	1.17
+++ texlive-common.eclass	17 Oct 2012 12:55:42 -0000	1.18
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.17 2012/03/30 13:50:39 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.18 2012/10/17 12:55:42 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -132,11 +132,13 @@
 # function helps in factorizing some code.
 
 etexmf-update() {
-	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"
+	if has_version 'app-text/texlive-core' ; 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
 	fi
 }





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

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass
@ 2012-10-17 13:16 Alexis Ballier (aballier)
  0 siblings, 0 replies; 16+ messages in thread
From: Alexis Ballier (aballier) @ 2012-10-17 13:16 UTC (permalink / raw
  To: gentoo-commits

aballier    12/10/17 13:16:32

  Modified:             texlive-common.eclass
  Log:
  introduce efmtutil-sys: same as etexmf-update but for fmtutil-sys

Revision  Changes    Path
1.19                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- texlive-common.eclass	17 Oct 2012 12:55:42 -0000	1.18
+++ texlive-common.eclass	17 Oct 2012 13:16:31 -0000	1.19
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.18 2012/10/17 12:55:42 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.19 2012/10/17 13:16:31 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -142,3 +142,22 @@
 		fi
 	fi
 }
+
+# @FUNCTION: efmtutil-sys
+# @USAGE: In ebuilds' pkg_postinst to force a rebuild of TeX formats.
+# @DESCRIPTION:
+# Runs fmtutil-sys if it is available and prints a warning otherwise. This
+# function helps in factorizing some code.
+
+efmtutil-sys() {
+	if has_version 'app-text/texlive-core' ; then
+		if [ "$ROOT" = "/" ] && [ -x /usr/bin/fmtutil-sys ] ; then
+			einfo "Rebuilding formats"
+			/usr/bin/fmtutil-sys --all &> /dev/null
+		else
+			ewarn "Cannot run fmtutil-sys for some reason."
+			ewarn "Your formats might be inconsistent with your installed ${PN} version"
+			ewarn "Please try to figure what has happened"
+		fi
+	fi
+}





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

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

aballier    13/06/26 15:54:48

  Modified:             texlive-common.eclass
  Log:
  texlive-common_is_file_present_in_texmf: do not run find if the directory does not exist

Revision  Changes    Path
1.20                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- texlive-common.eclass	17 Oct 2012 13:16:31 -0000	1.19
+++ texlive-common.eclass	26 Jun 2013 15:54:48 -0000	1.20
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.19 2012/10/17 13:16:31 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.20 2013/06/26 15:54:48 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -48,8 +48,8 @@
 
 texlive-common_is_file_present_in_texmf() {
 	local mark="${T}/$1.found"
-	find texmf -name $1 -exec touch "${mark}" \;
-	find texmf-dist -name $1 -exec touch "${mark}" \;
+	[ -d texmf ] && find texmf -name $1 -exec touch "${mark}" \;
+	[ -d texmf-dist ] && find texmf-dist -name $1 -exec touch "${mark}" \;
 	[ -f "${mark}" ]
 }
 





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

* [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass
@ 2014-11-02 18:02 Alexis Ballier (aballier)
  0 siblings, 0 replies; 16+ messages in thread
From: Alexis Ballier (aballier) @ 2014-11-02 18:02 UTC (permalink / raw
  To: gentoo-commits

aballier    14/11/02 18:02:58

  Modified:             texlive-common.eclass
  Log:
  do not config_protect files that shouldnt be: those in the tex/ or source/ tree. bug #488056

Revision  Changes    Path
1.22                 eclass/texlive-common.eclass

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

Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- texlive-common.eclass	18 Mar 2014 16:52:10 -0000	1.21
+++ texlive-common.eclass	2 Nov 2014 18:02:58 -0000	1.22
@@ -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-common.eclass,v 1.21 2014/03/18 16:52:10 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.22 2014/11/02 18:02:58 aballier Exp $
 
 # @ECLASS: texlive-common.eclass
 # @MAINTAINER:
@@ -38,7 +38,7 @@
 	[ -d "${ED}${TEXMF_PATH}" ] || return
 	cd "${ED}${TEXMF_PATH}"
 	for f in $(find . -name '*.cnf' -type f -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
-		if [ "${f#*config}" != "${f}" -o "${f#doc}" != "${f}" ] ; then
+		if [ "${f#*config}" != "${f}" -o "${f#doc}" != "${f}"  -o "${f#source}"	!= "${f}" -o "${f#tex}" != "${f}" ] ; then
 			continue
 		fi
 		dodir /etc/texmf/$(dirname ${f}).d





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

end of thread, other threads:[~2014-11-02 18:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  6:42 [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass Alexis Ballier (aballier)
  -- strict thread matches above, loose matches on Subject: below --
2014-11-02 18:02 Alexis Ballier (aballier)
2013-06-26 15:54 Alexis Ballier (aballier)
2012-10-17 13:16 Alexis Ballier (aballier)
2012-10-17 12:55 Alexis Ballier (aballier)
2012-03-30 13:50 Alexis Ballier (aballier)
2010-10-24 16:22 Alexis Ballier (aballier)
2010-10-24  4:35 Alexis Ballier (aballier)
2010-01-09 16:03 Alexis Ballier (aballier)
2010-01-09 16:01 Alexis Ballier (aballier)
2010-01-08 15:19 Alexis Ballier (aballier)
2008-11-06 19:51 Alexis Ballier (aballier)
2008-08-30 12:33 Alexis Ballier (aballier)
2008-07-03 21:01 Alexis Ballier (aballier)
2007-11-06 23:34 Alexis Ballier (aballier)
2007-10-14  7:44 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