sys-devel/icecream: add latest icecream release

Package-Manager: Portage-2.3.89, Repoman-2.3.20
This commit is contained in:
Xenhat Hex 2020-04-25 01:15:23 -04:00
parent 0e011892a8
commit 5986825d67
No known key found for this signature in database
GPG Key ID: 03FE57ED1424AB4D
3 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST icecc-1.3.1.tar.xz 507412 BLAKE2B 21208ae7476ee0f363beb9f269e998b45e351070058f3840b8508a7b0e40c41166f606b94211039a93261f3ad4b34f3b4c797d10c86b13b0558b47e566b99014 SHA512 16e8f47b440111c5f8ebd76ea83a0658d59a4f929b921e460ab0159f375a5dd5b81853979def1b30dc758f3ea238f4f63c98c1756eb960cb3a64ff276699acd8

View File

@ -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
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">icecc/icecream</remote-id>
</upstream>
</pkgmetadata>