public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/u-config/
@ 2025-03-08 22:23 Nickolas Raymond Kaczynski
  0 siblings, 0 replies; only message in thread
From: Nickolas Raymond Kaczynski @ 2025-03-08 22:23 UTC (permalink / raw
  To: gentoo-commits

commit:     49ee6434d4617766ac18b140c91ebffff8d2d40e
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Sat Mar  8 22:13:47 2025 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
CommitDate: Sat Mar  8 22:17:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49ee6434

dev-util/u-config: add new package

in theory, it can replace pkgconf as a virtual/pkg-config target
(something I've been doing locally for about ~2 years now). but
doing so would require work in ::gentoo.

Signed-off-by: NRK <nrk <AT> disroot.org>

 dev-util/u-config/Manifest               |  1 +
 dev-util/u-config/metadata.xml           | 10 ++++++++
 dev-util/u-config/u-config-0.33.3.ebuild | 40 ++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-util/u-config/Manifest b/dev-util/u-config/Manifest
new file mode 100644
index 000000000..6b05c817d
--- /dev/null
+++ b/dev-util/u-config/Manifest
@@ -0,0 +1 @@
+DIST u-config-0.33.3.tar.gz 31250 BLAKE2B c16a4ba31396e86bcfe0d7441d1cef76691e40184ad1f4c89954a7f0c577769d882f841ddca369b0fd466a45dcc7911ffbb8738563260e48a811733efaf89f54 SHA512 bdf6b11d97d926d193330507ee6be32137dbbe32f91582eed73b6a039d50d7093129b1b8ff686feefb30614afea0af6c3b3f8cc3af91bd4ac62c9340da80a7e9

diff --git a/dev-util/u-config/metadata.xml b/dev-util/u-config/metadata.xml
new file mode 100644
index 000000000..564fe3c54
--- /dev/null
+++ b/dev-util/u-config/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>nrk@disroot.org</email>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">skeeto/u-config</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-util/u-config/u-config-0.33.3.ebuild b/dev-util/u-config/u-config-0.33.3.ebuild
new file mode 100644
index 000000000..3c8eba75d
--- /dev/null
+++ b/dev-util/u-config/u-config-0.33.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo toolchain-funcs
+
+DESCRIPTION="Lean and mean pkg-config replacement"
+HOMEPAGE="https://github.com/skeeto/u-config"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/skeeto/u-config.git"
+else
+	SRC_URI="https://github.com/skeeto/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="Unlicense"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_compile() {
+	edo $(tc-getCC) ${CFLAGS} -o u-config generic_main.c \
+		-D PKG_CONFIG_LIBDIR="\"${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig\"" \
+		-D PKG_CONFIG_SYSTEM_INCLUDE_PATH="\"${EPREFIX}/usr/include\"" \
+		-D PKG_CONFIG_SYSTEM_LIBRARY_PATH="\"${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)\"" \
+		${LDFLAGS}
+	use test && edo $(tc-getCC) ${CFLAGS} -o tests test_main.c ${LDFLAGS}
+}
+
+src_install() {
+	dobin u-config
+	doman u-config.1
+}
+
+src_test() {
+	edo ./tests
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-08 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 22:23 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/u-config/ Nickolas Raymond Kaczynski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox