Contents of /smage/trunk/core/coreutils/coreutils-8.10-r1.smage2
Parent Directory | Revision Log
Revision 2792 -
(show annotations)
(download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 2532 byte(s)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 2532 byte(s)
-merged branch alx-0_6_0 into trunk
1 | # $Id$ |
2 | |
3 | PNAME="coreutils" |
4 | PVER="8.10" |
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.8" |
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 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
25 | ALX_ONLY_KEEP="bin/dircolors bin/install bin/ls usr/bin/mktemp bin/touch" |
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} gz" |
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 | mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die |
56 | mmake || die |
57 | } |
58 | |
59 | alx_generic_src_install() |
60 | { |
61 | cd ${SRCDIR} |
62 | |
63 | # some needed directories |
64 | minstalldir /usr/bin || die |
65 | minstalldir /usr/sbin || die |
66 | minstalldir /bin || die |
67 | minstalldir /sbin || die |
68 | |
69 | make DESTDIR=${BINDIR} install-root || die |
70 | make DESTDIR=${BINDIR} install || die |
71 | |
72 | mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die |
73 | mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die |
74 | mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die |
75 | |
76 | # small dirty fix, after move 'mv' will not be found anymore |
77 | mlink /bin/mv /usr/bin/mv || die |
78 | |
79 | mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die |
80 | |
81 | mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die |
82 | mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die |
83 | |
84 | mlink test /bin/[ || die |
85 | mlink ../../bin/install /usr/bin || die |
86 | |
87 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die |
88 | |
89 | # only keep binaries which are not provided by busybox |
90 | zapmost ${BINDIR}/bin basename dir dircolors install head ls mkfifo shred test touch vdir || die |
91 | zapmost ${BINDIR}/usr/bin base64 chcon csplit factor fmt groups join link mktemp nl nproc \ |
92 | paste pathchk pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum sha512sum \ |
93 | shuf stdbuf sum timeout truncate tsort unlink users || die |
94 | } |