Skip to content

Commit

Permalink
[guix] Added xmlpatch package.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke authored and endJunction committed Nov 1, 2023
1 parent 030ce27 commit 4b7fa51
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
25 changes: 24 additions & 1 deletion .guix/modules/ogs-package.scm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
tclap
tetgen
zlib
vtk))
vtk
xmlpatch))
(native-inputs (list git ninja nss-certs)) ; TODO: cpm
(synopsis "OpenGeoSys")
(description
Expand Down Expand Up @@ -258,6 +259,28 @@
`(#:tests? #f)
)))

(define xmlpatch
(package
(name "xmlpatch")
(synopsis "An XML Patch library")
(license license:lgpl2.1)
(description "")
(home-page "https://xmlpatch.sourceforge.net")
(version "0.4.3")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.opengeosys.org/ogs/libs/xmlpatch")
(commit (string-append "v" version))))
(sha256
(base32
"0872g9w1jd5r4c5a1s8ga4x1plg608b7rxyqjs6zv8ghjq9qlkvg"))))
(build-system cmake-build-system)
(inputs (list libxml2))
(arguments
`(#:tests? #f)
)))

;; return package
ogs

Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/collection
Submodule collection updated from 5ca6a8 to 860959
19 changes: 13 additions & 6 deletions scripts/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,19 @@ if(LibXml2_ADDED)
list(APPEND DISABLE_WARNINGS_TARGETS LibXml2)
endif()

CPMAddPackage(
NAME xmlpatch
VERSION 0.4.2
GIT_REPOSITORY https://gitlab.opengeosys.org/ogs/libs/xmlpatch.git
OPTIONS "BUILD_SHARED_LIBS OFF"
)
if(GUIX_BUILD)
find_library(XMLPATCH_LIB xmlpatch REQUIRED)
add_library(xmlpatch INTERFACE)
find_package(LibXml2 REQUIRED)
target_link_libraries(xmlpatch INTERFACE ${XMLPATCH_LIB} LibXml2::LibXml2)
else()
CPMAddPackage(
NAME xmlpatch
VERSION 0.4.2
GIT_REPOSITORY https://gitlab.opengeosys.org/ogs/libs/xmlpatch.git
OPTIONS "BUILD_SHARED_LIBS OFF"
)
endif()

if(OGS_BUILD_SWMM)
CPMAddPackage(
Expand Down

0 comments on commit 4b7fa51

Please sign in to comment.