commit: 3c9e6683008a4a3da0b85e9f1ef10d6975c226c2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> AuthorDate: Wed Oct 14 19:08:00 2020 +0000 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> CommitDate: Wed Oct 14 22:31:51 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3c9e6683
dev-lang/berkeley_upc_translator: version bump to 2.28.0 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> .../berkeley_upc_translator-2.18.0.ebuild | 30 ---------- .../berkeley_upc_translator-2.28.0.ebuild | 49 +++++++++++++++ .../berkeley_upc_translator-2.28.0-makefile.patch | 70 ++++++++++++++++++++++ dev-lang/berkeley_upc_translator/metadata.xml | 8 ++- 4 files changed, 125 insertions(+), 32 deletions(-) diff --git a/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.18.0.ebuild b/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.18.0.ebuild deleted file mode 100644 index 35166f22c..000000000 --- a/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.18.0.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="~amd64 ~x86" -IUSE="" - -DEPEND="app-shells/tcsh" -RDEPEND="dev-lang/berkeley_upc" - -src_prepare() { - epatch "$FILESDIR/${PN}-2.16.2-check-abi.patch" -} - -src_compile() { - emake -j1 -} - -src_install() { - emake install PREFIX="${D}/usr/libexec/${P}" -} diff --git a/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.28.0.ebuild b/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.28.0.ebuild new file mode 100644 index 000000000..71d14400a --- /dev/null +++ b/dev-lang/berkeley_upc_translator/berkeley_upc_translator-2.28.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="The Berkeley UPC-to-C translator" +HOMEPAGE="https://upc.lbl.gov/" +SRC_URI="https://upc.lbl.gov/download/release/${P}.tar.gz" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + app-shells/tcsh + sys-devel/bison +" + +PATCHES=( "${FILESDIR}"/${PN}-2.28.0-makefile.patch ) + +src_prepare() { + default + + # makefiles unset CFLAGS and CXXFLAGS + export CXX="$(tc-getCXX) -std=gnu++98 " + tc-export CC + + export BUPC_ABI="${BUPC_ABI:-LP64}" \ + BUPC_BUILDDIR="${BUPC_BUILDDIR:-build_ia64}" +} + +src_configure() { + # their configure is broken + # patch should be enough to counter most + return +} + +src_compile() { + ABI="${BUPC_ABI}" BUILDDIR="${BUPC_BUILDDIR}" \ + emake -j1 all +} + +src_install() { + ABI="${BUPC_ABI}" BUILDDIR="${BUPC_BUILDDIR}" \ + PREFIX="${ED}/usr/libexec/${P}/" \ + emake -j1 install +} diff --git a/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.28.0-makefile.patch b/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.28.0-makefile.patch new file mode 100644 index 000000000..19242753f --- /dev/null +++ b/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.28.0-makefile.patch @@ -0,0 +1,70 @@ +diff --git a/Makefile b/Makefile +index 551228d..b494da7 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,51 +1,27 @@ +-# C and C++ compilers to use for building the translator +-CC = gcc +-CXX = g++ +- +-# Default location for installation +-PREFIX = /usr/local/bupc_translator +- +-# override default build directory (empty for auto-detect) +-BUILDDIR= +- + # override if your version of copy doesn't like these flags + CPYDIR = cp -R -p + + # override if your filesystem has course-grained utimes + TOUCHDELAY = 2 + +-# include overrides from configure, if any +--include Makefile.local +- + #------------------------------------------------------- + # You should not need to modify anything below this line + + all clean install update-nodist-list: +- @echo "------------------------------------------------------------" ; \ +- if test "$(BUILDDIR)" ; then \ +- echo "WARNING: forcing BUILDDIR=$(BUILDDIR)"; \ +- builddir="$(BUILDDIR)" ; \ +- else \ +- CC="$(CC)"; export CC; \ +- CXX="$(CXX)"; export CXX; \ +- builddir=`config-aux/config-builddir` ; \ +- fi ; \ +- if test "$$builddir" ; then \ +- echo "Making $@ in BUILDDIR=$$builddir" ; \ +- echo " $(CC) is: `$(CC) --version 2>&1 | head -1`" ; \ +- echo " $(CXX) is: `$(CXX) --version 2>&1 | head -1`" ; \ +- echo " $(MAKE) is: `$(MAKE) --version 2>&1 | head -1`" ; \ +- echo "------------------------------------------------------------" ; \ +- if test "$$builddir" = "targ_ilp32_osx" -o "$$builddir" = "targ_lp64_osx"; then \ +- strip=NOSTRIP=1 ; export strip ; \ +- fi ; \ +- if test -n "$${CFLAGS+set}"; then \ +- echo "WARNING: unsetting CFLAGS" ; \ +- unset CFLAGS ; \ +- fi ; \ +- $(MAKE) BUILDDIR="$$builddir" $$strip $@-internal ; \ +- else \ +- exit 1; \ ++ @echo "------------------------------------------------------------" ; \ ++ if test -d "open64/osprey1.0/$(BUILDDIR)" ; then \ ++ echo "Making $@ in BUILDDIR=$(BUILDDIR)" ; \ ++ echo " $(CC) is: `$(CC) --version 2>&1 | head -1`" ; \ ++ echo " $(CXX) is: `$(CXX) --version 2>&1 | head -1`" ; \ ++ echo " $(MAKE) is: `$(MAKE) --version 2>&1 | head -1`" ; \ ++ echo "------------------------------------------------------------" ; \ ++ if test -n "$${CFLAGS+set}"; then \ ++ echo "WARNING: unsetting CFLAGS" ; \ ++ unset CFLAGS ; \ ++ fi ; \ ++ $(MAKE) BUILDDIR="$(BUILDDIR)" NOSTRIP=1 $@-internal ; \ ++ else \ ++ exit 1; \ + fi + + all-internal: diff --git a/dev-lang/berkeley_upc_translator/metadata.xml b/dev-lang/berkeley_upc_translator/metadata.xml index c8c5e0f03..e97c4322a 100644 --- a/dev-lang/berkeley_upc_translator/metadata.xml +++ b/dev-lang/berkeley_upc_translator/metadata.xml @@ -2,7 +2,11 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>jauh...@gentoo.org</email> - <name>Jauhien Piatlicki</name> + <email>gen...@aisha.cc</email> + <name>Aisha Tammy</name> + </maintainer> + <maintainer type="project"> + <email>s...@gentoo.org</email> + <name>Gentoo Science Project</name> </maintainer> </pkgmetadata>