Magellan Linux

Contents of /smage/trunk/core/patch/patch-2.5.9-r10.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations) (download)
Sat Jan 2 20:46:44 2010 UTC (14 years, 3 months ago) by niro
File size: 938 byte(s)
auto added: ver bump to 2.5.9-r10
1 # $Id$
2
3 PNAME="patch"
4 PVER="2.5.9"
5 PBUILD="r10"
6
7 PCATEGORIE="sys-dev"
8 STATE="unstable"
9
10 DESCRIPTION="Utility to apply diffs to files."
11 HOMEPAGE="http://www.gnu.org/software/patch/patch.html"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 SRC_URI=(
19 ftp://alpha.gnu.org/gnu/diffutils/${SRCFILE}
20 mirror://${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${PNAME}-${PVER}-cr-stripping.patch
22 )
23
24 UP2DATE="updatecmd ftp://alpha.gnu.org/gnu/diffutils | grep ${PNAME}-.* | lasttarball gz"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # fix failures with dos generated patches
32 mpatch ${PNAME}-${PVER}-cr-stripping.patch || die
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38
39 CPPFLAGS=-D_GNU_SOURCE ./configure \
40 --host=${CHOST} \
41 --prefix=/usr \
42 --mandir=/usr/share/man || die
43
44 mmake || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50 minstall || die
51 minstalldocs AUTHORS COPYING NEWS README || die
52 }

Properties

Name Value
svn:keywords Id