Annotation of /trunk/core/fuse3/fuse3-3.2.1-r1.smage2
Parent Directory | Revision Log
Revision 30736 -
(hide annotations)
(download)
Tue Mar 27 11:42:46 2018 UTC (6 years, 6 months ago) by niro
File size: 2167 byte(s)
Tue Mar 27 11:42:46 2018 UTC (6 years, 6 months ago) by niro
File size: 2167 byte(s)
auto added: ver bump to 3.2.1-r1
1 | niro | 30734 | # $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 | SRCFILE="fuse-${PVER}.tar.xz" | ||
17 | SRCDIR="${BUILDDIR}/fuse-${PVER}" | ||
18 | |||
19 | sminclude meson udev mtools | ||
20 | |||
21 | SRC_URI=( | ||
22 | https://github.com/libfuse/libfuse/releases/download/fuse-${PVER}/${SRCFILE} | ||
23 | mirror://fuse/${SRCFILE} | ||
24 | ) | ||
25 | |||
26 | # only fuse-3 releases | ||
27 | UP2DATE="updatecmd https://github.com/libfuse/libfuse/releases/ | grep download | grep fuse-3 | highesttarball xz" | ||
28 | |||
29 | split_info_fuse-common() | ||
30 | { | ||
31 | DESCRIPTION="Common files for fuse2/3 userland utilities." | ||
32 | DEPEND="${COMMON_DEPEND}" | ||
33 | } | ||
34 | |||
35 | split_info_fuse3() | ||
36 | { | ||
37 | DESCRIPTION="Fuse3 userland utilities." | ||
38 | DEPEND="== sys-fs/fuse-common-${PVER}" | ||
39 | } | ||
40 | |||
41 | niro | 30735 | src_check() |
42 | { | ||
43 | # requires utf-8 | ||
44 | niro | 30736 | export LC_ALL=en_US.UTF-8 |
45 | niro | 30735 | meson_src_check || die |
46 | } | ||
47 | |||
48 | niro | 30734 | src_install_fuse-common() |
49 | { | ||
50 | meson_src_install || die | ||
51 | |||
52 | # remove initscript | ||
53 | mdelete -r /etc/init.d || die | ||
54 | |||
55 | # udev handles dev nodes | ||
56 | mdelete -r /dev || die | ||
57 | |||
58 | # remove files provided by fuse3 | ||
59 | mdelete /usr/bin/fusermount3 || die | ||
60 | mdelete -r /usr/include || die | ||
61 | mdelete -r /usr/$(mlibdir)/pkgconfig || die | ||
62 | mdelete /usr/$(mlibdir)/libfuse3.so* || die | ||
63 | mdelete /usr/share/man/man1/fusermount3.1.gz || die | ||
64 | # rename mount.fuse3 for use with fuse2 and fuse3 | ||
65 | mv ${BINDIR}/usr/sbin/mount.fuse{3,} || die | ||
66 | |||
67 | minstalldocs AUTHORS COPYING* FAQ NEWS README* || die | ||
68 | } | ||
69 | |||
70 | src_install_fuse3() | ||
71 | { | ||
72 | meson_src_install || die | ||
73 | |||
74 | # remove initscript | ||
75 | mdelete -r /etc/init.d || die | ||
76 | |||
77 | # udev handles dev nodes | ||
78 | mdelete -r /dev || die | ||
79 | |||
80 | # remove files provided by fuse-common | ||
81 | mdelete $(mget-udev-rules-dir) || die | ||
82 | mdelete /usr/bin/mount.fuse3 || die | ||
83 | mdelete /usr/share/man/man8/mount.fuse.8.gz || die | ||
84 | |||
85 | minstalldocs AUTHORS COPYING* FAQ NEWS README* || die | ||
86 | } | ||
87 | |||
88 | preinstall_fuse-common() | ||
89 | { | ||
90 | if [[ ! -z $(magequery -n fuse) ]] | ||
91 | then | ||
92 | echo -e ${COLRED} | ||
93 | echo -e "Error: sys-fs/fuse is installed!!" | ||
94 | echo -e "fuse is now provided by fuse-common and the corresponding fuse2 package." | ||
95 | echo -e "Please uninstall sys-fs/fuse first!" | ||
96 | echo -e ${COLDEFAULT} | ||
97 | die "sys-fs/fuse found!" | ||
98 | fi | ||
99 | } |