aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-03-19 12:37:00 +0100
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-03-19 12:37:00 +0100
commit7573e95cecb3c3ca2cc8aad2d1150d1f1802a49d (patch)
tree6b39e6233e7f2f724bb6f2f69f2cba71b28b4422
parentUpdate patches (diff)
downloadsci-7573e95cecb3c3ca2cc8aad2d1150d1f1802a49d.tar.gz
sci-7573e95cecb3c3ca2cc8aad2d1150d1f1802a49d.tar.bz2
sci-7573e95cecb3c3ca2cc8aad2d1150d1f1802a49d.zip
dev-lang/berkeley_upc_translator: new ebuild for bug#462296, thanks to Paul H. Hargrove
-rw-r--r--dev-lang/berkeley_upc_translator/ChangeLog11
-rw-r--r--dev-lang/berkeley_upc_translator/Manifest1
-rw-r--r--dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.16.0.ebuild30
-rw-r--r--dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch18
-rw-r--r--dev-lang/berkeley_upc_translator/metadata.xml8
5 files changed, 68 insertions, 0 deletions
diff --git a/dev-lang/berkeley_upc_translator/ChangeLog b/dev-lang/berkeley_upc_translator/ChangeLog
new file mode 100644
index 000000000..b7e769de8
--- /dev/null
+++ b/dev-lang/berkeley_upc_translator/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-lang/berkeley_upc_translator
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*berkeley_upc_translator-2.16.0 (19 Mar 2013)
+
+ 19 Mar 2013; Jauhien Piatlicki (jauhien) <piatlicki@gmail.com>
+ +berkeley_upc_translator-2.16.0.ebuild,
+ +files/berkeley_upc_translator-2.16.0-stackoverflow.patch, +metadata.xml:
+ ebuild for bug#462296, thanks to Paul H. Hargrove
+
diff --git a/dev-lang/berkeley_upc_translator/Manifest b/dev-lang/berkeley_upc_translator/Manifest
new file mode 100644
index 000000000..627b1f5c0
--- /dev/null
+++ b/dev-lang/berkeley_upc_translator/Manifest
@@ -0,0 +1 @@
+DIST berkeley_upc_translator-2.16.0.tar.gz 7255911 SHA256 72cc1933e481f6603cb74c7df3a4dfd09d89aaec61e3c93c8f3404e33c458149 SHA512 6ede727f6df661d844a6b71c41923edb4ba3db18a5fe4a67d42f6293d94ddcd3cac96af2c9cee7016a34dc126024921bfe1ba11b13766d2ccdb8935a4e3a8bc5 WHIRLPOOL 9694542b303eba32687839694d9fc16795276907ef45cf4e88ca6ae2cc76e7dd9d83e14bb9cfca866c035158abf5741b1e114dfb16cab3db0b727b0e23baebf3
diff --git a/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.16.0.ebuild b/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.16.0.ebuild
new file mode 100644
index 000000000..9112d6658
--- /dev/null
+++ b/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.16.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="The Berkeley UPC-to-C translator"
+HOMEPAGE="http://upc.lbl.gov/"
+SRC_URI="http://upc.lbl.gov/download/release/${P}.tar.gz"
+LICENSE="BSD-4"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="app-shells/tcsh"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-stackoverflow.patch
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ emake install PREFIX="${D}/usr/libexec/${P}"
+}
diff --git a/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch b/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch
new file mode 100644
index 000000000..44c6a8e78
--- /dev/null
+++ b/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch
@@ -0,0 +1,18 @@
+Author: Paul H. Hargrove
+See https://upc-bugs.lbl.gov/bugzilla/show_bug.cgi?id=3141
+--- open64/osprey1.0/gccfe/tree_symtab.h
++++ open64/osprey1.0/gccfe/tree_symtab.h
+@@ -45,7 +45,12 @@
+ #include <set>
+ #include <upc_symtab_utils.h>
+
+-#define MAX_PATH 500
++#include <limits>
++#ifdef PATH_MAX
++ #define MAX_PATH PATH_MAX
++#else
++ #define MAX_PATH 4096
++#endif
+
+ extern int Scope_level;
+ extern int For_scope;
diff --git a/dev-lang/berkeley_upc_translator/metadata.xml b/dev-lang/berkeley_upc_translator/metadata.xml
new file mode 100644
index 000000000..94a760560
--- /dev/null
+++ b/dev-lang/berkeley_upc_translator/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer>
+ <email>piatlicki@gmail.com</email>
+ </maintainer>
+</pkgmetadata>