# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/io/io-2009.01.02-r1.ebuild,v 1.2 2010/06/17 21:31:21 patrick Exp $ DESCRIPTION="Io is a small, prototype-based programming language." HOMEPAGE="http://www.iolanguage.com" SRC_URI="mirror://gentoo/${P}.tar.gz http://dev.gentoo.org/~araujo/snapshots/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="doc readline mysql cairo postgres dbi opengl ncurses sqlite sqlite3 zlib lzo" DEPEND="lzo? ( dev-libs/lzo ) readline? ( sys-libs/readline ) mysql? ( virtual/mysql ) cairo? ( x11-libs/cairo ) postgres? ( dev-db/postgresql-server ) opengl? ( virtual/opengl ) dbi? ( dev-db/libdbi ) ncurses? ( sys-libs/ncurses ) sqlite? ( dev-db/sqlite ) sqlite3? ( >=dev-db/sqlite-3.0.0 ) zlib? ( sys-libs/zlib )" RDEPEND="" src_compile() { make INSTALL_PREFIX="/usr" vm || die "make failed." # Building optional addons if any. useq readline && make ReadLine useq mysql && make MySQL useq cairo && make Cairo useq postgres && make PostgreSQL useq opengl && make OpenGL useq dbi && make DBI useq ncurses && make Curses useq sqlite && make SQLite useq sqlite3 && make SQLite3 useq zlib && make Zlib useq lzo && make LZO } src_install() { make install \ INSTALL_PREFIX="${D}/usr" \ || die "make install failed" if use doc; then dodoc docs/docs.css docs/*.html fi }