[MacPorts] #61526: libzzip @0.13.71 can be built with Python 3
MacPorts
noreply at macports.org
Sun Mar 28 21:05:28 UTC 2021
#61526: libzzip @0.13.71 can be built with Python 3
--------------------------+----------------------
Reporter: ballapete | Owner: mojca
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: bigsur
Port: libzzip |
--------------------------+----------------------
Comment (by mojca):
If anyone wants to play with it a bit further ...
{{{
# -*- 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 gdraheim zziplib 0.13.72 v
name libzzip
categories archivers devel
platforms darwin
license LGPL
maintainers {@mojca mojca} openmaintainer
description library providing read access on ZIP-archives
long_description The ZZIPlib provides read access on ZIP-archives. The
\
library uses only the patent-free compression-
algorithms \
supported by Zlib. It provides functions that
transparently \
access files being either real files or zipped files,
\
both with the same filepath.
checksums rmd160 20b12141e49c6332d8fd8b610d1fa4a868d9072b \
sha256
61a14917400dbef5eafb482ddc862f3edad86c888a73f445f82e1ab856d24b46 \
size 1162325
depends_build-append \
port:pkgconfig \
port:python39
depends_lib port:zlib
# html documentation fails to build with a parallel build
# building the tests breaks the build
use_parallel_build no
configure.args-append \
-DZZIPSDL=OFF \
-DZZIPTEST=OFF \
-DZZIPDOCS=ON \
-DZZIP_HTMLSITE=ON \
-DZZIP_HTMPAGES=ON \
-DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python3.9
# I don't see any need for this any longer?
#post-configure {
#set builddir [glob -dir ${worksrcpath} "*apple-darwin*"]
#reinplace -E {s|-arch [a-z0-9_]+||g} \
${builddir}/zzip/zziplib-uninstalled.pc \
${builddir}/zzip/zziplib.pc
#}
# this should be automated at some point; there's also a discrepancy
between `libzzip` and `zziplib`: needs a fix
post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}/html
xinstall -m 0644 -W ${worksrcpath} COPYING.LIB ChangeLog README TODO \
${destroot}${docdir}
xinstall -m 0644 {*}[glob -directory ${worksrcpath}/docs
"*.{css,htm}"] \
${destroot}${docdir}/html
# We replace every soelim stub with a soft link, as ".so" groff
directives
# don't work with gzip'd manpages.
## (no clue what this does)
# foreach {f} [glob -directory ${destroot}${prefix}/share/man/man3 *.3]
{
# set channel [open ${f}]
#
# if {[regexp {^\.so (.+)$} [read -nonewline ${channel}] _ target]}
{
# # This manpage is a soelim stub.
# ln -sf [file tail ${target}] ${f}
# }
#
# close ${channel}
# }
}
variant sdl description {Enable SDL support} {
depends_lib-append port:libsdl
configure.args-replace -DZZIPSDL=OFF -DZZIPSDL=ON
post-destroot {
xinstall -m 0644 ${worksrcpath}/docs/README.SDL
${destroot}${docdir}
}
}
# I didn't manage to run the tests yes
#test.run yes
#test.target check
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61526#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list