public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-util/yacc: ChangeLog yacc-1.9.1-r5.ebuild
@ 2010-08-28 12:32 Harald van Dijk (truedfx)
  0 siblings, 0 replies; only message in thread
From: Harald van Dijk (truedfx) @ 2010-08-28 12:32 UTC (permalink / raw
  To: gentoo-commits

truedfx     10/08/28 12:32:37

  Modified:             ChangeLog
  Added:                yacc-1.9.1-r5.ebuild
  Log:
  Use LDFLAGS (#334983 by flameeyes), plus emake/RDEPEND cleanup
  
  (Portage version: 2.2_rc69/cvs/Linux x86_64)

Revision  Changes    Path
1.26                 dev-util/yacc/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/ChangeLog?rev=1.26&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/ChangeLog?rev=1.26&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/ChangeLog?r1=1.25&r2=1.26

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- ChangeLog	27 Oct 2008 20:04:57 -0000	1.25
+++ ChangeLog	28 Aug 2010 12:32:36 -0000	1.26
@@ -1,6 +1,11 @@
 # ChangeLog for dev-util/yacc
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.25 2008/10/27 20:04:57 ranger Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.26 2010/08/28 12:32:36 truedfx Exp $
+
+*yacc-1.9.1-r5 (28 Aug 2010)
+
+  28 Aug 2010; Harald van Dijk <truedfx@gentoo.org> +yacc-1.9.1-r5.ebuild:
+  Use LDFLAGS (#334983 by flameeyes), plus emake/RDEPEND cleanup
 
   27 Oct 2008; Brent Baude <ranger@gentoo.org> yacc-1.9.1-r4.ebuild:
   Marking yacc-1.9.1-r4 ppc64 for bug 232005



1.1                  dev-util/yacc/yacc-1.9.1-r5.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/yacc/yacc-1.9.1-r5.ebuild?rev=1.1&view=markup
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

Index: yacc-1.9.1-r5.ebuild
===================================================================
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $

inherit eutils toolchain-funcs

DESCRIPTION="Yacc: Yet Another Compiler-Compiler"
HOMEPAGE="http://dinosaur.compilertools.net/#yacc"
SRC_URI="ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Use our CFLAGS and LDFLAGS
	sed -i -e 's: -O : $(CFLAGS) $(LDFLAGS) :' Makefile || die 'sed failed'

	# mkstemp patch from byacc ebuild
	epatch "${FILESDIR}"/mkstemp.patch

	# The following patch fixes yacc to run correctly on ia64 (and
	# other 64-bit arches).  See bug 46233
	epatch "${FILESDIR}"/${P}-ia64.patch

	# avoid stack access error, bug 232005
	epatch "${FILESDIR}"/${P}-CVE-2008-3196.patch
}

src_compile() {
	emake clean || die
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
}

src_install() {
	dobin yacc || die
	doman yacc.1
	dodoc 00README* ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY NOTES README*
}

pkg_preinst() {
	# bison installs a /usr/bin/yacc symlink ...
	# we need to remove it to avoid triggering
	# collision-protect errors #90089
	if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
		rm -f "${ROOT}"/usr/bin/yacc
	fi
}

pkg_postrm() {
	# and if we uninstall yacc but keep bison,
	# lets restore the /usr/bin/yacc symlink
	if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
		ln -s yacc.bison "${ROOT}"/usr/bin/yacc
	fi
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-28 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-28 12:32 [gentoo-commits] gentoo-x86 commit in dev-util/yacc: ChangeLog yacc-1.9.1-r5.ebuild Harald van Dijk (truedfx)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox