Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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