mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-perl/Filesys-SmbClient: Cleanup old 3.200.0-r3
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Kent Fredric <kentnl@gentoo.org>
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=ALIAN
|
||||
DIST_VERSION=3.2
|
||||
inherit perl-module autotools
|
||||
|
||||
DESCRIPTION="Provide Perl API for libsmbclient.so"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=net-fs/samba-4.2[client]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-pkg_config.patch"
|
||||
"${FILESDIR}/${P}-close_fn.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
perl-module_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
src_test() {
|
||||
local MODULES=(
|
||||
"Filesys::SmbClient ${DIST_VERSION}"
|
||||
)
|
||||
local failed=()
|
||||
for dep in "${MODULES[@]}"; do
|
||||
ebegin "Compile testing ${dep}"
|
||||
perl -Mblib="${S}" -M"${dep} ()" -e1
|
||||
eend $? || failed+=( "$dep" )
|
||||
done
|
||||
if [[ ${failed[@]} ]]; then
|
||||
echo
|
||||
eerror "One or more modules failed compile:";
|
||||
for dep in "${failed[@]}"; do
|
||||
eerror " ${dep}"
|
||||
done
|
||||
die "Failing due to module compilation errors";
|
||||
fi
|
||||
# standard tests are not designed to work on a non-developer system.
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
From fa320a06147079458aa5f4834ae8b22cfe278481 Mon Sep 17 00:00:00 2001
|
||||
From: Dennis Lichtenthaeler <dennis.lichtenthaeler@stiftung-tannenhof.de>
|
||||
Date: Wed, 27 Apr 2016 10:57:17 +0200
|
||||
Subject: [PATCH 3/3] Use pkg-config instead of trickery to find samba-4
|
||||
libs/headers
|
||||
|
||||
---
|
||||
Makefile.PL | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/Makefile.PL b/Makefile.PL
|
||||
index 954df92..ed9d846 100755
|
||||
--- a/Makefile.PL
|
||||
+++ b/Makefile.PL
|
||||
@@ -110,6 +110,18 @@ sub find_path {
|
||||
push(@path, $_."/$ext") if !$defaultsDir->{$_};
|
||||
}
|
||||
foreach (keys %$defaultsDir) { push(@path, $_."/$ext"); }
|
||||
+
|
||||
+ ## get default paths from pkg-config
|
||||
+ my $pkgconfig;
|
||||
+ if($_[0]=~m!\.h$!) {
|
||||
+ $pkgconfig = qx/pkg-config --variable=includedir smbclient/;
|
||||
+ }
|
||||
+ else {
|
||||
+ $pkgconfig = qx/pkg-config --variable=libdir smbclient/;
|
||||
+ }
|
||||
+ $pkgconfig =~ s/\n//g;
|
||||
+ push(@path, $pkgconfig);
|
||||
+
|
||||
print "I search in: ",(join "\n", @path),"\n";
|
||||
return @path;
|
||||
}
|
||||
--
|
||||
2.7.3
|
||||
|
||||
Reference in New Issue
Block a user