66from spack import *
77
88
9- class GdkPixbuf (AutotoolsPackage ):
9+ class GdkPixbuf (Package ):
1010 """The Gdk Pixbuf is a toolkit for image loading and pixel buffer
1111 manipulation. It is used by GTK+ 2 and GTK+ 3 to load and
1212 manipulate images. In the past it was distributed as part of
1313 GTK+ 2 but it was split off into a separate package in
1414 preparation for the change to GTK+ 3."""
15+
1516 homepage = "https://developer.gnome.org/gdk-pixbuf/"
16- url = "http ://ftp.gnome.org /pub/gnome/sources/gdk-pixbuf/2.31 /gdk-pixbuf-2.31.2 .tar.xz"
17- list_url = "http ://ftp.acc.umu.se/pub/gnome/sources/gdk-pixbuf/"
18- list_depth = 2
17+ url = "https ://ftp.acc.umu.se /pub/gnome/sources/gdk-pixbuf/2.38 /gdk-pixbuf-2.38.0 .tar.xz"
18+ list_url = "https ://ftp.acc.umu.se/pub/gnome/sources/gdk-pixbuf/"
19+ list_depth = 1
1920
21+ version ('2.38.0' , sha256 = 'dd50973c7757bcde15de6bcd3a6d462a445efd552604ae6435a0532fbbadae47' )
2022 version ('2.31.2' , '6be6bbc4f356d4b79ab4226860ab8523' )
2123
22- depends_on ("pkgconfig" , type = "build" )
23- depends_on ("gettext" )
24- depends_on ("glib" )
25- depends_on ("jpeg" )
26- depends_on ("libpng" )
27- depends_on ("libtiff" )
28- depends_on ("gobject-introspection" )
24+ depends_on (
'[email protected] :' ,
type = 'build' ,
when = '@2.37.92:' )
25+ depends_on (
'[email protected] :' ,
type = 'build' ,
when = '@2.37.0:' )
26+ depends_on ('ninja' , type = 'build' , when = '@2.37.0:' )
27+ depends_on ('shared-mime-info' , type = 'build' , when = '@2.36.8: platform=linux' )
28+ depends_on ('shared-mime-info' , type = 'build' , when = '@2.36.8: platform=cray' )
29+ depends_on ('pkgconfig' , type = 'build' )
30+ depends_on ('gettext' )
31+ depends_on ('glib' )
32+ depends_on ('jpeg' )
33+ depends_on ('libpng' )
34+ depends_on ('libtiff' )
35+ depends_on ('gobject-introspection' )
36+
37+ def url_for_version (self , version ):
38+ url = "https://ftp.acc.umu.se/pub/gnome/sources/gdk-pixbuf/{0}/gdk-pixbuf-{1}.tar.xz"
39+ return url .format (version .up_to (2 ), version )
2940
3041 def setup_dependent_environment (self , spack_env , run_env , dependent_spec ):
3142 spack_env .prepend_path ("XDG_DATA_DIRS" ,
3243 self .prefix .share )
3344 run_env .prepend_path ("XDG_DATA_DIRS" ,
3445 self .prefix .share )
3546
47+ def install (self , spec , prefix ):
48+ with working_dir ('spack-build' , create = True ):
49+ meson ('..' , * std_meson_args )
50+ ninja ('-v' )
51+ ninja ('install' )
52+
3653 def configure_args (self ):
3754 args = []
3855 # disable building of gtk-doc files following #9771
@@ -43,3 +60,13 @@ def configure_args(self):
4360 args .append ('GTKDOC_MKPDF={0}' .format (true ))
4461 args .append ('GTKDOC_REBASE={0}' .format (true ))
4562 return args
63+
64+ @when ('@:2.36' )
65+ def install (self , spec , prefix ):
66+ configure ('--prefix={0}' .format (prefix ), * self .configure_args ())
67+ make ()
68+ if self .run_tests :
69+ make ('check' )
70+ make ('install' )
71+ if self .run_tests :
72+ make ('installcheck' )
0 commit comments