@@ -36,6 +36,7 @@ module fpm_manifest_package
36
36
use fpm_error, only : error_t, fatal_error, syntax_error
37
37
use fpm_toml, only : toml_table, toml_array, toml_key, toml_stat, get_value, &
38
38
& len
39
+ use fpm_versioning, only : version_t, new_version
39
40
implicit none
40
41
private
41
42
@@ -51,6 +52,9 @@ module fpm_manifest_package
51
52
! > Build configuration data
52
53
type (build_config_t) :: build_config
53
54
55
+ ! > Package version
56
+ type (version_t) :: version
57
+
54
58
! > Library meta data
55
59
type (library_t), allocatable :: library
56
60
@@ -91,6 +95,7 @@ subroutine new_package(self, table, error)
91
95
92
96
type (toml_table), pointer :: child, node
93
97
type (toml_array), pointer :: children
98
+ character (len= :), allocatable :: version
94
99
integer :: ii, nn, stat
95
100
96
101
call check(table, error)
@@ -108,6 +113,12 @@ subroutine new_package(self, table, error)
108
113
return
109
114
end if
110
115
call new_build_config(self% build_config, child, error)
116
+
117
+ if (allocated (error)) return
118
+
119
+ call get_value(table, " version" , version, " 0" )
120
+ call new_version(self% version, version, error)
121
+
111
122
if (allocated (error)) return
112
123
113
124
call get_value(table, " dependencies" , child, requested= .false. )
0 commit comments