Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/bison: bison-2.6.1.ebuild ChangeLog
Date: Thu, 02 Aug 2012 09:22:30
Message-Id: 20120802092215.8F9702005C@flycatcher.gentoo.org
1 radhermit 12/08/02 09:22:15
2
3 Modified: ChangeLog
4 Added: bison-2.6.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.113 sys-devel/bison/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/bison/ChangeLog?rev=1.113&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/bison/ChangeLog?rev=1.113&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/bison/ChangeLog?r1=1.112&r2=1.113
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v
20 retrieving revision 1.112
21 retrieving revision 1.113
22 diff -u -r1.112 -r1.113
23 --- ChangeLog 20 Jul 2012 08:18:03 -0000 1.112
24 +++ ChangeLog 2 Aug 2012 09:22:15 -0000 1.113
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/bison
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v 1.112 2012/07/20 08:18:03 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v 1.113 2012/08/02 09:22:15 radhermit Exp $
30 +
31 +*bison-2.6.1 (02 Aug 2012)
32 +
33 + 02 Aug 2012; Tim Harder <radhermit@g.o> +bison-2.6.1.ebuild:
34 + Version bump.
35
36 *bison-2.6 (20 Jul 2012)
37
38
39
40
41 1.1 sys-devel/bison/bison-2.6.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/bison/bison-2.6.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/bison/bison-2.6.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bison-2.6.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/bison-2.6.1.ebuild,v 1.1 2012/08/02 09:22:15 radhermit Exp $
51
52 EAPI=4
53
54 inherit flag-o-matic
55
56 DESCRIPTION="A general-purpose (yacc-compatible) parser generator"
57 HOMEPAGE="http://www.gnu.org/software/bison/"
58 SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
63 IUSE="nls static"
64
65 RDEPEND=">=sys-devel/m4-1.4.16"
66 DEPEND="${RDEPEND}
67 sys-devel/flex
68 nls? ( sys-devel/gettext )"
69
70 DOCS="AUTHORS ChangeLog-2012 NEWS README THANKS TODO" # ChangeLog-1998 PACKAGING README-alpha README-release
71
72 src_configure() {
73 use static && append-ldflags -static
74
75 econf \
76 --disable-silent-rules \
77 $(use_enable nls)
78 }
79
80 src_install() {
81 default
82
83 # This one is installed by dev-util/yacc
84 mv -v "${ED}"/usr/bin/yacc{,.bison} || die
85 mv -v "${ED}"/usr/share/man/man1/yacc{,.bison}.1 || die
86
87 # We do not need liby.a
88 rm -r "${ED}"/usr/lib* || die
89
90 # Move to documentation directory and leave compressing for EAPI>=4
91 mv -v "${ED}"/usr/share/${PN}/README "${ED}"/usr/share/doc/${PF}/README.data
92 }
93
94 pkg_postinst() {
95 local f="${EROOT}/usr/bin/yacc"
96 if [[ ! -e ${f} ]] ; then
97 ln -s yacc.bison "${f}"
98 fi
99 }
100
101 pkg_postrm() {
102 # clean up the dead symlink when we get unmerged #377469
103 local f="${EROOT}/usr/bin/yacc"
104 if [[ -L ${f} && ! -e ${f} ]] ; then
105 rm -f "${f}"
106 fi
107 }