Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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