pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
muon: Import 0.5.0
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By: micha
Date: Wed Jul 30 15:53:49 2025 +0200
Changeset: be21002eb51d5e380f939fc8919e549a58707258
Modified Files:
Makefile
Added Files:
muon/COMMIT_MSG
muon/DESCR
muon/Makefile
muon/PLIST
muon/build.mk
muon/distinfo
Log Message:
muon: Import 0.5.0
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=be21002eb51d5e380f939fc8919e549a58707258
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 | 14 +++++++++++
muon/DESCR | 19 +++++++++++++++
muon/Makefile | 62 +++++++++++++++++++++++++++++++++++++++++++++++
muon/PLIST | 3 +++
muon/build.mk | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
muon/distinfo | 8 +++++++
7 files changed, 181 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 77d77c5f1b..d0a1225ba8 100644
--- a/Makefile
+++ b/Makefile
@@ -2491,6 +2491,7 @@ SUBDIR+= mummer4
SUBDIR+= munge
SUBDIR+= munin-common
SUBDIR+= munin-node
+SUBDIR+= muon
SUBDIR+= mupen64plus
SUBDIR+= mupen64plus-extraplugins
SUBDIR+= muscle
diff --git a/muon/COMMIT_MSG b/muon/COMMIT_MSG
new file mode 100644
index 0000000000..da53452962
--- /dev/null
+++ b/muon/COMMIT_MSG
@@ -0,0 +1,14 @@
+devel/muon: Update to 0.5.0
+
+- Fetch source archive from homepage (formerly the source archive was
+ fetched from sourcehut)
+- Execute pkg-config (formerly libpkgconf was used)
+
+Changelog
+=========
+- muon analyze now has an LSP mode
+- pkg-config-exec backend added. muon now supports shelling out to pkg-config
+ (or pkgconf)
+- bump meson support to 1.7
+- more builtin dependency handlers
+- lots of bug fixes
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..8088fc4682
--- /dev/null
+++ b/muon/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD$
+
+DISTNAME= muon-v0.5.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://git.sr.ht/~lattis/muon
+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 "../../lang/python/tool.mk"
+
+.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/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..7aaaab2f19
--- /dev/null
+++ b/muon/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (muon-0.5.0/man.tar.gz) = 2f3649697ea03542dec43d07f571d278a5d8b6850f98079731841348d879e1fd
+SHA512 (muon-0.5.0/man.tar.gz) = 3d8973ab907838be6f40532983536023e280ed9624da003eb278ecbd5cd9f17b067d74a6646b6eecff0ebbd6de4b6a53f78e96a9f7c13d436543569d91c05b17
+Size (muon-0.5.0/man.tar.gz) = 8172 bytes
+BLAKE2s (muon-0.5.0/muon-v0.5.0.tar.gz) = 7b9eb81cc1b32f9c4fe223085d590917bce67bbb48589d9530cf3779c78fe840
+SHA512 (muon-0.5.0/muon-v0.5.0.tar.gz) = 1575aa928b88fd5f17c1cdf9f46359b4dde407ec11800813eb1c9d4b4a4d201f6ee0a715d2e6f693bf6dda63073980a7207086d4195e51eda96dd27af3319078
+Size (muon-0.5.0/muon-v0.5.0.tar.gz) = 1262546 bytes
Home |
Main Index |
Thread Index |
Old Index