| 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.1 2005/08/09 17:59:50 mkennedy Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/scsh.eclass,v 1.2 2005/08/09 18:07:53 mkennedy Exp $ |
| 4 | # |
4 | # |
| 5 | |
5 | |
| 6 | inherit eutils |
6 | inherit eutils |
| 7 | |
7 | |
| 8 | ECLASS=scsh |
8 | ECLASS=scsh |
| … | |
… | |
| 10 | |
10 | |
| 11 | LICENSE="as-is | BSD" |
11 | LICENSE="as-is | BSD" |
| 12 | SLOT="0" |
12 | SLOT="0" |
| 13 | KEYWORDS="~x86" |
13 | KEYWORDS="~x86" |
| 14 | |
14 | |
| 15 | IUSE="fhs scsh" |
15 | IUSE="scsh" |
| 16 | |
16 | |
| 17 | SCSH_SCSH_PATH=/usr/$(get_libdir)/scsh |
17 | SCSH_SCSH_PATH=/usr/$(get_libdir)/scsh |
| 18 | |
18 | |
| 19 | set_layout() { |
19 | set_layout() { |
| 20 | if use fhs; then |
|
|
| 21 | SCSH_LAYOUT=fhs |
|
|
| 22 | elif use scsh; then |
20 | if use scsh; then |
| 23 | SCSH_LAYOUT=scsh |
21 | SCSH_LAYOUT=scsh |
| 24 | else |
22 | else |
| 25 | ewarn "No layout was specified via USE, defaulting to fhs." |
23 | ewarn "No layout was specified via USE, defaulting to FHS." |
| 26 | SCSH_LAYOUT=fhs |
24 | SCSH_LAYOUT=fhs |
| 27 | fi |
25 | fi |
| 28 | export SCSH_LAYOUT |
26 | export SCSH_LAYOUT |
| 29 | } |
27 | } |
| 30 | |
28 | |