Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 354601 | Differences between
and this patch

Collapse All | Expand All

(-)dev-lang/v8/v8-3.0.12.30.ebuild.orig (-5 / +14 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.0.12.30.ebuild,v 1.3 2011/03/12 13:13:10 fauli Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.0.12.30.ebuild,v 1.1 2011/03/04 10:54:12 phajdan.jr Exp $
4
4
5
EAPI="2"
5
EAPI="2"
6
6
Lines 12-18 Link Here
12
LICENSE="BSD"
12
LICENSE="BSD"
13
13
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 ~arm x86"
15
KEYWORDS="~x86-macos"
16
IUSE="readline"
16
IUSE="readline"
17
17
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
Lines 20-26 Link Here
20
20
21
# To make tests work, we compile with sample=shell.
21
# To make tests work, we compile with sample=shell.
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=\"LINKFLAGS\""
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=LINKFLAGS,PATH"
24
24
25
pkg_setup() {
25
pkg_setup() {
26
	tc-export AR CC CXX RANLIB
26
	tc-export AR CC CXX RANLIB
Lines 56-64 Link Here
56
	# Use target arch detection logic from bug #296917.
56
	# Use target arch detection logic from bug #296917.
57
	local myarch="$ABI"
57
	local myarch="$ABI"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
59
	myarch=${myarch/-macos/}
59
60
60
	if [[ $myarch = amd64 ]] ; then
61
	if [[ $myarch = amd64 ]] ; then
61
		myconf+=" arch=x64"
62
		myconf+=" arch=x64"
63
	elif [[ $myarch = x86_64 ]] ; then
64
		myconf+=" arch=x64"
62
	elif [[ $myarch = x86 ]] ; then
65
	elif [[ $myarch = x86 ]] ; then
63
		myconf+=" arch=ia32"
66
		myconf+=" arch=ia32"
64
	elif [[ $myarch = arm ]] ; then
67
	elif [[ $myarch = arm ]] ; then
Lines 76-83 Link Here
76
79
77
	dobin d8 || die
80
	dobin d8 || die
78
81
79
	dolib libv8-${PV}.so || die
82
	dolib libv8-${PV}$(get_libname) || die
80
	dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
83
	dosym libv8-${PV}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die	
84
  
85
	if [[ ${CHOST} == *-darwin* ]] ; then
86
		install_name_tool \
87
			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}.dylib \
88
			"${ED}"/usr/$(get_libdir)/libv8-${PV}.dylib
89
	fi
81
90
82
	dodoc AUTHORS ChangeLog || die
91
	dodoc AUTHORS ChangeLog || die
83
}
92
}
(-)dev-lang/v8/v8-3.1.8.1.ebuild.orig (-4 / +13 lines)
Lines 12-18 Link Here
12
LICENSE="BSD"
12
LICENSE="BSD"
13
13
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~arm ~x86"
15
KEYWORDS="~x86-macos"
16
IUSE="readline"
16
IUSE="readline"
17
17
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
Lines 20-26 Link Here
20
20
21
# To make tests work, we compile with sample=shell.
21
# To make tests work, we compile with sample=shell.
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=\"LINKFLAGS\""
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=LINKFLAGS,PATH"
24
24
25
pkg_setup() {
25
pkg_setup() {
26
	tc-export AR CC CXX RANLIB
26
	tc-export AR CC CXX RANLIB
Lines 56-64 Link Here
56
	# Use target arch detection logic from bug #296917.
56
	# Use target arch detection logic from bug #296917.
57
	local myarch="$ABI"
57
	local myarch="$ABI"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
59
	myarch=${myarch/-macos/}
59
60
60
	if [[ $myarch = amd64 ]] ; then
61
	if [[ $myarch = amd64 ]] ; then
61
		myconf+=" arch=x64"
62
		myconf+=" arch=x64"
63
	elif [[ $myarch = x86_64 ]] ; then
64
		myconf+=" arch=x64"
62
	elif [[ $myarch = x86 ]] ; then
65
	elif [[ $myarch = x86 ]] ; then
63
		myconf+=" arch=ia32"
66
		myconf+=" arch=ia32"
64
	elif [[ $myarch = arm ]] ; then
67
	elif [[ $myarch = arm ]] ; then
Lines 76-83 Link Here
76
79
77
	dobin d8 || die
80
	dobin d8 || die
78
81
79
	dolib libv8-${PV}.so || die
82
	dolib libv8-${PV}$(get_libname) || die
80
	dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
83
	dosym libv8-${PV}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die	
84
  
85
	if [[ ${CHOST} == *-darwin* ]] ; then
86
		install_name_tool \
87
			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}.dylib \
88
			"${ED}"/usr/$(get_libdir)/libv8-${PV}.dylib
89
	fi
81
90
82
	dodoc AUTHORS ChangeLog || die
91
	dodoc AUTHORS ChangeLog || die
83
}
92
}
(-)dev-lang/v8/v8-3.1.8.2.ebuild.orig (-4 / +13 lines)
Lines 12-18 Link Here
12
LICENSE="BSD"
12
LICENSE="BSD"
13
13
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~arm ~x86"
15
KEYWORDS="~x86-macos"
16
IUSE="readline"
16
IUSE="readline"
17
17
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
Lines 20-26 Link Here
20
20
21
# To make tests work, we compile with sample=shell.
21
# To make tests work, we compile with sample=shell.
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=\"LINKFLAGS\""
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=LINKFLAGS,PATH"
24
24
25
pkg_setup() {
25
pkg_setup() {
26
	tc-export AR CC CXX RANLIB
26
	tc-export AR CC CXX RANLIB
Lines 56-64 Link Here
56
	# Use target arch detection logic from bug #296917.
56
	# Use target arch detection logic from bug #296917.
57
	local myarch="$ABI"
57
	local myarch="$ABI"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
59
	myarch=${myarch/-macos/}
59
60
60
	if [[ $myarch = amd64 ]] ; then
61
	if [[ $myarch = amd64 ]] ; then
61
		myconf+=" arch=x64"
62
		myconf+=" arch=x64"
63
	elif [[ $myarch = x86_64 ]] ; then
64
		myconf+=" arch=x64"
62
	elif [[ $myarch = x86 ]] ; then
65
	elif [[ $myarch = x86 ]] ; then
63
		myconf+=" arch=ia32"
66
		myconf+=" arch=ia32"
64
	elif [[ $myarch = arm ]] ; then
67
	elif [[ $myarch = arm ]] ; then
Lines 76-83 Link Here
76
79
77
	dobin d8 || die
80
	dobin d8 || die
78
81
79
	dolib libv8-${PV}.so || die
82
	dolib libv8-${PV}$(get_libname) || die
80
	dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
83
	dosym libv8-${PV}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die	
84
  
85
	if [[ ${CHOST} == *-darwin* ]] ; then
86
		install_name_tool \
87
			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}.dylib \
88
			"${ED}"/usr/$(get_libdir)/libv8-${PV}.dylib
89
	fi
81
90
82
	dodoc AUTHORS ChangeLog || die
91
	dodoc AUTHORS ChangeLog || die
83
}
92
}
(-)dev-lang/v8/v8-3.1.8.ebuild.orig (-4 / +13 lines)
Lines 12-18 Link Here
12
LICENSE="BSD"
12
LICENSE="BSD"
13
13
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~arm ~x86"
15
KEYWORDS="~x86-macos"
16
IUSE="readline"
16
IUSE="readline"
17
17
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
Lines 20-26 Link Here
20
20
21
# To make tests work, we compile with sample=shell.
21
# To make tests work, we compile with sample=shell.
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=\"LINKFLAGS\""
23
EXTRA_ESCONS="library=shared soname=on sample=shell importenv=LINKFLAGS,PATH"
24
24
25
pkg_setup() {
25
pkg_setup() {
26
	tc-export AR CC CXX RANLIB
26
	tc-export AR CC CXX RANLIB
Lines 56-64 Link Here
56
	# Use target arch detection logic from bug #296917.
56
	# Use target arch detection logic from bug #296917.
57
	local myarch="$ABI"
57
	local myarch="$ABI"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
59
	myarch=${myarch/-macos/}
59
60
60
	if [[ $myarch = amd64 ]] ; then
61
	if [[ $myarch = amd64 ]] ; then
61
		myconf+=" arch=x64"
62
		myconf+=" arch=x64"
63
	elif [[ $myarch = x86_64 ]] ; then
64
		myconf+=" arch=x64"
62
	elif [[ $myarch = x86 ]] ; then
65
	elif [[ $myarch = x86 ]] ; then
63
		myconf+=" arch=ia32"
66
		myconf+=" arch=ia32"
64
	elif [[ $myarch = arm ]] ; then
67
	elif [[ $myarch = arm ]] ; then
Lines 76-83 Link Here
76
79
77
	dobin d8 || die
80
	dobin d8 || die
78
81
79
	dolib libv8-${PV}.so || die
82
	dolib libv8-${PV}$(get_libname) || die
80
	dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
83
	dosym libv8-${PV}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die	
84
  
85
	if [[ ${CHOST} == *-darwin* ]] ; then
86
		install_name_tool \
87
			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}.dylib \
88
			"${ED}"/usr/$(get_libdir)/libv8-${PV}.dylib
89
	fi
81
90
82
	dodoc AUTHORS ChangeLog || die
91
	dodoc AUTHORS ChangeLog || die
83
}
92
}
(-)dev-lang/v8/v8-9999.ebuild.orig (-3 / +13 lines)
Lines 12-18 Link Here
12
LICENSE="BSD"
12
LICENSE="BSD"
13
13
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS=""
15
KEYWORDS="~x86-macos"
16
IUSE="readline"
16
IUSE="readline"
17
17
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
18
RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
Lines 20-26 Link Here
20
20
21
# To make tests work, we compile with sample=shell.
21
# To make tests work, we compile with sample=shell.
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
22
# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
23
EXTRA_ESCONS="library=shared sample=shell importenv=\"LINKFLAGS\""
23
EXTRA_ESCONS="library=shared sample=shell importenv=LINKFLAGS,PATH"
24
24
25
pkg_setup() {
25
pkg_setup() {
26
	tc-export AR CC CXX RANLIB
26
	tc-export AR CC CXX RANLIB
Lines 56-64 Link Here
56
	# Use target arch detection logic from bug #296917.
56
	# Use target arch detection logic from bug #296917.
57
	local myarch="$ABI"
57
	local myarch="$ABI"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
58
	[[ $myarch = "" ]] && myarch="$ARCH"
59
	myarch=${myarch/-macos/}
59
60
60
	if [[ $myarch = amd64 ]] ; then
61
	if [[ $myarch = amd64 ]] ; then
61
		myconf+=" arch=x64"
62
		myconf+=" arch=x64"
63
	elif [[ $myarch = x86_64 ]] ; then
64
		myconf+=" arch=x64"
62
	elif [[ $myarch = x86 ]] ; then
65
	elif [[ $myarch = x86 ]] ; then
63
		myconf+=" arch=ia32"
66
		myconf+=" arch=ia32"
64
	elif [[ $myarch = arm ]] ; then
67
	elif [[ $myarch = arm ]] ; then
Lines 75-81 Link Here
75
	doins -r include || die
78
	doins -r include || die
76
79
77
	dobin d8 || die
80
	dobin d8 || die
78
	dolib libv8.so || die
81
82
	dolib libv8$(get_libname) || die
83
  
84
	if [[ ${CHOST} == *-darwin* ]] ; then
85
		install_name_tool \
86
			-id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}.dylib \
87
			"${ED}"/usr/$(get_libdir)/libv8-${PV}.dylib
88
	fi
79
89
80
	dodoc AUTHORS ChangeLog || die
90
	dodoc AUTHORS ChangeLog || die
81
}
91
}

Return to bug 354601