Contents of /trunk/core/coreutils/coreutils-6.10-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 3077 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 3077 byte(s)
import repo
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.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.6 |
15 | >= sys-dev/gettext-0.12" |
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.3.0-tests.patch |
33 | mirror://${PNAME}/patches-${PVER}/${PNAME}-5.94-more-dir-colors.patch |
34 | ) |
35 | |
36 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # mandrake patches |
44 | mpatch ${PNAME}-5.3.0-dumbterm.patch || die |
45 | mpatch ${PNAME}-5.3.0-mem.patch || die |
46 | |
47 | # generic patches |
48 | mpatch ${PNAME}-5.3.0-uname.patch || die |
49 | mpatch ${PNAME}-5.3.0-tests.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.10 |
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 --enable-nls || die |
73 | mmake || die |
74 | } |
75 | |
76 | 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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |