From: Michael Imhof Date: Wed, 21 Jun 2006 18:46:54 +0000 (+0000) Subject: Version bumped. Closes #115977. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee208c195591b7d789d63839bc8114bc1b257bfd;p=gentoo.git Version bumped. Closes #115977. Package-Manager: portage-2.1.1_pre1-r1 --- diff --git a/sys-devel/icecream/ChangeLog b/sys-devel/icecream/ChangeLog index d7276251b05b..96ea1070a532 100644 --- a/sys-devel/icecream/ChangeLog +++ b/sys-devel/icecream/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-devel/icecream # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/ChangeLog,v 1.2 2006/01/28 13:45:24 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/ChangeLog,v 1.3 2006/06/21 18:46:54 tantive Exp $ + +*icecream-0.6.20050413 (21 Jun 2006) + + 21 Jun 2006; Michael Imhof + +files/icecream-0.6-20050413-add-disable-option.patch, + +files/icecream-0.6-20050413-dont-create-symlinks.patch, + +files/icecream-0.6-20050413-no-kde.patch, +files/icecream, + +files/icecream-config, +icecream-0.6.20050413.ebuild: + Version bumped. Closes #115977. 28 Jan 2006; Simon Stelling +files/icecream_disable.patch, -files/icecream_disable.patch.bz2, diff --git a/sys-devel/icecream/Manifest b/sys-devel/icecream/Manifest index 69005b8e695f..9de01b1bafdc 100644 --- a/sys-devel/icecream/Manifest +++ b/sys-devel/icecream/Manifest @@ -1,7 +1,71 @@ -MD5 d8f329b56662151b25612dff3f636938 ChangeLog 642 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 99icecream 69 RMD160 413b4024634d5d2168d40defaba9fc92b24e1288 SHA1 9c8d38bd689ba2850d7de797963c15b2ac5de23f SHA256 b30e73e9725ca2ac586e7f2b8c4f38f5a780a333ecbd090d5aad4864745b7e90 MD5 70af2ad7d27b5da02a1653d2098e8ee4 files/99icecream 69 -MD5 de86e8bf5603c45b9b2f9d565feda153 files/digest-icecream-0.6.20040829 155 +RMD160 413b4024634d5d2168d40defaba9fc92b24e1288 files/99icecream 69 +SHA256 b30e73e9725ca2ac586e7f2b8c4f38f5a780a333ecbd090d5aad4864745b7e90 files/99icecream 69 +AUX icecream 1608 RMD160 269632f604e597e670a7b146aa21aeffbd8904b9 SHA1 a27bf665c5a33a0c9ea3bb89c32c3ef9d8628c22 SHA256 c70464863cfd9dff726329f72663560fc674d2c133033dc170fb5ddd08652670 +MD5 0c899553f7f34b95d4e92d1623822198 files/icecream 1608 +RMD160 269632f604e597e670a7b146aa21aeffbd8904b9 files/icecream 1608 +SHA256 c70464863cfd9dff726329f72663560fc674d2c133033dc170fb5ddd08652670 files/icecream 1608 +AUX icecream-0.6-20050413-add-disable-option.patch 1190 RMD160 a8d900908affe0cb03f5b87811abf00393a1d130 SHA1 b179031c51398e397ff5d03eda192e85efdd65e1 SHA256 1d3c367c43f5dcb65d4aedd00c88521410a0e69b9ab90554b3cf690fe9a9662c +MD5 2d8c936f7ecdd9803399eba916b105f1 files/icecream-0.6-20050413-add-disable-option.patch 1190 +RMD160 a8d900908affe0cb03f5b87811abf00393a1d130 files/icecream-0.6-20050413-add-disable-option.patch 1190 +SHA256 1d3c367c43f5dcb65d4aedd00c88521410a0e69b9ab90554b3cf690fe9a9662c files/icecream-0.6-20050413-add-disable-option.patch 1190 +AUX icecream-0.6-20050413-dont-create-symlinks.patch 954 RMD160 916e32e1b54f0a7985be46c931c77254910c73fa SHA1 b543382e25458325dd206a0f30295c2229a8b76b SHA256 44459092c0b7260bffaf9914ca9616fb4370f0b4028d3e33e04595a47888da19 +MD5 95601b4e6866575f597d577016d829f1 files/icecream-0.6-20050413-dont-create-symlinks.patch 954 +RMD160 916e32e1b54f0a7985be46c931c77254910c73fa files/icecream-0.6-20050413-dont-create-symlinks.patch 954 +SHA256 44459092c0b7260bffaf9914ca9616fb4370f0b4028d3e33e04595a47888da19 files/icecream-0.6-20050413-dont-create-symlinks.patch 954 +AUX icecream-0.6-20050413-no-kde.patch 2729 RMD160 b7306ee2345f4f4f0a153e030c2c0efb55249c19 SHA1 b401007d65c566bd1e4f5d90dad010462da38526 SHA256 27ac580d4c31c94b24378b2ca6a47b1aa61e96a33d57924bb1d058a4e4c8fc55 +MD5 945acf7b90e7c2eea86fbfd6ab89ff25 files/icecream-0.6-20050413-no-kde.patch 2729 +RMD160 b7306ee2345f4f4f0a153e030c2c0efb55249c19 files/icecream-0.6-20050413-no-kde.patch 2729 +SHA256 27ac580d4c31c94b24378b2ca6a47b1aa61e96a33d57924bb1d058a4e4c8fc55 files/icecream-0.6-20050413-no-kde.patch 2729 +AUX icecream-config 1684 RMD160 82ac2dd060899e3b0a4fbaef2c8d84d115b54595 SHA1 846d5de2820af3656a90e2fae05f3ffe2db69095 SHA256 c268ec42b5b1f2d16fbe7d68d5388504428e590364f73c0fba9f7742ae29af1a +MD5 4ba61de59776bd40d2922399ac19ecfc files/icecream-config 1684 +RMD160 82ac2dd060899e3b0a4fbaef2c8d84d115b54595 files/icecream-config 1684 +SHA256 c268ec42b5b1f2d16fbe7d68d5388504428e590364f73c0fba9f7742ae29af1a files/icecream-config 1684 +AUX icecream_disable.patch 1247 RMD160 672bfc262c0eb1c1064b9c9ed1cc8f17f206fcd1 SHA1 d3458baba253b0dc1397b1c7e6b847f09137d3b6 SHA256 63b9f9275f411aed34426022ec0bee51a20399f4f4eeda7e192fb69ca0a5851f MD5 ed4be6637604b623bd3b0ffd2e1bae18 files/icecream_disable.patch 1247 +RMD160 672bfc262c0eb1c1064b9c9ed1cc8f17f206fcd1 files/icecream_disable.patch 1247 +SHA256 63b9f9275f411aed34426022ec0bee51a20399f4f4eeda7e192fb69ca0a5851f files/icecream_disable.patch 1247 +AUX icecreamdaemon 387 RMD160 77c389ac499dac65be30e528d7fb9cb6fbe8d8ec SHA1 921e80925b8a7fc4330e49792359b7ff5dee1ad8 SHA256 f93c87a91b784c3399cde60771f2073b9974f28bc0bade53b97cb53edd54b3e4 MD5 11da9aee8c0bd3a91fdf7a5d883846ea files/icecreamdaemon 387 +RMD160 77c389ac499dac65be30e528d7fb9cb6fbe8d8ec files/icecreamdaemon 387 +SHA256 f93c87a91b784c3399cde60771f2073b9974f28bc0bade53b97cb53edd54b3e4 files/icecreamdaemon 387 +AUX icecreamscheduler 366 RMD160 d09d53aed5c57a2de2246699b369c4ddf398bcee SHA1 ed07e3b4f108ff675b8bbbbb44caf09d62cc0db6 SHA256 ece00082e01b1bab085ab741ede5ec00952bea37a1eab09d23fa192278955cf0 MD5 b5b8e00fbdd696a2030334749ab1184b files/icecreamscheduler 366 +RMD160 d09d53aed5c57a2de2246699b369c4ddf398bcee files/icecreamscheduler 366 +SHA256 ece00082e01b1bab085ab741ede5ec00952bea37a1eab09d23fa192278955cf0 files/icecreamscheduler 366 +DIST icecream-0.6-20040829.tar.bz2 549028 +DIST icecream-0.6-20050413.tar.bz2 594135 RMD160 dca34e902610ad887e926c27f2f4bc21f8416e7c SHA1 84fd01ddf8356b7c9371966ec5472d2ffdecbe5b SHA256 f47aaa70044342f046a8ca356ae5ec553ac01c940f48e7bf045b91a6ee3517b2 +DIST icecream-0.6.20040829.nokde.patch.bz2 45508 +EBUILD icecream-0.6.20040829.ebuild 3069 RMD160 b8dd43b0340cc223303ff3c846b1594e90cbc9a8 SHA1 025fc4c43d4e15bbdeffb5923fb1c2e0eb0cf82b SHA256 30eede3452f11d75905f58b47b1e34fd1167c96746bb235599793677b1fd807d MD5 1c323e408c1ef80b9bf9725b8753b8e1 icecream-0.6.20040829.ebuild 3069 +RMD160 b8dd43b0340cc223303ff3c846b1594e90cbc9a8 icecream-0.6.20040829.ebuild 3069 +SHA256 30eede3452f11d75905f58b47b1e34fd1167c96746bb235599793677b1fd807d icecream-0.6.20040829.ebuild 3069 +EBUILD icecream-0.6.20050413.ebuild 3878 RMD160 8cf9df28961704057e390ee2841f1a32028f1ee1 SHA1 40f57309dae449fbe476905e4d754c69db1ce31e SHA256 b35549fed65719a77b05cf98911669f17443b7a2fc37cbb4171b1952f5400958 +MD5 9a11d3c5d215e468178d47c0ba6bb19f icecream-0.6.20050413.ebuild 3878 +RMD160 8cf9df28961704057e390ee2841f1a32028f1ee1 icecream-0.6.20050413.ebuild 3878 +SHA256 b35549fed65719a77b05cf98911669f17443b7a2fc37cbb4171b1952f5400958 icecream-0.6.20050413.ebuild 3878 +MISC ChangeLog 1002 RMD160 61c04074bc326e671b4552b20ab04709cf83835c SHA1 3fe839b8810a8ced0d4eb9332982e8e08364f0c6 SHA256 a7b2ba22000e0d7a771a513d2592568e14d1167d65c9803d525f7885b3e515e9 +MD5 c45477bb47e0e51ba91877aaf183dafb ChangeLog 1002 +RMD160 61c04074bc326e671b4552b20ab04709cf83835c ChangeLog 1002 +SHA256 a7b2ba22000e0d7a771a513d2592568e14d1167d65c9803d525f7885b3e515e9 ChangeLog 1002 +MISC metadata.xml 160 RMD160 1233ca29861ca7c47f0b09d1d7a29def80f7df02 SHA1 1bfdc9d282a84c95e2bdcda19ace5b94e2e67349 SHA256 56717bdb03ad5d833acecfbc612a67f569256b328bf610fbc6cc33714186dae9 +MD5 cde8b4e93c9339eb99fe3ad45941c99b metadata.xml 160 +RMD160 1233ca29861ca7c47f0b09d1d7a29def80f7df02 metadata.xml 160 +SHA256 56717bdb03ad5d833acecfbc612a67f569256b328bf610fbc6cc33714186dae9 metadata.xml 160 +MD5 de86e8bf5603c45b9b2f9d565feda153 files/digest-icecream-0.6.20040829 155 +RMD160 44fb4906a8a918f6f057d6b311539f17a67b6fb3 files/digest-icecream-0.6.20040829 155 +SHA256 b3ba3eb80a351483363fc49b2c3532c079350dd307eb3b7d8cc09ef8ed7de622 files/digest-icecream-0.6.20040829 155 +MD5 3d1ff4008e6c4348d6a6cd3b2c094829 files/digest-icecream-0.6.20050413 268 +RMD160 d455d07e0f4dacf107730972a88fb607cc11fe04 files/digest-icecream-0.6.20050413 268 +SHA256 11dc37cd7e9cb0b166fcb3555d8ddd6ea4f468a5fe84790f85fbfd1b48c13986 files/digest-icecream-0.6.20050413 268 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2.2 (GNU/Linux) + +iD8DBQFEmZRYKtJO8LeSoosRAkf/AKCQO7dlQYiRQeL0SBJQ5oRKGxTSNgCggH9U +Oywn1JRhsVWa7a9W8XJXHM4= +=bwK0 +-----END PGP SIGNATURE----- diff --git a/sys-devel/icecream/files/digest-icecream-0.6.20050413 b/sys-devel/icecream/files/digest-icecream-0.6.20050413 new file mode 100644 index 000000000000..d77c1bcb1320 --- /dev/null +++ b/sys-devel/icecream/files/digest-icecream-0.6.20050413 @@ -0,0 +1,3 @@ +MD5 eb304444a47d6b144dbc76b5638020d0 icecream-0.6-20050413.tar.bz2 594135 +RMD160 dca34e902610ad887e926c27f2f4bc21f8416e7c icecream-0.6-20050413.tar.bz2 594135 +SHA256 f47aaa70044342f046a8ca356ae5ec553ac01c940f48e7bf045b91a6ee3517b2 icecream-0.6-20050413.tar.bz2 594135 diff --git a/sys-devel/icecream/files/icecream b/sys-devel/icecream/files/icecream new file mode 100644 index 000000000000..cb831ded5a1b --- /dev/null +++ b/sys-devel/icecream/files/icecream @@ -0,0 +1,60 @@ +#!/sbin/runscript + +#NB: Config is in /etc/conf.d/icecream + +depend() { + need net +} + +start() { + + netname= + if test -n "$ICECREAM_NETNAME"; then + netname="-n $ICECREAM_NETNAME" + fi + if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + logfile="" + if test -z "$ICECREAM_SCHEDULER_LOG_FILE"; then + ICECREAM_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler" + fi + logfile="-l $ICECREAM_SCHEDULER_LOG_FILE" + : > $ICECREAM_SCHEDULER_LOG_FILE + chown icecream:icecream $ICECREAM_SCHEDULER_LOG_FILE + + ebegin "Starting Distributed Compiler Scheduler" + start-stop-daemon -u icecream --start --quiet --exec /usr/sbin/scheduler -- -d $logfile $netname + eend ${?} + fi + logfile="" + if test -n "$ICECREAM_LOG_FILE"; then + logfile="-l $ICECREAM_LOG_FILE" + : > $ICECREAM_LOG_FILE + chown icecream:icecream $ICECREAM_LOG_FILE + fi + nice= + if test -n "$ICECREAM_NICE_LEVEL"; then + nice="--nice $ICECREAM_NICE_LEVEL" + fi + scheduler= + if test -n "$ICECREAM_SCHEDULER_HOST"; then + scheduler="-s $ICECREAM_SCHEDULER_HOST" + fi + maxjobs= + if test -n "$ICECREAM_MAX_JOBS"; then + maxjobs="-m $ICECREAM_MAX_JOBS" + fi + ebegin "Starting Distributed Compiler Daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/iceccd -- -d $logfile $nice $scheduler $netname -u icecream -b "$ICECREAM_BASEDIR" $maxjobs + eend ${?} +} + +stop() { + ebegin "Stopping Distributed Compiler Daemon" + start-stop-daemon --stop --quiet --name iceccd + eend ${?} + if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + ebegin "Stopping Distributed Compiler Scheduler" + start-stop-daemon --stop --quiet --name scheduler + eend ${?} + fi +} diff --git a/sys-devel/icecream/files/icecream-0.6-20050413-add-disable-option.patch b/sys-devel/icecream/files/icecream-0.6-20050413-add-disable-option.patch new file mode 100644 index 000000000000..8852ef789b56 --- /dev/null +++ b/sys-devel/icecream/files/icecream-0.6-20050413-add-disable-option.patch @@ -0,0 +1,28 @@ +--- icecream/client/main.cpp.dist 2005-12-18 10:20:11.000000000 -0500 ++++ icecream/client/main.cpp 2005-12-18 10:24:29.000000000 -0500 +@@ -72,6 +72,7 @@ + " --help explain usage and exit\n" + " --version show version and exit\n" + "Environment Variables:\n" ++" ICECC_DISABLE if set the local compiler is used.\n" + " ICECC_VERSION use a specific icecc environment, see create-env\n" + " ICECC_REPEAT_RATE the number of jobs out of 1000 that should be\n" + " compiled on multiple hosts to ensure that they're\n" +@@ -117,6 +118,7 @@ + int main(int argc, char **argv) + { + char *env = getenv( "ICECC_DEBUG" ); ++ char *icecc_disable = getenv( "ICECC_DISABLE" ); + int debug_level = Error; + if ( env ) { + if ( !strcasecmp( env, "info" ) ) { +@@ -161,6 +163,9 @@ + CompileJob job; + local = analyse_argv( argv, job ); + ++ if(icecc_disable != NULL) ++ local = true; ++ + pid_t pid = 0; + + /* for local jobs, we fork off a child that tells the scheduler that we got something diff --git a/sys-devel/icecream/files/icecream-0.6-20050413-dont-create-symlinks.patch b/sys-devel/icecream/files/icecream-0.6-20050413-dont-create-symlinks.patch new file mode 100644 index 000000000000..c7790f3778ad --- /dev/null +++ b/sys-devel/icecream/files/icecream-0.6-20050413-dont-create-symlinks.patch @@ -0,0 +1,28 @@ +diff -urN icecream/client/Makefile.am icecream.new/client/Makefile.am +--- icecream/client/Makefile.am 2004-08-30 09:00:56.000000000 +0100 ++++ icecream.new/client/Makefile.am 2006-05-31 19:29:02.000000000 +0100 +@@ -15,10 +15,6 @@ + + install-exec-local: + $(mkinstalldirs) $(DESTDIR)$(bindir) +- for link in g++ gcc c++ cc; do \ +- rm -f $(DESTDIR)$(bindir)/$$link ;\ +- $(LN_S) icecc $(DESTDIR)$(bindir)/$$link ;\ +- done + + uninstall-local: + for link in g++ gcc c++ cc; do \ +diff -urN icecream/client/Makefile.in icecream.new/client/Makefile.in +--- icecream/client/Makefile.in 2005-04-13 08:30:07.000000000 +0100 ++++ icecream.new/client/Makefile.in 2006-05-31 19:29:13.000000000 +0100 +@@ -680,10 +680,6 @@ + + install-exec-local: + $(mkinstalldirs) $(DESTDIR)$(bindir) +- for link in g++ gcc c++ cc; do \ +- rm -f $(DESTDIR)$(bindir)/$$link ;\ +- $(LN_S) icecc $(DESTDIR)$(bindir)/$$link ;\ +- done + + uninstall-local: + for link in g++ gcc c++ cc; do \ diff --git a/sys-devel/icecream/files/icecream-0.6-20050413-no-kde.patch b/sys-devel/icecream/files/icecream-0.6-20050413-no-kde.patch new file mode 100644 index 000000000000..6ae3031bf3e7 --- /dev/null +++ b/sys-devel/icecream/files/icecream-0.6-20050413-no-kde.patch @@ -0,0 +1,76 @@ +--- icecream.orig/configure.in 2005-04-13 03:29:41.000000000 -0400 ++++ icecream/configure.in 2005-12-18 14:02:24.000000000 -0500 +@@ -156,13 +156,13 @@ + dnl === END LZO + + UIC_NOT_NEEDED=1 +-KDE_CHECK_FINAL ++#KDE_CHECK_FINAL + dnl ======================================================= + dnl FILE: ./mon/configure.in.in + dnl ======================================================= + +-KDE_SET_PREFIX +-AC_PATH_KDE ++#KDE_SET_PREFIX ++#AC_PATH_KDE + + dnl ======================================================= + dnl FILE: ./services/configure.in.in +@@ -193,9 +193,9 @@ + AC_CONFIG_FILES([ client/Makefile ]) + AC_CONFIG_FILES([ daemon/Makefile ]) + AC_CONFIG_FILES([ minilzo/Makefile ]) +-AC_CONFIG_FILES([ mon/Makefile ]) +-AC_CONFIG_FILES([ mon/doc/Makefile ]) +-AC_CONFIG_FILES([ mon/doc/icemon/Makefile ]) ++#AC_CONFIG_FILES([ mon/Makefile ]) ++#AC_CONFIG_FILES([ mon/doc/Makefile ]) ++#AC_CONFIG_FILES([ mon/doc/icemon/Makefile ]) + AC_CONFIG_FILES([ services/Makefile ]) + if test "$prefix" = NONE; then + prefix=$ac_default_prefix +@@ -206,22 +206,22 @@ + + AC_OUTPUT + # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure +-if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then ++#if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then + # And if so, warn when they don't match +- if test "$kde_libs_prefix" != "$given_prefix"; then ++# if test "$kde_libs_prefix" != "$given_prefix"; then + # And if kde doesn't know about the prefix yet +- echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null +- if test $? -ne 0; then +- echo "" +- echo "Warning: you chose to install this package in $given_prefix," +- echo "but KDE was found in $kde_libs_prefix." +- echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" +- echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" +- echo "Then restart KDE." +- echo "" +- fi +- fi +-fi ++# echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null ++# if test $? -ne 0; then ++# echo "" ++# echo "Warning: you chose to install this package in $given_prefix," ++# echo "but KDE was found in $kde_libs_prefix." ++# echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" ++# echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" ++# echo "Then restart KDE." ++# echo "" ++# fi ++# fi ++#fi + + if test "$all_tests" = "bad"; then + if test ! "$cache_file" = "/dev/null"; then +--- icecream.orig/subdirs 2004-08-04 04:49:45.000000000 -0400 ++++ icecream/subdirs 2005-12-18 14:11:36.000000000 -0500 +@@ -2,4 +2,3 @@ + services + client + daemon +-mon diff --git a/sys-devel/icecream/files/icecream-config b/sys-devel/icecream/files/icecream-config new file mode 100644 index 000000000000..fefc1c65f4a8 --- /dev/null +++ b/sys-devel/icecream/files/icecream-config @@ -0,0 +1,69 @@ +#!/bin/bash +# +# icecream-config - helper script for icecream and its ebuild +# +# Copyright 2003 Superlucidity Services, LLC +# This program licensed under the GNU GPL version 2. +# +# This script developed by Zachary T Welch at Superlucidity Services, LLC +# it was cloned from the distcc-config script to make ccache-config +# and then modified by Marcus Furlong to configure icecream too. +# +# Additional features to come; this provides a starting point + +# this should be getopt'd someday (override with ICEC_QUIET=1) +ICEC_VERBOSE=1 + +icec_echo() { + [ -z "${ICEC_QUIET}" -a -n "${ICEC_VERBOSE}" ] && echo "$*" +} + +### +# the following functions manage the icecream symlinks +# they allow the user or other scripts (namely gcc-config) to +# automatically update iceceam's links when upgrading toolchains +# +icec_remove_link() { + local t="/usr/lib/icecream/bin/${1}" + if [ -L ${t} ]; then + icec_echo "Removing ${t}..." + rm -f "${t}" + fi +} +icec_install_link() { + # Search the PATH for the specified compiler + # then create shadow link in /usr/lib/icecream/bin to icecc + + if [ -n "$(type -p ${1})" ]; then + # first be sure any old link is removed + ICEC_QUIET=1 icec_remove_link "${1}" + + # then create the new link + local t="/usr/lib/icecream/bin/${1}" + icec_echo "Creating icecream shadow link: ${t}..." + ln -s /usr/bin/icecc "${t}" + fi +} +icec_links() { + local a + for a in gcc cc c++ g++ ; do + [ -n "${2}" ] && a="${2}-${a}" + eval "icec_${1}_link" "${a}" + done +} + +### +# main routine + +case "${1}" in + --install-links ) + icec_links install "${2}" + ;; + --remove-links ) + icec_links remove "${2}" + ;; + * ) + echo "usage: ${0} {--install-links|--remove-links} [ CHOST ]" + ;; +esac + diff --git a/sys-devel/icecream/icecream-0.6.20050413.ebuild b/sys-devel/icecream/icecream-0.6.20050413.ebuild new file mode 100644 index 000000000000..d94070933cd5 --- /dev/null +++ b/sys-devel/icecream/icecream-0.6.20050413.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/icecream-0.6.20050413.ebuild,v 1.1 2006/06/21 18:46:54 tantive Exp $ + +inherit eutils +DESCRIPTION="Icecream is a program for distributed compiling of C(++) code across several machines based on ideas and code by distcc." +HOMEPAGE="http://www.opensuse.org/icecream" +SRC_URI="ftp://ftp.suse.com/pub/projects/icecream/${PN}-0.6-20050413.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RDEPEND="virtual/libc + kde? ( kde-base/kdelibs )" +DEPEND="${RDEPEND}" +IUSE="arts kde" + +src_compile() { + cd ${WORKDIR}/icecream + epatch ${FILESDIR}/icecream-0.6-20050413-add-disable-option.patch || die "error patching icecream" + epatch ${FILESDIR}/icecream-0.6-20050413-dont-create-symlinks.patch || die "error patching icecream" + + if ! use kde ; then + epatch ${FILESDIR}/${PN}-0.6-20050413-no-kde.patch || die "error patching icecream" + aclocal + automake + autoconf + fi + + use amd64 && export CFLAGS="${CFLAGS} -fPIC -DPIC" + use amd64 && export CXXFLAGS="${CXXFLAGS} -fPIC -DPIC" + use !arts && local myconfig="--without-arts" + ./configure --prefix=/usr $myconfig + emake || die "error compiling" +} + +src_install() { + cd ${WORKDIR}/icecream + make DESTDIR=${D} install || die "error installing" + newbin ${FILESDIR}/icecream-config icecream-config + cp suse/sysconfig.icecream icecream + insinto "/etc/conf.d" + doins "icecream" + newinitd ${FILESDIR}/icecream icecream + diropts -m0755 + dodir /usr/lib/icecream/bin + keepdir /usr/lib/icecream/bin +} + +pkg_postinst() { + enewgroup icecream || die "Problem creating icecream group" + + #are we doing bootstrap with has no useradd? + if [ -x /usr/sbin/useradd ]; then + enewuser icecream -1 -1 /var/cache/icecream icecream || die "Problem adding icecream user" + else + ewarn "You do not have useradd (bootstrap) from shadow so I didn't" + ewarn "install the icecream user. Note that attempting to start the daemon" + ewarn "will fail. Please install shadow and re-emerge icecream." + ebeep 2 + fi + + if [[ ${ROOT} = "/" ]] ; then + einfo "Scanning for compiler front-ends..." + /usr/bin/icecream-config --install-links + /usr/bin/icecream-config --install-links ${CHOST} + else + ewarn "Install is incomplete; you must run the following command:" + ewarn " # icecream-config --install-links ${CHOST}" + ewarn "after booting or chrooting to ${ROOT} to complete installation." + fi + + einfo + einfo "If you have compiled binutils/gcc/glibc with processor-specific flags" + einfo "(as normal using Gentoo), there is a greater chance that your compiler" + einfo "won't work on other machines. The best would be to build gcc, glibc and" + einfo "binutils without those flags and then copy the needed files into your" + einfo "tarball for distribution to other machines. This tarball can be created" + einfo "using the /usr/bin/create-env script, and used by setting ICECC_VERSION" + einfo "in /etc/conf.d/icecream" + einfo ' ICECC_VERSION=' + einfo + einfo "To use icecream with portage add the following line to /etc/make.conf" + einfo ' PREROOTPATH=/var/lib/icecream/bin' + einfo + einfo "To use icecream with normal make use (e.g. in /etc/profile)" + einfo ' PATH=/var/lib/icecream/bin:$PATH' + einfo + einfo "N.B. To use icecream with ccache, the ccache PATH should come first:" + einfo ' PATH=/var/lib/ccache/bin:/var/lib/icecream/bin:$PATH' + einfo + einfo "Don't forget to open the following ports in your firewall(s):" + einfo " TCP/10245 on the daemon computers (required)" + einfo " TCP/8765 for the the scheduler computer (required)" + einfo " TCP/8766 for the telnet interface to the scheduler (optional)" + einfo " UDP/8765 for broadcast to find the scheduler (optional)" + einfo + einfo "Further usage instructions: http://www.opensuse.org/icecream" + einfo +} diff --git a/sys-devel/icecream/metadata.xml b/sys-devel/icecream/metadata.xml new file mode 100644 index 000000000000..348e6c4de815 --- /dev/null +++ b/sys-devel/icecream/metadata.xml @@ -0,0 +1,5 @@ + + + +cluster +