From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RHa0L-0007jS-TV for garchives@archives.gentoo.org; Sat, 22 Oct 2011 11:44:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6C7521C106; Sat, 22 Oct 2011 11:44:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 83CB421C106 for ; Sat, 22 Oct 2011 11:44:38 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 84EE21B4002 for ; Sat, 22 Oct 2011 11:44:37 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2261) id 5A7C12004B; Sat, 22 Oct 2011 11:44:36 +0000 (UTC) From: "PaweA Hajdan (phajdan.jr)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, phajdan.jr@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/v8: v8-9999.ebuild ChangeLog v8-3.6.6.5.ebuild X-VCS-Repository: gentoo-x86 X-VCS-Files: v8-9999.ebuild ChangeLog v8-3.6.6.5.ebuild X-VCS-Directories: dev-lang/v8 X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: PaweA Hajdan Content-Type: text/plain; charset=utf8 Message-Id: <20111022114436.5A7C12004B@flycatcher.gentoo.org> Date: Sat, 22 Oct 2011 11:44:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e262953cd87997db5e1cb08a153e7ac0 phajdan.jr 11/10/22 11:44:36 Modified: v8-9999.ebuild ChangeLog v8-3.6.6.5.ebuild Log: Make it easier to update by using preserve_old_lib. =20 (Portage version: 2.1.10.11/cvs/Linux i686) Revision Changes Path 1.17 dev-lang/v8/v8-9999.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-999= 9.ebuild?rev=3D1.17&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-999= 9.ebuild?rev=3D1.17&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-999= 9.ebuild?r1=3D1.16&r2=3D1.17 Index: v8-9999.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- v8-9999.ebuild 19 Oct 2011 22:08:14 -0000 1.16 +++ v8-9999.ebuild 22 Oct 2011 11:44:36 -0000 1.17 @@ -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 201= 1/10/19 22:08:14 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v 1.17 201= 1/10/22 11:44:36 phajdan.jr Exp $ =20 EAPI=3D"3" =20 @@ -19,6 +19,7 @@ =20 pkg_setup() { python_set_active_version 2 + python_pkg_setup } =20 src_unpack() { @@ -46,6 +47,7 @@ mytarget=3D${myarch}.release =20 if [[ ${PV} =3D=3D "9999" ]]; then + subversion_wc_info soname_version=3D"${PV}-${ESVN_WC_REVISION}" else soname_version=3D"${PV}" @@ -91,3 +93,23 @@ =20 dodoc AUTHORS ChangeLog || die } + +pkg_preinst() { + local preserved_candidates=3D"$(find /usr/$(get_libdir) -maxdepth 1 -na= me libv8-\*$(get_libname))" + preserved_libs=3D"" + for candidate in ${preserved_candidates}; do + if [[ -f "${D}/usr/$(get_libdir)/`basename ${candidate}`" ]]; then + continue + fi + preserved_libs+=3D" ${candidate}" + done + if [[ "${preserved_libs}" !=3D "" ]]; then + preserve_old_lib ${preserved_libs} + fi +} + +pkg_postinst() { + if [[ "${preserved_libs}" !=3D "" ]]; then + preserve_old_lib_notify ${preserved_libs} + fi +} 1.92 dev-lang/v8/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/Change= Log?rev=3D1.92&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/Change= Log?rev=3D1.92&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/Change= Log?r1=3D1.91&r2=3D1.92 Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v retrieving revision 1.91 retrieving revision 1.92 diff -u -r1.91 -r1.92 --- ChangeLog 21 Oct 2011 02:31:39 -0000 1.91 +++ ChangeLog 22 Oct 2011 11:44:36 -0000 1.92 @@ -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 v8-3.6.6.5.ebuild= , + v8-9999.ebuild: + Make it easier to update by using preserve_old_lib. =20 21 Oct 2011; Mike Gilbert -files/v8-gyp-cflags-r0= .patch: Remove unused patch. 1.2 dev-lang/v8/v8-3.6.6.5.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.6= .6.5.ebuild?rev=3D1.2&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.6= .6.5.ebuild?rev=3D1.2&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.6= .6.5.ebuild?r1=3D1.1&r2=3D1.2 Index: v8-3.6.6.5.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.6.5.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- v8-3.6.6.5.ebuild 21 Oct 2011 02:29:25 -0000 1.1 +++ v8-3.6.6.5.ebuild 22 Oct 2011 11:44:36 -0000 1.2 @@ -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 2= 011/10/21 02:29:25 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.6.5.ebuild,v 1.2 2= 011/10/22 11:44:36 phajdan.jr Exp $ =20 EAPI=3D"3" =20 @@ -8,8 +8,6 @@ =20 inherit eutils multilib pax-utils python toolchain-funcs =20 -GYP_REV=3D"1066" - DESCRIPTION=3D"Google's open source JavaScript engine" HOMEPAGE=3D"http://code.google.com/p/v8" SRC_URI=3D"http://commondatastorage.googleapis.com/chromium-browser-offi= cial/${P}.tar.bz2" @@ -21,6 +19,7 @@ =20 pkg_setup() { python_set_active_version 2 + python_pkg_setup } =20 src_prepare() { @@ -47,6 +46,7 @@ mytarget=3D${myarch}.release =20 if [[ ${PV} =3D=3D "9999" ]]; then + subversion_wc_info soname_version=3D"${PV}-${ESVN_WC_REVISION}" else soname_version=3D"${PV}" @@ -92,3 +92,23 @@ =20 dodoc AUTHORS ChangeLog || die } + +pkg_preinst() { + local preserved_candidates=3D"$(find /usr/$(get_libdir) -maxdepth 1 -na= me libv8-\*$(get_libname))" + preserved_libs=3D"" + for candidate in ${preserved_candidates}; do + if [[ -f "${D}/usr/$(get_libdir)/`basename ${candidate}`" ]]; then + continue + fi + preserved_libs+=3D" ${candidate}" + done + if [[ "${preserved_libs}" !=3D "" ]]; then + preserve_old_lib ${preserved_libs} + fi +} + +pkg_postinst() { + if [[ "${preserved_libs}" !=3D "" ]]; then + preserve_old_lib_notify ${preserved_libs} + fi +}