265
|
1 # Copyright 1999-2010 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ossp-uuid-1.6.2.ebuild,v 1.8 2010/04/25 20:14:06 armin76 Exp $
|
|
4
|
|
5 EAPI="2"
|
|
6
|
266
|
7 inherit eutils multilib
|
265
|
8
|
|
9 MY_P="uuid-${PV}"
|
|
10
|
|
11 DESCRIPTION="An ISO-C:1999 API and corresponding CLI for the generation of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant UUID."
|
|
12 HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/"
|
|
13 SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz"
|
|
14 LICENSE="as-is"
|
|
15 SLOT="0"
|
|
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
266
|
17 IUSE="+cxx"
|
265
|
18
|
266
|
19 DEPEND=""
|
265
|
20 RDEPEND="${DEPEND}"
|
|
21
|
|
22 S="${WORKDIR}/${MY_P}"
|
|
23
|
|
24 src_unpack() {
|
|
25 unpack ${A}
|
|
26 cd "${S}"
|
|
27
|
|
28 epatch "${FILESDIR}/${P}-gentoo.patch"
|
|
29 }
|
|
30
|
|
31 src_compile() {
|
|
32 # Notes:
|
|
33 # * collides with e2fstools libs and includes if not moved around
|
|
34 # * perl-bindings are broken
|
|
35 # * pgsql-bindings need PostgreSQL-sources and are included since PostgreSQL 8.3
|
|
36 econf \
|
|
37 --includedir=/usr/include/ossp \
|
|
38 --with-dce \
|
|
39 --without-pgsql \
|
|
40 --without-perl \
|
|
41 --without-php \
|
|
42 $(use_with cxx) \
|
|
43 || die "econf failed"
|
|
44 emake || die "emake failed"
|
|
45 }
|
|
46
|
|
47 src_install() {
|
|
48 emake DESTDIR="${D}" install || die "emake install failed"
|
|
49
|
|
50 dodoc AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS
|
|
51
|
|
52 mv "${D}/usr/$(get_libdir)/pkgconfig"/{,ossp-}uuid.pc
|
|
53 mv "${D}/usr/share/man/man3"/uuid.3{,ossp}
|
|
54 mv "${D}/usr/share/man/man3"/uuid++.3{,ossp}
|
|
55 }
|
|
56
|
|
57 src_test() {
|
|
58 emake check || die "emake check failed"
|
|
59 # Tests for the php-bindings would be available
|
|
60 }
|