@@ -82,6 +82,15 @@ module fpm_manifest_package
82
82
! > License meta data
83
83
character (len= :), allocatable :: license
84
84
85
+ ! > Author meta data
86
+ character (len= :), allocatable :: author
87
+
88
+ ! > Maintainer meta data
89
+ character (len= :), allocatable :: maintainer
90
+
91
+ ! > Copyright meta data
92
+ character (len= :), allocatable :: copyright
93
+
85
94
! > Library meta data
86
95
type (library_config_t), allocatable :: library
87
96
@@ -161,6 +170,9 @@ subroutine new_package(self, table, root, error)
161
170
endif
162
171
163
172
call get_value(table, " license" , self% license)
173
+ call get_value(table, " author" , self% author)
174
+ call get_value(table, " maintainer" , self% maintainer)
175
+ call get_value(table, " copyright" , self% copyright)
164
176
165
177
if (len (self% name) <= 0 ) then
166
178
call syntax_error(error, " Package name must be a non-empty string" )
@@ -532,6 +544,9 @@ logical function manifest_is_same(this,that)
532
544
if (.not. this% install== other% install) return
533
545
if (.not. this% fortran== other% fortran) return
534
546
if (.not. this% license== other% license) return
547
+ if (.not. this% author== other% author) return
548
+ if (.not. this% maintainer== other% maintainer) return
549
+ if (.not. this% copyright== other% copyright) return
535
550
if (allocated (this% library).neqv. allocated (other% library)) return
536
551
if (allocated (this% library)) then
537
552
if (.not. this% library== other% library) return
@@ -619,6 +634,12 @@ subroutine dump_to_toml(self, table, error)
619
634
if (allocated (error)) return
620
635
call set_string(table, " license" , self% license, error, class_name)
621
636
if (allocated (error)) return
637
+ call set_string(table, " author" , self% author, error, class_name)
638
+ if (allocated (error)) return
639
+ call set_string(table, " maintainer" , self% maintainer, error, class_name)
640
+ if (allocated (error)) return
641
+ call set_string(table, " copyright" , self% copyright, error, class_name)
642
+ if (allocated (error)) return
622
643
623
644
call add_table(table, " build" , ptr, error, class_name)
624
645
if (allocated (error)) return
@@ -867,6 +888,9 @@ subroutine load_from_toml(self, table, error)
867
888
868
889
call get_value(table, " name" , self% name)
869
890
call get_value(table, " license" , self% license)
891
+ call get_value(table, " author" , self% author)
892
+ call get_value(table, " maintainer" , self% maintainer)
893
+ call get_value(table, " copyright" , self% copyright)
870
894
call get_value(table, " version" , flag)
871
895
call new_version(self% version, flag, error)
872
896
if (allocated (error)) then
0 commit comments