/[gentoo-x86]/eclass/scsh.eclass
Gentoo

Diff of /eclass/scsh.eclass

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

Revision 1.5 Revision 1.6
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/scsh.eclass,v 1.5 2005/08/23 15:03:41 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/scsh.eclass,v 1.6 2006/01/05 17:51:33 mkennedy Exp $
4# 4#
5 5
6inherit eutils 6inherit eutils
7 7
8LICENSE="as-is BSD" 8LICENSE="as-is BSD"
9SLOT="0" 9SLOT="0"
10KEYWORDS="~x86" 10IUSE="scsh"
11DEPEND="$DEPEND
12 app-shells/scsh"
11 13
12IUSE="scsh" 14scsh_scsh_path() {
13 15 echo /usr/$(get_libdir)/scsh
14SCSH_SCSH_PATH=/usr/$(get_libdir)/scsh 16}
15 17
16set_layout() { 18set_layout() {
17 if use scsh; then 19 if use scsh; then
18 SCSH_LAYOUT=scsh 20 SCSH_LAYOUT=scsh
19 else 21 else
39 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV} 41 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV}
40 ;; 42 ;;
41 esac 43 esac
42 export SCSH_PREFIX SCSH_MODULES_PATH 44 export SCSH_PREFIX SCSH_MODULES_PATH
43 45
44 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'${SCSH_SCSH_PATH}'"'" "'"'.'"' 46 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'$(scsh_scsh_path)'"'" "'"'.'"'
45 export SCSH_LIB_DIRS 47 export SCSH_LIB_DIRS
46} 48}
47 49
48scsh_src_unpack() { 50scsh_src_unpack() {
49 set_layout 51 set_layout
61 --dest-dir ${D}" 63 --dest-dir ${D}"
62 export SCSH_LAYOUT_CONF 64 export SCSH_LAYOUT_CONF
63} 65}
64 66
65scsh_src_compile() { 67scsh_src_compile() {
66 get_layout_conf 68 scsh_get_layout_conf
67} 69}
68 70
69scsh_src_install() { 71scsh_src_install() {
70 dodir ${SCSH_MODULES_PATH} 72 dodir ${SCSH_MODULES_PATH}
71 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed" 73 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed"
72} 74}
73 75
74EXPORT_FUNCTIONS src_unpack src_compile src_install get_layout_conf 76EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20