@@ -15,7 +15,7 @@ class Um(UmBasePackage):
1515
1616 variant ("model" , default = "vn13" , description = "Model configuration." ,
1717 values = ("vn13" , "vn13p0-rns" , "vn13p1-am" , "vn13p5-rns" ), multi = False )
18-
18+ variant ( "access3" , default = False )
1919 # List of model variants that have been migrated to Github sources.
2020 # Defined in parent class and overridden here.
2121 github_models = ("vn13" , "vn13p1-am" )
@@ -46,6 +46,10 @@ class Um(UmBasePackage):
4646 variant ("mpi" , default = True , description = "Build with MPI" )
4747 depends_on ("mpi" , when = "+mpi" , type = ("build" , "link" , "run" ))
4848
49+ with when ("+access3" ):
50+ depends_on ("esmf" )
51+ conflicts ("~netcdf" )
52+
4953 def setup_run_environment (self , env ):
5054 """
5155 Set the built path into the environment.
@@ -81,9 +85,15 @@ def install(self, spec, prefix):
8185
8286 def __create_pkgconfig (self , spec , prefix ):
8387
88+ < << << << Updated upstream
8489 um_version = self .spec .version .value
8590
8691 mkdirp (self .__pkgdir )
92+ == == == =
93+ pkgdir = f"{ prefix } /lib/pkgconfig"
94+
95+ mkdirp (pkgdir )
96+ >> >> >> > Stashed changes
8797 for k in self .__libs :
8898 text = f"""\
8999 prefix={ prefix }
@@ -92,11 +102,20 @@ def __create_pkgconfig(self, spec, prefix):
92102includedir=${{prefix}}/include
93103
94104Name: { k }
105+ <<<<<<< Updated upstream
95106Description: UM { um_version } { k } Library for Fortran
96107Version: { um_version }
97108Libs: -L${{libdir}} -l{ k }
98109Cflags: -I${{includedir}}/{ k }
99110"""
111+ == == == =
112+ Description : UM {self .spec .version } {k } Library for Fortran
113+ Version : {self .spec .version }
114+ Libs : - L ${{libdir }} - l {k }
115+ Cflags : - I ${{includedir }}/ {k }
116+ """
117+
118+ >>>>>>> Stashed changes
100119 pcpath = join_path(self.__pkgdir, "um-" + k + ".pc")
101120 with open(pcpath, "w", encoding="utf-8") as pc :
102121 nchars_written = pc .write (text )
0 commit comments