/[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.10
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.10 2012/11/27 12:50:40 ulm Exp $
4# 4#
5 5
6inherit eutils 6inherit eutils multilib
7 7
8LICENSE="as-is BSD"
9SLOT="0" 8SLOT="0"
10KEYWORDS="~x86"
11
12IUSE="scsh" 9IUSE="scsh"
13 10
14SCSH_SCSH_PATH=/usr/$(get_libdir)/scsh 11scsh_scsh_path() {
12 echo /usr/$(get_libdir)/scsh
13}
15 14
16set_layout() { 15set_layout() {
17 if use scsh; then 16 if use scsh; then
18 SCSH_LAYOUT=scsh 17 SCSH_LAYOUT=scsh
19 else 18 else
39 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV} 38 SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV}
40 ;; 39 ;;
41 esac 40 esac
42 export SCSH_PREFIX SCSH_MODULES_PATH 41 export SCSH_PREFIX SCSH_MODULES_PATH
43 42
44 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'${SCSH_SCSH_PATH}'"'" "'"'.'"' 43 SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'$(scsh_scsh_path)'"'" "'"'.'"'
45 export SCSH_LIB_DIRS 44 export SCSH_LIB_DIRS
46} 45}
47 46
48scsh_src_unpack() { 47scsh_src_unpack() {
49 set_layout 48 set_layout
61 --dest-dir ${D}" 60 --dest-dir ${D}"
62 export SCSH_LAYOUT_CONF 61 export SCSH_LAYOUT_CONF
63} 62}
64 63
65scsh_src_compile() { 64scsh_src_compile() {
66 get_layout_conf 65 scsh_get_layout_conf
67} 66}
68 67
69scsh_src_install() { 68scsh_src_install() {
70 dodir ${SCSH_MODULES_PATH} 69 dodir ${SCSH_MODULES_PATH}
71 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed" 70 scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed"
72} 71}
73 72
74EXPORT_FUNCTIONS src_unpack src_compile src_install get_layout_conf 73EXPORT_FUNCTIONS src_unpack src_compile src_install

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

  ViewVC Help
Powered by ViewVC 1.1.20