Skip to content

Commit

Permalink
subprocess: new port in devel
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and herbygillot committed May 12, 2024
1 parent 9b0ffb8 commit 2acfcd3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions devel/subprocess/Portfile
@@ -0,0 +1,39 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup benman64 subprocess 0.4.0 v
categories devel
license MIT
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
description Cross-platform subprocess library for C++
long_description {*}${description}
checksums rmd160 fd4419b83aed255bef36396a37ab6f9203435e44 \
sha256 19d865146d8565969da659ffdf9cf5feac5c36d02b52a6a687e41bd53114645f \
size 716782
github.tarball_from archive

set py_ver 3.12
set py_ver_nodot [string map {. {}} ${py_ver}]
depends_build-append \
port:python${py_ver_nodot}
configure.python ${prefix}/bin/python${py_ver}

post-patch {
reinplace "s|/usr/bin/env python3|${configure.python}|" \
${worksrcpath}/test/dependencies/cxxtest/bin/cxxtestgen
}

compiler.cxx_standard 2017

destroot {
copy ${cmake.build_dir}/${name}/lib${name}.a ${destroot}${prefix}/lib
copy ${worksrcpath}/src/cpp/${name}.hpp ${destroot}${prefix}/include
copy ${worksrcpath}/src/cpp/${name} ${destroot}${prefix}/include
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
copy ${worksrcpath}/docs ${destroot}${docdir}
}

0 comments on commit 2acfcd3

Please sign in to comment.