Skip to content

Commit de34bf4

Browse files
committed
version from codemeta
1 parent d34d457 commit de34bf4

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
cmake_minimum_required(VERSION 3.14...3.22)
1+
cmake_minimum_required(VERSION 3.19...3.22)
2+
3+
file(READ ${CMAKE_CURRENT_LIST_DIR}/codemeta.json _j)
4+
string(JSON PROJECT_VERSION GET ${_j} version)
25

36
project(RPNcalc
47
LANGUAGES Fortran
5-
VERSION 1.2.1
8+
VERSION ${PROJECT_VERSION}
69
HOMEPAGE_URL https://github.com/scivision/rpn-calc-fortran)
710

811
include(CTest)

codemeta.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
3+
"@type": "SoftwareSourceCode",
4+
"codeRepository": "https://github.com/scivision/rpn-calc-fortran",
5+
"contIntegration": "https://github.com/scivision/rpn-calc-fortran/actions",
6+
"dateModified": "2021-12-22",
7+
"downloadUrl": "https://github.com/scivision/rpn-calc-fortran/releases",
8+
"issueTracker": "https://github.com/scivision/rpn-calc-fortran/issues",
9+
"name": "RPN Calculator",
10+
"version": "1.3.0",
11+
"identifier": "",
12+
"description": "Reverse Polish Notation (RPN) calculator. Over 100 functions not in standard Fortran",
13+
"applicationCategory": "calculator",
14+
"developmentStatus": "active",
15+
"keywords": [
16+
"RPN",
17+
"calculator"
18+
],
19+
"programmingLanguage": [
20+
"Fortran"
21+
],
22+
"author": [
23+
{
24+
"@type": "Person",
25+
"@id": "https://orcid.org/0000-0002-1637-6526",
26+
"givenName": "Michael",
27+
"familyName": "Hirsch"
28+
}
29+
]
30+
}

meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
project('RPNcalc', 'fortran',
22
default_options : ['default_library=static', 'warning_level=1', 'buildtype=release'],
3-
meson_version: '>=0.51',
4-
version: '1.2.1')
3+
meson_version: '>=0.51')
54

65
fc = meson.get_compiler('fortran')
76
if fc.get_id() == 'gcc'
@@ -15,4 +14,4 @@ rpncalc_exe = executable('rpncalc', rpncalc_src,
1514
install : true)
1615

1716
# tests
18-
subdir('src/tests')
17+
subdir('src/tests')

0 commit comments

Comments
 (0)