-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b0ffb8
commit 2acfcd3
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
} |