1 |
truedfx 10/08/28 12:32:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: yacc-1.9.1-r5.ebuild |
5 |
Log: |
6 |
Use LDFLAGS (#334983 by flameeyes), plus emake/RDEPEND cleanup |
7 |
|
8 |
(Portage version: 2.2_rc69/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.26 dev-util/yacc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/ChangeLog?rev=1.26&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/ChangeLog?rev=1.26&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/ChangeLog?r1=1.25&r2=1.26 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v |
20 |
retrieving revision 1.25 |
21 |
retrieving revision 1.26 |
22 |
diff -u -r1.25 -r1.26 |
23 |
--- ChangeLog 27 Oct 2008 20:04:57 -0000 1.25 |
24 |
+++ ChangeLog 28 Aug 2010 12:32:36 -0000 1.26 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-util/yacc |
27 |
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.25 2008/10/27 20:04:57 ranger Exp $ |
29 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.26 2010/08/28 12:32:36 truedfx Exp $ |
31 |
+ |
32 |
+*yacc-1.9.1-r5 (28 Aug 2010) |
33 |
+ |
34 |
+ 28 Aug 2010; Harald van Dijk <truedfx@g.o> +yacc-1.9.1-r5.ebuild: |
35 |
+ Use LDFLAGS (#334983 by flameeyes), plus emake/RDEPEND cleanup |
36 |
|
37 |
27 Oct 2008; Brent Baude <ranger@g.o> yacc-1.9.1-r4.ebuild: |
38 |
Marking yacc-1.9.1-r4 ppc64 for bug 232005 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-util/yacc/yacc-1.9.1-r5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/yacc-1.9.1-r5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/yacc-1.9.1-r5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: yacc-1.9.1-r5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/yacc-1.9.1-r5.ebuild,v 1.1 2010/08/28 12:32:37 truedfx Exp $ |
52 |
|
53 |
inherit eutils toolchain-funcs |
54 |
|
55 |
DESCRIPTION="Yacc: Yet Another Compiler-Compiler" |
56 |
HOMEPAGE="http://dinosaur.compilertools.net/#yacc" |
57 |
SRC_URI="ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z" |
58 |
|
59 |
LICENSE="as-is" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
62 |
IUSE="" |
63 |
|
64 |
DEPEND="" |
65 |
RDEPEND="" |
66 |
|
67 |
src_unpack() { |
68 |
unpack ${A} |
69 |
cd "${S}" |
70 |
|
71 |
# Use our CFLAGS and LDFLAGS |
72 |
sed -i -e 's: -O : $(CFLAGS) $(LDFLAGS) :' Makefile || die 'sed failed' |
73 |
|
74 |
# mkstemp patch from byacc ebuild |
75 |
epatch "${FILESDIR}"/mkstemp.patch |
76 |
|
77 |
# The following patch fixes yacc to run correctly on ia64 (and |
78 |
# other 64-bit arches). See bug 46233 |
79 |
epatch "${FILESDIR}"/${P}-ia64.patch |
80 |
|
81 |
# avoid stack access error, bug 232005 |
82 |
epatch "${FILESDIR}"/${P}-CVE-2008-3196.patch |
83 |
} |
84 |
|
85 |
src_compile() { |
86 |
emake clean || die |
87 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die |
88 |
} |
89 |
|
90 |
src_install() { |
91 |
dobin yacc || die |
92 |
doman yacc.1 |
93 |
dodoc 00README* ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY NOTES README* |
94 |
} |
95 |
|
96 |
pkg_preinst() { |
97 |
# bison installs a /usr/bin/yacc symlink ... |
98 |
# we need to remove it to avoid triggering |
99 |
# collision-protect errors #90089 |
100 |
if [[ -L ${ROOT}/usr/bin/yacc ]] ; then |
101 |
rm -f "${ROOT}"/usr/bin/yacc |
102 |
fi |
103 |
} |
104 |
|
105 |
pkg_postrm() { |
106 |
# and if we uninstall yacc but keep bison, |
107 |
# lets restore the /usr/bin/yacc symlink |
108 |
if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then |
109 |
ln -s yacc.bison "${ROOT}"/usr/bin/yacc |
110 |
fi |
111 |
} |