Contents of /smage/trunk/core/coreutils/coreutils-8.7-r1.smage2
Parent Directory | Revision Log
Revision 853 -
(show annotations)
(download)
Fri Dec 3 20:08:27 2010 UTC (13 years, 9 months ago) by niro
File size: 3093 byte(s)
Fri Dec 3 20:08:27 2010 UTC (13 years, 9 months ago) by niro
File size: 3093 byte(s)
auto added: ver bump to 8.7-r1
1 | # $Id: coreutils-7.6-r3.smage2 3616 2009-10-27 13:57:05Z niro $ |
2 | |
3 | PNAME="coreutils" |
4 | PVER="8.7" |
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.7" |
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 | MCORE_ONLY_KEEP="bin/dircolors bin/install bin/ls usr/bin/mktemp bin/touch" |
26 | sminclude mtools mcore-split |
27 | |
28 | SRC_URI=( |
29 | gnu://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/patches-7.6/${PNAME}-5.3.0-dumbterm.patch |
32 | mirror://${PNAME}/patches-7.6/${PNAME}-5.3.0-mem.patch |
33 | mirror://${PNAME}/patches-7.6/${PNAME}-5.3.0-uname.patch |
34 | mirror://${PNAME}/patches-7.6/${PNAME}-5.94-more-dir-colors.patch |
35 | ) |
36 | |
37 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # mandrake patches |
45 | mpatch ${PNAME}-5.3.0-dumbterm.patch || die |
46 | mpatch ${PNAME}-5.3.0-mem.patch || die |
47 | |
48 | # generic patches |
49 | mpatch ${PNAME}-5.3.0-uname.patch || die |
50 | mpatch ${PNAME}-5.94-more-dir-colors.patch || die |
51 | |
52 | # fix compilation with newer versions of glibc |
53 | sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die |
54 | |
55 | if [[ -z $(which cvs 2>/dev/null) ]] |
56 | then |
57 | # fix issues with gettext's autopoint if cvs is not installed |
58 | export AUTOPOINT="/bin/true" |
59 | fi |
60 | |
61 | export WANT_AUTOMAKE=1.11 |
62 | export WANT_AUTOCONF=2.5 |
63 | aclocal -I m4 &>/dev/null || die |
64 | autoconf || die |
65 | automake || die |
66 | } |
67 | |
68 | src_compile() |
69 | { |
70 | cd ${SRCDIR} |
71 | |
72 | mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die |
73 | mmake || die |
74 | } |
75 | |
76 | mcore_generic_src_install() |
77 | { |
78 | cd ${SRCDIR} |
79 | |
80 | # some needed directories |
81 | minstalldir /usr/bin || die |
82 | minstalldir /usr/sbin || die |
83 | minstalldir /bin || die |
84 | minstalldir /sbin || die |
85 | |
86 | make DESTDIR=${BINDIR} install-root || die |
87 | make DESTDIR=${BINDIR} install || die |
88 | |
89 | mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die |
90 | mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die |
91 | mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die |
92 | |
93 | # small dirty fix, after move 'mv' will not be found anymore |
94 | mlink /bin/mv /usr/bin/mv || die |
95 | |
96 | mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die |
97 | |
98 | mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die |
99 | mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die |
100 | |
101 | mlink test /bin/[ || die |
102 | mlink ../../bin/install /usr/bin || die |
103 | |
104 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die |
105 | } |
106 | |
107 | # preinstall() |
108 | # { |
109 | # if [[ ! -z $(magequery -n mktemp) ]] |
110 | # then |
111 | # echo -e ${COLRED} |
112 | # echo -e "Error: sys-apps/mktemp is installed!!" |
113 | # echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore." |
114 | # echo -e "Please uninstall sys-apps/mktemp first!" |
115 | # echo -e ${COLDEFAULT} |
116 | # die "sys-apps/mktemp found!" |
117 | # fi |
118 | # } |