# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/icecream-1.0.0-r1.ebuild,v 1.1 2013/04/14 09:26:01 scarabeus Exp $ EAPI=5 MY_P="${P/icecream/icecc}" inherit base eutils user autotools DESCRIPTION="icecc is a program for distributed compiling of C(++) code across several machines; based on distcc" HOMEPAGE="https://github.com/icecc/icecream" SRC_URI="ftp://ftp.suse.com/pub/projects/${PN}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" IUSE="" RDEPEND=" sys-libs/libcap-ng " DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" pkg_setup() { enewgroup icecream enewuser icecream -1 -1 /var/cache/icecream icecream } src_prepare() { epatch "${FILESDIR}/1.0.1-symlinks.patch" einfo "Regenerating autotools files..." WANT_AUTOCONF=2.6 eautoconf WANT_AUTOMAKE=1.15 eautomake } src_configure() { econf \ --enable-shared --disable-static \ --enable-clang-wrappers \ --enable-clang-rewrite-includes } src_install() { default prune_libtool_files --all newconfd suse/sysconfig.icecream icecream newinitd "${FILESDIR}"/icecream-r2 icecream insinto /etc/logrotate.d newins suse/logrotate icecream } pkg_postinst() { elog elog "If you have compiled binutils/gcc/glibc with processor-specific flags" elog "(as normal using Gentoo), there is a greater chance that your compiler" elog "won't work on other machines. The best would be to build gcc, glibc and" elog "binutils without those flags and then copy the needed files into your" elog "tarball for distribution to other machines. This tarball can be created" elog "by running /usr/bin/icecc --build-native, and used by setting" elog "ICECC_VERSION in /etc/conf.d/icecream" elog ' ICECC_VERSION=' elog elog "To use icecream with portage add the following line to /etc/make.conf" elog ' PREROOTPATH=/usr/libexec/icecc/bin' elog elog "To use icecream with normal make use (e.g. in /etc/profile)" elog ' PATH=/usr/libexec/icecc/bin:$PATH' elog elog "N.B. To use icecream with ccache, the ccache PATH should come first:" elog ' PATH=/usr/lib/ccache/bin:/usr/libexec/icecc/bin:$PATH' elog elog "Don't forget to open the following ports in your firewall(s):" elog " TCP/10245 on the daemon computers (required)" elog " TCP/8765 for the the scheduler computer (required)" elog " TCP/8766 for the telnet interface to the scheduler (optional)" elog " UDP/8765 for broadcast to find the scheduler (optional)" elog elog "Further usage instructions: ${HOMEPAGE}" }