You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.2 KiB
63 lines
1.2 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
|
MY_P="${P/icecream/icecc}"
|
||
|
|
||
7 years ago
|
DESCRIPTION="Distributed compiling of C(++) code across several machines; based on distcc"
|
||
7 years ago
|
HOMEPAGE="https://github.com/icecc/icecream"
|
||
|
SRC_URI="ftp://ftp.suse.com/pub/projects/${PN}/${MY_P}.tar.bz2"
|
||
3 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
7 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
|
||
7 years ago
|
|
||
3 years ago
|
DEPEND="sys-libs/libcap-ng"
|
||
7 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
3 years ago
|
acct-group/icecream
|
||
|
acct-user/icecream
|
||
7 years ago
|
dev-util/shadowman
|
||
|
"
|
||
|
|
||
3 years ago
|
PATCHES=( "${FILESDIR}/${P}-libcap-ng.patch" )
|
||
7 years ago
|
|
||
|
src_configure() {
|
||
3 years ago
|
local myeconfargs=(
|
||
|
--enable-shared --disable-static
|
||
|
--enable-clang-wrappers
|
||
7 years ago
|
--enable-clang-rewrite-includes
|
||
3 years ago
|
)
|
||
|
|
||
|
econf "${myeconfargs[@]}"
|
||
7 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
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'
|
||
3 years ago
|
|
||
|
find "${D}" -name '*.la' -delete || die
|
||
7 years ago
|
}
|
||
|
|
||
|
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
|
||
|
}
|