Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 343699 | Differences between
and this patch

Collapse All | Expand All

(-)ossp-uuid-1.6.2.ebuild (-18 / +27 lines)
Lines 1-44 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
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 $
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
4
5
EAPI="1"
5
EAPI="2"
6
6
7
PHP_EXT_NAME="uuid"
7
PHP_EXT_NAME="uuid"
8
PHP_EXT_INI="yes"
8
PHP_EXT_INI="yes"
9
PHP_EXT_ZENDEXT="no"
9
PHP_EXT_ZENDEXT="no"
10
PHP_VERSION="5"
10
PHP_VERSION="5"
11
11
12
inherit eutils multilib php-ext-source-r1 depend.php
13
14
MY_P="uuid-${PV}"
12
MY_P="uuid-${PV}"
13
PHP_EXT_S="${WORKDIR}/${MY_P}/php"
14
PHP_EXT_OPTIONAL_USE="php"
15
inherit eutils multilib php-ext-source-r2
15
16
16
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."
17
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."
17
HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/"
18
HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/"
18
SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz"
19
SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz"
19
LICENSE="as-is"
20
LICENSE="as-is"
20
SLOT="0"
21
SLOT="0"
21
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
22
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
22
IUSE="+cxx php"
23
IUSE="+cxx php"
23
24
24
DEPEND="php? ( dev-lang/php:5 )"
25
DEPEND=""
25
RDEPEND="${DEPEND}"
26
RDEPEND="${DEPEND}"
26
27
27
S="${WORKDIR}/${MY_P}"
28
S="${WORKDIR}/${MY_P}"
28
29
29
src_unpack() {
30
src_prepare() {
30
	unpack ${A}
31
	cd "${S}"
32
31
33
	epatch "${FILESDIR}/${P}-gentoo.patch"
32
	epatch "${FILESDIR}/${P}-gentoo-r1.patch"
34
33
35
	if use php; then
34
	if use php; then
36
		cd php
35
		local slot
37
		php-ext-source-r1_phpize
36
		for slot in $(php_get_slots); do
37
	        php_init_slot_env ${slot}
38
			epatch "${FILESDIR}/${P}-php.patch"
39
		done
40
41
		php-ext-source-r2_src_prepare
38
	fi
42
	fi
39
}
43
}
40
44
41
src_compile() {
45
src_configure() {
42
	# Notes:
46
	# Notes:
43
	# * collides with e2fstools libs and includes if not moved around
47
	# * collides with e2fstools libs and includes if not moved around
44
	# * perl-bindings are broken
48
	# * perl-bindings are broken
Lines 51-61 Link Here
51
		--without-php \
55
		--without-php \
52
		$(use_with cxx) \
56
		$(use_with cxx) \
53
		|| die "econf failed"
57
		|| die "econf failed"
58
	if use php; then
59
		php-ext-source-r2_src_configure
60
	fi
61
}
62
63
src_compile() {
54
	emake || die "emake failed"
64
	emake || die "emake failed"
55
65
56
	if use php; then
66
	if use php; then
57
		cd php
67
		php-ext-source-r2_src_compile
58
		php-ext-source-r1_src_compile
59
	fi
68
	fi
60
}
69
}
61
70
Lines 65-73 Link Here
65
	dodoc AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS
74
	dodoc AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS
66
75
67
	if use php ; then
76
	if use php ; then
68
		cd php
77
		php-ext-source-r2_src_install
69
		php-ext-source-r1_src_install
78
		cd "${S}/php"
70
		insinto /usr/share/php5
79
		insinto /usr/share/php
71
		newins uuid.php5 uuid.php
80
		newins uuid.php5 uuid.php
72
	fi
81
	fi
73
82

Return to bug 343699