blob: c4b3462bcde1596bf78455bee5c90a4eb3302c4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=DPATES
inherit perl-module
DESCRIPTION="Fuse module for perl"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
sys-fs/fuse:0=
dev-perl/Filesys-Statvfs
dev-perl/Lchown
dev-perl/Unix-Mknod
"
DEPEND="
sys-fs/fuse:0=
"
BDEPEND="
virtual/perl-ExtUtils-MakeMaker
test? (
${RDEPEND}
)
"
PATCHES=(
"${FILESDIR}/${PN}-0.16.1-no-dot-inc-tests.patch"
"${FILESDIR}/${PN}-0.16.1-tempdir-override.patch"
"${FILESDIR}/${PN}-0.16.1-ioctl-header.patch"
)
PERL_RM_FILES=(
test/pod.t
)
src_compile() {
mymake=(
"OPTIMIZE=${CFLAGS}"
)
perl-module_src_compile
}
src_test() {
if has usersandbox ${FEATURES}; then
ewarn "'FEATURES=usersandbox' detected, skipping tests"
return
fi
export FUSE_TEMPDIR="${T}/fuse"
mkdir -p "${FUSE_TEMPDIR}" || die "Can't mkdir ${FUSE_TEMPDIR}"
export FUSE_MOUNTPOINT="${FUSE_TEMPDIR}/fuse-mount"
export FUSE_TESTMOUNT="${FUSE_TEMPDIR}/fuse-test"
export FUSE_PIDFILE="${FUSE_TEMPDIR}/mounted.pid"
export FUSE_LOGFILE="${FUSE_TEMPDIR}/fusemnt.log"
# Strict ordering required
export DIST_TEST="do verbose"
perl-module_src_test
}
|