Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/ossp-uuid: ossp-uuid-1.6.2-r3.ebuild ChangeLog
Date: Wed, 25 Jun 2014 06:48:05
Message-Id: 20140625064801.CB1742004F@flycatcher.gentoo.org
1 dev-zero 14/06/25 06:48:01
2
3 Modified: ChangeLog
4 Added: ossp-uuid-1.6.2-r3.ebuild
5 Log:
6 Also build for php-5.5 (bug #491852), add various bug-fixes from Fedora and Ubuntu/Debian, fix Perl-bindings installation.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x1A5D023975B0583D!)
9
10 Revision Changes Path
11 1.45 dev-libs/ossp-uuid/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ossp-uuid/ChangeLog?rev=1.45&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ossp-uuid/ChangeLog?rev=1.45&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ossp-uuid/ChangeLog?r1=1.44&r2=1.45
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ChangeLog,v
20 retrieving revision 1.44
21 retrieving revision 1.45
22 diff -u -r1.44 -r1.45
23 --- ChangeLog 11 Mar 2013 08:09:11 -0000 1.44
24 +++ ChangeLog 25 Jun 2014 06:48:01 -0000 1.45
25 @@ -1,6 +1,17 @@
26 # ChangeLog for dev-libs/ossp-uuid
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ChangeLog,v 1.44 2013/03/11 08:09:11 olemarkus Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ChangeLog,v 1.45 2014/06/25 06:48:01 dev-zero Exp $
31 +
32 +*ossp-uuid-1.6.2-r3 (25 Jun 2014)
33 +
34 + 25 Jun 2014; Tiziano Müller <dev-zero@g.o>
35 + +files/ossp-uuid-1.6.2-fix-data-uuid-from-string.patch,
36 + +files/ossp-uuid-1.6.2-fix-whatis-entries.patch,
37 + +files/ossp-uuid-1.6.2-hwaddr.patch, +files/ossp-uuid-1.6.2-manfix.patch, +fil
38 + es/ossp-uuid-1.6.2-uuid-preserve-m-option-status-in-v-option-handling.patch,
39 + +ossp-uuid-1.6.2-r3.ebuild, -files/ossp-uuid-1.6.2-gentoo.patch:
40 + Also build for php-5.5 (bug #491852), add various bug-fixes from Fedora and
41 + Ubuntu/Debian, fix Perl-bindings installation.
42
43 11 Mar 2013; Ole Markus With <olemarkus@g.o>
44 -ossp-uuid-1.6.2-r1.ebuild:
45
46
47
48 1.1 dev-libs/ossp-uuid/ossp-uuid-1.6.2-r3.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r3.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r3.ebuild?rev=1.1&content-type=text/plain
52
53 Index: ossp-uuid-1.6.2-r3.ebuild
54 ===================================================================
55 # Copyright 1999-2014 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r3.ebuild,v 1.1 2014/06/25 06:48:01 dev-zero Exp $
58
59 EAPI="5"
60
61 MY_P="uuid-${PV}"
62
63 PHP_EXT_NAME="uuid"
64 PHP_EXT_INI="yes"
65 PHP_EXT_ZENDEXT="no"
66 PHP_EXT_S="${WORKDIR}/${MY_P}/php"
67 PHP_EXT_OPTIONAL_USE="php"
68 USE_PHP="php5-3 php5-4 php5-5"
69
70 GENTOO_DEPEND_ON_PERL="no"
71
72 inherit eutils multilib perl-module php-ext-source-r2
73
74 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."
75 HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/"
76 SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz"
77
78 LICENSE="ISC"
79 SLOT="0"
80 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"
81 IUSE="+cxx perl php static-libs"
82
83 DEPEND="perl? ( dev-lang/perl:= )"
84 RDEPEND="${DEPEND}"
85
86 S="${WORKDIR}/${MY_P}"
87
88 src_prepare() {
89
90 epatch \
91 "${FILESDIR}/${P}-gentoo-r1.patch" \
92 "${FILESDIR}/${P}-gentoo-perl.patch" \
93 "${FILESDIR}/${P}-hwaddr.patch" \
94 "${FILESDIR}/${P}-manfix.patch" \
95 "${FILESDIR}/${P}-uuid-preserve-m-option-status-in-v-option-handling.patch" \
96 "${FILESDIR}/${P}-fix-whatis-entries.patch" \
97 "${FILESDIR}/${P}-fix-data-uuid-from-string.patch"
98
99 if use php; then
100 local slot
101 for slot in $(php_get_slots); do
102 php_init_slot_env ${slot}
103 epatch \
104 "${FILESDIR}/${P}-gentoo-php.patch" \
105 "${FILESDIR}/${P}-php.patch"
106 done
107
108 php-ext-source-r2_src_prepare
109 fi
110 }
111
112 src_configure() {
113 # Notes:
114 # * collides with e2fstools libs and includes if not moved around
115 # * pgsql-bindings need PostgreSQL-sources and are included since PostgreSQL 8.3
116 econf \
117 --includedir="${EPREFIX}"/usr/include/ossp \
118 --with-dce \
119 --without-pgsql \
120 --without-perl \
121 --without-php \
122 $(use_with cxx) \
123 $(use_enable static-libs static)
124
125 if use php; then
126 php-ext-source-r2_src_configure
127 fi
128 }
129
130 src_compile() {
131 default
132
133 if use perl; then
134 cd perl
135 # configure needs the ossp-uuid.la generated by `make` in $S
136 perl-module_src_configure
137 perl-module_src_compile
138 fi
139
140 if use php; then
141 php-ext-source-r2_src_compile
142 fi
143 }
144
145 src_install() {
146 DOCS="AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS"
147 default
148
149 if use perl ; then
150 cd perl
151 perl-module_src_install
152 fi
153
154 if use php ; then
155 php-ext-source-r2_src_install
156 cd "${S}/php"
157 insinto /usr/share/php
158 newins uuid.php5 uuid.php
159 fi
160
161 use static-libs || rm -rf "${ED}"/usr/lib*/*.la
162
163 mv "${ED}/usr/$(get_libdir)/pkgconfig"/{,ossp-}uuid.pc
164 mv "${ED}/usr/share/man/man3"/uuid.3{,ossp}
165 mv "${ED}/usr/share/man/man3"/uuid++.3{,ossp}
166 }
167
168 src_test() {
169 export LD_LIBRARY_PATH="${S}/.libs" # required for the perl-bindings to load the (correct) library
170 default
171
172 use perl && emake -C perl test
173 }