diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2013-12-09 10:51:15 -0800 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2013-12-09 10:51:15 -0800 |
commit | 3e7363bf0d1a095b6598ec17934dcf14738dc706 (patch) | |
tree | ead504479ba324640d76efd9dd627e1d9611d403 /sci-libs | |
parent | Bump with lapack-3.5 (diff) | |
parent | InCvs (diff) | |
download | sci-3e7363bf0d1a095b6598ec17934dcf14738dc706.tar.gz sci-3e7363bf0d1a095b6598ec17934dcf14738dc706.tar.bz2 sci-3e7363bf0d1a095b6598ec17934dcf14738dc706.zip |
Merge branch 'master' of git://git.overlays.gentoo.org/proj/sci; github.com:gentoo-science/sci
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/mkl/ChangeLog | 5 | ||||
-rw-r--r-- | sci-libs/mkl/Manifest | 6 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-11.0.3.163.ebuild | 131 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-11.0.5.192.ebuild | 131 | ||||
-rw-r--r-- | sci-libs/mkl/mkl-11.1.0.080-r1.ebuild (renamed from sci-libs/mkl/mkl-11.1.0.080.ebuild) | 3 | ||||
-rw-r--r-- | sci-libs/xraylib/ChangeLog | 7 | ||||
-rw-r--r-- | sci-libs/xraylib/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/xraylib/metadata.xml | 38 | ||||
-rw-r--r-- | sci-libs/xraylib/xraylib-2.16.0.ebuild | 84 |
9 files changed, 137 insertions, 269 deletions
diff --git a/sci-libs/mkl/ChangeLog b/sci-libs/mkl/ChangeLog index ce281d4d6..907a30430 100644 --- a/sci-libs/mkl/ChangeLog +++ b/sci-libs/mkl/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 08 Dec 2013; Justin Lecher <jlec@gentoo.org> -mkl-11.0.3.163.ebuild, + -mkl-11.0.5.192.ebuild, -mkl-11.1.0.080.ebuild, +mkl-11.1.0.080-r1.ebuild: + Fix linking problems with openmp support, #492802; thanks Andrew Savchenko + for the patch + *mkl-11.1.0.080 (02 Oct 2013) 02 Oct 2013; Justin Lecher <jlec@gentoo.org> +mkl-11.1.0.080.ebuild: diff --git a/sci-libs/mkl/Manifest b/sci-libs/mkl/Manifest index 9ab270d71..3e655f11f 100644 --- a/sci-libs/mkl/Manifest +++ b/sci-libs/mkl/Manifest @@ -1,7 +1 @@ DIST parallel_studio_xe_2013_sp1.tgz 3294385739 SHA256 ba65fdf7afbac0276a948ef8d4e1578297a0115548d5f3465c7ed4012030f696 SHA512 ee7995d39b604de6fed0bb87535c48666ca9ffa13975b6adcce170d746f2ee648b5c4a428ed8ef196226f204b3b17a833f379ab4fa57b4a1ebe7c89cc899ea66 WHIRLPOOL 213c8261c161df80732d958bf9e13a286aca2dd6ce16be30fee92d626051bc855c4a1ffe82b12f1bf9095771ca5b128463d839c14748d086b50527e7d09b76a7 -DIST parallel_studio_xe_2013_update3.tgz 2173061577 SHA256 98b3bfe9feefa8caaa1bea533362f31bcfe96aa8f9e59fc89f6a453d50df7508 SHA512 c6115f01b045c840b61e3c2a17fd39142c814d4e387fa5bc935c5cc6ca365c3fedddb6d8c045b5c239b948b42c02254d8b73c42cfe16d046dcf14d3a4597bbde WHIRLPOOL e857fbf0fc73406f7d787400f8ed6e45e93825616fe3d2d10dcd26fa03d56cd956a0b598270724be4ab3886d77502e0f456077ed3008cffc6bdb4abe60acedce -DIST parallel_studio_xe_2013_update3_ia32.tgz 1207596909 SHA256 57017db1b00345d46ef9dff67dd4e5754ed0fe67fae7335489447f948dbfe7a8 SHA512 f3656fcbda74f253c8cc0ca56e16a84d77854ef51ecc7f24db02c820270bef3954d0d97d1be2aa5cf2ea7703a6e442c3be15df28de570aac7062e5c5958581a4 WHIRLPOOL 0407b59697da8a69c8ac512dec4187bf27eeb2e80516cd6a99968ef3b30a31e55eeaa31ec4bcbd34fe23678e68c4f00cc5dfce579edfb0268b789e1e65285945 -DIST parallel_studio_xe_2013_update3_intel64.tgz 1508395753 SHA256 081bc3d617f04243d459d92d05398df1a3634faf3de554346f732ed83ed4ef06 SHA512 344678ba9c6029ab095cc656c2153b20f0f996dab45115296fb624eca3863763e4010b519595892ffeecfc1a0880901ef5ae53924e41e470aec46efd0abcd822 WHIRLPOOL 1295f579ecc50014b285d47ecf6b92d1b9d0c2cbadd1a5972a832178263a9b3d4cf4208153df40e270c259c1307ed21277239e70371b39eaf4e12171c25a3c1f -DIST parallel_studio_xe_2013_update4.tgz 2184817121 SHA256 55d549fc34f7a9eb96951c7be3216b68f9f960edfdc0997cf8dcffe5c78d66c8 SHA512 84ea227fdca2c427996b0c4d17a0bad6c289a6fbfc267c19f54ebee875e11e6e8d14bb3103599e3b89331c34a153b0a63a5ca8c12f4619420f78f8c4b0c2da96 WHIRLPOOL 6bedfdbcad7f0d7ad4681d51ad865db247d5f264f5fa33e7136fc64c5e83eee30bb2611f39bd7f31b790432e314a7dbea755297ae3fd2b90ccecb7beffb20d79 -DIST parallel_studio_xe_2013_update4_ia32.tgz 1220177902 SHA256 5bd75b2747f4b787b8128a83914b060d156ecdc41236f4100363b7ab4f9f6859 SHA512 968db307e08cd31450200abd41ade1f2b2855f4b5cb19911d03c1cd357cab11cbba814db354452496fcf66fc3fad1423b24f428bd4db07402f12bd63e4d34247 WHIRLPOOL f2b03ebb78960718a15fc69be814eeb7996fdd7575720f4b09cb915086cc757fea188ef5ceb7e37ed00c995e11ae544d8bd55aba8ab2d12530e26b3d23362f3e -DIST parallel_studio_xe_2013_update4_intel64.tgz 1520767493 SHA256 31383f357b9b7d9c76e727e63427387d9ee42358f5b5df75a0d8766cd318a11d SHA512 497ad8f3473e1d11cdd31dff340a8e6ec1f012e731def084b2072146b5d11db906f85ace53b2223c3fbef949222f73f36783fd697eb7809464f4403c0ac8744a WHIRLPOOL d08447f27aee0f088797968d541fe98e3813a1daf5b87024d37493663238594c3e4e75a8d9636a4059191782f5eae9065d45b7ad2c27e1f73fc74eb110ad399f diff --git a/sci-libs/mkl/mkl-11.0.3.163.ebuild b/sci-libs/mkl/mkl-11.0.3.163.ebuild deleted file mode 100644 index fee4df062..000000000 --- a/sci-libs/mkl/mkl-11.0.3.163.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -INTEL_DPN=parallel_studio_xe -INTEL_DID=3078 -INTEL_DPV=2013_update3 -INTEL_SUBDIR=composerxe - -inherit intel-sdp multilib alternatives-2 - -DESCRIPTION="Intel Math Kernel Library: linear algebra, fft, math functions" -HOMEPAGE="http://software.intel.com/en-us/articles/intel-mkl/" - -IUSE="" -KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" - -DEPEND="" -RDEPEND=">=dev-libs/intel-common-13" - -CHECKREQS_DISK_BUILD=2500M - -INTEL_BIN_RPMS="mkl mkl-devel" -INTEL_DAT_RPMS="mkl-common" - -src_prepare() { - chmod u+w -R opt -} - -mkl_add_prof() { - local pcname=${1} libs cflags x - shift - [[ ${pcname} = *int64* ]] && cflags=-DMKL_ILP64 - cat <<-EOF > ${pcname}.pc - prefix=${INTEL_SDP_EDIR}/mkl - libdir=\${prefix}/lib/${IARCH} - includedir=\${prefix}/include - Name: ${pcname} - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} ${libs} - Cflags: -I\${includedir} ${cflags} - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins ${pcname}.pc - for x in $*; do - alternatives_for ${x} ${pcname/-${x}} 0 \ - /usr/$(get_libdir)/pkgconfig/${x}.pc ${pcname}.pc - done -} - -# mkl_prof [_ilp64 or _lp64] -# help: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ -mkl_prof() { - local bits="" - if [[ ${IARCH} == intel64 ]]; then - bits=_lp64 - [[ ${1} == int64 ]] && bits=_ilp64 - fi - local gf="-Wl,--start-group -lmkl_gf${bits}" - local intel="-Wl,--start-group -lmkl_intel${bits}" - local core="-lmkl_core -Wl,--end-group" - local prof=mkl${IARCH:((${#IARCH} - 2)):2} - [[ ${1} == int64 ]] && prof=${prof}-int64 - local libs - - libs="${gf} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-gfortran blas lapack - libs="${intel} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-intel blas lapack cblas lapacke - libs="${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gfortran-openmp blas lapack - libs="${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gcc-openmp cblas lapacke - libs="${intel} -lmkl_intel_thread ${core} -openmp -lpthread" \ - mkl_add_prof ${prof}-intel-openmp blas lapack cblas lapacke - libs="-lmkl_rt -lpthread" \ - mkl_add_prof ${prof}-dynamic blas lapack cblas lapacke - libs="-lmkl_rt -liomp5 -lpthread" \ - mkl_add_prof ${prof}-dynamic-openmp blas lapack cblas lapacke - - # blacs and scalapack - local scal="-lmkl_scalapack${bits:-_core}" - local blacs="-lmkl_blacs_intelmpi${bits}" - core="-lmkl_core ${blacs} -Wl,--end-group" - - libs="${gf} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-gfortran-blacs blacs - libs="${scal} ${gf} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-gfortran-scalapack scalapack - libs="${intel} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-intel-blacs blacs - libs="${scal} ${intel} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-intel-scalapack scalapack - libs="${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gfortran-openmp-blacs blacs - libs="${scal} ${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gfortran-openmp-scalapack scalapack - libs="${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gcc-openmp-blacs blacs - libs="${scal} ${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gcc-openmp-scalapack scalapack - libs="${intel} -lmkl_intel_thread ${core} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-intel-openmp-blacs blacs - libs="${scal} ${intel} -lmkl_intel_thread ${core} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-intel-openmp-scalapack scalapack - libs="-lmkl_rt ${blacs} -lpthread" \ - mkl_add_prof ${prof}-dynamic-blacs blacs - libs="${scal} -lmkl_rt ${blacs} -lpthread" \ - mkl_add_prof ${prof}-dynamic-scalapack scalapack - libs="-lmkl_rt ${blacs} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-dynamic-openmp-blacs blacs - libs="${scal} -lmkl_rt ${blacs} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-dynamic-openmp-scalapack scalapack -} - -src_install() { - intel-sdp_src_install - echo -n > 35mkl "LDPATH=" - for IARCH in ${INTEL_ARCH}; do - mkl_prof - sed -i -e '/mkl/s/$/:/' 35mkl - echo -n >> 35mkl "${INTEL_SDP_EDIR}/mkl/lib/${IARCH}" - [[ ${IARCH} == intel64 ]] && mkl_prof int64 - done - echo >> 35mkl - doenvd 35mkl -} diff --git a/sci-libs/mkl/mkl-11.0.5.192.ebuild b/sci-libs/mkl/mkl-11.0.5.192.ebuild deleted file mode 100644 index 8476f9482..000000000 --- a/sci-libs/mkl/mkl-11.0.5.192.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -INTEL_DPN=parallel_studio_xe -INTEL_DID=3266 -INTEL_DPV=2013_update4 -INTEL_SUBDIR=composerxe - -inherit intel-sdp multilib alternatives-2 - -DESCRIPTION="Intel Math Kernel Library: linear algebra, fft, math functions" -HOMEPAGE="http://software.intel.com/en-us/articles/intel-mkl/" - -IUSE="" -KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" - -DEPEND="" -RDEPEND=">=dev-libs/intel-common-13" - -CHECKREQS_DISK_BUILD=2500M - -INTEL_BIN_RPMS="mkl mkl-devel" -INTEL_DAT_RPMS="mkl-common" - -src_prepare() { - chmod u+w -R opt -} - -mkl_add_prof() { - local pcname=${1} libs cflags x - shift - [[ ${pcname} = *int64* ]] && cflags=-DMKL_ILP64 - cat <<-EOF > ${pcname}.pc - prefix=${INTEL_SDP_EDIR}/mkl - libdir=\${prefix}/lib/${IARCH} - includedir=\${prefix}/include - Name: ${pcname} - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} ${libs} - Cflags: -I\${includedir} ${cflags} - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins ${pcname}.pc - for x in $*; do - alternatives_for ${x} ${pcname/-${x}} 0 \ - /usr/$(get_libdir)/pkgconfig/${x}.pc ${pcname}.pc - done -} - -# mkl_prof [_ilp64 or _lp64] -# help: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ -mkl_prof() { - local bits="" - if [[ ${IARCH} == intel64 ]]; then - bits=_lp64 - [[ ${1} == int64 ]] && bits=_ilp64 - fi - local gf="-Wl,--start-group -lmkl_gf${bits}" - local intel="-Wl,--start-group -lmkl_intel${bits}" - local core="-lmkl_core -Wl,--end-group" - local prof=mkl${IARCH:((${#IARCH} - 2)):2} - [[ ${1} == int64 ]] && prof=${prof}-int64 - local libs - - libs="${gf} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-gfortran blas lapack - libs="${intel} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-intel blas lapack cblas lapacke - libs="${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gfortran-openmp blas lapack - libs="${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gcc-openmp cblas lapacke - libs="${intel} -lmkl_intel_thread ${core} -openmp -lpthread" \ - mkl_add_prof ${prof}-intel-openmp blas lapack cblas lapacke - libs="-lmkl_rt -lpthread" \ - mkl_add_prof ${prof}-dynamic blas lapack cblas lapacke - libs="-lmkl_rt -liomp5 -lpthread" \ - mkl_add_prof ${prof}-dynamic-openmp blas lapack cblas lapacke - - # blacs and scalapack - local scal="-lmkl_scalapack${bits:-_core}" - local blacs="-lmkl_blacs_intelmpi${bits}" - core="-lmkl_core ${blacs} -Wl,--end-group" - - libs="${gf} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-gfortran-blacs blacs - libs="${scal} ${gf} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-gfortran-scalapack scalapack - libs="${intel} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-intel-blacs blacs - libs="${scal} ${intel} -lmkl_sequential ${core} -lpthread" \ - mkl_add_prof ${prof}-intel-scalapack scalapack - libs="${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gfortran-openmp-blacs blacs - libs="${scal} ${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gfortran-openmp-scalapack scalapack - libs="${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gcc-openmp-blacs blacs - libs="${scal} ${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \ - mkl_add_prof ${prof}-gcc-openmp-scalapack scalapack - libs="${intel} -lmkl_intel_thread ${core} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-intel-openmp-blacs blacs - libs="${scal} ${intel} -lmkl_intel_thread ${core} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-intel-openmp-scalapack scalapack - libs="-lmkl_rt ${blacs} -lpthread" \ - mkl_add_prof ${prof}-dynamic-blacs blacs - libs="${scal} -lmkl_rt ${blacs} -lpthread" \ - mkl_add_prof ${prof}-dynamic-scalapack scalapack - libs="-lmkl_rt ${blacs} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-dynamic-openmp-blacs blacs - libs="${scal} -lmkl_rt ${blacs} -liomp5 -lpthread" \ - mkl_add_prof ${prof}-dynamic-openmp-scalapack scalapack -} - -src_install() { - intel-sdp_src_install - echo -n > 35mkl "LDPATH=" - for IARCH in ${INTEL_ARCH}; do - mkl_prof - sed -i -e '/mkl/s/$/:/' 35mkl - echo -n >> 35mkl "${INTEL_SDP_EDIR}/mkl/lib/${IARCH}" - [[ ${IARCH} == intel64 ]] && mkl_prof int64 - done - echo >> 35mkl - doenvd 35mkl -} diff --git a/sci-libs/mkl/mkl-11.1.0.080.ebuild b/sci-libs/mkl/mkl-11.1.0.080-r1.ebuild index c67452788..7f8eb0770 100644 --- a/sci-libs/mkl/mkl-11.1.0.080.ebuild +++ b/sci-libs/mkl/mkl-11.1.0.080-r1.ebuild @@ -45,12 +45,13 @@ mkl_add_prof() { cat <<-EOF > ${pcname}.pc prefix=${INTEL_SDP_EDIR}/mkl libdir=\${prefix}/lib/${IARCH} + libdir_comp=${INTEL_SDP_EDIR}/compiler/lib/${IARCH} includedir=\${prefix}/include Name: ${pcname} Description: ${DESCRIPTION} Version: ${PV} URL: ${HOMEPAGE} - Libs: -L\${libdir} ${libs} + Libs: -L\${libdir} -L\${libdir_comp} ${libs} Cflags: -I\${includedir} ${cflags} EOF insinto /usr/$(get_libdir)/pkgconfig diff --git a/sci-libs/xraylib/ChangeLog b/sci-libs/xraylib/ChangeLog new file mode 100644 index 000000000..0698f696d --- /dev/null +++ b/sci-libs/xraylib/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for sci-libs/xraylib +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 08 Dec 2013; Justin Lecher <jlec@gentoo.org> xraylib-2.16.0.ebuild: + Make python stuff optional under USE=python + diff --git a/sci-libs/xraylib/Manifest b/sci-libs/xraylib/Manifest new file mode 100644 index 000000000..eaaa7282f --- /dev/null +++ b/sci-libs/xraylib/Manifest @@ -0,0 +1 @@ +DIST xraylib-2.16.0.tar.gz 39669898 SHA256 84dcf6b3171d17ac8f78ac85d39c1a0e1f8567e69eac8552ece0cea5c85c2733 SHA512 0232bea0f934cb13fd30a9964aa52fc8eeae82fc40c263f7196041d58b272c99e177254268b43f091361b51c0046bedb9dfce88684a01c9da0ad33878b2b753c WHIRLPOOL 3e44e524380657a940a77ed210cf054a00c8b636cece794a6d2bdc32cce82f8bdd1c3eb77c5eae80d21a7e9c73ab4c104414e60c57147cfbf02d8b279db7aeeb diff --git a/sci-libs/xraylib/metadata.xml b/sci-libs/xraylib/metadata.xml new file mode 100644 index 000000000..a592314d3 --- /dev/null +++ b/sci-libs/xraylib/metadata.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>cjk34@cam.ac.uk</email> + </maintainer> + <longdescription lang="en"> + Quantitative estimate of elemental composition by spectroscopic and imaging + techniques using X-ray fluorescence requires the availability of accurate data + of X-ray interaction with matter. Although a wide number of computer codes + and data sets are reported in literature, none of them is presented in the + form of freely available library functions which can be easily included in + software applications for X-ray fluorescence. This work presents a compilation + of data sets from different published works and an xraylib interface in the + form of callable functions. Although the target applications are on X-ray + fluorescence, cross sections of interactions like photoionization, coherent + scattering and Compton scattering, as well as form factors and anomalous + scattering functions, are also available. + + xraylib provides access to some of the most respected databases of physical + data in the field of x-rays. The core of xraylib is a library, written in ANSI + C, containing over 40 functions to be used to retrieve data from these + databases. This C library can be directly linked with any program written in + C, C++ or Objective-C. Furthermore, the xraylib package contains bindings to + several popular programming languages: Fortran 2003, Perl, Python, Java, IDL, + Lua and .NET, as well as a command-line utility which can be used as a + pocket-calculator. Although not officially supported, xraylib has been + reported to be useable from within Matlab and LabView. + + Reference: T. Schoonjans, A. Brunetti, B. Golosio, M. Sanchez del Rio, + V. A. Solé, C. Ferrero and L. Vincze, "The xraylib library for X-ray--matter + interactions. Recent developments", Spectrochimica Acta B 66 (2011) 776-784 + ( doi: http://dx.doi.org/10.1016/j.sab.2011.09.011 ) + </longdescription> + <use> + </use> +</pkgmetadata> diff --git a/sci-libs/xraylib/xraylib-2.16.0.ebuild b/sci-libs/xraylib/xraylib-2.16.0.ebuild new file mode 100644 index 000000000..4db465bb3 --- /dev/null +++ b/sci-libs/xraylib/xraylib-2.16.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true +FORTRAN_NEEDED=fortran +FORTRAN_STANDARD=2003 +PYTHON_COMPAT=( python{2_6,2_7} ) # python 3 supported by github master + +inherit eutils autotools-utils python-single-r1 java-pkg-opt-2 fortran-2 + +DESCRIPTION="A library for X-ray matter interaction cross sections for X-ray fluorescence applications" +HOMEPAGE="https://github.com/tschoonj/xraylib" +SRC_URI="https://github.com/tschoonj/xraylib/archive/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples fortran java lua perl python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + java? ( >=virtual/jre-1.4 ) + lua? ( dev-lang/lua ) + perl? ( dev-lang/perl ) + python? ( ${PYTHON_DEPS} )" + +DEPEND="${RDEPEND} + java? ( >=virtual/jdk-1.4 )" + +S="${WORKDIR}/${PN}-${P}" + +DOCS=(AUTHORS BUGS Changelog README TODO) + +pkg_setup() { + fortran-2_pkg_setup + java-pkg-opt-2_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_prepare() { + java-pkg-opt-2_src_prepare + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + --disable-idl + $(use_enable fortran fortran2003) + $(use_enable java) + $(use_enable lua) + $(use_enable perl) + $(use_enable python) + $(use_enable python python-integration) + ) + autotools-utils_src_configure +} + +src_compile() { + # see https://github.com/tschoonj/xraylib/issues/11 + if use fortran || use java; then + MAKEOPTS+=" -j1" + fi + autotools-utils_src_compile +} + +src_install() { + autotools-utils_src_install + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins example/*.c example/*.cpp + use java && doins example/*.java + use lua && doins example/*.lua + use perl && doins example/*.pl + use python && doins example/*.py + docompress -x /usr/share/doc/${PF}/examples # Don't compress examples + fi + + use java && java-pkg_regso /usr/share/xraylib/java/libxraylib.so +} |