/[gentoo-x86]/sys-apps/util-linux/util-linux-2.21.2.ebuild
Gentoo

Contents of /sys-apps/util-linux/util-linux-2.21.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Jan 4 18:34:59 2014 UTC (8 months, 2 weeks ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Removed old versions and files

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.21.2.ebuild,v 1.11 2012/11/28 23:03:40 ssuominen Exp $
4
5 EAPI="3"
6
7 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
8 AUTOTOOLS_AUTO_DEPEND="no"
9 inherit eutils toolchain-funcs libtool flag-o-matic autotools
10 if [[ ${PV} == "9999" ]] ; then
11 inherit git-2 autotools
12 #KEYWORDS=""
13 else
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
15 fi
16
17 MY_PV=${PV/_/-}
18 MY_P=${PN}-${MY_PV}
19 S=${WORKDIR}/${MY_P}
20
21 DESCRIPTION="Various useful Linux utilities"
22 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
23 if [[ ${PV} == "9999" ]] ; then
24 SRC_URI=""
25 else
26 SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
27 fi
28
29 LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
30 SLOT="0"
31 IUSE="+cramfs crypt ddate ncurses nls old-linux perl selinux slang static-libs uclibc udev unicode"
32
33 RDEPEND="!sys-process/schedutils
34 !sys-apps/setarch
35 !<sys-apps/sysvinit-2.88-r3
36 !<sys-libs/e2fsprogs-libs-1.41.8
37 !<sys-fs/e2fsprogs-1.41.8
38 cramfs? ( sys-libs/zlib )
39 ncurses? ( >=sys-libs/ncurses-5.2-r2 )
40 perl? ( dev-lang/perl )
41 selinux? ( sys-libs/libselinux )
42 slang? ( sys-libs/slang )
43 udev? ( virtual/udev )"
44 DEPEND="${RDEPEND}
45 nls? ( sys-devel/gettext )
46 virtual/os-headers
47 uclibc? ( ${AUTOTOOLS_DEPEND} )"
48
49 src_prepare() {
50 if [[ ${PV} == "9999" ]] ; then
51 po/update-potfiles
52 eautoreconf
53 fi
54 if use uclibc ; then
55 epatch "${FILESDIR}"/${PN}-2.21.1-no-printf-alloc.patch #406303
56 eautoreconf
57 fi
58 elibtoolize
59 }
60
61 lfs_fallocate_test() {
62 # Make sure we can use fallocate with LFS #300307
63 cat <<-EOF > "${T}"/fallocate.c
64 #define _GNU_SOURCE
65 #include <fcntl.h>
66 main() { return fallocate(0, 0, 0, 0); }
67 EOF
68 append-lfs-flags
69 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.c -o /dev/null >/dev/null 2>&1 \
70 || export ac_cv_func_fallocate=no
71 rm -f "${T}"/fallocate.c
72 }
73
74 src_configure() {
75 lfs_fallocate_test
76 econf \
77 --enable-fs-paths-extra=/usr/sbin \
78 $(use_enable nls) \
79 --enable-agetty \
80 $(use_enable cramfs) \
81 $(use_enable ddate) \
82 $(use_enable old-linux elvtune) \
83 --with-ncurses=$(usex ncurses $(usex unicode auto yes) no) \
84 --disable-kill \
85 --disable-last \
86 --disable-mesg \
87 --enable-partx \
88 --enable-raw \
89 --enable-rename \
90 --disable-reset \
91 --disable-login-utils \
92 --enable-schedutils \
93 --disable-wall \
94 --enable-write \
95 $(use_with selinux) \
96 $(use_with slang) \
97 $(use_enable static-libs static) \
98 $(use_with udev) \
99 $(tc-has-tls || echo --disable-tls)
100 }
101
102 src_install() {
103 emake install DESTDIR="${D}" || die
104 dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt}
105
106 if ! use perl ; then #284093
107 rm "${ED}"/usr/bin/chkdupexe || die
108 rm "${ED}"/usr/share/man/man1/chkdupexe.1 || die
109 fi
110
111 # need the libs in /
112 gen_usr_ldscript -a blkid mount uuid
113 # e2fsprogs-libs didnt install .la files, and .pc work fine
114 find "${ED}" -name '*.la' -delete
115
116 if use crypt ; then
117 newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die
118 newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die
119 fi
120 }
121
122 pkg_postinst() {
123 elog "The agetty util now clears the terminal by default. You"
124 elog "might want to add --noclear to your /etc/inittab lines."
125 }

  ViewVC Help
Powered by ViewVC 1.1.20