summaryrefslogtreecommitdiff
path: root/sci-physics/cernlib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-02-11 16:09:52 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-02-11 16:09:52 +0000
commitf78108598211053d41752a83e0345441bb9014ae (patch)
treedd2fc7ae0a1aea7bda4942ab0c453d1e55284b37 /sci-physics/cernlib
parentdc45b83b28fb83e9659492066e347b8dc60bc9e3 (diff)
gentoo resync : 11.02.2018
Diffstat (limited to 'sci-physics/cernlib')
-rw-r--r--sci-physics/cernlib/Manifest2
-rw-r--r--sci-physics/cernlib/cernlib-2006-r7.ebuild107
2 files changed, 109 insertions, 0 deletions
diff --git a/sci-physics/cernlib/Manifest b/sci-physics/cernlib/Manifest
index 37379d1f3f42..39f0faae622c 100644
--- a/sci-physics/cernlib/Manifest
+++ b/sci-physics/cernlib/Manifest
@@ -3,7 +3,9 @@ AUX cernlib-2006-nogfortran.patch 1994 BLAKE2B 589c8d747ea5af3c2a2a75a16e5311e2f
AUX cernlib-2006-ypatchy-short-name.patch 331 BLAKE2B 62683907b710db6963d5146b5d6fc775ca469389a381eca2624d9816db5c0c96dd015382f487d993b32d8896b7c644dfc7bff752b90f920495bed9a2fa84bbd3 SHA512 dd97e328706c243b84c6464ee1db3c546280dba838766e6aefd8a5349e57a3b430c38d81909f5ad445af7c3a602e0a6e64110b7f8eb6e44a907a7311828142e9
DIST cernlib_20061220+dfsg3-2.debian.tar.gz 257093 BLAKE2B 35ae90e38ddb935f252531cdf49dc038cdb7543b9168076f97458323a2458938cfa2f1768165d4cc59649021e2b268139dd53b3ef09d2a6601e1f68792c69af1 SHA512 43a2ca55d42b92bfb551b029c75728e80b4c83473397b52f746d9481c7503762bc5a281732908bfeb29a64f728fed4c127ed1cb9101c16e4fb2dd28c452730ea
DIST cernlib_20061220+dfsg3-4.1.debian.tar.xz 170100 BLAKE2B 7bc206a246cc437babae6cdb38bd5831ccf4f665bbe65f2ebabf7df8a68c0b7c317f4a7ed283024bf70b6fe50fa8f01bd9a2882cfba174020a23f768f69c237c SHA512 d259ab304b040c6bab8535c0db60aaa466ef7bb9bbcce9b2d8931505a180c92935d428e0dd45bfa6199ec939f67580a6d3ac1035c0384bdcf9e6601a351ce90a
+DIST cernlib_20061220+dfsg3-4.3.debian.tar.xz 168928 BLAKE2B 15147d1d84d3e4abb06620154425a035e64d6e5254177f9647634fdf63e4a5aa42deba6c8f638f338cf85e8766732388cc6298813dd5b007d1ef97fddcef3d39 SHA512 8cb666d9ef62627e7e3e55bd1986b40ca9ddfcc882101b1a3597c1d60870e30649b5c7716687f7e4106b30ba0aa88a9ca7bc3a3651b0d1405f55a6f611dc308b
DIST cernlib_20061220+dfsg3.orig.tar.gz 6434476 BLAKE2B 069eda316ffbc4873e79952283a0aa2693ed58a3cc369bca72e29a4feaef4840922b4f62ababba1476f2aa0309f68833a4a35a3b5c6ac015bdbd85b3b58b2efe SHA512 11fade45c5ae69c858f37a82e74ab1a69416314a23c12ec5205ee6b918590d66f26d3ae68afa466ae3109d736212968ece956a444270ddd189a27a24c0ccece8
EBUILD cernlib-2006-r5.ebuild 2941 BLAKE2B 7f46ad84ae5459772974be17007071fd5049584943ecaf9a3d5ea73da7d424efebe3c85cd4482617d0bd78765af9d6f343b1b6d47c021a928ceac2050d8547c7 SHA512 5b5de782e64937d08d7b748d16efbfcd927f99fe05f127426e5bd52be3ce21f741f6ac42157efb6c95318acd38e217c714e39c2c736f8cd5335d3bf26d961557
EBUILD cernlib-2006-r6.ebuild 2996 BLAKE2B 02602426dab1d77f98a8f70997d7357715f47eddc87c4a80c39dcf10684617db230a613396754dae7884eaed7805d914738a72aa12f29094bdf89a3d681c1c84 SHA512 d2721cd22118e0ab7bcbdd39cc94c2c5620f99775c089f3918e128ee23e0d34ae96238c0c1e0b80d2fe062c12434085993f7d84cd5f90bb4781ad130ff2e62a6
+EBUILD cernlib-2006-r7.ebuild 2996 BLAKE2B 250f40bd42379c1bb17530a4077c7cdc9e8c2293bdd9cf9221805a42180d9b0c102edcc8f8aa681b2bc6f9cba57d8d13cf4ce40683922818138e705ff10b359e SHA512 0da0b967504f8be9a184ea112a6bce4a8ea2bdeeff8f0397219dabc02908bb309707e75ac71893f7378678270831d8fa7690afb11765607dbc74d250966c28fa
MISC metadata.xml 759 BLAKE2B f01fad2a4cead94f4c422f4f2906bb26c9c960f4a85c07bb1cc900a058184fb2b0774251e93f3d92e105f9ff4675cf0c9035d4ffe0841c63d54e344bb0b0d149 SHA512 133dd51ec200866d1886a1c077dad4a1a7ec786d77b59e1da147a7e95a5b6e8c9f1ce41dfcfa35c406625ed4aa966891cc5247ef35d7a82791d9b42c91fc7477
diff --git a/sci-physics/cernlib/cernlib-2006-r7.ebuild b/sci-physics/cernlib/cernlib-2006-r7.ebuild
new file mode 100644
index 000000000000..ddc16413da29
--- /dev/null
+++ b/sci-physics/cernlib/cernlib-2006-r7.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils fortran-2 multilib toolchain-funcs
+
+DEB_PN=cernlib
+DEB_PV=20061220+dfsg3
+DEB_PR=4.3
+DEB_P=${DEB_PN}_${DEB_PV}
+
+DESCRIPTION="CERN program library for High Energy Physics"
+HOMEPAGE="https://cernlib.web.cern.ch/cernlib/"
+SRC_URI="
+ mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
+ mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.debian.tar.xz"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2 BSD"
+KEYWORDS="~amd64 ~hppa ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ x11-libs/motif:0
+ virtual/lapack
+ dev-lang/cfortran"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-misc/makedepend
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${DEB_PN}-${DEB_PV}"
+
+src_prepare() {
+ mv ../debian . || die
+ epatch "${FILESDIR}"/${P}-nogfortran.patch
+ # set some default paths
+ sed -i \
+ -e "s:/usr/local:${EROOT}/usr:g" \
+ -e "s:prefix)/lib/\$(DEB_HOST_MULTIARCH):prefix)/$(get_libdir):" \
+ -e "s:\$(prefix)/etc:${EROOT}/etc:" \
+ -e 's:$(prefix)/man:$(prefix)/share/man:' \
+ debian/add-ons/cernlib.mk || die "sed failed"
+
+ # use system blas and lapack set by gentoo framework
+ sed -i \
+ -e "s:\$DEPS -lm:$($(tc-getPKG_CONFIG) --libs blas):" \
+ -e "s:\$DEPS -llapack -lm:$($(tc-getPKG_CONFIG) --libs lapack):" \
+ -e 's:`depend $d $a blas`::' \
+ -e 's:X11R6:X11:g' \
+ -e 's: /[^ ]*`dpkg-arch.*`::' \
+ debian/add-ons/bin/cernlib.in || die "sed failed"
+
+ cp debian/add-ons/Makefile .
+ export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck"
+
+ einfo "Applying Debian patches"
+ emake -j1 patch
+
+ epatch "${FILESDIR}"/${P}-fgets.patch
+ epatch "${FILESDIR}"/${P}-ypatchy-short-name.patch
+ # since we depend on cfortran, do not use the one from cernlib
+ rm src/include/cfortran/cfortran.h || die
+
+ # respect users flags
+ sed -i \
+ -e 's/-O3/-O2/g' \
+ -e "s/-O2/${CFLAGS}/g" \
+ -e "s|\(CcCmd[[:space:]]*\)gcc|\1$(tc-getCC)|g" \
+ -e "s|\(CplusplusCmd[[:space:]]*\)g++|\1$(tc-getCXX)|g" \
+ -e "s|\(FortranCmd[[:space:]]*\)gfortran|\1$(tc-getFC)|g" \
+ src/config/linux.cf \
+ || die "sed linux.cf failed"
+ sed -i \
+ -e "s|\(ArCmdBase[[:space:]]*\)ar|\1$(tc-getAR)|g" \
+ -e "s|\(RanlibCmd[[:space:]]*\)ranlib|\1$(tc-getRANLIB)|g" \
+ src/config/Imake.tmpl \
+ || die "sed Imake.tmpl failed"
+
+ sed -i \
+ -e 's/\$(FCLINK)/\$(FCLINK) $(LDFLAGS)/' \
+ -e 's/\$(CCLINK)/\$(CCLINK) $(LDFLAGS)/' \
+ src/config/{biglib,fortran,Imake}.rules \
+ src/patchy/Imakefile \
+ || die "sed for ldflags propagation failed"
+
+ # add missing headers for implicit
+ sed -i \
+ -e '0,/^#include/i#include <stdlib.h>' \
+ src/kernlib/kerngen/ccgen*/*.c || die
+}
+
+src_compile() {
+ # parallel make breaks and complex patched imake system, hard to debug
+ emake -j1 cernlib-indep cernlib-arch
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}"/shlib emake -j1 cernlib-test
+}
+
+src_install() {
+ default
+ cd debian
+ dodoc changelog README.* deadpool.txt NEWS copyright
+ newdoc add-ons/README README.add-ons
+}