Add libs properties to a few packages (#20163)

This commit is contained in:
Adam J. Stewart 2020-11-30 01:34:13 -06:00 committed by GitHub
parent a2d156902b
commit aca8508056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 10 deletions

View File

@ -25,3 +25,8 @@ class Libxi(AutotoolsPackage, XorgPackage):
depends_on('xproto@7.0.13:', type='build')
depends_on('xextproto@7.0.3:', type='build')
depends_on('inputproto@2.2.99.1:', type='build')
@property
def libs(self):
return find_libraries(
'libXi', self.prefix, shared=True, recursive=True)

View File

@ -23,3 +23,8 @@ class Libxrandr(AutotoolsPackage, XorgPackage):
depends_on('renderproto', type='build')
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
@property
def libs(self):
return find_libraries(
'libXrandr', self.prefix, shared=True, recursive=True)

View File

@ -22,3 +22,8 @@ class Libxxf86vm(AutotoolsPackage, XorgPackage):
depends_on('xf86vidmodeproto@2.2.99.1:', type='build')
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
@property
def libs(self):
return find_libraries(
'libXxf86vm', self.prefix, shared=True, recursive=True)

View File

@ -91,8 +91,5 @@ def fetcher(self):
@property
def libs(self):
for dir in ['lib64', 'lib']:
libs = find_libraries('libGL', join_path(self.prefix, dir),
shared=True, recursive=False)
if libs:
return libs
return find_libraries(
'libGL', self.prefix, shared=True, recursive=True)

View File

@ -61,8 +61,5 @@ def fetcher(self):
@property
def libs(self):
for dir in ['lib64', 'lib']:
libs = find_libraries('libGLU', join_path(self.prefix, dir),
shared=True, recursive=False)
if libs:
return libs
return find_libraries(
'libGLU', self.prefix, shared=True, recursive=True)