Contents of /smage/trunk/core/cpio/cpio-2.11-r5.smage2
Parent Directory | Revision Log
Revision 5658 -
(show annotations)
(download)
Thu May 15 08:42:33 2014 UTC (10 years, 1 month ago) by niro
File size: 854 byte(s)
Thu May 15 08:42:33 2014 UTC (10 years, 1 month ago) by niro
File size: 854 byte(s)
auto added: ver bump to 2.11-r5
1 | # $Id$ |
2 | |
3 | PNAME="cpio" |
4 | PVER="2.11" |
5 | PBUILD="r5" |
6 | |
7 | PCAT="app-arch" |
8 | |
9 | DESCRIPTION="Archiver that handles various types of cpio and tar archives." |
10 | HOMEPAGE="http://www.gnu.org/software/cpio/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= virtual/sed" |
14 | PROVIDE="virtual/cpio" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | ALX_PKG_KEEP="usr/bin/cpio" |
20 | sminclude mbuild alx-split |
21 | |
22 | SRC_URI=( |
23 | gnu://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-${PVER}-gnulib-gets.patch |
26 | ) |
27 | |
28 | UP2DATE="updatecmd_gnu ${PNAME}" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fix ftbfs against newer glibc (>=2.16) |
36 | mpatch ${PNAME}-${PVER}-gnulib-gets.patch || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | mconfigure \ |
44 | --libexecdir=/usr/$(mlibdir)/cpio \ |
45 | --with-rmt=/usr/bin/rmt \ |
46 | --enable-nls \ |
47 | || die |
48 | |
49 | mmake || die |
50 | } |