summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/v8/ChangeLog6
-rw-r--r--dev-lang/v8/v8-3.6.6.5.ebuild26
-rw-r--r--dev-lang/v8/v8-9999.ebuild24
3 files changed, 51 insertions, 5 deletions
diff --git a/dev-lang/v8/ChangeLog b/dev-lang/v8/ChangeLog
index 0d0fe9b5afc0..5b438f835ee9 100644
--- a/dev-lang/v8/ChangeLog
+++ b/dev-lang/v8/ChangeLog
@@ -1,6 +1,10 @@
# 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.91 2011/10/21 02:31:39 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.92 2011/10/22 11:44:36 phajdan.jr Exp $
+
+ 22 Oct 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> v8-3.6.6.5.ebuild,
+ v8-9999.ebuild:
+ Make it easier to update by using preserve_old_lib.
21 Oct 2011; Mike Gilbert <floppym@gentoo.org> -files/v8-gyp-cflags-r0.patch:
Remove unused patch.
diff --git a/dev-lang/v8/v8-3.6.6.5.ebuild b/dev-lang/v8/v8-3.6.6.5.ebuild
index f252e409d93c..8a9431ae64f9 100644
--- a/dev-lang/v8/v8-3.6.6.5.ebuild
+++ b/dev-lang/v8/v8-3.6.6.5.ebuild
@@ -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.6.5.ebuild,v 1.1 2011/10/21 02:29:25 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.6.5.ebuild,v 1.2 2011/10/22 11:44:36 phajdan.jr Exp $
EAPI="3"
@@ -8,8 +8,6 @@ PYTHON_DEPEND="2:2.6"
inherit eutils multilib pax-utils python toolchain-funcs
-GYP_REV="1066"
-
DESCRIPTION="Google's open source JavaScript engine"
HOMEPAGE="http://code.google.com/p/v8"
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
@@ -21,6 +19,7 @@ IUSE=""
pkg_setup() {
python_set_active_version 2
+ python_pkg_setup
}
src_prepare() {
@@ -47,6 +46,7 @@ src_compile() {
mytarget=${myarch}.release
if [[ ${PV} == "9999" ]]; then
+ subversion_wc_info
soname_version="${PV}-${ESVN_WC_REVISION}"
else
soname_version="${PV}"
@@ -92,3 +92,23 @@ src_install() {
dodoc AUTHORS ChangeLog || die
}
+
+pkg_preinst() {
+ local preserved_candidates="$(find /usr/$(get_libdir) -maxdepth 1 -name libv8-\*$(get_libname))"
+ preserved_libs=""
+ for candidate in ${preserved_candidates}; do
+ if [[ -f "${D}/usr/$(get_libdir)/`basename ${candidate}`" ]]; then
+ continue
+ fi
+ preserved_libs+=" ${candidate}"
+ done
+ if [[ "${preserved_libs}" != "" ]]; then
+ preserve_old_lib ${preserved_libs}
+ fi
+}
+
+pkg_postinst() {
+ if [[ "${preserved_libs}" != "" ]]; then
+ preserve_old_lib_notify ${preserved_libs}
+ fi
+}
diff --git a/dev-lang/v8/v8-9999.ebuild b/dev-lang/v8/v8-9999.ebuild
index b32c11f71eb1..85c8c87433e5 100644
--- a/dev-lang/v8/v8-9999.ebuild
+++ b/dev-lang/v8/v8-9999.ebuild
@@ -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-9999.ebuild,v 1.16 2011/10/19 22:08:14 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v 1.17 2011/10/22 11:44:36 phajdan.jr Exp $
EAPI="3"
@@ -19,6 +19,7 @@ IUSE=""
pkg_setup() {
python_set_active_version 2
+ python_pkg_setup
}
src_unpack() {
@@ -46,6 +47,7 @@ src_compile() {
mytarget=${myarch}.release
if [[ ${PV} == "9999" ]]; then
+ subversion_wc_info
soname_version="${PV}-${ESVN_WC_REVISION}"
else
soname_version="${PV}"
@@ -91,3 +93,23 @@ src_install() {
dodoc AUTHORS ChangeLog || die
}
+
+pkg_preinst() {
+ local preserved_candidates="$(find /usr/$(get_libdir) -maxdepth 1 -name libv8-\*$(get_libname))"
+ preserved_libs=""
+ for candidate in ${preserved_candidates}; do
+ if [[ -f "${D}/usr/$(get_libdir)/`basename ${candidate}`" ]]; then
+ continue
+ fi
+ preserved_libs+=" ${candidate}"
+ done
+ if [[ "${preserved_libs}" != "" ]]; then
+ preserve_old_lib ${preserved_libs}
+ fi
+}
+
+pkg_postinst() {
+ if [[ "${preserved_libs}" != "" ]]; then
+ preserve_old_lib_notify ${preserved_libs}
+ fi
+}