Magellan Linux

Annotation of /trunk/core/coreutils/coreutils-8.30-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31406 - (hide annotations) (download)
Tue Jul 3 12:39:27 2018 UTC (5 years, 10 months ago) by niro
File size: 1827 byte(s)
auto added: ver bump to 8.30-r1
1 niro 31406 # $Id$
2    
3     PNAME="coreutils"
4     PVER="8.30"
5     PBUILD="r1"
6    
7     PCAT="sys-apps"
8    
9     DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)."
10     HOMEPAGE="http://www.gnu.org/software/coreutils/coreutils.html"
11    
12     DEPEND=">= virtual/glibc
13     >= sys-libs/ncurses-5.9
14     >= dev-libs/gmp-5
15     >= sys-dev/gettext-0.18
16     >= sys-apps/acl-2.2
17     >= sys-apps/attr-2.4
18     >= sys-libs/libcap-2.22
19     >= sys-libs/pam-1.1"
20    
21     SDEPEND=">= sys-dev/automake-3
22     >= sys-dev/autoconf-4
23     >= sys-dev/m4-1.4"
24    
25     SRCFILE="${PNAME}-${PVER}.tar.xz"
26     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27    
28     sminclude mtools
29    
30     SRC_URI=(
31     gnu://${PNAME}/${SRCFILE}
32     mirror://${PNAME}/${SRCFILE}
33     mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch
34     )
35    
36     UP2DATE="updatecmd_gnu ${PNAME} xz"
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41     cd ${SRCDIR}
42    
43     # generic patches
44     mpatch ${PNAME}-5.94-more-dir-colors.patch || die
45    
46     if [[ -z $(which cvs 2>/dev/null) ]]
47     then
48     # fix issues with gettext's autopoint if cvs is not installed
49     export AUTOPOINT="/bin/true"
50     fi
51     }
52    
53     src_compile()
54     {
55     cd ${SRCDIR}
56    
57     # ignore root check
58     FORCE_UNSAFE_CONFIGURE=1 \
59     mconfigure \
60     --libexecdir=/usr/$(mlibdir)/${PNAME} \
61     --enable-largefile \
62     --enable-nls \
63     --enable-acl \
64     --enable-xattr \
65     --enable-libcap \
66     --enable-pam \
67     --enable-install-program=arch \
68     || die
69    
70     mmake -j1 || die
71     }
72    
73     src_install()
74     {
75     cd ${SRCDIR}
76     mmake DESTDIR=${BINDIR} install || die
77    
78     mlink test /usr/bin/[ || die
79    
80     minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die
81     }
82    
83     preinstall()
84     {
85     if [[ ! -z $(magequery -n mktemp) ]]
86     then
87     echo -e ${COLRED}
88     echo -e "Error: sys-apps/mktemp is installed!!"
89     echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore."
90     echo -e "Please uninstall sys-apps/mktemp first!"
91     echo -e ${COLDEFAULT}
92     die "sys-apps/mktemp found!"
93     fi
94     }