commit: 5ece3dcfc08030c233c114a8b352eb61cd2512e4
parent ab2c3f96d390bae92d9cfea54fa8b6d74dbab4d8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 9 Dec 2024 23:39:56 +0100
sys-libs/libudev-zero: new package, add 1.0.3
Diffstat:
3 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/sys-libs/libudev-zero/Manifest b/sys-libs/libudev-zero/Manifest
@@ -0,0 +1 @@
+DIST libudev-zero-1.0.3.tar.gz 12433 BLAKE2B 654eeea8fccc1ea842e2c171bd77a659784e8fab479d60fbbff1bfe93177097da29220f2ca15937d9a51000266514b40031d92ae3a336c4d48cae11c5572f90a SHA512 0fc83f5b87c822da5c4b38373b597db32fee265b1e121bbafee83ae9941d381e0a54d93f0ff74931b126da97bdc559fe83b5178b1e7604371e4263e97da67904
diff --git a/sys-libs/libudev-zero/libudev-zero-1.0.3.ebuild b/sys-libs/libudev-zero/libudev-zero-1.0.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Daemonless replacement for libudev"
+HOMEPAGE="https://github.com/illiliti/libudev-zero"
+SRC_URI="https://github.com/illiliti/libudev-zero/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="static-libs"
+
+RDEPEND="!sys-apps/systemd-utils[udev]"
+
+src_compile() {
+ emake libudev.so.1
+ use static-libs && emake AR="$(tc-getAR)" libudev.a
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install-shared
+ use static-libs && emake DESTDIR="${D}" PREFIX=/usr install-static
+}
diff --git a/sys-libs/libudev-zero/metadata.xml b/sys-libs/libudev-zero/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">illility/libudev-zero</remote-id>
+ </upstream>
+</pkgmetadata>