1 |
commit: 659bf2a1dd3a586af37f83d95a5045a2ba835be7 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 13 12:33:16 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 13 12:33:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=659bf2a1 |
7 |
|
8 |
dev-libs/ossp-uuid: Revbump to increase support to php 5.6 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-libs/ossp-uuid/ossp-uuid-1.6.2-r5.ebuild | 119 +++++++++++++++++++++++++++ |
13 |
1 file changed, 119 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r5.ebuild b/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r5.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..1113834 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r5.ebuild |
20 |
@@ -0,0 +1,119 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+ |
27 |
+MY_P="uuid-${PV}" |
28 |
+ |
29 |
+PHP_EXT_NAME="uuid" |
30 |
+PHP_EXT_INI="yes" |
31 |
+PHP_EXT_ZENDEXT="no" |
32 |
+PHP_EXT_S="${WORKDIR}/${MY_P}/php" |
33 |
+PHP_EXT_OPTIONAL_USE="php" |
34 |
+USE_PHP="php5-6 php5-5" |
35 |
+ |
36 |
+GENTOO_DEPEND_ON_PERL="no" |
37 |
+ |
38 |
+inherit eutils multilib perl-module php-ext-source-r2 |
39 |
+ |
40 |
+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" |
41 |
+HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/" |
42 |
+SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="ISC" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
47 |
+IUSE="+cxx perl php static-libs" |
48 |
+ |
49 |
+DEPEND="perl? ( dev-lang/perl:= )" |
50 |
+RDEPEND="${DEPEND}" |
51 |
+ |
52 |
+S="${WORKDIR}/${MY_P}" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ |
56 |
+ epatch \ |
57 |
+ "${FILESDIR}/${P}-gentoo-r1.patch" \ |
58 |
+ "${FILESDIR}/${P}-gentoo-perl.patch" \ |
59 |
+ "${FILESDIR}/${P}-hwaddr.patch" \ |
60 |
+ "${FILESDIR}/${P}-manfix.patch" \ |
61 |
+ "${FILESDIR}/${P}-uuid-preserve-m-option-status-in-v-option-handling.patch" \ |
62 |
+ "${FILESDIR}/${P}-fix-whatis-entries.patch" \ |
63 |
+ "${FILESDIR}/${P}-fix-data-uuid-from-string.patch" |
64 |
+ |
65 |
+ if use php; then |
66 |
+ local slot |
67 |
+ for slot in $(php_get_slots); do |
68 |
+ php_init_slot_env ${slot} |
69 |
+ epatch \ |
70 |
+ "${FILESDIR}/${P}-gentoo-php.patch" \ |
71 |
+ "${FILESDIR}/${P}-php.patch" |
72 |
+ done |
73 |
+ |
74 |
+ php-ext-source-r2_src_prepare |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ # Notes: |
80 |
+ # * collides with e2fstools libs and includes if not moved around |
81 |
+ # * pgsql-bindings need PostgreSQL-sources and are included since PostgreSQL 8.3 |
82 |
+ econf \ |
83 |
+ --includedir="${EPREFIX}"/usr/include/ossp \ |
84 |
+ --with-dce \ |
85 |
+ --without-pgsql \ |
86 |
+ --without-perl \ |
87 |
+ --without-php \ |
88 |
+ $(use_with cxx) \ |
89 |
+ $(use_enable static-libs static) |
90 |
+ |
91 |
+ if use php; then |
92 |
+ php-ext-source-r2_src_configure |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ default |
98 |
+ |
99 |
+ if use perl; then |
100 |
+ cd perl |
101 |
+ # configure needs the ossp-uuid.la generated by `make` in $S |
102 |
+ perl-module_src_configure |
103 |
+ perl-module_src_compile |
104 |
+ fi |
105 |
+ |
106 |
+ if use php; then |
107 |
+ php-ext-source-r2_src_compile |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ DOCS="AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS" |
113 |
+ default |
114 |
+ |
115 |
+ if use perl ; then |
116 |
+ cd perl |
117 |
+ perl-module_src_install |
118 |
+ fi |
119 |
+ |
120 |
+ if use php ; then |
121 |
+ php-ext-source-r2_src_install |
122 |
+ cd "${S}/php" |
123 |
+ insinto /usr/share/php |
124 |
+ newins uuid.php5 uuid.php |
125 |
+ fi |
126 |
+ |
127 |
+ use static-libs || rm -rf "${ED}"/usr/lib*/*.la |
128 |
+ |
129 |
+ mv "${ED}/usr/$(get_libdir)/pkgconfig"/{,ossp-}uuid.pc |
130 |
+ mv "${ED}/usr/share/man/man3"/uuid.3{,ossp} |
131 |
+ mv "${ED}/usr/share/man/man3"/uuid++.3{,ossp} |
132 |
+} |
133 |
+ |
134 |
+src_test() { |
135 |
+ export LD_LIBRARY_PATH="${S}/.libs" # required for the perl-bindings to load the (correct) library |
136 |
+ default |
137 |
+ |
138 |
+ use perl && emake -C perl test |
139 |
+} |