commit:     b4e308c0d9a45b300070bf356360647908401f4e
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  9 19:38:14 2025 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Mar  9 21:57:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e308c0

sys-apps/mcstrans: bump to 3.8.1

Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 sys-apps/mcstrans/Manifest              |  1 +
 sys-apps/mcstrans/mcstrans-3.8.1.ebuild | 51 +++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/sys-apps/mcstrans/Manifest b/sys-apps/mcstrans/Manifest
index 72dcb389f5ed..2ad2fb003579 100644
--- a/sys-apps/mcstrans/Manifest
+++ b/sys-apps/mcstrans/Manifest
@@ -1,3 +1,4 @@
 DIST mcstrans-3.6.tar.gz 42199 BLAKE2B 
0f1b4ed212994037b062c42887e2629ae7374e0cbbd79692588ce164440eafddc6d7ab15d58f6064d68781a5a8fd614c9cfa734c4dbe1d3fea1dbb0f8191ddc1
 SHA512 
2c01a70741675faa41e8a9243f3cf08b558e568d7ae343874ff9c269473ba2748d42e0b45871d82d6c9b01bf71547835d547683f1aa5a8cf626708c7c69569fc
 DIST mcstrans-3.7.tar.gz 42501 BLAKE2B 
b1112a5098a6681ade55e9fada8b0e4629bda8ff4334242b570bc042113204374bd2ca72face7fd7bc0958981a3c39284fa953a02e0860c4101e966f77f7e49a
 SHA512 
51483ce4fd0b0a4bcba0d52eb418aa56104732888782f32c27a855c167cdb267de22eeb414ad8c6b2e733620c3e59db39646136c97f7bcb8901ce12fed44583a
+DIST mcstrans-3.8.1.tar.gz 42511 BLAKE2B 
15a79c6229a373e6bbabadd31b8bf21534a44402d42740662619f2578fb2712b884a7ba76d452ca5dd86afdd7642941076f68604641e002dd7051ad6480ae375
 SHA512 
45db573106667b424aba01dd9feae854ce7672a852b73de0e5c3fd5e9a9cdd61fc1a630ee0b4ffd6191c63b4c24ce258846af2205b336d6fca6ba27d5cc7ac56
 DIST mcstrans-3.8.tar.gz 42499 BLAKE2B 
d8780297e63ed17f580af73771136e50e2b8cd6c1d11c7c8a6ed6d8ef040b0d6fdd756f9fc4f131c337476791c83e2fb0623bd736b006fcf6af60f33e5d98bb9
 SHA512 
bf90e2ca1e0176dc7668ef5ac047c814c33999bc276445176b8a4541cbc6b140a3148a1e9f390d01b1ec263c7a0676b378626da6588d6139b1024f292b79c205

diff --git a/sys-apps/mcstrans/mcstrans-3.8.1.ebuild 
b/sys-apps/mcstrans/mcstrans-3.8.1.ebuild
new file mode 100644
index 000000000000..456e6a7a057e
--- /dev/null
+++ b/sys-apps/mcstrans/mcstrans-3.8.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux context translation to human readable names"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+       S="${WORKDIR}/${P}/${PN}"
+else
+       
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+       S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=sys-libs/libsepol-${PV}:=[static-libs(+)]
+       >=sys-libs/libselinux-${PV}:=
+       dev-libs/libpcre2:=
+       >=sys-libs/libcap-1.10-r10:="
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+
+       sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
+}
+
+src_compile() {
+       tc-export CC
+       default
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+
+       rm -rf "${D}/etc/rc.d" || die
+
+       newinitd "${FILESDIR}/mcstransd.init" mcstransd
+}

Reply via email to