pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
muon: Update to 0.7.0
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By: micha
Date: Mon Oct 12 14:33:22 2026 +0200
Changeset: c260c0d80e7263626840b38b0e8799a07f286b8c
Modified Files:
Makefile
Added Files:
muon/COMMIT_MSG
muon/DESCR
muon/Makefile
muon/PLIST
muon/TODO
muon/build.mk
muon/distinfo
Log Message:
muon: Update to 0.7.0
- Change homepage to <https://muon.build/>
Changelog
=========
- more cross file support
- add a way to disable docs
- set more muon meson defaults to improve drop in behavior
- fully implement meson.add_devenv
- improvements to rpath fixer
- improve haiku support
- bump meson support to 1.11
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c260c0d80e7263626840b38b0e8799a07f286b8c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
muon/COMMIT_MSG | 13 ++++++++++
muon/DESCR | 19 +++++++++++++++
muon/Makefile | 60 ++++++++++++++++++++++++++++++++++++++++++++++
muon/PLIST | 3 +++
muon/TODO | 1 +
muon/build.mk | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
muon/distinfo | 8 +++++++
8 files changed, 179 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 0db791e750..d732310cf3 100644
--- a/Makefile
+++ b/Makefile
@@ -2538,6 +2538,7 @@ SUBDIR+= mummer4
SUBDIR+= munge
SUBDIR+= munin-common
SUBDIR+= munin-node
+SUBDIR+= muon
SUBDIR+= muonfp
SUBDIR+= mupen64plus
SUBDIR+= mupen64plus-extraplugins
diff --git a/muon/COMMIT_MSG b/muon/COMMIT_MSG
new file mode 100644
index 0000000000..54b41b89ac
--- /dev/null
+++ b/muon/COMMIT_MSG
@@ -0,0 +1,13 @@
+muon: Update to 0.7.0
+
+- Switch homepage to <https://muon.build/>
+
+Changelog
+=========
+- more cross file support
+- add a way to disable docs
+- set more muon meson defaults to improve drop in behavior
+- fully implement meson.add_devenv
+- improvements to rpath fixer
+- improve haiku support
+- bump meson support to 1.11
diff --git a/muon/DESCR b/muon/DESCR
new file mode 100644
index 0000000000..6261f9f870
--- /dev/null
+++ b/muon/DESCR
@@ -0,0 +1,19 @@
+muon is an implementation of the meson build system in C99 with minimal
+dependencies.
+
+Features
+========
+- muon analyze - a static analyzer for meson.build files.
+- muon fmt - a meson.build code formatter.
+- An interactive stepping debugger.
+- fast.
+
+Non-features
+============
+- bug-for-bug compatibility with meson.
+ In fact, muon aspires to be stricter than meson in cases where meson's
+ implementation seems error prone. muon uses the official meson
+ documentation as its specification.
+- cli compatibility with meson.
+ muon has different flags, subcommands, etc., and should not be
+ renamed/symlinked to meson.
diff --git a/muon/Makefile b/muon/Makefile
new file mode 100644
index 0000000000..8fa987d4a4
--- /dev/null
+++ b/muon/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD$
+
+DISTNAME= muon-v0.7.0
+PKGNAME= ${DISTNAME:S/v//}
+CATEGORIES= devel
+MASTER_SITES= https://muon.build/releases/${DISTNAME:S/muon-//}/
+DIST_SUBDIR= ${PKGNAME_NOREV}
+DISTFILES= ${DEFAULT_DISTFILES} man.tar.gz
+SITES.man.tar.gz= https://muon.build/releases/${DISTNAME:S/muon-//}/docs/
+
+MAINTAINER= micha%NetBSD.org@localhost
+HOMEPAGE= https://muon.build/
+COMMENT= Implementation of meson build system in C99 with minimal dependencies
+LICENSE= gnu-gpl-v3
+
+USE_TOOLS= pkg-config
+USE_CC_FEATURES= c99
+
+# Use external samurai
+CFLAGS+= -DBOOTSTRAP_NO_SAMU
+DEPENDS+= samurai>=1.2:../../devel/samurai
+
+# Required for clock_gettime() from GNU libc <2.17
+LDFLAGS.Linux+= -lrt
+
+# [On SmartOS] ld: fatal: unrecognized option '--as-needed'
+BUILDLINK_TRANSFORM.SunOS+= opt:-Wl,--as-needed:-Wl,-zignore
+BUILDLINK_TRANSFORM.SunOS+= opt:-Wl,--no-as-needed:-Wl,-zrecord
+
+MUON_ARGS+= -Dlibcurl=disabled
+MUON_ARGS+= -Dlibarchive=disabled
+MUON_ARGS+= -Dlibpkgconf=disabled
+MUON_ARGS+= -Dsamurai=disabled
+MUON_ARGS+= -Dtracy=disabled
+MUON_ARGS+= -Dui=disabled
+MUON_ARGS+= -Dreadline=builtin
+MUON_ARGS+= -Dstatic=false
+MUON_ARGS+= -Dman-pages=disabled
+MUON_ARGS+= -Dmeson-docs=disabled
+MUON_ARGS+= -Dmeson-tests=disabled
+MUON_ARGS+= -Dwebsite=disabled
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+do-configure:
+ cd ${WRKSRC} && env ${CONFIGURE_ENV} ${RM} -f subprojects/meson-tests.wrap
+ cd ${WRKSRC} && env ${CONFIGURE_ENV} ${CONFIG_SHELL} ./bootstrap.sh bootstrap
+ cd ${WRKSRC} && env ${MAKE_ENV} ./bootstrap/muon-bootstrap setup ${MUON_ARGS} output
+
+do-build:
+ cd ${WRKSRC} && env ${MAKE_ENV} samu -j ${_MAKE_JOBS_N:U1} -C output
+
+do-test:
+ cd ${WRKSRC}/output && env ${TEST_ENV} ./muon test
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/output/muon ${DESTDIR}${PREFIX}/bin/muon
+ ${INSTALL_MAN} ${WRKDIR}/man/muon.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/muon/PLIST b/muon/PLIST
new file mode 100644
index 0000000000..655870405d
--- /dev/null
+++ b/muon/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/muon
+man/man1/muon.1
diff --git a/muon/TODO b/muon/TODO
new file mode 100644
index 0000000000..f90fee83c4
--- /dev/null
+++ b/muon/TODO
@@ -0,0 +1 @@
+[ ] Fix problems with runtime search path
diff --git a/muon/build.mk b/muon/build.mk
new file mode 100644
index 0000000000..74f9884cde
--- /dev/null
+++ b/muon/build.mk
@@ -0,0 +1,74 @@
+# $NetBSD$
+
+# Based on devel/meson/build.mk without the cross-compilation stuff
+# (cross-compilation is not supported by muon).
+# Uses devel/samurai as build tool (instead of devel/ninja-build).
+
+MUON_REQD?= 0.3
+.for version in ${MUON_REQD}
+TOOL_DEPENDS+= muon>=${version}:../../devel/muon
+.endfor
+
+CONFIGURE_DIRS?= .
+BUILD_DIRS?= ${CONFIGURE_DIRS}
+INSTALL_DIRS?= ${CONFIGURE_DIRS}
+TEST_DIRS?= ${CONFIGURE_DIRS}
+
+.PHONY: muon-configure muon-build muon-install muon-test
+
+# pkgsrc contains multiple llvm-config executables at multiple locations.
+.if !empty(LLVM_CONFIG_PATH)
+MAKE_ENV+= LLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q}
+.endif
+
+.include "../../mk/bsd.prefs.mk"
+
+do-configure: muon-configure
+muon-configure:
+.for d in ${CONFIGURE_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} muon setup \
+ -Dprefix=${PREFIX} \
+ -Dlibdir=lib \
+ -Dlibexecdir=libexec \
+ -Dmandir=${PKGMANDIR} \
+ -Dsysconfdir=${PKG_SYSCONFDIR} \
+ -Dbuildtype=plain \
+ ${MUON_ARGS} \
+ output
+.endfor
+
+do-build: muon-build
+muon-build:
+.for d in ${BUILD_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} \
+ samu -j ${_MAKE_JOBS_N:U1} -C output
+.endfor
+
+do-install: muon-install
+muon-install:
+.for d in ${INSTALL_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
+ muon -C output install
+.endfor
+
+do-test: muon-test
+muon-test:
+.for d in ${TEST_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${TEST_ENV} \
+ muon -C output test
+.endfor
+
+_VARGROUPS+= muon
+_PKG_VARS.muon= MUON_REQD
+_PKG_VARS.muon+= CONFIGURE_DIRS
+_PKG_VARS.muon+= BUILD_DIRS MAKE_ENV
+_PKG_VARS.muon+= TEST_DIRS TEST_ENV
+_PKG_VARS.muon+= INSTALL_DIRS INSTALL_ENV
+_PKG_VARS.muon+= LLVM_CONFIG_PATH
+_PKG_VARS.muon+= MUON_ARGS
+_USER_VARS.muon= MAKE_JOBS PKG_SYSCONFDIR
+_USE_VARS.muon= WRKSRC PREFIX PKGMANDIR
+_USE_VARS.muon+= _MAKE_JOBS_N
+_DEF_VARS.muon= TOOL_DEPENDS
+_LISTED_VARS.muon= *_ARGS *_DEPENDS
+_SORTED_VARS.muon= *_ENV
diff --git a/muon/distinfo b/muon/distinfo
new file mode 100644
index 0000000000..bc8a76939f
--- /dev/null
+++ b/muon/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (muon-0.7.0/man.tar.gz) = 99f1893d275d0a953e92db1209aebe2a7e9192c359dbdbd32bc84dc4d47013c7
+SHA512 (muon-0.7.0/man.tar.gz) = 319287b64e0165e00821de72beea9a401063166618c38f728cadc19a37092a8ad989ae2040461293724078647ac181477269d843e3196fb64d79a5ce152b8289
+Size (muon-0.7.0/man.tar.gz) = 71451 bytes
+BLAKE2s (muon-0.7.0/muon-v0.7.0.tar.gz) = 623e7f628bca611175bd2496c61c7010dae3334a41563cf8d6fa3d75afa4a5eb
+SHA512 (muon-0.7.0/muon-v0.7.0.tar.gz) = ef58a0323870ef682337361aa22187bfc2ad864dfee3392881c5e9ca160be98a7381d4bfca57ed2097d6e4df802e49a45497c48828188f8c3740448cf4523edf
+Size (muon-0.7.0/muon-v0.7.0.tar.gz) = 1391108 bytes
Home |
Main Index |
Thread Index |
Old Index