librsvg,libcroco: add doc variant to avoid unsolvable constraints due to gtkplus (#27790)
* [libcroco] add variant doc, depends_on gtk-doc when +doc * [librsvg] add variant doc, depends_on gtk-doc when +doc
This commit is contained in:
parent
2bb075c850
commit
9b1b38d2de
@ -15,12 +15,18 @@ class Libcroco(AutotoolsPackage):
|
||||
version('0.6.13', sha256='767ec234ae7aa684695b3a735548224888132e063f92db585759b422570621d4')
|
||||
version('0.6.12', sha256='ddc4b5546c9fb4280a5017e2707fbd4839034ed1aba5b7d4372212f34f84f860')
|
||||
|
||||
variant('doc', default=False, description='Build documentation with gtk-doc')
|
||||
|
||||
depends_on('glib')
|
||||
depends_on('libxml2')
|
||||
depends_on('gtk-doc', type='build')
|
||||
depends_on('gtk-doc', type='build', when='+doc')
|
||||
depends_on('pkgconfig', type='build')
|
||||
|
||||
def configure_args(self):
|
||||
args = [
|
||||
'--enable-gtk-doc=' + ('yes' if self.spec.variants['doc'].value else 'no')
|
||||
]
|
||||
# macOS ld does not support this flag
|
||||
# https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libcroco.rb
|
||||
return ['--disable-Bsymbolic']
|
||||
args.append('--disable-Bsymbolic')
|
||||
return args
|
||||
|
@ -17,10 +17,12 @@ class Librsvg(AutotoolsPackage):
|
||||
version('2.50.0', sha256='b3fadba240f09b9c9898ab20cb7311467243e607cf8f928b7c5f842474ee3df4')
|
||||
version('2.44.14', sha256='6a85a7868639cdd4aa064245cc8e9d864dad8b8e9a4a8031bb09a4796bc4e303')
|
||||
|
||||
variant('doc', default=False, description='Build documentation with gtk-doc')
|
||||
|
||||
depends_on("gobject-introspection", type='build')
|
||||
depends_on("pkgconfig", type='build')
|
||||
depends_on("rust", type='build')
|
||||
depends_on('gtk-doc', type='build')
|
||||
depends_on('gtk-doc', type='build', when='+doc')
|
||||
depends_on("cairo+gobject")
|
||||
depends_on("gdk-pixbuf")
|
||||
depends_on("glib")
|
||||
@ -48,3 +50,8 @@ def setup_build_environment(self, env):
|
||||
|
||||
def setup_run_environment(self, env):
|
||||
env.prepend_path('XDG_DATA_DIRS', self.prefix.share)
|
||||
|
||||
def configure_args(self):
|
||||
return [
|
||||
'--enable-gtk-doc=' + ('yes' if self.spec.variants['doc'].value else 'no')
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user