summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2009-06-01 04:32:10 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2009-06-01 04:32:10 +0000
commit23fa0254e9485121158ebb0064855e874655e645 (patch)
tree98f29b5706c16cee6611f96587adafd34e684d94 /sys-cluster
parentclean old ebuilds and files (diff)
downloadhistorical-23fa0254e9485121158ebb0064855e874655e645.tar.gz
historical-23fa0254e9485121158ebb0064855e874655e645.tar.bz2
historical-23fa0254e9485121158ebb0064855e874655e645.zip
latest version
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/charm/ChangeLog9
-rw-r--r--sys-cluster/charm/Manifest20
-rw-r--r--sys-cluster/charm/charm-5.9.ebuild4
-rw-r--r--sys-cluster/charm/charm-6.1.2.ebuild143
-rw-r--r--sys-cluster/charm/files/charm-6.1.2-charmc-gentoo.patch26
-rw-r--r--sys-cluster/charm/files/charm-6.1.2-charmrun.patch11
-rw-r--r--sys-cluster/charm/metadata.xml1
7 files changed, 199 insertions, 15 deletions
diff --git a/sys-cluster/charm/ChangeLog b/sys-cluster/charm/ChangeLog
index c7d0c1e9bfae..53911e046c35 100644
--- a/sys-cluster/charm/ChangeLog
+++ b/sys-cluster/charm/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-cluster/charm
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/charm/ChangeLog,v 1.19 2009/05/30 09:10:54 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/charm/ChangeLog,v 1.20 2009/06/01 04:32:10 je_fro Exp $
+
+*charm-6.1.2 (01 Jun 2009)
+
+ 01 Jun 2009; Jeff Gardner <je_fro@gentoo.org> +charm-6.1.2.ebuild,
+ +files/charm-6.1.2-charmc-gentoo.patch, +files/charm-6.1.2-charmrun.patch,
+ metadata.xml:
+ Latest version.
30 May 2009; Ulrich Mueller <ulm@gentoo.org> charm-5.9.ebuild:
Remove app-text/tetex from dependencies, bug 227443.
diff --git a/sys-cluster/charm/Manifest b/sys-cluster/charm/Manifest
index 41eaca3fe1ae..b2aa55830ab4 100644
--- a/sys-cluster/charm/Manifest
+++ b/sys-cluster/charm/Manifest
@@ -1,21 +1,15 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX charm-5.9-gcc-4.2.patch 466 RMD160 26686ecd228b9fe8d5ff7b5478b34aa2a20347ef SHA1 648f3d31f4ae5163279455a564a47bef7688b513 SHA256 6e83e80f1db4c25d70cebc8b14e76cb82fec473512e5a2b0474744e61892aa75
AUX charm-5.9-gcc4.patch 1701 RMD160 7b28484b9f956fb310fc5f7bbbfb2c896a12081d SHA1 7478496cb6f13763b047abca700dfbee2c651c9d SHA256 5d1ccf611c8f40c4e6572fcf1bb8cae1f0339a158df7bd698efcd396c28777cc
+AUX charm-6.1.2-charmc-gentoo.patch 997 RMD160 dea765cc75495b8bcaea85a46cfdb43d2afeb110 SHA1 79277189ccc3d1611dfe55a541c26a423fef5b20 SHA256 bfb0f9e7068a0938e8fbfe8ddeb6b9a88470031bfcb7a35b6c44ec925ebf013d
+AUX charm-6.1.2-charmrun.patch 451 RMD160 c6fbdf5fd290d5d5c0d52a8b521326f080ed646e SHA1 22a398366f8df2a37253c034afefe33566cc3105 SHA256 2e3a0279f81e76cfb5087f6c23cc0e39dff50618b0635925e373cd0c773ce603
AUX charm-charmc-gentoo.patch 1078 RMD160 f84f49f0ced57c842f1fefe24623581b94fddde8 SHA1 c058790ccd044e5bba37ab0ac7c1f1f8b4b18acc SHA256 b903a12c4817268abf6d5797ea8cf5cfcae7ff09b969c1f073ffc08b0afbff7b
AUX charm-doc-makefile-gentoo.patch 1348 RMD160 15941f44aad97d3f67938725d64cb94583522c73 SHA1 2c965c4d6d9390fc48f29ebae9336bab720d77bc SHA256 9a0a7426daaa05adf5f5ec35c20a6fa1f0842e58e1beefebf8f94ff1debabe03
AUX charm-examples-gentoo.patch 3920 RMD160 d038f9e2f32db47a6f335c92dd73e727a54dd2b1 SHA1 574e3d55561b5c549e4190804eeec0f5a7a08f71 SHA256 8eafde8fc87500194bc1eda05c04fd138298e6a39785c50f4f66781a52f6c01e
AUX charm-fpic-gentoo.patch 963 RMD160 d725ce4085638996244db909d4b30ce0e5623bce SHA1 02e80605505bf1aa3ec371643b165f3890ba0cc1 SHA256 e02cc065399771a3f6e2946446fc47809df1eae6fa40a9bc00b1947805a2f5ec
AUX charm-python-configure-gentoo.patch 984 RMD160 fb7f9279e528d3e74756c734c6837379f50148e2 SHA1 3a7e9e81b9f4019aad643e5fe68093f185b8229f SHA256 df476e74c78d2a2c03c9619a8d90e81c60c125e7cbf514f3ff27375d8469130d
DIST charm-5.9.tar.gz 7580639 RMD160 ebc3a8515fd918c6e0fc0fd9963a22b3ae5d057d SHA1 8b34d083486e6350ddf31a71e7476d6027ef9c0f SHA256 b5f8d53f0b447dbd720a0f2607a0e7902c227c7377326bf279e448ed570dcc89
-EBUILD charm-5.9.ebuild 3801 RMD160 38288616c3e18f31890279ab0013715a2e8b3c9d SHA1 e25dd92089b7755709690eb0deca8486b08d9cba SHA256 bfbc6e0f03ece47e0f3f5672657f7dac69ac8ddccb1891c12ee2366b8d7797ba
-MISC ChangeLog 3183 RMD160 af7dd98789c0722593074748f852cd27eb4b5dc1 SHA1 2a810a3cb1601d74b62214dc7036ed0b7917f9e0 SHA256 a858ae7ef885949c9efe5c7544c1ec91835e72f211cf0909a41f1e446a56882a
-MISC metadata.xml 398 RMD160 bf40832b2220f644b2d56f653a41f047d0184b85 SHA1 9782cf178225fb5944bc6612076ff81c2512c842 SHA256 bc7d0905ab52e35d45967685ef8106826e8bfaacc7a0f58ae652fdb2b863e33d
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
-
-iEYEARECAAYFAkog+HoACgkQOeoy/oIi7ux97ACfccFOUMoZZxHrctT1TiFhHQBp
-nb4AnR1p8Y9sl348hgPUhPwTfnZ9ScVj
-=WLcQ
------END PGP SIGNATURE-----
+DIST charm_src.tar.gz 23903605 RMD160 6a4ec1e725001073903de0241f23c7e53cdb5e97 SHA1 0443fe79a4d7f489c227316a50927ed9c71685d5 SHA256 d30a6d069d334760fcf919d1f6dba3ac76b64336fe7570e43f91af8de5b21839
+EBUILD charm-5.9.ebuild 3825 RMD160 aab9026110c2eb0b4d979b8f1d5e35496be9ebb7 SHA1 2160b0bcd683cf03443f403afbb293cc144b408f SHA256 a0e46b1177cb2a916e55e0a1a8b8bcf9829900f134812a7e7303d0bc0f59166a
+EBUILD charm-6.1.2.ebuild 3350 RMD160 7dacd4d7b8365ad9de268ac200a487bab3bc483b SHA1 cbb14d4c50da587bf57bb996d73a41968d2eebe1 SHA256 7c3138a8e916779c5a4771958402ef982881f9eab32ec76ff5aa9c224754c66d
+MISC ChangeLog 3395 RMD160 54cfd98aedfbe5d4a14d2b26461cf46a6e196f78 SHA1 ecc6c3004f9f98c141b51c28c10d0836c2fe383a SHA256 76e1d179370dc45c77db900bff38e4c08090a29b8e47be8d5e41019e9e1ccc3f
+MISC metadata.xml 460 RMD160 11ff40d5340bb2588f78916b032a4247d6b6f8f0 SHA1 64fbf618bbee100ebdfc4857d9c4b0dc99ebdefc SHA256 8382bb1e6bdaf9e733a036c07258ee70a02cac03892e2bd4a456f6b70d832797
diff --git a/sys-cluster/charm/charm-5.9.ebuild b/sys-cluster/charm/charm-5.9.ebuild
index 75e7c36208f6..5537283ad0d4 100644
--- a/sys-cluster/charm/charm-5.9.ebuild
+++ b/sys-cluster/charm/charm-5.9.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/charm/charm-5.9.ebuild,v 1.16 2009/05/30 09:10:54 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/charm/charm-5.9.ebuild,v 1.17 2009/06/01 04:32:10 je_fro Exp $
inherit eutils toolchain-funcs flag-o-matic
@@ -25,6 +25,8 @@ DEPEND="
app-text/ptex )
)"
+RDEPEND="${DEPEND}"
+
CHARM_ARCH="net-linux"
CHARM_DOWNLOAD="http://charm.cs.uiuc.edu/download/"
diff --git a/sys-cluster/charm/charm-6.1.2.ebuild b/sys-cluster/charm/charm-6.1.2.ebuild
new file mode 100644
index 000000000000..ae891ea10cc8
--- /dev/null
+++ b/sys-cluster/charm/charm-6.1.2.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/charm/charm-6.1.2.ebuild,v 1.3 2009/06/01 04:32:10 je_fro Exp $
+
+inherit eutils toolchain-funcs flag-o-matic multilib
+
+DESCRIPTION="Charm++ is a message-passing parallel language and runtime system."
+LICENSE="charm"
+HOMEPAGE="http://charm.cs.uiuc.edu/"
+SRC_URI="${PN}_src.tar.gz"
+S="${WORKDIR}/${PN}"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cmkopt tcp smp doc icc"
+
+DEPEND="icc? ( >=dev-lang/icc-8.1 )
+ doc? (
+ app-text/poppler
+ dev-tex/latex2html
+ virtual/tex-base
+ )"
+
+RDEPEND="${DEPEND}"
+
+case ${ARCH} in
+
+ x86)
+ CHARM_ARCH="net-linux" ;;
+
+ amd64)
+ CHARM_ARCH="net-linux-amd64" ;;
+esac
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-charmrun.patch"
+
+ # TCP instead of default UDP for socket comunication
+ # protocol
+ if use tcp; then
+ CHARM_OPTS="${CHARM_OPTS} tcp"
+ fi
+
+ # enable direct SMP support using shared memory
+# if use smp && [ "${ARCH}" != "amd64" ]; then
+ if use smp; then
+ CHARM_OPTS="${CHARM_OPTS} smp"
+ fi
+
+ # compile with icc if requested
+ if use icc; then
+ if [ $(tc-getCC) != "icc" ]; then
+ die "You cannot use $(tc-getCC) with USE='icc'"
+ fi
+ CHARM_OPTS="${CHARM_OPTS} icc"
+ else
+ CHARM_OPTS="${CHARM_OPTS} gcc gfortran"
+ fi
+
+ # CMK optimization
+ if use cmkopt; then
+ append-flags -DCMK_OPTIMIZE=1
+ fi
+
+ echo "charm opts: ${CHARM_OPTS}"
+}
+
+src_compile() {
+ # build charmm++ first
+ cd "${S}"
+ ./build charm++ ${CHARM_ARCH} ${CHARM_OPTS} ${CFLAGS} || \
+ die "Failed to build charm++"
+
+ # make pdf/html docs
+ if use doc; then
+ cd "${S}"/doc
+ make doc || die "failed to create pdf/html docs"
+ fi
+}
+
+src_install() {
+ # make charmc play well with gentoo before
+ # we move it into /usr/bin
+ epatch "${FILESDIR}/${P}-charmc-gentoo.patch"
+
+ sed -e "s|gentoo-include|${P}|" \
+ -e "s|gentoo-libdir|$(get_libdir)|g" \
+ -e "s|VERSION|${P}/VERSION|" \
+ -i ./src/scripts/charmc || die "failed patching charmc script"
+
+ # install binaries
+ cd "${S}"/bin
+ dobin ./charmd ./charmd_faceless ./charmr* ./charmc ./charmxi \
+ ./conv-cpm ./dep.pl || die "Failed to install binaries"
+
+ # install headers
+ cd "${S}"/include
+ insinto /usr/include/${P}
+ doins * || die "failed to install header files"
+
+ # install static libs
+ cd "${S}"/lib
+ dolib.a * || die "failed to install static libs"
+
+ # install shared libs
+ cd "${S}"/lib_so
+ dolib.so * || die "failed to install shared libs"
+
+ # basic docs
+ cd "${S}"
+ dodoc CHANGES README || die "Failed to install docs"
+
+ # install examples
+ find examples/ -name 'Makefile' | xargs sed \
+ -r "s:(../)+bin/charmc:/usr/bin/charmc:" -i || \
+ die "Failed to fix examples"
+ find examples/ -name 'Makefile' | xargs sed \
+ -r "s:./charmrun:./charmrun ++local:" -i || \
+ die "Failed to fix examples"
+ insinto /usr/share/doc/${PF}/examples
+ doins -r examples/charm++/*
+
+ # pdf/html docs
+ if use doc; then
+ cd "${S}"/doc
+ # install pdfs
+ insinto /usr/share/doc/${PF}/pdf
+ doins doc/pdf/* || die "failed to install pdf docs"
+ # install html
+ docinto html
+ dohtml -r doc/html/* || die "failed to install html docs"
+ fi
+}
+
+pkg_postinst() {
+ echo
+ einfo "Please test your charm installation by copying the"
+ einfo "content of /usr/share/doc/${PF}/examples to a"
+ einfo "temporary location and run 'make test'."
+ echo
+}
diff --git a/sys-cluster/charm/files/charm-6.1.2-charmc-gentoo.patch b/sys-cluster/charm/files/charm-6.1.2-charmc-gentoo.patch
new file mode 100644
index 000000000000..4c4cfceeaa4a
--- /dev/null
+++ b/sys-cluster/charm/files/charm-6.1.2-charmc-gentoo.patch
@@ -0,0 +1,26 @@
+--- src/scripts/charmc.old 2009-05-31 23:09:12.285687725 -0500
++++ src/scripts/charmc 2009-05-31 23:08:49.782155308 -0500
+@@ -335,19 +335,9 @@
+ PROG_EXT=".exe"
+ fi
+
+-CHARMLIB="$CHARMBIN/../lib"
+-CHARMINC="$CHARMBIN/../include"
+-CHARMLIBSO=
+-if test -d "$CHARMBIN/../lib_so"
+-then
+- CHARMLIBSO=`cd $CHARMBIN/../lib_so 2>/dev/null && pwd`
+- #getting absolute path is harder than thought because of symbolic links and ..
+- #ksh needs cd -P to resolve werid symbolic links, however -P is not portable
+- #csh is ok too if it exists
+- test -z "$CHARMLIBSO" && CHARMLIBSO=`cd -P $CHARMBIN/../lib_so 2>/dev/null && pwd`
+- test -z "$CHARMLIBSO" && CHARMLIBSO=`csh -c "cd $CHARMBIN/../lib_so >& /dev/null && pwd"`
+- test -z "$CHARMLIBSO" && echo "$CHARMBIN/../lib_so: not found" && exit 1
+-fi
++CHARMLIB="$/usr/gentoo-libdir"
++CHARMINC="/usr/include/gentoo-include"
++CHARMLIBSO="/usr/gentoo-libdir"
+
+ ##############################################################################
+ #
+
diff --git a/sys-cluster/charm/files/charm-6.1.2-charmrun.patch b/sys-cluster/charm/files/charm-6.1.2-charmrun.patch
new file mode 100644
index 000000000000..d677051c8e9d
--- /dev/null
+++ b/sys-cluster/charm/files/charm-6.1.2-charmrun.patch
@@ -0,0 +1,11 @@
+--- src/arch/net/charmrun/charmrun.c.orig 2009-05-30 10:37:32.676819167 -0500
++++ src/arch/net/charmrun/charmrun.c 2009-05-30 10:38:08.835027500 -0500
+@@ -1291,7 +1291,7 @@
+ char *tmp=tmpnam(NULL);/*This was once /tmp/fnord*/
+ #endif
+ unlink(tmp);
+- fd = open(tmp,O_RDWR | O_CREAT | O_TRUNC);
++ fd = open(tmp,O_RDWR | O_CREAT | O_TRUNC, 0666);
+ if (fd<0) {
+ fprintf(stderr,"cannot open temp file /tmp/fnord");
+ exit(1);
diff --git a/sys-cluster/charm/metadata.xml b/sys-cluster/charm/metadata.xml
index 53f9cc0dcbc1..05a203d477d3 100644
--- a/sys-cluster/charm/metadata.xml
+++ b/sys-cluster/charm/metadata.xml
@@ -9,5 +9,6 @@
<use>
<flag name='cmkopt'>Enable CMK optimisation</flag>
<flag name='tcp'>Use TCP (instead of UPD) for socket communication</flag>
+ <flag name='icc'>Use Intel compiler to build package</flag>
</use>
</pkgmetadata>