diff options
author | Alexis Ballier <aballier@gentoo.org> | 2010-10-24 04:35:59 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2010-10-24 04:35:59 +0000 |
commit | 17921b5f9ac63d8cc9a527f4111b7e5b4334abde (patch) | |
tree | f31ce8f530018502820aac3875b63d902b3e5010 /eclass/texlive-common.eclass | |
parent | Remove old. (diff) | |
download | historical-17921b5f9ac63d8cc9a527f4111b7e5b4334abde.tar.gz historical-17921b5f9ac63d8cc9a527f4111b7e5b4334abde.tar.bz2 historical-17921b5f9ac63d8cc9a527f4111b7e5b4334abde.zip |
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
Diffstat (limited to 'eclass/texlive-common.eclass')
-rw-r--r-- | eclass/texlive-common.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index e9f232265a61..4ca90247d7a1 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -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 @@ dobin_texmf_scripts() { 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 |