Contents of /smage/branches/alx-0_6_0/core/coreutils/coreutils-8.10-r1.smage2
Parent Directory | Revision Log
Revision 1858 -
(show annotations)
(download)
Tue Apr 26 12:44:42 2011 UTC (13 years, 1 month ago) by niro
File size: 2515 byte(s)
Tue Apr 26 12:44:42 2011 UTC (13 years, 1 month ago) by niro
File size: 2515 byte(s)
-keep only binaries which are not provided by busybox
1 | # $Id$ |
2 | |
3 | PNAME="coreutils" |
4 | PVER="8.10" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)." |
11 | HOMEPAGE="http://www.gnu.org/software/coreutils/coreutils.html" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= sys-libs/ncurses-5.8" |
15 | |
16 | SDEPEND=">= sys-dev/automake-3 |
17 | >= sys-dev/autoconf-4 |
18 | >= sys-dev/m4-1.4 |
19 | >= dev-libs/gmp-5 |
20 | >= sys-dev/gettext-0.18" |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
24 | |
25 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
26 | ALX_ONLY_KEEP="bin/dircolors bin/install bin/ls usr/bin/mktemp bin/touch" |
27 | sminclude mtools cleanutils alx-split |
28 | |
29 | SRC_URI=( |
30 | gnu://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch |
33 | ) |
34 | |
35 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # generic patches |
43 | mpatch ${PNAME}-5.94-more-dir-colors.patch || die |
44 | |
45 | if [[ -z $(which cvs 2>/dev/null) ]] |
46 | then |
47 | # fix issues with gettext's autopoint if cvs is not installed |
48 | export AUTOPOINT="/bin/true" |
49 | fi |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die |
57 | mmake || die |
58 | } |
59 | |
60 | alx_generic_src_install() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | # some needed directories |
65 | minstalldir /usr/bin || die |
66 | minstalldir /usr/sbin || die |
67 | minstalldir /bin || die |
68 | minstalldir /sbin || die |
69 | |
70 | make DESTDIR=${BINDIR} install-root || die |
71 | make DESTDIR=${BINDIR} install || die |
72 | |
73 | mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die |
74 | mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die |
75 | mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die |
76 | |
77 | # small dirty fix, after move 'mv' will not be found anymore |
78 | mlink /bin/mv /usr/bin/mv || die |
79 | |
80 | mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die |
81 | |
82 | mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die |
83 | mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die |
84 | |
85 | mlink test /bin/[ || die |
86 | mlink ../../bin/install /usr/bin || die |
87 | |
88 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die |
89 | |
90 | # only keep binaries which are not provided by busybox |
91 | zapmost ${BINDIR}/bin basename dir head mkfifo shred test vdir || die |
92 | zapmost ${BINDIR}/usr/bin base64 chcon csplit factor fmt groups join link nl nproc paste \ |
93 | pathchk pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum sha512sum \ |
94 | shuf stdbuf sum timeout truncate tsort unlink users || die |
95 | } |