Subscribed unsubscribe Subscribe Subscribe

io-20060304.ebuild

Gentoo

KEYWORDSとSを古いebuildに合わせて少し修正した.Bugzillaにも投げておいた.

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Io is small prototype-based programming language."
HOMEPAGE="http://www.iolanguage.com/"

FULL_P="IoFull-${PV:0:4}-${PV:4:2}-${PV:6:2}"
VM_P="IoVM-${PV:0:4}-${PV:4:2}-${PV:6:2}"
SRC_URI="
        full? ( http://io.urbanape.com/release/${FULL_P}.tar.gz )
        !full? ( http://io.urbanape.com/release/${FULL_P}.tar.gz )"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ppc-macos"
IUSE="doc full"

if use full ; then
        S=${WORKDIR}/release/${FULL_P}
else
        S=${WORKDIR}/release/${VM_P}
fi

src_unpack() {
        unpack ${A}
        cd ${S}
}

src_compile() {
        emake || die
}

src_install() {
        # copy the relevant portions by hand
        if use full; then
                dobin binaries/*
        else
                dobin vm/io
        fi

        if use doc ; then
                dodoc _docs/*
                dohtml -r _docs/*
        fi

        # support for embedding
        dodir /usr/include/Io/base
        insinto /usr/include/Io
        doins vm/_include/*
        insinto /usr/include/Io/base
        doins vm/_include/base/*
        dolib vm/_libs/libIoVM.a
}