# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit libtool multilib MY_PN="${PN/ossp-/}" MY_P="${MY_PN}-${PV}" 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/" SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="cxx dce debug perl pgsql php" RDEPEND="perl? ( dev-lang/perl ) php? ( dev-lang/php )" DEPEND="${RDEPEND}" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd "${S}" elibtoolize } src_compile() { econf --prefix=/usr \ --libdir=/usr/$(get_libdir)/ossp \ --includedir=/usr/include/ossp \ --oldincludedir=/usr/include/ossp \ --datadir=/usr/share/ossp \ $(use_with cxx) \ $(use_with dce) \ $(use_with perl) \ $(use_with perl perl-compat) \ $(use_with php) \ $(use_enable debug) || die "Configuration failed" emake || die "Copilation failed" } src_install() { emake DESTDIR="${D}" install || die "Installation failed" dodoc AUTHORS ChangeLog HISTORY INSTALL NEWS OVERVIEW PORTING README* SEEALSO THANKS TODO* }