Skip to content

Commit

Permalink
x11-drivers/nvidia-drivers: Call kernel_is only when USE=driver
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jeroen Roovers <[email protected]>
  • Loading branch information
Jeroen Roovers committed Jul 29, 2020
1 parent 86934ba commit 71ab580
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-390.132-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-390.132-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-390.138.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-430.64-r5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-435.21-r5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-440.100-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down
6 changes: 3 additions & 3 deletions x11-drivers/nvidia-drivers/nvidia-drivers-450.57.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ pkg_setup() {
# expects x86_64 or i386 and then converts it to x86
# later on in the build process
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
fi

if use kernel_linux && kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
if kernel_is lt 2 6 9; then
eerror "You must build this against 2.6.9 or higher kernels."
fi
fi

# set variables to where files are in the package structure
Expand Down

0 comments on commit 71ab580

Please sign in to comment.