You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
52741592a6
The ocaml-cudf subport was missed by both the OCaml 5.4.1 and 5.5.0 cascade revbumps (4c8893022e,a776172ef6), unlike its sibling subport libCUDF which was bumped in both. Its published archive is therefore still built against a pre-5.x OCaml, so libCUDF's build now fails linking against its stale .cmi files: Error: /opt/local/lib/ocaml/site-lib/cudf/cudf_parser.cmi is not a compiled interface for this version of OCaml. Fixes: https://trac.macports.org/ticket/74170 Signed-off-by: Paul Guyot <pguyot@kallisys.net>
67 lines
2.1 KiB
Tcl
67 lines
2.1 KiB
Tcl
# -*- 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 gitlab 1.0
|
|
|
|
gitlab.setup irill cudf 0.10 v
|
|
|
|
name libCUDF
|
|
categories devel ocaml
|
|
maintainers {cal @neverpanic} openmaintainer
|
|
license LGPL-3+
|
|
homepage https://www.mancoosi.org/cudf/
|
|
|
|
description ${name} is a library to manipulate so called CUDF documents.
|
|
|
|
long_description {*}${description} A CUDF \
|
|
(Common Upgradeability Description Format) document describes an \
|
|
\"upgrade scenario\", as faced by package managers in popular \
|
|
package-based FOSS (Free and Open Source Software) distributions.
|
|
|
|
checksums rmd160 144ed9a93a38fc298849c8b2110b6db645ad6c5f \
|
|
sha256 066ba83f4bac30ed3ca6ce345079900226c2065e4715732ecf8a3751dde7ecc8 \
|
|
size 47723
|
|
|
|
use_configure no
|
|
|
|
# parallel building fails
|
|
use_parallel_build no
|
|
|
|
build.env-append CC=${configure.cc} \
|
|
"CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
|
|
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
|
|
|
|
post-patch {
|
|
reinplace "s#/usr/#${prefix}/#g" ${worksrcpath}/Makefile.config
|
|
}
|
|
|
|
subport ocaml-cudf {
|
|
PortGroup ocaml 1.1
|
|
|
|
revision 1
|
|
|
|
ocaml.build_type dune
|
|
|
|
depends_lib-append port:ocaml-extlib
|
|
|
|
livecheck.type none
|
|
}
|
|
|
|
subport libCUDF {
|
|
revision 2
|
|
patchfiles-append patch-c-lib-Makefile.diff \
|
|
patch-c-lib-Makefile.variants.diff
|
|
depends_build-append path:bin/pkg-config:pkgconfig
|
|
depends_lib-append port:ocaml-cudf \
|
|
path:lib/pkgconfig/glib-2.0.pc:glib2 \
|
|
port:zstd
|
|
build.pre_args -C c-lib
|
|
build.args all opt
|
|
destroot.pre_args -C c-lib
|
|
destroot.args install
|
|
|
|
test.pre_args -C c-lib
|
|
test.args test
|
|
test.run yes
|
|
}
|