# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/gammu-1.12.0.ebuild,v 1.4 2007/06/23 15:22:20 j0inty Exp $ inherit eutils DESCRIPTION="a fork of the gnokii project, a tool to handle your cellular phone" HOMEPAGE="http://www.gammu.org" SRC_URI="ftp://dl.cihar.com/gammu/releases/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="debug bluetooth irda mysql postgres nokiaphones" RDEPEND="bluetooth? ( net-wireless/bluez-libs ) mysql? ( virtual/mysql ) postgres? ( dev-db/postgresql )" DEPEND="${RDEPEND} irda? ( virtual/os-headers ) sys-devel/autoconf-wrapper dev-util/pkgconfig dev-util/cmake" src_unpack() { unpack ${A} } src_compile() { local myconf="" use debug && myconf="${myconf} -DCMAKE_BUILD_TYPE=\"Debug\"" use bluetooth || myconf="${myconf} -DWITH_Bluez=OFF" #use mysql || myconf="${myconf} --disable-mysql" #use postgres || myconf="${myconf} --disable-pgsql" use irda || myconf="${myconf} -DWITH_IrDA=OFF" #use nokiaphones || myconf="${myconf} -DWITH_NOKIA_SUPPORT=OFF" mkdir build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DENABLE_SHARED=ON \ ${myconf} || die "configure failed" emake || die "make failed" } src_install () { make DESTDIR="${D}" install || die "install failed" mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${P}" }