Skip to content

Commit

Permalink
version from codemeta
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 22, 2021
1 parent d34d457 commit de34bf4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
cmake_minimum_required(VERSION 3.14...3.22)
cmake_minimum_required(VERSION 3.19...3.22)

file(READ ${CMAKE_CURRENT_LIST_DIR}/codemeta.json _j)
string(JSON PROJECT_VERSION GET ${_j} version)

project(RPNcalc
LANGUAGES Fortran
VERSION 1.2.1
VERSION ${PROJECT_VERSION}
HOMEPAGE_URL https://github.com/scivision/rpn-calc-fortran)

include(CTest)
Expand Down
30 changes: 30 additions & 0 deletions codemeta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"codeRepository": "https://github.com/scivision/rpn-calc-fortran",
"contIntegration": "https://github.com/scivision/rpn-calc-fortran/actions",
"dateModified": "2021-12-22",
"downloadUrl": "https://github.com/scivision/rpn-calc-fortran/releases",
"issueTracker": "https://github.com/scivision/rpn-calc-fortran/issues",
"name": "RPN Calculator",
"version": "1.3.0",
"identifier": "",
"description": "Reverse Polish Notation (RPN) calculator. Over 100 functions not in standard Fortran",
"applicationCategory": "calculator",
"developmentStatus": "active",
"keywords": [
"RPN",
"calculator"
],
"programmingLanguage": [
"Fortran"
],
"author": [
{
"@type": "Person",
"@id": "https://orcid.org/0000-0002-1637-6526",
"givenName": "Michael",
"familyName": "Hirsch"
}
]
}
5 changes: 2 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
project('RPNcalc', 'fortran',
default_options : ['default_library=static', 'warning_level=1', 'buildtype=release'],
meson_version: '>=0.51',
version: '1.2.1')
meson_version: '>=0.51')

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

# tests
subdir('src/tests')
subdir('src/tests')

0 comments on commit de34bf4

Please sign in to comment.