From: Paweł Hajdan Date: Sat, 22 Oct 2011 11:44:36 +0000 (+0000) Subject: Make it easier to update by using preserve_old_lib. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8554f3e7fed3e0cc495ee68f0a1bec913a9f9e8a;p=gentoo.git Make it easier to update by using preserve_old_lib. Package-Manager: portage-2.1.10.11/cvs/Linux i686 --- 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 v8-3.6.6.5.ebuild, + v8-9999.ebuild: + Make it easier to update by using preserve_old_lib. 21 Oct 2011; Mike Gilbert -files/v8-gyp-cflags-r0.patch: Remove unused patch. diff --git a/dev-lang/v8/Manifest b/dev-lang/v8/Manifest index e765fe5b7f69..6c2722865ccb 100644 --- a/dev-lang/v8/Manifest +++ b/dev-lang/v8/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX v8-no-O3-r0.patch 422 RMD160 37467564f5ea6ff519cf86b7209a534424abbba3 SHA1 edbf6d9afc5ea6fdd0e9c0bf06d65caa488914c6 SHA256 c38a393a23adff83a799cb137f8a8e5092f87a62db109d7ce41becd6dec781f5 AUX v8-no-werror-r0.patch 573 RMD160 17791cdee16894b37e937f23146aff52bc3d4775 SHA1 fa814bfc6c64570e0e69a184f1c36c359b63eb2d SHA256 8968e9b4f362d3e059675c6bb9b6be0d104ac478a62c50a8f7304f47d514e782 @@ -8,14 +8,14 @@ DIST v8-3.6.6.3.tar.bz2 9620271 RMD160 14f8043191d87717107ac799cccb6f28a2888694 DIST v8-3.6.6.5.tar.bz2 9621910 RMD160 b704bdfc7ea535210a2c8881becff6f81e0c6da3 SHA1 91b12e58dc2480eec132e12039748cebff4d2510 SHA256 d4a689038c0991f7bfaf367f5ec986110e35387259598183143f9c7f04343ca8 EBUILD v8-3.4.14.28.ebuild 2072 RMD160 f53e40da494c27cab9f93f203bf8724da77c9899 SHA1 d1a0a5604c2e33ba244ad0560169906a324b1e88 SHA256 0af984740f48b5717143d6eecc61d77b7579edcf9794a15972d0a75bc5dbfb27 EBUILD v8-3.6.6.3.ebuild 2201 RMD160 a3b3b274823ab5ea114f69b8537ae07ba293debc SHA1 b791e2241c621ffd93105b6b9e0c799fbafc0a9e SHA256 86decb1d856582a50e501bf69f47ed0185e31b24511833edcaa260163f42006c -EBUILD v8-3.6.6.5.ebuild 2201 RMD160 16ef52aab5e2bf8c602841c88bc0150ca949d41a SHA1 e68d6505060f7baafa8f4590e9f40e0b6cc737d0 SHA256 37c0c066d64ac64206be9e11bf57863c7a2bbdacaeb430dbf7d0a6f648fc3cb1 -EBUILD v8-9999.ebuild 2082 RMD160 de209ef4466486fb971053864342b4ea6d73a01b SHA1 92b02d8bf599c00650987b2195967c875567b444 SHA256 bfea1a5630ec794c2cdf13d3cd9c52b253661db7b30a0ee7c1c9e12cc11538f7 -MISC ChangeLog 15459 RMD160 03c793dabc7fdfd5afa3acdf09cf6de02f134eea SHA1 c6f0f212039b796c9829c99a88d6fd37cf9c9b6f SHA256 4faf0d22fa8409851c783160dbdf970e73054ea090307bff5f5da8ea13bc24c3 +EBUILD v8-3.6.6.5.ebuild 2728 RMD160 63a71ca2b40a3b192ed3bbf44271e752cf002948 SHA1 8a0d74dd50746ad903f197e7b6a88624b3bd98d5 SHA256 68af4bc6ef3693c1adeb3237a5a7bb1a59b21efabe252374c0176af1837d58e1 +EBUILD v8-9999.ebuild 2625 RMD160 dbef90f0460ae453c31614bc389d4b2517679c1c SHA1 46d5a0d53eeae2c5dfd37dafb9dd297176dbc2fd SHA256 446c192ae69c10bc82363d1a1bab6ba03023881f29f31b928365ddb01b56b1df +MISC ChangeLog 15609 RMD160 005c3c7ed078fb5f2524cff3b6a40d2f312c65e0 SHA1 fcf46f3d880f8b0702fc8e39e9bd85cd058d4ece SHA256 d1bd6234a698a373491511bc0ab8ae8609abcdef8a843ca3f4e0333d63b3bb53 MISC metadata.xml 162 RMD160 3485b95578a49782c3188a0f963f90c688287fe1 SHA1 46226eeaf4948209a093253f92010abea501daef SHA256 8a3ecdcf518f45ec4843398f9896c9b4d1c867ff2cf2851cf40b06f756f111e8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iF4EAREIAAYFAk6g2ZAACgkQC77qH+pIQ6StKAD9HWqNWLeg78CK3vg6J6l8yEdh -jL4oYYrYCIO3aPsuxEQBAMP7fN7krnPUU+pRbZARkNYBI9io2psbIS3sjkebQ9V9 -=vxH3 +iEYEAREKAAYFAk6irKwACgkQuUQtlDBCeQK6sACfXZ7gvuOk54VxthOaWSFFmIVW +FnsAn3ICVnB5GE2SI8GIajtG1In0L0VY +=9OQo -----END PGP SIGNATURE----- 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 +}