targets: adjust packages to use new specific targets semantics

Seamless translation from 'target=<generic>' to either
- target.family == <generic> (in methods)
- 'target=<generic>:' (in directives)

Also updated docs to show ranges in directives.
This commit is contained in:
Massimiliano Culpo
2019-09-17 18:41:18 +02:00
committed by Todd Gamblin
parent 3c4322bf1a
commit 7daf860991
43 changed files with 80 additions and 68 deletions

View File

@@ -71,8 +71,8 @@ class Jdk(Package):
provides('java@8', when='@1.8.0:1.8.999')
provides('java@7', when='@1.7.0:1.7.999')
conflicts('target=ppc64', msg='jdk is only available for x86_64')
conflicts('target=ppc64le', msg='jdk is only available for x86_64')
conflicts('target=ppc64:', msg='jdk is only available for x86_64')
conflicts('target=ppc64le:', msg='jdk is only available for x86_64')
# FIXME:
# 1. `extends('java')` doesn't work, you need to use `extends('jdk')`