/[gentoo-x86]/eclass/texlive-common.eclass
Gentoo

Diff of /eclass/texlive-common.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.16 2011/08/29 01:28:10 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.17 2012/03/30 13:50:39 aballier Exp $
4 4
5# @ECLASS: texlive-common.eclass 5# @ECLASS: texlive-common.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# tex@gentoo.org 7# tex@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
117 117
118dobin_texmf_scripts() { 118dobin_texmf_scripts() {
119 while [ $# -gt 0 ] ; do 119 while [ $# -gt 0 ] ; do
120 local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]') 120 local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]')
121 einfo "Installing ${1} as ${trg} bin wrapper" 121 einfo "Installing ${1} as ${trg} bin wrapper"
122 if [ "${PV#2008}" = "${PV}" -a "${PV#2009}" = "${PV}" ] ; then
123 [ -x "${D}/usr/share/${1}" ] || die "Trying to install a non existing or non executable symlink to /usr/bin: ${1}" 122 [ -x "${D}/usr/share/${1}" ] || die "Trying to install a non existing or non executable symlink to /usr/bin: ${1}"
124 fi
125 dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg" 123 dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg"
126 shift 124 shift
127 done 125 done
128} 126}
129 127

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20