# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit libtool eutils DESCRIPTION="API and CLI for the generation of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant UUIDs." HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/" LICENSE="MIT" SLOT="0" KEYWORDS="-* ~x86" IUSE="cxx dce debug perl pgsql php" SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/uuid-${PV}.tar.gz" RDEPEND="perl? ( dev-lang/perl ) php? ( dev-lang/php )" DEPEND="${RDEPEND}" S="${WORKDIR}/uuid-${PV}" src_unpack() { unpack uuid-${PV}.tar.gz } src_compile() { local myconf="--prefix=/usr --libdir=/usr/lib/ossp --includedir=/usr/include/ossp --oldincludedir=/usr/include/ossp --datadir=/usr/share/ossp $(use_with cxx) \ $(use_with dce) \ $(use_with perl) \ $(use_with php) \ $(use_enable debug)" econf $myconf || die "Configuration failed" emake || die "Copilation failed" } src_install() { make DESTDIR="${D}" install || die "Installation failed" dodoc AUTHORS ChangeLog HISTORY INSTALL NEWS OVERVIEW PORTING README* SEEALSO THANKS TODO* }