Magellan Linux

Contents of /smage/trunk/core/coreutils/coreutils-8.27-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9439 - (show annotations) (download)
Wed Apr 5 09:32:18 2017 UTC (7 years ago) by niro
File size: 1876 byte(s)
-use full blown tee to fix build errors with smage2 while logging is enabled
1 # $Id$
2
3 PNAME="coreutils"
4 PVER="8.27"
5 PBUILD="r2"
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
15 SDEPEND=">= sys-dev/automake-3
16 >= sys-dev/autoconf-4
17 >= sys-dev/m4-1.4
18 >= dev-libs/gmp-5
19 >= sys-dev/gettext-0.18
20 >= sys-libs/ncurses-dev-5.9"
21
22 SRCFILE="${PNAME}-${PVER}.tar.xz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 ALX_PKG_KEEP="usr/bin/dircolors usr/bin/install usr/bin/ls usr/bin/mktemp usr/bin/touch usr/bin/ln"
26 sminclude mtools cleanutils alx-split
27
28 SRC_URI=(
29 gnu://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch
32 )
33
34 UP2DATE="updatecmd_gnu ${PNAME} xz"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # generic patches
42 mpatch ${PNAME}-5.94-more-dir-colors.patch || die
43
44 if [[ -z $(which cvs 2>/dev/null) ]]
45 then
46 # fix issues with gettext's autopoint if cvs is not installed
47 export AUTOPOINT="/bin/true"
48 fi
49 }
50
51 src_compile()
52 {
53 cd ${SRCDIR}
54
55 # ignore root check
56 FORCE_UNSAFE_CONFIGURE=1 \
57 mconfigure \
58 --libexecdir=/usr/$(mlibdir)/${PNAME} \
59 --enable-largefile \
60 --disable-nls \
61 --disable-acl \
62 --disable-xattr \
63 --disable-libcap \
64 --enable-install-program=arch \
65 || die
66
67 mmake -j1 || die
68 }
69
70 alx_generic_src_install()
71 {
72 cd ${SRCDIR}
73 mmake DESTDIR=${BINDIR} install || die
74
75 mlink test /usr/bin/[ || die
76
77 minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die
78
79 # only keep binaries which are not provided by busybox
80 zapmost ${BINDIR}/usr/bin \
81 arch chcon csplit dir dircolors factor fmt install join link ls ln mktemp nl nproc \
82 paste pathchk pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum \
83 sha512sum shuf stdbuf shred tee touch truncate tsort unlink vdir || die
84 }