diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2011-06-05 10:34:00 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2011-06-05 10:34:00 +0000 |
commit | 9f8b3d4a75f853c8acef89fe389b971bcbc8fbae (patch) | |
tree | 12f1719c195aa81294d51be070f4cebf8fd93b9b | |
parent | arm stable, bug #368281 (diff) | |
download | gentoo-2-9f8b3d4a75f853c8acef89fe389b971bcbc8fbae.tar.gz gentoo-2-9f8b3d4a75f853c8acef89fe389b971bcbc8fbae.tar.bz2 gentoo-2-9f8b3d4a75f853c8acef89fe389b971bcbc8fbae.zip |
Revbump to fix bug 343699
(Portage version: 2.1.9.49/cvs/Linux x86_64)
-rw-r--r-- | dev-libs/ossp-uuid/ChangeLog | 13 | ||||
-rw-r--r-- | dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-php.patch | 42 | ||||
-rw-r--r-- | dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-r1.patch | 70 | ||||
-rw-r--r-- | dev-libs/ossp-uuid/ossp-uuid-1.6.2-r1.ebuild | 91 |
4 files changed, 214 insertions, 2 deletions
diff --git a/dev-libs/ossp-uuid/ChangeLog b/dev-libs/ossp-uuid/ChangeLog index 4a98b4cbbb4e..7290ae6ef2ba 100644 --- a/dev-libs/ossp-uuid/ChangeLog +++ b/dev-libs/ossp-uuid/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-libs/ossp-uuid -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ChangeLog,v 1.20 2010/04/25 20:14:06 armin76 Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ChangeLog,v 1.21 2011/06/05 10:34:00 olemarkus Exp $ + +*ossp-uuid-1.6.2-r1 (05 Jun 2011) + + 05 Jun 2011; <olemarkus@gentoo.org> +ossp-uuid-1.6.2-r1.ebuild, + +files/ossp-uuid-1.6.2-gentoo-php.patch, + +files/ossp-uuid-1.6.2-gentoo-r1.patch: + Non-maintainer commit: Made ebuild work with minor version slotted PHP. + Split patch so the PHP part could be applied to all versions. + See bug 343699 25 Apr 2010; Raúl Porcel <armin76@gentoo.org> ossp-uuid-1.6.2.ebuild: alpha/arm/ia64/s390/sh/sparc stable wrt #285475 diff --git a/dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-php.patch b/dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-php.patch new file mode 100644 index 000000000000..69c788bf1a05 --- /dev/null +++ b/dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-php.patch @@ -0,0 +1,42 @@ +diff -Naur uuid-1.6.2.orig/php/config.m4 uuid-1.6.2/php/config.m4 +--- uuid-1.6.2.orig/php/config.m4 2009-03-21 12:52:49.142847389 +0100 ++++ uuid-1.6.2/php/config.m4 2009-03-21 12:53:06.282809038 +0100 +@@ -33,10 +33,10 @@ + if test "$PHP_UUID" != "no"; then + PHP_NEW_EXTENSION(uuid, uuid.c, $ext_shared) + AC_DEFINE(HAVE_UUID, 1, [Have OSSP uuid library]) +- PHP_ADD_LIBPATH([..], ) +- PHP_ADD_LIBRARY([uuid],, UUID_SHARED_LIBADD) ++ PHP_ADD_LIBRARY([ossp-uuid],, UUID_SHARED_LIBADD) +- PHP_ADD_INCLUDE([..]) ++ PHP_ADD_INCLUDE([../uuid-1.6.2]) + PHP_SUBST(UUID_SHARED_LIBADD) ++ LDFLAGS="$LDFLAGS -L../uuid-1.6.2/.libs" + + dnl avoid linking conflict with a potentially existing uuid_create(3) in libc + AC_CHECK_FUNC(uuid_create,[ +diff -Naur uuid-1.6.2.orig/php/Makefile.local uuid-1.6.2/php/Makefile.local +--- uuid-1.6.2.orig/php/Makefile.local 2009-03-21 12:52:49.142847389 +0100 ++++ uuid-1.6.2/php/Makefile.local 2009-03-21 12:53:06.282809038 +0100 +@@ -42,7 +42,7 @@ + + test: build + @version=`$(PHP)-config --version | sed -e 's;^\([0-9]\).*$$;\1;'`; \ +- $(PHP) -q -d "safe_mode=0" -d "extension_dir=./" uuid.ts $$version ++ $(PHP) -q -d "safe_mode=0" -d "extension_dir=./modules/" uuid.ts $$version + + install: build + @version=`$(PHP)-config --version | sed -e 's;^\([0-9]\).*$$;\1;'`; extdir="$(EXTDIR)"; \ +diff -Naur uuid-1.6.2.orig/php/uuid.ts uuid-1.6.2/php/uuid.ts +--- uuid-1.6.2.orig/php/uuid.ts 2009-03-21 12:52:49.142847389 +0100 ++++ uuid-1.6.2/php/uuid.ts 2009-03-21 12:53:06.282809038 +0100 +@@ -36,7 +36,7 @@ + + print "++ loading DSO uuid.so (low-level API)\n"; + if (!extension_loaded('uuid')) { +- dl('modules/uuid.so'); ++ dl('uuid.so'); + } + + print "++ loading PHP uuid.php${php_version} (high-level API)\n"; + diff --git a/dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-r1.patch b/dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-r1.patch new file mode 100644 index 000000000000..d24fcba721b5 --- /dev/null +++ b/dev-libs/ossp-uuid/files/ossp-uuid-1.6.2-gentoo-r1.patch @@ -0,0 +1,70 @@ +--- uuid-1.6.2.orig/Makefile.in 2009-03-21 12:52:49.142847389 +0100 ++++ uuid-1.6.2.orig/Makefile.in 2009-03-21 12:53:54.201971177 +0100 +@@ -62,13 +62,13 @@ + PHP = @PHP@ + PG_CONFIG = @PG_CONFIG@ + +-LIB_NAME = libuuid.la ++LIB_NAME = libossp-uuid.la + LIB_OBJS = uuid.lo uuid_md5.lo uuid_sha1.lo uuid_prng.lo uuid_mac.lo uuid_time.lo uuid_ui64.lo uuid_ui128.lo uuid_str.lo + +-DCE_NAME = libuuid_dce.la ++DCE_NAME = libossp-uuid_dce.la + DCE_OBJS = uuid_dce.lo $(LIB_OBJS) + +-CXX_NAME = libuuid++.la ++CXX_NAME = libossp-uuid++.la + CXX_OBJS = uuid++.lo $(LIB_OBJS) + + PRG_NAME = uuid +@@ -112,15 +112,15 @@ + @$(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< + + $(LIB_NAME): $(LIB_OBJS) +- @$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \ ++ @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \ + -version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h` + + $(DCE_NAME): $(DCE_OBJS) +- @$(LIBTOOL) --mode=link $(CC) -o $(DCE_NAME) $(DCE_OBJS) -rpath $(libdir) \ ++ @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(DCE_NAME) $(DCE_OBJS) -rpath $(libdir) \ + -version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h` + + $(CXX_NAME): $(CXX_OBJS) +- @$(LIBTOOL) --mode=link $(CXX) -o $(CXX_NAME) $(CXX_OBJS) -rpath $(libdir) \ ++ @$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $(CXX_NAME) $(CXX_OBJS) -rpath $(libdir) \ + -version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h` + + $(PRG_NAME): $(PRG_OBJS) $(LIB_NAME) +@@ -253,7 +253,7 @@ + -@if [ ".$(WITH_CXX)" = .yes ]; then \ + $(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 $(CXX_NAME) $(DESTDIR)$(libdir)/; \ + fi +- @$(LIBTOOL) --mode=install $(SHTOOL) install -c -s -m 755 uuid $(DESTDIR)$(bindir)/ ++ @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 755 uuid $(DESTDIR)$(bindir)/ + $(SHTOOL) install -c -m 644 $(S)/uuid.1 $(DESTDIR)$(mandir)/man1/ + -@if [ ".$(WITH_PERL)" = .yes ]; then \ + (cd $(S)/perl && $(MAKE) $(MFLAGS) install DESTDIR=$(DESTDIR)); \ +--- uuid-1.6.2.orig/uuid-config.in 2009-03-21 12:52:49.146166177 +0100 ++++ uuid-1.6.2.orig/uuid-config.in 2009-03-21 12:53:06.282809038 +0100 +@@ -121,7 +121,7 @@ + output_extra="$output_extra $uuid_ldflags" + ;; + --libs) +- output="$output -luuid" ++ output="$output -lossp-uuid" + output_extra="$output_extra $uuid_libs" + ;; + * ) +--- uuid-1.6.2.orig/uuid.pc.in 2009-03-21 12:52:49.146166177 +0100 ++++ uuid-1.6.2.orig/uuid.pc.in 2009-03-21 12:53:06.282809038 +0100 +@@ -36,7 +36,7 @@ + Description: Universally Unique Identifier (UUID) Library + Version: @UUID_VERSION_RAW@ + URL: http://www.ossp.org/pkg/lib/uuid/ +-Cflags: -I${includedir} +-Libs: -L${libdir} -luuid ++Cflags: -I${includedir}/ossp ++Libs: -L${libdir} -lossp-uuid + Libs.private: @LIBS@ + diff --git a/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r1.ebuild b/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r1.ebuild new file mode 100644 index 000000000000..6d417a586896 --- /dev/null +++ b/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r1.ebuild,v 1.1 2011/06/05 10:34:00 olemarkus Exp $ + +EAPI="2" + +PHP_EXT_NAME="uuid" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_VERSION="5" + +MY_P="uuid-${PV}" +PHP_EXT_S="${WORKDIR}/${MY_P}/php" +PHP_EXT_OPTIONAL_USE="php" +inherit eutils multilib php-ext-source-r2 + +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." +HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/" +SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="+cxx php" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + + epatch "${FILESDIR}/${P}-gentoo-r1.patch" + + if use php; then + local slot + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + epatch "${FILESDIR}/${P}-gentoo-php.patch" + done + + php-ext-source-r2_src_prepare + fi +} + +src_configure() { + # Notes: + # * collides with e2fstools libs and includes if not moved around + # * perl-bindings are broken + # * pgsql-bindings need PostgreSQL-sources and are included since PostgreSQL 8.3 + econf \ + --includedir=/usr/include/ossp \ + --with-dce \ + --without-pgsql \ + --without-perl \ + --without-php \ + $(use_with cxx) \ + || die "econf failed" + if use php; then + php-ext-source-r2_src_configure + fi +} + +src_compile() { + emake || die "emake failed" + + if use php; then + php-ext-source-r2_src_compile + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS + + if use php ; then + php-ext-source-r2_src_install + cd "${S}/php" + insinto /usr/share/php + newins uuid.php5 uuid.php + fi + + mv "${D}/usr/$(get_libdir)/pkgconfig"/{,ossp-}uuid.pc + mv "${D}/usr/share/man/man3"/uuid.3{,ossp} + mv "${D}/usr/share/man/man3"/uuid++.3{,ossp} +} + +src_test() { + emake check || die "emake check failed" + # Tests for the php-bindings would be available +} |