/[gentoo-x86]/sys-devel/patch/patch-2.5.9-r1.ebuild
Gentoo

Contents of /sys-devel/patch/patch-2.5.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Tue Mar 18 12:34:29 2008 UTC (6 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +3 -4 lines
Drop frivolous USE=build.
(Portage version: 2.2_pre2)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/patch/patch-2.5.9-r1.ebuild,v 1.17 2007/06/24 22:18:28 vapier Exp $
4
5 inherit flag-o-matic eutils
6
7 DESCRIPTION="Utility to apply diffs to files"
8 HOMEPAGE="http://www.gnu.org/software/patch/patch.html"
9 #SRC_URI="mirror://gnu/patch/${P}.tar.gz"
10 #Using own mirrors until gnu has md5sum and all packages up2date
11 SRC_URI="mirror://gentoo/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" # dont stabilize
16 IUSE="static"
17
18 DEPEND=""
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23 if type -p patch > /dev/null ; then
24 epatch "${FILESDIR}"/patch-2.5.9-cr-stripping.patch
25 fi
26 }
27
28 src_compile() {
29 strip-flags
30 append-flags -DLINUX -D_XOPEN_SOURCE=500
31 use static && append-ldflags -static
32
33 local myconf=""
34 [[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g"
35 ac_cv_sys_long_file_names=yes econf ${myconf} || die
36
37 emake || die "emake failed"
38 }
39
40 src_install() {
41 einstall || die
42 dodoc AUTHORS ChangeLog NEWS README
43 }

  ViewVC Help
Powered by ViewVC 1.1.20