public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/v8: v8-9999.ebuild ChangeLog v8-3.6.5.1.ebuild
Date: Wed, 12 Oct 2011 18:18:48 +0000 (UTC)	[thread overview]
Message-ID: <20111012181848.247B22004B@flycatcher.gentoo.org> (raw)

phajdan.jr    11/10/12 18:18:48

  Modified:             v8-9999.ebuild ChangeLog v8-3.6.5.1.ebuild
  Log:
  Update live ebuild to use gyp build. Fix minor problems: readline support, soname, do not install shell (it's not intended to be installed; d8 is). Remove unused files.
  
  (Portage version: 2.1.10.11/cvs/Linux i686)

Revision  Changes    Path
1.13                 dev-lang/v8/v8-9999.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?r1=1.12&r2=1.13

Index: v8-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- v8-9999.ebuild	4 Oct 2011 21:02:29 -0000	1.12
+++ v8-9999.ebuild	12 Oct 2011 18:18:48 -0000	1.13
@@ -1,10 +1,10 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v 1.12 2011/10/04 21:02:29 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v 1.13 2011/10/12 18:18:48 phajdan.jr Exp $
 
 EAPI="2"
 
-inherit eutils flag-o-matic multilib pax-utils scons-utils subversion toolchain-funcs
+inherit eutils multilib pax-utils subversion toolchain-funcs
 
 DESCRIPTION="Google's open source JavaScript engine"
 HOMEPAGE="http://code.google.com/p/v8"
@@ -18,66 +18,64 @@
 RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
 DEPEND="${RDEPEND}"
 
-pkg_setup() {
-	tc-export AR CC CXX RANLIB
-
-	# Make the build respect LDFLAGS.
-	export LINKFLAGS="${LDFLAGS}"
-}
-
-src_prepare() {
-	# Stop -Werror from breaking the build.
-	epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
-
-	# Respect the user's CFLAGS, including the optimization level.
-	epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
-}
-
-src_configure() {
-	# GCC issues multiple warnings about strict-aliasing issues in v8 code.
-	append-flags -fno-strict-aliasing
+src_unpack() {
+	subversion_src_unpack
+	cd "${S}"
+	make dependencies || die
 }
 
 src_compile() {
-	local myconf="library=shared importenv=LINKFLAGS,PATH"
+	tc-export AR CC CXX RANLIB
+	export LINK="${CXX}"
 
 	# Use target arch detection logic from bug #354601.
 	case ${CHOST} in
-		i?86-*) myarch=x86 ;;
+		i?86-*) myarch=ia32 ;;
 		x86_64-*)
-			if [[ $ABI = "" ]] ; then
-				myarch=amd64
+			if [[ $ABI = x86 ]] ; then
+				myarch=ia32
 			else
-				myarch="$ABI"
+				myarch=x64
 			fi ;;
 		arm*-*) myarch=arm ;;
 		*) die "Unrecognized CHOST: ${CHOST}"
 	esac
+	mytarget=${myarch}.release
 
-	if [[ $myarch = amd64 ]] ; then
-		myconf+=" arch=x64"
-	elif [[ $myarch = x86 ]] ; then
-		myconf+=" arch=ia32"
-	elif [[ $myarch = arm ]] ; then
-		myconf+=" arch=arm"
+	console=""
+	if use readline; then
+		console="readline";
+	fi
+	if [[ ${PV} == "9999" ]]; then
+		soname_version="${PV}-${ESVN_WC_REVISION}"
 	else
-		die "Failed to determine target arch, got '$myarch'."
+		soname_version="${PV}"
 	fi
+	emake V=1 library=shared werror=no console=${console} soname_version=${soname_version} ${mytarget} || die
+	pax-mark m out/${mytarget}/{cctest,d8,shell} || die
+}
 
-	escons $(use_scons readline console readline dumb) ${myconf} || die
+src_test() {
+	tools/test-wrapper-gypbuild.py \
+		--arch-and-mode=${mytarget} \
+		--no-presubmit \
+		--progress=dots || die
 }
 
 src_install() {
 	insinto /usr
 	doins -r include || die
 
-	dolib libv8.so || die
+	dobin out/${mytarget}/d8 || die
 
-	dodoc AUTHORS ChangeLog || die
-}
+	if [[ ${CHOST} == *-darwin* ]] ; then
+		install_name_tool \
+			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${soname_version}$(get_libname) \
+			out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
+	fi
+
+	dolib out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
+	dosym libv8-${soname_version}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die
 
-pkg_postinst() {
-	einfo "The live ebuild does not use SONAME."
-	einfo "You must rebuild all packages depending on ${PN}"
-	einfo "to avoid ABI breakages."
+	dodoc AUTHORS ChangeLog || die
 }



1.82                 dev-lang/v8/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.82&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.82&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.81&r2=1.82

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- ChangeLog	12 Oct 2011 02:58:55 -0000	1.81
+++ ChangeLog	12 Oct 2011 18:18:48 -0000	1.82
@@ -1,6 +1,14 @@
 # ChangeLog for dev-lang/v8
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.81 2011/10/12 02:58:55 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.82 2011/10/12 18:18:48 phajdan.jr Exp $
+
+  12 Oct 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> v8-3.6.5.1.ebuild,
+  -files/v8-upstream-bug-773-r0.patch, -files/v8-upstream-bug-1016-r0.patch,
+  -files/v8-upstream-bug-1326-r0.patch, v8-9999.ebuild,
+  -files/v8-gentoo-bug-349794-r0.patch:
+  Update live ebuild to use gyp build. Fix minor problems: readline support,
+  soname, do not install shell (it's not intended to be installed; d8 is).
+  Remove unused files.
 
   12 Oct 2011; Mike Gilbert <floppym@gentoo.org> v8-3.6.5.1.ebuild:
   Migrate to EAPI 4. Add python deps. Re-add pax-mark.



1.3                  dev-lang/v8/v8-3.6.5.1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.6.5.1.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.6.5.1.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.6.5.1.ebuild?r1=1.2&r2=1.3

Index: v8-3.6.5.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.5.1.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- v8-3.6.5.1.ebuild	12 Oct 2011 02:58:55 -0000	1.2
+++ v8-3.6.5.1.ebuild	12 Oct 2011 18:18:48 -0000	1.3
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.5.1.ebuild,v 1.2 2011/10/12 02:58:55 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.5.1.ebuild,v 1.3 2011/10/12 18:18:48 phajdan.jr Exp $
 
 EAPI="4"
 
@@ -16,10 +16,11 @@
 
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos ~x86-macos"
-IUSE=""
+IUSE="readline"
 
 # Avoid using python eclass since we do not need python RDEPEND
 DEPEND="|| ( dev-lang/python:2.6 dev-lang/python:2.7 )"
+RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
 
 src_unpack() {
 	unpack ${A}
@@ -55,13 +56,21 @@
 	esac
 	mytarget=${myarch}.release
 
-	emake V=1 library=shared soname_version=${PV} ${mytarget}
-
+	console=""
+	if use readline; then
+		console="readline";
+	fi
+	if [[ ${PV} == "9999" ]]; then
+		soname_version="${PV}-${ESVN_WC_REVISION}"
+	else
+		soname_version="${PV}"
+	fi
+	emake V=1 library=shared werror=no console=${console} soname_version=${soname_version} ${mytarget} || die
 	pax-mark m out/${mytarget}/{cctest,d8,shell} || die
 }
 
 src_test() {
-	tools/test-wrapper-gypbuild.py -j16 \
+	tools/test-wrapper-gypbuild.py \
 		--arch-and-mode=${mytarget} \
 		--no-presubmit \
 		--progress=dots || die
@@ -71,16 +80,16 @@
 	insinto /usr
 	doins -r include
 
-	dobin out/${mytarget}/d8 out/${mytarget}/shell
+	dobin out/${mytarget}/d8
 
 	if [[ ${CHOST} == *-darwin* ]] ; then
 		install_name_tool \
-			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}$(get_libname) \
-			out/${mytarget}/lib.target/libv8-${PV}$(get_libname) || die
+			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${soname_version}$(get_libname) \
+			out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
 	fi
 
-	dolib out/${mytarget}/lib.target/libv8-${PV}$(get_libname)
-	dosym libv8-${PV}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname)
+	dolib out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname)
+	dosym libv8-${soname_version}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname)
 
 	dodoc AUTHORS ChangeLog
 }






             reply	other threads:[~2011-10-12 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12 18:18 PaweA Hajdan (phajdan.jr) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-10-13  2:17 [gentoo-commits] gentoo-x86 commit in dev-lang/v8: v8-9999.ebuild ChangeLog v8-3.6.5.1.ebuild Mike Gilbert (floppym)
2011-10-15 17:48 Mike Gilbert (floppym)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111012181848.247B22004B@flycatcher.gentoo.org \
    --to=phajdan.jr@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox