Magellan Linux

Contents of /trunk/core/fuse3/fuse3-3.2.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30737 - (show annotations) (download)
Tue Mar 27 11:45:34 2018 UTC (6 years, 1 month ago) by niro
File size: 2269 byte(s)
-fixed missing python3 sdep
1 # $Id$
2
3 PNAME="fuse3"
4 PVER="3.2.1"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="fuse-common fuse3"
8
9 PCAT="sys-fs"
10 HOMEPAGE="https://github.com/libfuse/libfuse/releases/"
11
12 COMMON_DEPEND=">= virtual/glibc"
13 SDEPEND=">= dev-util/pkgconfig-0.26
14 ${COMMON_DEPEND}"
15
16 if mqueryfeature "check"
17 then
18 # make check needs libcheck
19 SDEPEND+="
20 >= dev-lang/python3-3.6"
21 fi
22
23 SRCFILE="fuse-${PVER}.tar.xz"
24 SRCDIR="${BUILDDIR}/fuse-${PVER}"
25
26 sminclude meson udev mtools
27
28 SRC_URI=(
29 https://github.com/libfuse/libfuse/releases/download/fuse-${PVER}/${SRCFILE}
30 mirror://fuse/${SRCFILE}
31 )
32
33 # only fuse-3 releases
34 UP2DATE="updatecmd https://github.com/libfuse/libfuse/releases/ | grep download | grep fuse-3 | highesttarball xz"
35
36 split_info_fuse-common()
37 {
38 DESCRIPTION="Common files for fuse2/3 userland utilities."
39 DEPEND="${COMMON_DEPEND}"
40 }
41
42 split_info_fuse3()
43 {
44 DESCRIPTION="Fuse3 userland utilities."
45 DEPEND="== sys-fs/fuse-common-${PVER}"
46 }
47
48 src_check()
49 {
50 # requires utf-8
51 export LC_ALL=en_US.UTF-8
52 meson_src_check || die
53 }
54
55 src_install_fuse-common()
56 {
57 meson_src_install || die
58
59 # remove initscript
60 mdelete -r /etc/init.d || die
61
62 # udev handles dev nodes
63 mdelete -r /dev || die
64
65 # remove files provided by fuse3
66 mdelete /usr/bin/fusermount3 || die
67 mdelete -r /usr/include || die
68 mdelete -r /usr/$(mlibdir)/pkgconfig || die
69 mdelete /usr/$(mlibdir)/libfuse3.so* || die
70 mdelete /usr/share/man/man1/fusermount3.1.gz || die
71 # rename mount.fuse3 for use with fuse2 and fuse3
72 mv ${BINDIR}/usr/sbin/mount.fuse{3,} || die
73
74 minstalldocs AUTHORS COPYING* FAQ NEWS README* || die
75 }
76
77 src_install_fuse3()
78 {
79 meson_src_install || die
80
81 # remove initscript
82 mdelete -r /etc/init.d || die
83
84 # udev handles dev nodes
85 mdelete -r /dev || die
86
87 # remove files provided by fuse-common
88 mdelete $(mget-udev-rules-dir) || die
89 mdelete /usr/bin/mount.fuse3 || die
90 mdelete /usr/share/man/man8/mount.fuse.8.gz || die
91
92 minstalldocs AUTHORS COPYING* FAQ NEWS README* || die
93 }
94
95 preinstall_fuse-common()
96 {
97 if [[ ! -z $(magequery -n fuse) ]]
98 then
99 echo -e ${COLRED}
100 echo -e "Error: sys-fs/fuse is installed!!"
101 echo -e "fuse is now provided by fuse-common and the corresponding fuse2 package."
102 echo -e "Please uninstall sys-fs/fuse first!"
103 echo -e ${COLDEFAULT}
104 die "sys-fs/fuse found!"
105 fi
106 }