DIST Net-LDAPapi-3.0.3.tar.gz 55369 SHA256 8266a0493d6e771635c6788e80ae8e4d480c9a4dd752825e5dc903b9570325fb SHA512 8935233eaf9bf5ba5595ecd8c1659edcb8b032a4b1595ffcc31562b23e9155507183b9f6c4d9a76021257ed074155275ad5d20c23a5d873c7e7a64b7adc41f0a WHIRLPOOL cd7f83950dadbba89097a25cc6c40d370381d40eaada7de69a1afcdfe64f32dd116462e7aa859700f1f58a11c7d6d7d9a977819142833c87a0677ae05b59acb7
+DIST Net-LDAPapi-3.0.4.tar.gz 66972 SHA256 99874f6fe1cd1540c267bb33cb28c2f93881d8644bcc09e6e0fc2c039dd774a3 SHA512 9e2153c9f50a8fba1c8e52493c147a9db7e88015fa48739d4762a4cbc1711c24472b031a6c077d46d38285146ff389f07d9f2908016b0e2c07b76aa75ef2d2ca WHIRLPOOL 7dcf54b8ca3dbcb6a6b66f3658e6e589b047bc3961261d0fdcd23488ae0131a7a84fcf4d500dd67088e9737eb1d13c1306c1bfcd2fcc8ca85d7ef106dc597c94
--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DIST_AUTHOR=MISHIKAL
+
+inherit eutils multilib perl-module
+
+DESCRIPTION="Perl5 Module Supporting LDAP API"
+HOMEPAGE="http://sourceforge.net/projects/net-ldapapi/
+ http://search.cpan.org/~mishikal/Net-LDAPapi/"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+# LICENSE is given on the corresponding sourceforge project and matches the
+# default cpan/perl license
+
+RDEPEND="net-nds/openldap[sasl]
+ dev-libs/cyrus-sasl
+ dev-perl/Convert-ASN1"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker"
+
+# NOTE: tests are available but they hang
+# Tests also require hand-customised live LDAP server
+# and configured LDAP Search Base
+RESTRICT="test"
+
+PATCHES=("${FILESDIR}/${PV}-ldap_result-no_error.patch")
+
+src_configure() {
+ myconf="-sdk OpenLDAP -lib_path /usr/$(get_libdir) -include_path /usr/include"
+ perl-module_src_configure
+}
+
+src_install() {
+ mydoc="Credits Todo"
+ perl-module_src_install
+ if use examples ; then
+ docompress -x usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
--- /dev/null
+diff --git a/LDAPapi.pm b/LDAPapi.pm
+index 113d922..cba3b61 100644
+--- a/LDAPapi.pm
++++ b/LDAPapi.pm
+@@ -1355,8 +1355,8 @@ sub result
+ $self->{"result"} = $result;
+ $self->{"status"} = $status;
+
+- $self->errorize($status);
+ if( $status == -1 || $status == 0 ) {
++ $self->errorize($status);
+ return undef;
+ }
+