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

Diff of /eclass/scsh.eclass

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

Revision 1.4 Revision 1.5
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.4 2005/08/09 18:10:18 mkennedy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/scsh.eclass,v 1.5 2005/08/23 15:03:41 swegener Exp $
4# 4#
5 5
6inherit eutils 6inherit eutils
7
8ECLASS=scsh
9INHERITED="$INHERITED $ECLASS"
10 7
11LICENSE="as-is BSD" 8LICENSE="as-is BSD"
12SLOT="0" 9SLOT="0"
13KEYWORDS="~x86" 10KEYWORDS="~x86"
14 11
30 SCSH_VERSION="$(best_version 'app-shells/scsh')" 27 SCSH_VERSION="$(best_version 'app-shells/scsh')"
31 SCSH_MV="${SCSH_VERSION%*.*}" 28 SCSH_MV="${SCSH_VERSION%*.*}"
32 SCSH_MV="${SCSH_MV//app-shells\/scsh-}" 29 SCSH_MV="${SCSH_MV//app-shells\/scsh-}"
33 export SCSH_VERSION SCSH_MV 30 export SCSH_VERSION SCSH_MV
34 31
35 case $SCSH_LAYOUT in 32 case ${SCSH_LAYOUT} in
36 fhs) 33 fhs)
37 SCSH_PREFIX=/usr 34 SCSH_PREFIX=/usr
38 SCSH_MODULES_PATH=/usr/share/scsh-$SCSH_MV/modules 35 SCSH_MODULES_PATH=/usr/share/scsh-${SCSH_MV}/modules
39 ;; 36 ;;
40 scsh) 37 scsh)
41 SCSH_PREFIX=/usr/$(get_libdir)/scsh/modules 38 SCSH_PREFIX=/usr/$(get_libdir)/scsh/modules
42 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/$SCSH_MV 39 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV}
43 ;; 40 ;;
44 esac 41 esac
45 export SCSH_PREFIX SCSH_MODULES_PATH 42 export SCSH_PREFIX SCSH_MODULES_PATH
46 43
47 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'${SCSH_SCSH_PATH}'"'" "'"'.'"' 44 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'${SCSH_SCSH_PATH}'"'" "'"'.'"'
49} 46}
50 47
51scsh_src_unpack() { 48scsh_src_unpack() {
52 set_layout 49 set_layout
53 set_path_variables 50 set_path_variables
54 einfo "Using $SCSH_LAYOUT layout" 51 einfo "Using ${SCSH_LAYOUT} layout"
55 unpack ${A} 52 unpack ${A}
56} 53}
57 54
58scsh_get_layout_conf() { 55scsh_get_layout_conf() {
59 SCSH_LAYOUT_CONF=" --build $CHOST 56 SCSH_LAYOUT_CONF=" --build ${CHOST}
60 --force 57 --force
61 --layout $SCSH_LAYOUT 58 --layout ${SCSH_LAYOUT}
62 --prefix $SCSH_PREFIX 59 --prefix ${SCSH_PREFIX}
63 --no-user-defaults 60 --no-user-defaults
64 --dest-dir ${D}" 61 --dest-dir ${D}"
65 export SCSH_LAYOUT_CONF 62 export SCSH_LAYOUT_CONF
66} 63}
67 64
68scsh_src_compile() { 65scsh_src_compile() {
69 get_layout_conf 66 get_layout_conf
70} 67}
71 68
72scsh_src_install() { 69scsh_src_install() {
73 dodir $SCSH_MODULES_PATH 70 dodir ${SCSH_MODULES_PATH}
74 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed" 71 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed"
75} 72}
76 73
77EXPORT_FUNCTIONS src_unpack src_compile src_install get_layout_conf 74EXPORT_FUNCTIONS src_unpack src_compile src_install get_layout_conf

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

  ViewVC Help
Powered by ViewVC 1.1.20