Annotation of /smage/trunk/core/coreutils/coreutils-8.27-r5.smage2
Parent Directory | Revision Log
Revision 9650 -
(hide annotations)
(download)
Tue Aug 1 12:26:11 2017 UTC (6 years, 9 months ago) by niro
File size: 2022 byte(s)
Tue Aug 1 12:26:11 2017 UTC (6 years, 9 months ago) by niro
File size: 2022 byte(s)
-added fake arch script
1 | niro | 9650 | # $Id$ |
2 | |||
3 | PNAME="coreutils" | ||
4 | PVER="8.27" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCAT="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.9" | ||
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 | >= sys-libs/ncurses-dev-5.9" | ||
21 | |||
22 | SRCFILE="${PNAME}-${PVER}.tar.xz" | ||
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
24 | |||
25 | ALX_PKG_KEEP="usr/bin/dircolors usr/bin/install usr/bin/ls usr/bin/mktemp usr/bin/touch usr/bin/ln usr/bin/tee usr/bin/arch" | ||
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} xz" | ||
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 | # ignore root check | ||
56 | FORCE_UNSAFE_CONFIGURE=1 \ | ||
57 | mconfigure \ | ||
58 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
59 | --enable-largefile \ | ||
60 | --disable-nls \ | ||
61 | --disable-acl \ | ||
62 | --disable-xattr \ | ||
63 | --disable-libcap \ | ||
64 | --enable-install-program=arch \ | ||
65 | || die | ||
66 | |||
67 | mmake -j1 || die | ||
68 | } | ||
69 | |||
70 | alx_generic_src_install() | ||
71 | { | ||
72 | cd ${SRCDIR} | ||
73 | mmake DESTDIR=${BINDIR} install || die | ||
74 | |||
75 | mlink test /usr/bin/[ || die | ||
76 | |||
77 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die | ||
78 | |||
79 | # only keep binaries which are not provided by busybox | ||
80 | zapmost ${BINDIR}/usr/bin \ | ||
81 | chcon csplit dir dircolors factor fmt install join link ls ln mktemp nl nproc \ | ||
82 | paste pathchk pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum \ | ||
83 | sha512sum shuf stdbuf shred tee touch truncate tsort unlink vdir || die | ||
84 | |||
85 | # emulate arch script for ALX | ||
86 | echo "echo ${ARCH}" > ${BINDIR}/usr/bin/arch || die | ||
87 | mchmod +x ${BINDIR}/usr/bin/arch || die | ||
88 | } |