diff options
author | Kent Fredric <kentfredric@gmail.com> | 2016-03-01 23:11:15 +1300 |
---|---|---|
committer | Kent Fredric <kentfredric@gmail.com> | 2016-03-02 00:01:03 +1300 |
commit | 48762e2df3096662d88585fb36d0f2556a3784e8 (patch) | |
tree | 496831fdb85b763ccfd724556776d9b5ec64002f /dev-perl/Net-LDAPapi | |
parent | sci-libs/libccd: README has been renamed to README.md in git; bug #574906 by ... (diff) | |
download | gentoo-48762e2df3096662d88585fb36d0f2556a3784e8.tar.gz gentoo-48762e2df3096662d88585fb36d0f2556a3784e8.tar.bz2 gentoo-48762e2df3096662d88585fb36d0f2556a3784e8.zip |
dev-perl/Net-LDAPapi: Bump to version 3.0.4
- EAPI6
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-perl/Net-LDAPapi')
-rw-r--r-- | dev-perl/Net-LDAPapi/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild | 46 | ||||
-rw-r--r-- | dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch | 14 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-perl/Net-LDAPapi/Manifest b/dev-perl/Net-LDAPapi/Manifest index 70ea0d8eaea1..b0d056f7a413 100644 --- a/dev-perl/Net-LDAPapi/Manifest +++ b/dev-perl/Net-LDAPapi/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild new file mode 100644 index 000000000000..cb0d000fad5d --- /dev/null +++ b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild @@ -0,0 +1,46 @@ +# 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 +} diff --git a/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch b/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch new file mode 100644 index 000000000000..d1003ee9ae7e --- /dev/null +++ b/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch @@ -0,0 +1,14 @@ +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; + } + |