Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/mcstrans/
Date: Thu, 26 Apr 2018 11:23:00
Message-Id: 1524741749.29130f2e26273af3296251b05f655ac55da7cf79.perfinion@gentoo
1 commit: 29130f2e26273af3296251b05f655ac55da7cf79
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 26 10:51:16 2018 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 26 11:22:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29130f2e
7
8 sys-apps/mcstrans: bump to 2.8_rc1
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-apps/mcstrans/Manifest | 1 +
13 sys-apps/mcstrans/mcstrans-2.8_rc1.ebuild | 54 +++++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/sys-apps/mcstrans/Manifest b/sys-apps/mcstrans/Manifest
17 index 3cc5cd5c594..279be10ca11 100644
18 --- a/sys-apps/mcstrans/Manifest
19 +++ b/sys-apps/mcstrans/Manifest
20 @@ -1 +1,2 @@
21 DIST mcstrans-2.7.tar.gz 41137 BLAKE2B 83f195dee4bf61c36f65b009cf40dd58459e01d75222fbd7fe15c61ae7942315373a4a0e9a1cd0a654efcf471c3c7166f76c87837085ef6a4136567d4b52fc73 SHA512 2e59f26fad3423a0c8e2ea49d619f99022c72e1aebb00e842defb4fad56f187f9ed0f069ef78d3b209ba76f5ebdcba1668f51ff881b753dada5716ee942519b3
22 +DIST mcstrans-2.8-rc1.tar.gz 41385 BLAKE2B 7aa05d9ec7230e5a2c0b5555368c46af31a5f92318300a07db3242ae18c7855225dd399f2874c2ba09ecbbebcdec686c20f604c2a86e104900b1eaaf50460a44 SHA512 6927d3b06012fb351d04558f26e602c084058911ca095891d49286976cc9f96446476057c09c044564eba25aca920bc99f2218182551a957d0dac6ce1a9bc2db
23
24 diff --git a/sys-apps/mcstrans/mcstrans-2.8_rc1.ebuild b/sys-apps/mcstrans/mcstrans-2.8_rc1.ebuild
25 new file mode 100644
26 index 00000000000..06e7b08fbd9
27 --- /dev/null
28 +++ b/sys-apps/mcstrans/mcstrans-2.8_rc1.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="6"
34 +
35 +inherit toolchain-funcs
36 +
37 +MY_RELEASEDATE="20180419"
38 +
39 +MY_P="${P//_/-}"
40 +IUSE=""
41 +
42 +if [[ ${PV} == *9999 ]] ; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
45 + S="${WORKDIR}/${MY_P}/${PN}"
46 +else
47 + SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
48 + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
49 + S="${WORKDIR}/${MY_P}"
50 +fi
51 +
52 +DESCRIPTION="SELinux context translation to human readable names"
53 +HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
54 +
55 +LICENSE="GPL-2"
56 +SLOT="0"
57 +
58 +DEPEND=">=sys-libs/libsepol-${PV}:=
59 + >=sys-libs/libselinux-${PV}:=
60 + dev-libs/libpcre:=
61 + >=sys-libs/libcap-1.10-r10:="
62 +
63 +RDEPEND="${DEPEND}
64 + !<sys-apps/policycoreutils-2.7_pre"
65 +
66 +src_prepare() {
67 + default
68 +
69 + sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
70 +}
71 +
72 +src_compile() {
73 + tc-export CC
74 + default
75 +}
76 +
77 +src_install() {
78 + emake DESTDIR="${D}" install
79 +
80 + rm -rf "${D}/etc/rc.d" || die
81 +
82 + newinitd "${FILESDIR}/mcstransd.init" mcstransd
83 +}