Magellan Linux

Contents of /smage/trunk/core/coreutils/coreutils-8.13-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1761 - (show annotations) (download)
Mon Sep 19 10:03:55 2011 UTC (12 years, 7 months ago) by niro
File size: 2494 byte(s)
auto added: ver bump to 8.13-r1
1 # $Id$
2
3 PNAME="coreutils"
4 PVER="8.13"
5 PBUILD="r1"
6
7 PCATEGORIE="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.gz"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 MCORE_ONLY_KEEP="bin/dircolors bin/install bin/ls usr/bin/mktemp bin/touch"
25 sminclude mtools mcore-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} gz"
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 mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die
55 mmake || die
56 }
57
58 mcore_generic_src_install()
59 {
60 cd ${SRCDIR}
61
62 # some needed directories
63 minstalldir /usr/bin || die
64 minstalldir /usr/sbin || die
65 minstalldir /bin || die
66 minstalldir /sbin || die
67
68 make DESTDIR=${BINDIR} install-root || die
69 make DESTDIR=${BINDIR} install || die
70
71 mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die
72 mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die
73 mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die
74
75 # small dirty fix, after move 'mv' will not be found anymore
76 mlink /bin/mv /usr/bin/mv || die
77
78 mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die
79
80 mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die
81 mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die
82
83 mlink test /bin/[ || die
84 mlink ../../bin/install /usr/bin || die
85
86 minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die
87
88 # only keep binaries which are not provided by busybox
89 zapmost ${BINDIR}/bin basename dir dircolors install head ls mkfifo shred test touch vdir || die
90 zapmost ${BINDIR}/usr/bin base64 chcon csplit factor fmt groups join link mktemp nl nproc \
91 paste pathchk pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum sha512sum \
92 shuf stdbuf sum timeout truncate tsort unlink users || die
93 }