Files
2025-05-29 16:47:44 -05:00

51 lines
1.7 KiB
Plaintext

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
github.setup PeterFeicht cppreference-doc 20250209 v
name cppreference
# Non-standard release file naming
github.tarball_from releases
distname html-book-${github.version}
use_xz yes
maintainers {eborisch @eborisch} \
openmaintainer
categories lang
license GFDL
platforms any
supported_archs noarch
homepage https://cppreference.com/
description C++ reference pages (and Doxygen tags files)
long_description {*}${description}. Offline version.
checksums \
rmd160 39704892bc220669ae8ae3c093bebd002ecc6414 \
sha256 ac50671a1f52d7f0ab0911d14450eb35e8c2f812edd0e426b2cd1e3d9db91d6f \
size 6650380
extract.mkdir yes
use_configure no
build {}
destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
move ${worksrcpath}/reference/en ${worksrcpath}/reference/common \
${destroot}${prefix}/share/doc/${name}/
move ${worksrcpath}/cppreference-doxygen-local.tag.xml \
${destroot}${prefix}/share/doc/${name}/
system -W ${destroot}${prefix}/share/doc \
"chown -R ${install.user}:${install.group} ${name}"
}
notes "
C++ STL documentation installed at:
file://${prefix}/share/doc/${name}/en/index.html
Doxygen tag linking with:
TAGFILES += \"${prefix}/share/doc/${name}/cppreference-doxygen-local.tag.xml=${prefix}/share/doc/${name}/en/\"
"