Contents of /trunk/core/coreutils/coreutils-9.3-r1.smage2
Parent Directory | Revision Log
Revision 33414 -
(show annotations)
(download)
Sat Jul 15 20:23:43 2023 UTC (9 months, 4 weeks ago) by niro
File size: 2050 byte(s)
Sat Jul 15 20:23:43 2023 UTC (9 months, 4 weeks ago) by niro
File size: 2050 byte(s)
-ver bump to 9.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="coreutils" |
4 | PVER="9.3" |
5 | PBUILD="r1" |
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-6.4 |
14 | >= dev-libs/gmp-6 |
15 | >= sys-dev/gettext-0.18 |
16 | >= sys-apps/acl-2.3 |
17 | >= sys-apps/attr-2.5 |
18 | >= sys-libs/libcap-2.69 |
19 | >= sys-libs/pam-1.5" |
20 | |
21 | SDEPEND=">= sys-dev/automake-3 |
22 | >= sys-dev/autoconf-4 |
23 | >= sys-dev/m4-1.4" |
24 | |
25 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
27 | |
28 | sminclude mtools |
29 | |
30 | SRC_URI=( |
31 | gnu://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch |
34 | ) |
35 | |
36 | UP2DATE="updatecmd_gnu ${PNAME} xz" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # generic patches |
44 | mpatch ${PNAME}-5.94-more-dir-colors.patch || die |
45 | |
46 | if [[ -z $(which cvs 2>/dev/null) ]] |
47 | then |
48 | # fix issues with gettext's autopoint if cvs is not installed |
49 | export AUTOPOINT="/bin/true" |
50 | fi |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | # ignore root check |
58 | # uptime comes with procps |
59 | # kill comes with psmisc |
60 | # groups comes with shadows |
61 | # hostname comes with inetutils |
62 | # install arch, we rely on it at least with python |
63 | FORCE_UNSAFE_CONFIGURE=1 \ |
64 | mconfigure \ |
65 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
66 | --enable-largefile \ |
67 | --enable-nls \ |
68 | --enable-acl \ |
69 | --enable-xattr \ |
70 | --enable-libcap \ |
71 | --enable-pam \ |
72 | --enable-install-program=arch \ |
73 | --enable-no-install-program=kill,uptime,groups,hostname \ |
74 | || die |
75 | |
76 | mmake || die |
77 | } |
78 | |
79 | src_install() |
80 | { |
81 | cd ${SRCDIR} |
82 | mmake DESTDIR=${BINDIR} install || die |
83 | |
84 | mlink test /usr/bin/[ || die |
85 | |
86 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die |
87 | } |
88 | |
89 | preinstall() |
90 | { |
91 | if [[ ! -z $(magequery -n mktemp) ]] |
92 | then |
93 | echo -e ${COLRED} |
94 | echo -e "Error: sys-apps/mktemp is installed!!" |
95 | echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore." |
96 | echo -e "Please uninstall sys-apps/mktemp first!" |
97 | echo -e ${COLDEFAULT} |
98 | die "sys-apps/mktemp found!" |
99 | fi |
100 | } |