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