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

Diff of /eclass/scsh.eclass

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

Revision 1.1.1.1 Revision 1.9
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2012 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.1.1.1 2005/11/30 09:59:22 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/scsh.eclass,v 1.9 2012/06/02 19:16:31 zmedico Exp $
4# 4#
5 5
6inherit eutils 6inherit eutils multilib
7 7
8LICENSE="as-is BSD" 8LICENSE="as-is BSD"
9SLOT="0" 9SLOT="0"
10KEYWORDS="~x86"
11
12IUSE="scsh" 10IUSE="scsh"
13 11
14SCSH_SCSH_PATH=/usr/$(get_libdir)/scsh 12scsh_scsh_path() {
13 echo /usr/$(get_libdir)/scsh
14}
15 15
16set_layout() { 16set_layout() {
17 if use scsh; then 17 if use scsh; then
18 SCSH_LAYOUT=scsh 18 SCSH_LAYOUT=scsh
19 else 19 else
39 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV} 39 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV}
40 ;; 40 ;;
41 esac 41 esac
42 export SCSH_PREFIX SCSH_MODULES_PATH 42 export SCSH_PREFIX SCSH_MODULES_PATH
43 43
44 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'${SCSH_SCSH_PATH}'"'" "'"'.'"' 44 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'$(scsh_scsh_path)'"'" "'"'.'"'
45 export SCSH_LIB_DIRS 45 export SCSH_LIB_DIRS
46} 46}
47 47
48scsh_src_unpack() { 48scsh_src_unpack() {
49 set_layout 49 set_layout
61 --dest-dir ${D}" 61 --dest-dir ${D}"
62 export SCSH_LAYOUT_CONF 62 export SCSH_LAYOUT_CONF
63} 63}
64 64
65scsh_src_compile() { 65scsh_src_compile() {
66 get_layout_conf 66 scsh_get_layout_conf
67} 67}
68 68
69scsh_src_install() { 69scsh_src_install() {
70 dodir ${SCSH_MODULES_PATH} 70 dodir ${SCSH_MODULES_PATH}
71 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed" 71 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed"
72} 72}
73 73
74EXPORT_FUNCTIONS src_unpack src_compile src_install get_layout_conf 74EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20