From 5986825d6764ac836c11657e779b419f594ad0ee Mon Sep 17 00:00:00 2001 From: Xenhat Hex Date: Sat, 25 Apr 2020 01:15:23 -0400 Subject: [PATCH] sys-devel/icecream: add latest icecream release Package-Manager: Portage-2.3.89, Repoman-2.3.20 --- sys-devel/icecream/Manifest | 1 + sys-devel/icecream/icecream-1.3.1.ebuild | 66 ++++++++++++++++++++++++ sys-devel/icecream/metadata.xml | 7 +++ 3 files changed, 74 insertions(+) create mode 100644 sys-devel/icecream/Manifest create mode 100644 sys-devel/icecream/icecream-1.3.1.ebuild create mode 100644 sys-devel/icecream/metadata.xml diff --git a/sys-devel/icecream/Manifest b/sys-devel/icecream/Manifest new file mode 100644 index 0000000..cdc4944 --- /dev/null +++ b/sys-devel/icecream/Manifest @@ -0,0 +1 @@ +DIST icecc-1.3.1.tar.xz 507412 BLAKE2B 21208ae7476ee0f363beb9f269e998b45e351070058f3840b8508a7b0e40c41166f606b94211039a93261f3ad4b34f3b4c797d10c86b13b0558b47e566b99014 SHA512 16e8f47b440111c5f8ebd76ea83a0658d59a4f929b921e460ab0159f375a5dd5b81853979def1b30dc758f3ea238f4f63c98c1756eb960cb3a64ff276699acd8 diff --git a/sys-devel/icecream/icecream-1.3.1.ebuild b/sys-devel/icecream/icecream-1.3.1.ebuild new file mode 100644 index 0000000..4093be8 --- /dev/null +++ b/sys-devel/icecream/icecream-1.3.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="${P/icecream/icecc}" + +DESCRIPTION="Distributed compiling of C(++) code across several machines; based on distcc" +HOMEPAGE="https://github.com/icecc/icecream" +SRC_URI="https://github.com/icecc/icecream/releases/download/${PV}/${MY_P}.tar.xz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" +IUSE="" + +DEPEND=" + sys-libs/libcap-ng +" +RDEPEND=" + ${DEPEND} + dev-util/shadowman +" + +S="${WORKDIR}/${MY_P}" + +#PATCHES=( +# "${FILESDIR}/${P}-libcap-ng.patch" +#) + +pkg_setup() { + enewgroup icecream + enewuser icecream -1 -1 /var/cache/icecream icecream +} + +src_configure() { + econf \ + --enable-shared --disable-static \ + --enable-clang-wrappers \ + --enable-clang-rewrite-includes +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + + newconfd suse/sysconfig.icecream icecream + newinitd "${FILESDIR}"/icecream-r2 icecream + + insinto /etc/logrotate.d + newins suse/logrotate icecream + + insinto /usr/share/shadowman/tools + newins - icecc <<<'/usr/libexec/icecc/bin' +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then + eselect compiler-shadow remove icecc + fi +} + +pkg_postinst() { + if [[ ${ROOT} == / ]]; then + eselect compiler-shadow update icecc + fi +} diff --git a/sys-devel/icecream/metadata.xml b/sys-devel/icecream/metadata.xml new file mode 100644 index 0000000..7853da5 --- /dev/null +++ b/sys-devel/icecream/metadata.xml @@ -0,0 +1,7 @@ + + + + + icecc/icecream + +