Magellan Linux

Contents of /trunk/core/patch/patch-2.5.9-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 889 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/patch/patch-2.5.9-r8.smage2,v 1.1 2008/02/10 10:51:57 niro Exp $
2
3 PNAME="patch"
4 PVER="2.5.9"
5 PBUILD="r8"
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 mirror://${PNAME}/${SRCFILE}
20 mirror://${PNAME}/${PNAME}-${PVER}-cr-stripping.patch
21 )
22
23 src_prepare()
24 {
25 munpack ${SRCFILE} || die
26 cd ${SRCDIR}
27
28 # fix failures with dos generated patches
29 mpatch ${PNAME}-${PVER}-cr-stripping.patch || die
30 }
31
32 src_compile()
33 {
34 cd ${SRCDIR}
35
36 CPPFLAGS=-D_GNU_SOURCE ./configure \
37 --host=${CHOST} \
38 --prefix=/usr \
39 --mandir=/usr/share/man || die
40
41 mmake || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47 minstall || die
48 minstalldocs AUTHORS COPYING NEWS README || die
49 }

Properties

Name Value
svn:keywords Id