# Copyright 1999-2011 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.3 2011/07/08 10:51:43 ssuominen 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. use readline && make ReadLine use mysql && make MySQL use cairo && make Cairo use postgres && make PostgreSQL use opengl && make OpenGL use dbi && make DBI use ncurses && make Curses use sqlite && make SQLite use sqlite3 && make SQLite3 use zlib && make Zlib use 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 }