Mike Gilbert avatar Mike Gilbert committed 62c7fc0

dev-lang/v8: Restore python eclass code.

Comments (0)

Files changed (2)

dev-lang/v8/v8-3.12.19.13.ebuild

 
 EAPI="5"
 
-inherit eutils multilib pax-utils toolchain-funcs versionator
+PYTHON_DEPEND="2:2.6"
+
+inherit eutils multilib pax-utils python toolchain-funcs versionator
 
 DESCRIPTION="Google's open source JavaScript engine"
 HOMEPAGE="http://code.google.com/p/v8"
 KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
 IUSE=""
 
-DEPEND="=dev-lang/python-2*"
+pkg_setup() {
+	python_set_active_version 2
+	python_pkg_setup
+}
 
 src_prepare() {
 	epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
 src_compile() {
 	tc-export AR CC CXX RANLIB
 	export LINK=${CXX}
-	export EPYTHON=python2
 
 	# Use target arch detection logic from bug #354601.
 	case ${CHOST} in

dev-lang/v8/v8-3.13.7.2.ebuild

 
 EAPI="5"
 
-inherit eutils multilib pax-utils toolchain-funcs versionator
+PYTHON_DEPEND="2:2.6"
+
+inherit eutils multilib pax-utils python toolchain-funcs versionator
 
 DESCRIPTION="Google's open source JavaScript engine"
 HOMEPAGE="http://code.google.com/p/v8"
 KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
 IUSE=""
 
-DEPEND="=dev-lang/python-2*"
+pkg_setup() {
+	python_set_active_version 2
+	python_pkg_setup
+}
 
 src_prepare() {
 	epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
 src_compile() {
 	tc-export AR CC CXX RANLIB
 	export LINK=${CXX}
-	export EPYTHON=python2
 
 	local hardfp=off
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.