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