1 |
commit: 48762e2df3096662d88585fb36d0f2556a3784e8 |
2 |
Author: Kent Fredric <kentfredric <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Mar 1 10:11:15 2016 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 1 11:01:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48762e2d |
7 |
|
8 |
dev-perl/Net-LDAPapi: Bump to version 3.0.4 |
9 |
|
10 |
- EAPI6 |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
dev-perl/Net-LDAPapi/Manifest | 1 + |
15 |
dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild | 46 ++++++++++++++++++++++ |
16 |
.../files/3.0.4-ldap_result-no_error.patch | 14 +++++++ |
17 |
3 files changed, 61 insertions(+) |
18 |
|
19 |
diff --git a/dev-perl/Net-LDAPapi/Manifest b/dev-perl/Net-LDAPapi/Manifest |
20 |
index 70ea0d8..b0d056f 100644 |
21 |
--- a/dev-perl/Net-LDAPapi/Manifest |
22 |
+++ b/dev-perl/Net-LDAPapi/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST Net-LDAPapi-3.0.3.tar.gz 55369 SHA256 8266a0493d6e771635c6788e80ae8e4d480c9a4dd752825e5dc903b9570325fb SHA512 8935233eaf9bf5ba5595ecd8c1659edcb8b032a4b1595ffcc31562b23e9155507183b9f6c4d9a76021257ed074155275ad5d20c23a5d873c7e7a64b7adc41f0a WHIRLPOOL cd7f83950dadbba89097a25cc6c40d370381d40eaada7de69a1afcdfe64f32dd116462e7aa859700f1f58a11c7d6d7d9a977819142833c87a0677ae05b59acb7 |
25 |
+DIST Net-LDAPapi-3.0.4.tar.gz 66972 SHA256 99874f6fe1cd1540c267bb33cb28c2f93881d8644bcc09e6e0fc2c039dd774a3 SHA512 9e2153c9f50a8fba1c8e52493c147a9db7e88015fa48739d4762a4cbc1711c24472b031a6c077d46d38285146ff389f07d9f2908016b0e2c07b76aa75ef2d2ca WHIRLPOOL 7dcf54b8ca3dbcb6a6b66f3658e6e589b047bc3961261d0fdcd23488ae0131a7a84fcf4d500dd67088e9737eb1d13c1306c1bfcd2fcc8ca85d7ef106dc597c94 |
26 |
|
27 |
diff --git a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..cb0d000 |
30 |
--- /dev/null |
31 |
+++ b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild |
32 |
@@ -0,0 +1,46 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+DIST_AUTHOR=MISHIKAL |
40 |
+ |
41 |
+inherit eutils multilib perl-module |
42 |
+ |
43 |
+DESCRIPTION="Perl5 Module Supporting LDAP API" |
44 |
+HOMEPAGE="http://sourceforge.net/projects/net-ldapapi/ |
45 |
+ http://search.cpan.org/~mishikal/Net-LDAPapi/" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="examples" |
49 |
+# LICENSE is given on the corresponding sourceforge project and matches the |
50 |
+# default cpan/perl license |
51 |
+ |
52 |
+RDEPEND="net-nds/openldap[sasl] |
53 |
+ dev-libs/cyrus-sasl |
54 |
+ dev-perl/Convert-ASN1" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ virtual/perl-ExtUtils-MakeMaker" |
57 |
+ |
58 |
+# NOTE: tests are available but they hang |
59 |
+# Tests also require hand-customised live LDAP server |
60 |
+# and configured LDAP Search Base |
61 |
+RESTRICT="test" |
62 |
+ |
63 |
+PATCHES=("${FILESDIR}/${PV}-ldap_result-no_error.patch") |
64 |
+ |
65 |
+src_configure() { |
66 |
+ myconf="-sdk OpenLDAP -lib_path /usr/$(get_libdir) -include_path /usr/include" |
67 |
+ perl-module_src_configure |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ mydoc="Credits Todo" |
72 |
+ perl-module_src_install |
73 |
+ if use examples ; then |
74 |
+ docompress -x usr/share/doc/${PF}/examples |
75 |
+ insinto /usr/share/doc/${PF} |
76 |
+ doins -r examples |
77 |
+ fi |
78 |
+} |
79 |
|
80 |
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 |
81 |
new file mode 100644 |
82 |
index 0000000..d1003ee |
83 |
--- /dev/null |
84 |
+++ b/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch |
85 |
@@ -0,0 +1,14 @@ |
86 |
+diff --git a/LDAPapi.pm b/LDAPapi.pm |
87 |
+index 113d922..cba3b61 100644 |
88 |
+--- a/LDAPapi.pm |
89 |
++++ b/LDAPapi.pm |
90 |
+@@ -1355,8 +1355,8 @@ sub result |
91 |
+ $self->{"result"} = $result; |
92 |
+ $self->{"status"} = $status; |
93 |
+ |
94 |
+- $self->errorize($status); |
95 |
+ if( $status == -1 || $status == 0 ) { |
96 |
++ $self->errorize($status); |
97 |
+ return undef; |
98 |
+ } |
99 |
+ |