/[gentoo-x86]/sys-devel/oskit/oskit-20020317.ebuild
Gentoo

Contents of /sys-devel/oskit/oskit-20020317.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jun 2 22:45:58 2004 UTC (14 years ago) by avenj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removing oskit from the tree

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/oskit/oskit-20020317.ebuild,v 1.4 2004/05/17 16:18:43 usata Exp $
4 inherit flag-o-matic
5
6 DESCRIPTION="Building blocks for a x86 operating system."
7 HOMEPAGE="http://www.cs.utah.edu/flux/oskit/"
8 SRC_URI="http://savannah.nongnu.org/download/oskit/snapshots.pkg/${PV}/oskit-${PV}.tar.gz
9 ftp://flux.cs.utah.edu/flux/oskit/oskit-${PV}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 -ppc -sparc -alpha -mips -hppa"
13 DEPEND="doc? ( virtual/tetex )"
14 S=${WORKDIR}/${P}
15 IUSE="debug oskit-profiling oskit-noassert doc oskit-nobuild oskit-noconf"
16
17 src_compile() {
18 local myconf
19 if [ -n "$(use debug && use oskit-noassert)" ] ; then
20 ewarn "Configuring for debugging without assertions!"
21 echo -e '\a' 1>&2
22 sleep 5
23 fi
24 #if [ -z $(use oskit-nobuild) ] && [ ! -z $(use oskit-noconf) ] ; then
25 # eerror "Building but not configuring"
26 # die
27 #fi
28 use debug && myconf="${myconf} --enable-debug"
29 use oskit-profiling && myconf="${myconf} --enable-profiling"
30 use oskit-noassert && myconf="${myconf} --disable-asserts"
31 use doc && myconf="${myconf} --enable-doc"
32 if [ -n "${OSKIT_MODULEFILE}" ] ; then
33 if [ -f "${OSKIT_MODULEFILE}" ] ; then
34 myconf="${myconf} --enable-modulefile=${OSKIT_MODULEFILE}"
35 else
36 ewarn "Modulefile ${OSKIT_MODULEFILE} does not exist or is not a file, not using!"
37 echo -e '\a' 1>&2
38 sleep 5
39 fi
40 fi
41 if [ -n "$(use oskit-nobuild)" ] ; then
42 if [ -n "$(use oskit-noconf)" ] ; then
43 einfo "Configuring OSKit, but not building..."
44 econf ${myconf} || die
45 fi
46 else
47 einfo "Configuring OSKit..."
48 econf ${myconf} || die
49 einfo "Compiling OSKit..."
50 make || die
51 fi
52 }
53
54 src_install() {
55 if [ -n "$(use oskit-nobuild)" ] ; then
56 dodir /usr/src
57 cd ${WORKDIR}
58 einfo "Fixing permissions and ownership..."
59 chown -R root:root * || die
60 chmod -R a+r-w+X,u+w * || die
61 einfo "Installing OSKit sources..."
62 mv ${S} ${D}/usr/src || die
63 rm -f ${WORKDIR}/../.unpacked
64 else
65 einfo "Installing OSKit..."
66 einstall || die
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20