diff options
Diffstat (limited to 'sci-libs')
22 files changed, 512 insertions, 228 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex 29e6c3b25dec..705f39191b51 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/geos/Manifest b/sci-libs/geos/Manifest index 32420e8f7658..94eea2bdc417 100644 --- a/sci-libs/geos/Manifest +++ b/sci-libs/geos/Manifest @@ -3,6 +3,6 @@ DIST geos-3.7.0.tar.bz2 2028814 BLAKE2B 17385d9be831d4812391a30627e13989d3ca099c DIST geos-3.7.2.tar.bz2 2071465 BLAKE2B ba968488aa5d845e582d3771d8d2b1f67b0f301e73fad5834a0805a912c8f3b1200bba93d8758f43539ce269758de348d999db3db9738e7abf5c1a443f388d8c SHA512 ff0fde2e21ed9d2770c139aa50c6efd22d9cff3c6bfd8f1ef86b064efd1ad318b08dec66e34661bc1c7a341b0837978853494f27d63988be865a8ee4f7611d38 DIST geos-3.8.0.tar.bz2 2399403 BLAKE2B 0f9b6d7f9a4052b9b84e77d534be6e2909e5dc4995287f34e3b7e7c1537c9a73088d4a49f96f43034723eb37c88674aae469e26d7db3eb40efbcdf5551553a1a SHA512 c89b25b42092152ef261090f25ff64b229f30f67d42fdf44c2871e78b66bb2c42e23b9ae21f9aea0e48823bdb0267d609ab2ee77d310abcb76fa672c6614d8f1 EBUILD geos-3.7.0.ebuild 1338 BLAKE2B 7ebfca396ca09ebe266c59c901ad7f931076a5bef9b7574167d35b0123297205504cdfe7b11ad3a44729483ab57a14bfce6a17f66c9a4391c06b8fcf4c1071d4 SHA512 fe01f7c023c67401396ba760266b62ebba2388e42a7aae08a188fb7ec4726d9c6390f8768511fbd28ad6374a8f47a5de55a530c025d01e43a43082f7ea3a0021 -EBUILD geos-3.7.2.ebuild 1340 BLAKE2B c80be7de21da9d791ae58e5ae803fa7f1ad021301933ccb319d371fd9bf9418fb72c3cd96a39972b74cba75cabe80d0b45d6dc960dec4f67d1d730499343c346 SHA512 a43dc5d8494fe07508b4df263fc47b47e48cc93f5cc245c8086932038aa59c7b163f9641afffae21760bc59ab83aecc41caab8ec725027c646489246720ef04a +EBUILD geos-3.7.2.ebuild 1338 BLAKE2B 7ebfca396ca09ebe266c59c901ad7f931076a5bef9b7574167d35b0123297205504cdfe7b11ad3a44729483ab57a14bfce6a17f66c9a4391c06b8fcf4c1071d4 SHA512 fe01f7c023c67401396ba760266b62ebba2388e42a7aae08a188fb7ec4726d9c6390f8768511fbd28ad6374a8f47a5de55a530c025d01e43a43082f7ea3a0021 EBUILD geos-3.8.0.ebuild 1346 BLAKE2B e68219f57a210aa0f2ae633740360a75b88e302715deaec1af24446c540e9e3fb24812985118f73e2fb34e404c1bea7f7f91203df6c87d62b7e9165bcc85da06 SHA512 173bf18fd49919a49a9459a43ab598a68ca84cf3db8d0b299d72bd9e1e3de3ce6e9d3adb15fab5ab5b63d58bc29920b20a8dafb23b22a26d011d1c96fb62f240 MISC metadata.xml 941 BLAKE2B 037cfbe59d6e841cfd50acce4eb41b58d1caf2459205cbb9432a1c2187a26196c09785665df2e8fd17498e672a1a66fb3d50f8bb8ced62e54bf963b821b93181 SHA512 cf93ad12e2e2d23ce6b454ae1032e8362beccd952a0f431780467c2985c07fa284edcb10a5d7b61d098a70c097f091a7f771be5a1650c1ed431ba249f73e5b1c diff --git a/sci-libs/geos/geos-3.7.2.ebuild b/sci-libs/geos/geos-3.7.2.ebuild index 285b79163026..4c8405e7855f 100644 --- a/sci-libs/geos/geos-3.7.2.ebuild +++ b/sci-libs/geos/geos-3.7.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="http://download.osgeo.org/geos/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="amd64 arm ~arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" +KEYWORDS="amd64 arm arm64 ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" IUSE="doc python ruby static-libs" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" diff --git a/sci-libs/gsl/Manifest b/sci-libs/gsl/Manifest index e0e64ffacf48..256b2440d666 100644 --- a/sci-libs/gsl/Manifest +++ b/sci-libs/gsl/Manifest @@ -7,6 +7,6 @@ DIST gsl-2.4.tar.gz 5916715 BLAKE2B f22c07b2d5759a383e05b8bfdba70071672cc27f12ff DIST gsl-2.5.tar.gz 7303881 BLAKE2B 7c6d10c21071a1af1f03123f83244476d2e90fcd27d05a115b03a74fe631eb7d8081f5260e534ae58ab0997c1111f980a5e4cb50d110ca626fe810c44be70180 SHA512 5b4c5c023f9029ce220f4e09aa4d0234fed94d42ac224d58fda095fe0532d54237a7c33278f8b5d0ba051f6004486edb38d0adb4fcb49337a8c1d8a18cf4a24a EBUILD gsl-1.16.ebuild 3082 BLAKE2B cae441ec3c5a816a2620b0d94ae3529c712862d871008e8d1167c6cb33e1542a854c1874d3508de0c19b29b0aa93d3b4928a55de2a8e1ee31f36d9295a7d967d SHA512 ee7dbb08e1193d748d073196117bc5f864621eceb7729d8a154917fca76695674088431b09fe43db6d8e628d99af114c2aced009c0d1ec39c6c179e9e8f06771 EBUILD gsl-2.4.ebuild 3191 BLAKE2B 230228573c7479f4964da270a8ea2f4fb886a0969e28e914e880cd56dd46ceb6bcc173fa0a0634582bf59eb8007184dd1d91d1c46548ff1eebb2c35aa50ec76b SHA512 91f25c90a99f4a91912e713854cc8f47eecbd64f12534be6609eef156832cec17d4490866b2c1e1aeb6fffd3414e79be538a34f81a463e48c80040ae888e4544 -EBUILD gsl-2.5-r1.ebuild 1421 BLAKE2B a9bb6c1a9c15f58ae688cd58d5f490a4fc2102e8b5b66dbcd0f8966b4db53751fae8025cf1521dd87a66667b10b4181cbc21528750eaea7f1870b674eed20acb SHA512 f288647bdd951da587f88847f4b045d0e8325b18a1301145604638d4f04920b4eeffca201fc7504bbfc53b75badfdc24fd5113f359c21ef16c19e320fee55df6 +EBUILD gsl-2.5-r1.ebuild 1420 BLAKE2B 27a9f526a4c9e9bdcbe75e725ec4ea13a054e41337df529e8d8e95076f01134102762b45d4ca10b8a3f15db7079e29ac99118f4b1c8d700af69604fe6fe8d89b SHA512 c0e437175912be574a17cb6911655eed1724195d147ce4dad1dc2253f9fc98fb96fbcee39338ce110c6c08ccdd3c2dad602dca06c50e58c481c9c3a9049ca425 EBUILD gsl-2.5.ebuild 3179 BLAKE2B d6970d769f496680f9238fcb27338722c7e82d5bf8946d4663ce33d1f3373091422480ddd906b074c680824da1fec33023d470b4d3b092b8ad40a84071cbf9e0 SHA512 d71979695720a713553aa52cf53b7d35bf78471479f654b8420f9acb864bb383b0f1e5ce74bd89581ad832d533c612e6dce3af985cf4e5856b46a4c590ecddf0 MISC metadata.xml 1190 BLAKE2B b9015dc09464b327144a546a0e9dae6e1c5eaf3ce118a24b7ad1853f09af1952284f754aada2436d7e1a1df82638720492445d8f015ccb1cec05c78dd718fc26 SHA512 f56ec87aeb8f257480a631748db79c78193797e1ecd586dbbd78f31a01fbbd3341fa67ffd3244e5dba352478ee552184d6a1d9b5ef5d54d67b038215090eca00 diff --git a/sci-libs/gsl/gsl-2.5-r1.ebuild b/sci-libs/gsl/gsl-2.5-r1.ebuild index 8cf301ee19ba..be40aa2ab04e 100644 --- a/sci-libs/gsl/gsl-2.5-r1.ebuild +++ b/sci-libs/gsl/gsl-2.5-r1.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz LICENSE="GPL-3" SLOT="0/23" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris" IUSE="cblas-external +deprecated static-libs" RDEPEND="cblas-external? ( virtual/cblas:= )" diff --git a/sci-libs/hdf/Manifest b/sci-libs/hdf/Manifest index 66f547c29cdf..3a2fce57402b 100644 --- a/sci-libs/hdf/Manifest +++ b/sci-libs/hdf/Manifest @@ -8,11 +8,7 @@ AUX hdf-4.2.9-autotools.patch 3486 BLAKE2B 75786eb25bc11bb53cded2ed6704411eec129 AUX hdf-ppc.patch 10374 BLAKE2B db28f0a201e4ade1cf126328522443acc99cc1951c9ab538ef137f42a84b6a38e08b9484337fef218a72675fd6ae5b26ddd340540fc3141e89b6be3c4848d41c SHA512 ac88c595e369709dc907b5f009429654c59ae1ac31869aace2656511687d0a7093d41af218768cc825181f623d0018991d1e49e0c48329766c01f608873d2ddb DIST hdf-4.2.11.tar.bz2 3173535 BLAKE2B a35a366858cc67d6ef68959cf407c21a929d5dca82834937b648eded506c7c3f75dd67be763f0d1fc24b7be92849b53d688abb25611cbc9b918340dbb23a83e1 SHA512 b3be9a91c62fa258c8aa6f97d1ccbd8301225e43938b525a826c639fd8b30b7dd566f58f4d54e365606d861ad01660887163e5ca6521293791080e5ed41ef781 DIST hdf-4.2.13.tar.bz2 3616255 BLAKE2B 3b20f018849b64aebc0e5fa53516f65f6e181b421c3842a033c2ec5586c262f18cb0be5c2a146bdecd9ae7580963817face2a21458852756f5b7072b7e6d5899 SHA512 d7be2b3650255590b72db4a6931325ec0af256db4b846cfe886c76bf24034901b2ba7a7e546566f426d265b1793287ea3f95d8fbd818a3d018fa6813a4541657 -DIST hdf-4.2.8.tar.bz2 3027253 BLAKE2B b1291fce4b2f47a4b2f1d725cfc5314c4e451d2dd4ede242ef64a11490884ff991b800b06b7aabf574659117c6abde5cd26236d23d8f38e003c7df9271248d90 SHA512 d033007eff74d957572db8433f66e9df6fec44f67b28ddbad6e9a2d832b5504a29e9ecc5565d861b8308bab8d0dbfce19ae1e2ade0dd758d370a333819364c8e -DIST hdf-4.2.9.tar.bz2 3126686 BLAKE2B 491fdad375bef944ed9f7040faba0e811b11019e1f51c5c3f874f29be07b945eb68af31cfce56db5e1f03f3bbd9e85320bed6e5f7f2b725676ead50dac022986 SHA512 99630177167f115f4a7f4424cf3fc77962c4eb46698f884d0e89acfe7d585aa659fd7cdf36a29246ae518675b07182223d4337a7d0aac6344ce21ccbed9aa390 EBUILD hdf-4.2.11.ebuild 1605 BLAKE2B 3fbc0b8249a58acd581bd772dbc87c84b18cf523394148dc6492c4fb80a1b7a9667f681650da569afb5db34488361ae27b29db1e3c9fde5570a2a4e08c2b8546 SHA512 45933e613ec198793450fdabcc8c70523eeead4b37e416b607803165c57e8f493d40c863e19e30d754fc765a0a14ccc92b472a4a5606d73912a87309339d5233 EBUILD hdf-4.2.13-r1.ebuild 1790 BLAKE2B 839f4242d020887d46a486b1f74fb192ec3139f08218b3831d80d2b0ba38ac4dd46297b10df70bf9953a18570f689afb07061cc8c678d026378495b3ee36003e SHA512 218b0e94ec940abcf3603a391de2a694195db122c1331f1ad101262bc968bfb820854e3988fe35b6528d0a6afbfa4f520d4511c0da8159d7fc03e6dd6434bc0f EBUILD hdf-4.2.13.ebuild 1677 BLAKE2B 5f82e08c5181de3e8b9bfc50774a7f122a47208b8709e557521cdaefbae51e10fe9c5bcc0ee0a58d3d12b6cae8c6c3f8cd74b3e268b4c5c28e6c8f519a205246 SHA512 17fe44cab142ac357c219c012773d0d411a29292a745c414ff1fd1490c5514a231ccbaae6117eddd8b3e9e2c98a70f0b786c7337841259b07095f83813a92787 -EBUILD hdf-4.2.8.ebuild 1340 BLAKE2B 44771193f4f552d5b2eee9b738ff73bb778b0582e81822d804ef4d8c9686026b8c99f26cd794a7db5b110bb3c79e2993e80647f0f6656502d08d17a7e748a695 SHA512 dcd81c3766e8d4f1c86df61f71758c3076f654945baf467c3514d7793594d561935e65241ee75915aaf3b88c9c2d2bd2226920bb4a9cff1e19fad6d09a782475 -EBUILD hdf-4.2.9.ebuild 1334 BLAKE2B f5cfc1d8e968023374efdd236be5d2b410a07e788f3150b14ba6e69f5ae5a4a4d6a5edada69455629a867bf2c33cc8d38e2d62eb1e023dda33c1edf8dc8013b8 SHA512 cd5ca63b5a190cf7ae29a02782a30f953dbfd82ebb6844e06b8d5cf57e6c5b6d065413f93e49740aa65644b72ba1d63662e4c2e3c6f176757b9b6cfad1de6477 MISC metadata.xml 859 BLAKE2B c5c33f1a444d0af6287dac495443be05de5a2b8d9c55d4bf9aeb80ebc28f1391612510771848277fa1467097ab480b9b1dc306af587d2621e4a1d16c6bdc91a5 SHA512 2a38d2fbd5672f4465cba6da9f74c6ef95068be26514acc3d2949049f8461265e2ce7c6751d1853218ac4a4b62746e355faa9f2e0d7d8d6dc2faf17d8e40fceb diff --git a/sci-libs/hdf/hdf-4.2.8.ebuild b/sci-libs/hdf/hdf-4.2.8.ebuild deleted file mode 100644 index 32d8a3f2f0a5..000000000000 --- a/sci-libs/hdf/hdf-4.2.8.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -FORTRAN_NEEDED=fortran - -inherit eutils fortran-2 toolchain-funcs autotools flag-o-matic - -MYP=${P/_p/-patch} - -DESCRIPTION="General purpose library and format for storing scientific data" -HOMEPAGE="http://www.hdfgroup.org/hdf4.html" -SRC_URI="http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/${MYP}.tar.bz2" - -SLOT="0" -LICENSE="NCSA-HDF" -KEYWORDS="amd64 ia64 ppc -sparc x86 ~amd64-linux ~x86-linux" -IUSE="fortran szip static-libs" - -RDEPEND=" - sys-libs/zlib - virtual/jpeg - szip? ( virtual/szip )" -DEPEND="${RDEPEND}" - -S=${WORKDIR}/${MYP} - -src_prepare() { - epatch "${FILESDIR}"/4.2.7_p1-autotools.patch \ - "${FILESDIR}"/${PN}-ppc.patch - sed -i -e 's/-R/-L/g' config/commence.am || die #rpath - eautoreconf - [[ $(tc-getFC) = *gfortran ]] && append-fflags -fno-range-check -} - -src_configure() { - econf \ - --enable-shared \ - --enable-production=gentoo \ - --disable-netcdf \ - $(use_enable fortran) \ - $(use_enable static-libs static) \ - $(use_with szip szlib) \ - CC="$(tc-getCC)" -} - -src_install() { - default - dodoc release_notes/{RELEASE,HISTORY,bugs_fixed,misc_docs}.txt - cd "${ED}"usr - mv bin/ncgen{,-hdf} || die - mv bin/ncdump{,-hdf} || die - mv share/man/man1/ncgen{,-hdf}.1 || die - mv share/man/man1/ncdump{,-hdf}.1 || die -} diff --git a/sci-libs/hdf/hdf-4.2.9.ebuild b/sci-libs/hdf/hdf-4.2.9.ebuild deleted file mode 100644 index 04467f229444..000000000000 --- a/sci-libs/hdf/hdf-4.2.9.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -FORTRAN_NEEDED=fortran - -inherit eutils fortran-2 toolchain-funcs autotools flag-o-matic - -MYP=${P/_p/-patch} - -DESCRIPTION="General purpose library and format for storing scientific data" -HOMEPAGE="http://www.hdfgroup.org/hdf4.html" -SRC_URI="http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/${MYP}.tar.bz2" - -SLOT="0" -LICENSE="NCSA-HDF" -KEYWORDS="~amd64 ~ppc -sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="fortran szip static-libs" - -RDEPEND=" - sys-libs/zlib - virtual/jpeg - szip? ( virtual/szip )" -DEPEND="${RDEPEND}" - -S=${WORKDIR}/${MYP} - -src_prepare() { - epatch "${FILESDIR}"/${P}-autotools.patch \ - "${FILESDIR}"/${PN}-ppc.patch - sed -i -e 's/-R/-L/g' config/commence.am || die #rpath - eautoreconf - [[ $(tc-getFC) = *gfortran ]] && append-fflags -fno-range-check -} - -src_configure() { - econf \ - --enable-shared \ - --enable-production=gentoo \ - --disable-netcdf \ - $(use_enable fortran) \ - $(use_enable static-libs static) \ - $(use_with szip szlib) \ - CC="$(tc-getCC)" -} - -src_install() { - default - dodoc release_notes/{RELEASE,HISTORY,bugs_fixed,misc_docs}.txt - cd "${ED}"usr - mv bin/ncgen{,-hdf} || die - mv bin/ncdump{,-hdf} || die - mv share/man/man1/ncgen{,-hdf}.1 || die - mv share/man/man1/ncdump{,-hdf}.1 || die -} diff --git a/sci-libs/hypre/Manifest b/sci-libs/hypre/Manifest index 176a95d07e6f..7f389731e22f 100644 --- a/sci-libs/hypre/Manifest +++ b/sci-libs/hypre/Manifest @@ -1,9 +1,7 @@ -DIST hypre-2.11.1.tar.gz 8054149 BLAKE2B 207d382b08ac67e09d55e323b86f84a0a7247baf21275c8774bf555c99401aa28f2ae6d4010a63d0c299a702a7b93a85ea98aed51ea5c8c8b31e4587760895d1 SHA512 4266c1b5225bcc97781246475100382f4929d7c918c854570a36b90602e8f111a4893cd1c93b95c68305c851898b970dd92ac173efe9211be5bb914d3c3c5d83 -DIST hypre-2.11.2.tar.gz 8077407 BLAKE2B d51a40d015f03757425da1fbc113a2647c267d1d47bebe343f2cd84983349cdbdb0e5b51a3c253edcab3d54f352158f0e263afcce592157b64202af471d642c6 SHA512 a06321028121e5420fa944ce4fae5f9b96e6021ec2802e68ec3c349f19a20543ed7eff774a4735666c5807ce124eb571b3f86757c67e91faa1c683c3f657469f DIST hypre-2.14.0.tar.gz 7312329 BLAKE2B 93de48bdd05c383c74fb1b3b25ddcd5830be099aa7557262547932e17eba524c25ff69ff94d10f29ffdabfef9c05281fd485a7c9b999141f2488ae4fc0238736 SHA512 c7b59fb7ab1cc906e339fcc00603898e44234a65aa74600f740bc825aa94aa66ff0cbd4bd4b7f339c0d28ff5bd9494f15b57f2017a22348fee14b4e8333f1e6c -DIST hypre-2.9.0b.tar.gz 9053035 BLAKE2B 1bde86f88545d24617673a0c0c8c7458399bd7220a0ffe25ab4c9772e1c802c9b51ceaf716e843e236df1fd673bbd171642726590efdbb100821c3d3e54bacd7 SHA512 6856f2c80eaf669258d73a36a59c0fd0f43e20a5b2e633b6aefbccf41f5217ea821a6201dadc0de2b17a039ba9f53d98031f0b091e3db552cc5251a4f766acb8 -EBUILD hypre-2.11.1.ebuild 2895 BLAKE2B 93d38f17f0536214b2163de4b9cbf31d36bbcf0ecc50eeccd34fb3aa42c07e894bb6777913a33939bc3650da96b9c88d4ee1ee4da8b257eb05948c26de6d6fac SHA512 d72b5f812193840e828766b66305102101a43a289190af7832fe30714353b0c0dcc872905674ac1286f999873869c3b62e388e767f5867ebd0efa16ff0338f2d -EBUILD hypre-2.11.2.ebuild 2895 BLAKE2B 93d38f17f0536214b2163de4b9cbf31d36bbcf0ecc50eeccd34fb3aa42c07e894bb6777913a33939bc3650da96b9c88d4ee1ee4da8b257eb05948c26de6d6fac SHA512 d72b5f812193840e828766b66305102101a43a289190af7832fe30714353b0c0dcc872905674ac1286f999873869c3b62e388e767f5867ebd0efa16ff0338f2d +DIST hypre-2.18.0.tar.gz 5698227 BLAKE2B e6562b78dcff6592a7df86d2162e3669c9ea3f71cc8926402038da319cb6c1b801a7ac5e44612ba86762ccdd63ae30cd2976451368309622b46e67a7a7dc1d83 SHA512 41292d590285703b5fb91c767fc9d064e36911f09583a81a3da9f2b5524143b23bb1beba3449d759e3f681760d9ad155072e1762d7d6bbe0e65660d5b16c472a +DIST hypre-2.18.2.tar.gz 5699792 BLAKE2B 6adb343d23594adea60a4009f589285236365a5769b1d5cb66908ce83984dd48b3be929e6c7298c7b9cb1e2d67b1fe7ea641c8a160562d223edb9809977fb684 SHA512 7b343a5c8530d7f5e31cad6c940c2f154b2b954566d4fe8525d690fec41db23936a46fb642a994791de32984e696c624804fb1fde1f0c9ce026f1a6e46b9c0f4 EBUILD hypre-2.14.0.ebuild 2929 BLAKE2B d3e32bd55d00422686ef432e4ec4c63fe133342494f29255c71d86f98ed31a3eee6fdd66b68f32ab194420197994f11d9cc767675afe65367cd85bb7fefbddab SHA512 9024f6db0d7f7cd460a6a639915d3aa7f73d6048a0ecc70fe88b928cf445d6398a206822cade66b237e9fdbee2ad1b6e443c0870ad3fb67532c05409406f98d6 -EBUILD hypre-2.9.0b.ebuild 1883 BLAKE2B 0f7d1d1b5f760ab851369000f6aed343bd20f34e88ebd6de2b3963deabe1acab2d03cd02176f940a1fc11e941bf5e8086562861ac3c06a3dc3c1aebbab065384 SHA512 3dc2f99aeaaf4e0a723d21302e9664eaa2bea69287ee7554ed0e9894d58effb251727cd329e003547525b91cfe48ec6c62fec2dbec64d12de9531defde5f9cb3 +EBUILD hypre-2.18.0.ebuild 2759 BLAKE2B 1606c1fc02aadf5be7f5a1f095254182fb28fcba12dfc8d0e5b98961466fbc4a2b24990e5dc9aada96ae2c2bed7743710b878a0621b12979cf43ed0c39f415af SHA512 e9699f6ef44ce63cd05794b083370806115a61d399a4d4765d494590dd823cf831e5d60b5da777524d64db6459349e503203bca739c8cba735d18c31d9b15187 +EBUILD hypre-2.18.2.ebuild 2759 BLAKE2B 1606c1fc02aadf5be7f5a1f095254182fb28fcba12dfc8d0e5b98961466fbc4a2b24990e5dc9aada96ae2c2bed7743710b878a0621b12979cf43ed0c39f415af SHA512 e9699f6ef44ce63cd05794b083370806115a61d399a4d4765d494590dd823cf831e5d60b5da777524d64db6459349e503203bca739c8cba735d18c31d9b15187 MISC metadata.xml 689 BLAKE2B 81168f6d150dc65e74bbae7b73657d2ef6c5de0cfcb616b9f1dd756e9734e10823c1468cc1725f8681dfb71d529c89c958e751100aa9727dcc28e36c8f27fd2b SHA512 fb10f8f67754f103b109fa7696e66e02f6a66ff74472341f3e2dcb27957646fd4140594c9eee489c3d47f1985bf8a122b48269c6a6168ddbfcdcd0ffe2a415e2 diff --git a/sci-libs/hypre/hypre-2.11.1.ebuild b/sci-libs/hypre/hypre-2.18.0.ebuild index f6aa3e5337be..e8e6dd2d154a 100644 --- a/sci-libs/hypre/hypre-2.11.1.ebuild +++ b/sci-libs/hypre/hypre-2.18.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -9,12 +9,12 @@ inherit cmake-utils fortran-2 toolchain-funcs flag-o-matic DESCRIPTION="Parallel matrix preconditioners library" HOMEPAGE="https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods" -SRC_URI="${HOMEPAGE}/download/${P}.tar.gz" +SRC_URI="https://github.com/${PN}-space/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0/${PV}" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="debug doc examples fei fortran int64 openmp mpi" +IUSE="debug examples fortran int64 openmp mpi" RDEPEND=" sci-libs/superlu:= @@ -26,9 +26,6 @@ DEPEND="${RDEPEND} DOCS=( CHANGELOG COPYRIGHT README ) -# 2.11.1: fei and mli wrappers still buggy with big integers -REQUIRED_USE="int64? ( !fei )" - pkg_pretend() { [[ ${MERGE_TYPE} != binary ]] &&\ use openmp && [[ $(tc-getCC)$ == *gcc* ]] && tc-check-openmp @@ -78,8 +75,6 @@ src_configure() { $(use_enable openmp hopscotch) \ $(use_enable int64 bigint) \ $(use_enable fortran) \ - $(use_with fei) \ - $(use_with fei mli) \ $(use_with openmp) \ $(use_with mpi MPI) } @@ -99,7 +94,6 @@ src_install() { HYPRE_INSTALL_DIR="${ED}" \ HYPRE_LIB_INSTALL="${ED}/usr/$(get_libdir)" \ HYPRE_INC_INSTALL="${ED}$/usr/include/hypre" - use doc && dodoc docs/*.pdf if use examples; then insinto /usr/share/doc/${PF} doins -r src/examples diff --git a/sci-libs/hypre/hypre-2.11.2.ebuild b/sci-libs/hypre/hypre-2.18.2.ebuild index f6aa3e5337be..e8e6dd2d154a 100644 --- a/sci-libs/hypre/hypre-2.11.2.ebuild +++ b/sci-libs/hypre/hypre-2.18.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -9,12 +9,12 @@ inherit cmake-utils fortran-2 toolchain-funcs flag-o-matic DESCRIPTION="Parallel matrix preconditioners library" HOMEPAGE="https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods" -SRC_URI="${HOMEPAGE}/download/${P}.tar.gz" +SRC_URI="https://github.com/${PN}-space/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0/${PV}" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="debug doc examples fei fortran int64 openmp mpi" +IUSE="debug examples fortran int64 openmp mpi" RDEPEND=" sci-libs/superlu:= @@ -26,9 +26,6 @@ DEPEND="${RDEPEND} DOCS=( CHANGELOG COPYRIGHT README ) -# 2.11.1: fei and mli wrappers still buggy with big integers -REQUIRED_USE="int64? ( !fei )" - pkg_pretend() { [[ ${MERGE_TYPE} != binary ]] &&\ use openmp && [[ $(tc-getCC)$ == *gcc* ]] && tc-check-openmp @@ -78,8 +75,6 @@ src_configure() { $(use_enable openmp hopscotch) \ $(use_enable int64 bigint) \ $(use_enable fortran) \ - $(use_with fei) \ - $(use_with fei mli) \ $(use_with openmp) \ $(use_with mpi MPI) } @@ -99,7 +94,6 @@ src_install() { HYPRE_INSTALL_DIR="${ED}" \ HYPRE_LIB_INSTALL="${ED}/usr/$(get_libdir)" \ HYPRE_INC_INSTALL="${ED}$/usr/include/hypre" - use doc && dodoc docs/*.pdf if use examples; then insinto /usr/share/doc/${PF} doins -r src/examples diff --git a/sci-libs/hypre/hypre-2.9.0b.ebuild b/sci-libs/hypre/hypre-2.9.0b.ebuild deleted file mode 100644 index 3228bd2a6524..000000000000 --- a/sci-libs/hypre/hypre-2.9.0b.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -FORTRAN_NEEDED=fortran - -inherit eutils fortran-2 toolchain-funcs - -DESCRIPTION="Parallel matrix preconditioners library" -HOMEPAGE="https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods" -SRC_URI="https://computation.llnl.gov/casc/hypre/download/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0/${PV}" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc examples fortran mpi" - -RDEPEND=" - sci-libs/superlu:0= - virtual/blas - virtual/lapack - mpi? ( virtual/mpi )" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -DOCS=( "${WORKDIR}"/${P}/{CHANGELOG,COPYRIGHT,README} ) - -S="${WORKDIR}/${P}/src" - -src_prepare() { - # link with system superlu and propagate LDFLAGS - sed -i \ - -e 's:@LIBS@:@LIBS@ -lsuperlu:' \ - -e 's:_SHARED@:_SHARED@ $(LDFLAGS):g' \ - config/Makefile.config.in || die - sed -i \ - -e '/HYPRE_ARCH/s: = :=:g' \ - configure || die - # link with system blas and lapack - sed -i \ - -e '/^BLASFILES/d' \ - -e '/^LAPACKFILES/d' \ - lib/Makefile || die - use mpi && export CC=mpicc CXX=mpicxx FC=mpif77 - tc-export CC CXX -} - -src_configure() { - local myeconfargs=( - --enable-shared - --without-superlu - --with-blas-libs="$($(tc-getPKG_CONFIG) --libs-only-l blas | sed -e 's/-l//g')" - --with-blas-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L blas | sed -e 's/-L//g')" - --with-lapack-libs="$($(tc-getPKG_CONFIG) --libs-only-l lapack | sed -e 's/-l//g')" - --with-lapack-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L lapack | sed -e 's/-L//g')" - $(use_enable fortran) - $(use_with mpi MPI) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - dolib.so hypre/lib/lib* - insinto /usr/include/hypre - doins -r hypre/include/* - - use doc && dodoc "${WORKDIR}"/${P}/docs/*.pdf - if use examples; then - insinto /usr/share/doc/${PF} - doins -r examples - fi -} diff --git a/sci-libs/lapack/Manifest b/sci-libs/lapack/Manifest index 83cb31857785..351366012cd3 100644 --- a/sci-libs/lapack/Manifest +++ b/sci-libs/lapack/Manifest @@ -1,3 +1,3 @@ DIST lapack-3.8.0.tar.gz 7426094 BLAKE2B 27cd75eea498250382b2df6f5d7dc95fdee8d37b1a0faba5296ca0145ec40a1165a4ecc727aa1647086be6783b50cf475f79cea0f30f541da789051db99b2f37 SHA512 17786cb7306fccdc9b4a242de7f64fc261ebe6a10b6ec55f519deb4cb673cb137e8742aa5698fd2dc52f1cd56d3bd116af3f593a01dcf6770c4dcc86c50b2a7f -EBUILD lapack-3.8.0.ebuild 3010 BLAKE2B 9bab2aef8be2987660e0f9b48ad6c7e4d0edb6e451972c8a8076872388628cd561c7e49a4e7417398cf63eb8816762f10503c68dd95fd78e95f09fc4d00c399c SHA512 03bd798f9b3f4515efc64c04b260829a92e8c7b40553bfbd8830519c15aa92cfe6d5d3472b434beba31961520c1409d11bfb5fce9c99c8232b0dc5e227e4093f +EBUILD lapack-3.8.0.ebuild 3009 BLAKE2B 69da405b4d5ea283e3ff56dbb50022905ae6abb13d396bc88a6d854e5d88f9d868dcc9b4adff6f4ec3709b6c0bee482197f71659f3e0837afcb0c449b6470398 SHA512 124ce172eb0e221b89e183cac530110dfbb2224ff1ea52a66978e4c46b14a8fa84c8361a5685202026ce3a532cec63906b2f5173d6997940da6bff8fa5b1d74c MISC metadata.xml 1423 BLAKE2B 2ec6d7c07c4827cca666cddb7e7b2e47238ff3fd40fd5e15463196812a7a82e0b85e5d36ae2a2c3315c3b4e0b5f3d4a79a953cb1703836b20dc14862956bcf29 SHA512 39a5e8738999caaf00b4f7fcdb3afdd1405a7c817920b9247a76dbc64e06f8c2011763031a058673ac8a411cad2219cbd7c8664d379535e2afea72d2bd578fbe diff --git a/sci-libs/lapack/lapack-3.8.0.ebuild b/sci-libs/lapack/lapack-3.8.0.ebuild index a12e480344c3..77c82672e9a4 100644 --- a/sci-libs/lapack/lapack-3.8.0.ebuild +++ b/sci-libs/lapack/lapack-3.8.0.ebuild @@ -11,7 +11,7 @@ SRC_URI="http://www.netlib.org/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" IUSE="lapacke doc eselect-ldso" # TODO: static-libs 64bit-index diff --git a/sci-libs/mpir/Manifest b/sci-libs/mpir/Manifest index 89cb5b2e52a5..5d1f262b8a3d 100644 --- a/sci-libs/mpir/Manifest +++ b/sci-libs/mpir/Manifest @@ -9,5 +9,5 @@ DIST mpir-2.7.2.tar.bz2 3771429 BLAKE2B c3431bcb84207fdb1bc0242fe56b7c2d45643e8c DIST mpir-3.0.0.tar.bz2 2572041 BLAKE2B f564944dd76586ca6e50c39f1199468b905a3db7bbb8b2ee6cf3dcdfb00757d7eefc57e010d5cfc3d6db7ba2676e36f7980365e85c87827b4901ec4e80349915 SHA512 c735105db8b86db739fd915bf16064e6bc82d0565ad8858059e4e93f62c9d72d9a1c02a5ca9859b184346a8dc64fa714d4d61404cff1e405dc548cbd54d0a88e EBUILD mpir-2.6.0-r2.ebuild 1720 BLAKE2B 911baede8c9c54591f6f4814adb7babe0c428e38378c519702dc5f4cef65f7feb78bc3c9d1bb22e6673b6cd0ad41821820cc63a5591afb851df43b6353e7d7af SHA512 a733040dd61f37495f3b8a7c9018ecf865b5a48fcb69794c77b6b74164489197ef959b1c8b9b708558fb93782419ca2482ff6dd3ed30313ea67ceb459f6dc193 EBUILD mpir-2.7.2.ebuild 1719 BLAKE2B e4c9c8a697fb658a76eecdc651c119729a9ec8ecf30d54f054e8f5c61e7a873824e3f566cc5afa2509b96c33eadebbd79bc94aa074e144b562d2fe61c841d6cb SHA512 0cabe5c4e5c1df7b8ecd54b4ba87caff0b934d1805fcbb32b68ba393ba5684fac4314ed277e39286697295f94e79900fc809586b96131d0d03c264873dfd0c07 -EBUILD mpir-3.0.0.ebuild 1730 BLAKE2B 20576b9cdcfff783190898a9252cbe8dc09f49e7aa2b84038e300f690e43d7b85b556f0241b407289569fef808b342cb965a47975d6e36afa7b561417aff9d25 SHA512 9d02789318498503cb5bef38281ce9eddf0a35cccd12b1f555f18b41a4f9c6ba685f2029e9d5073b1ac5758e14ad58afdef01259ec499d502715c70c250567b2 +EBUILD mpir-3.0.0.ebuild 1844 BLAKE2B ebe1b4565c52d276b5f1ed0a557e47ddcd1b940d1b23cbbacc070959fabad9a234aac37e3d034dbd2220c8113ff3c59a2c92e76c4c89c7eac8f3dcc50066141f SHA512 55220384bcaad613cb99859af8424e7afb150c3b7a7b054e31e0013148c41b3c74b0543f20f5cd1aeeb9a424b1b5f87a2ff0dec95ae52c54d1570318d6093d8c MISC metadata.xml 792 BLAKE2B 9c0bea642d53a6afb0abeecefcc940c012b5cecf8c6e98fdf69eb718f63ea8e7c7f913fa1cd8360240b5f355e3742a5ccae00166690cf8a83226ad636342d279 SHA512 811f781a961982955ba036f719ec5cce3def93190fb786ef3c3a60f1b54f9b7638d8083cf0f273174002da7d358d25e8764de591d7b587b41198c48c52908fcc diff --git a/sci-libs/mpir/mpir-3.0.0.ebuild b/sci-libs/mpir/mpir-3.0.0.ebuild index 9fd8a755b58d..6efc062bb0ad 100644 --- a/sci-libs/mpir/mpir-3.0.0.ebuild +++ b/sci-libs/mpir/mpir-3.0.0.ebuild @@ -59,12 +59,16 @@ src_configure() { # beware that cpudetection aka fat binaries is x86/amd64 only. # Place mpir in profiles/arch/$arch/package.use.mask # when making it available on $arch. - local myeconfargs+=( + local myeconfargs=( $(use_enable cxx) $(use_enable cpudetection fat) $(use_enable static-libs static) ) - econf ${myeconfargs[@]} + # https://bugs.gentoo.org/661430 + if !use amd64 && !use x86; then + myeconfargs+=( --with-yasm=/bin/false ) + fi + econf "${myeconfargs[@]}" } src_install() { diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest index 62bd8709ad3d..25663fc37b49 100644 --- a/sci-libs/opencascade/Manifest +++ b/sci-libs/opencascade/Manifest @@ -1,6 +1,11 @@ AUX opencascade-7.3.0-ffmpeg4.patch 1392 BLAKE2B ce5f6c82b34ca00c758411102d15b12bc410f98156b6281a2c50609eee05e1655e93cbd918c509b2daa6e018fb7cd107a6a8a539f9d9f19438d3cf5a7e20e3cd SHA512 447ff4039ed6ad0f01d62a4d129ff0eed77427fff11dc6303decb5e15b41dd1be305a909838c296a926ddaa8c93211995f188f95c4a70a9f9ce896e7d286929f AUX opencascade-7.3.0-fixed-DESTDIR.patch 2272 BLAKE2B 30b0e045d872673ff65f00b471d9b7e5239f451329d8a0d3f0f367c811a387ef76c368eeddc3fe8d6684d7012190ae09aac66f2f91fdec7b2b4f4134b3a1463a SHA512 57e5195516d8f282c0ecd5de88e7e29f00a3748ae9ac82c74eca3b4f577dd4f4e6286e1deda424590a8c8b30cb1cd326d5c4f1634d0f7dba5bcb6ce88758a9f5 AUX opencascade-7.3.0-vtk-compat.patch 431 BLAKE2B 468a804ed906555637110b0d7cb7a4ef994fae9130e7317e525d21598cc19b67e8c7bfaaaffea82ee8fb94a20c14b42e6ec02e2541ddfc54fc288c8d0f68fc7c SHA512 026ed3451c1c36e1f187be390773329ad011c9ebdb766b730ee04f9f9a844a307c4fefc6669c81187fd34d8264bea233680c7ee43afb566e695c3d64c37438a4 +AUX opencascade-7.4.0-find-qt.patch 3349 BLAKE2B 6520b3242927c86c4958f81f8a94e8976fb2cd262318ee7fd7e1362bb95d0d665bbf909108a0526e4d251af045f734a58ee6cfae631b14b139e1a70f7666beb3 SHA512 8d7a758f749794430267e473b6048386bb3b9e4274091f5a5662bfcbaf2c76cdf0c3c2fac4d6e8f03ea300bfe3d0258cb23b8f184de62f153d12a41746f02e75 +AUX opencascade-7.4.0-fix-install.patch 7870 BLAKE2B 4842ad5123a06a53b81ca80e4152434ee6d78a9eb5436a7a9f899651fcdb45a6f403f31bd6e4225611c1085fb91eb7a5640e5bb3fd49b71295ad0868b8e018dd SHA512 5315e82bd03a8782df8c72bbfb334d9cf739dd53f3aa22649f087c1b8b7fa5f88f7a80850c1f2e0c9dffd80a77dd99fd36e9674463535cbf48b896596c24f38e +AUX opencascade-7.4.0.env.in 4611 BLAKE2B 3593cd4e05d33e466a975cf4641c56cd8e686310a148cc684591d3e08f8c4efd86e4df13500f11845e425b056b9c2c42f0f27a2a4d8cea524dc8fbb1c7dad703 SHA512 25f65e2b1e91fa78313334dab7d19b115bb7ff97ccefe7d18c45ab1817e12e10fdbe36babcb22e2a0d52bf7a0fbbdd2937523b773ddbb37635c1dd0d14de6253 DIST opencascade-7.3.0.tar.gz 48576720 BLAKE2B bf63ba77aabc8a8c92d694f78f24bab71c07e68e7ba4b8d5d90966733dbd9c0c83a76e35f059e798d4a60640d663330cd13a828b19ec02a5372053ab39a74aa6 SHA512 17eb1810b43a8b001867563f97801ceb38a7878fa53d9b39b46a5cf3dd676310fa80e83e90668a99ec6aff9d4f09733fb6c7be83c1e3ab4eaa9fda55888050da +DIST opencascade-7.4.0.tar.gz 49210449 BLAKE2B c92afe7551e9a066ad0940dcf49278b556a726f0534131706b3a11cb0986ba32818e162df3982283f6815eb9d67d7e91f909485d78f2b8d638da1934ffbc2f7f SHA512 eb0d47848d48f42a159ae5d7a4144483ba1f59f634844bd2053e48e04af30a30ba7056112cd38a1730d193a8d736b898f9608dd574cbe6829dbe7257a002772a EBUILD opencascade-7.3.0.ebuild 4410 BLAKE2B ccb199b9cde98a579d3be135c657755506f2f4950317521bc70260666f191e9176124fb98b7ae232121222da4db93db2a300eaf88e42b14bfd330d0d8ac4f3c2 SHA512 0ca80511c240296b5f5d93c1e0132eb369778205f192f8f322cacfdede1808c5700ee96ebc10afad01b2786e18f5ae64e179fd54ddb632e1cede07a20aa2da91 -MISC metadata.xml 712 BLAKE2B 6a328a6f4cf8b32a86b837826af0ecae3050d1ca662aa438062f6c67bc96842784bbdb749c350024222ee2b8fdf7940868cab57adcb003e2252e6bf54afec918 SHA512 a58adeb9c45fb1eb8cf86331a14d07bb99131d5bd963347acc79fc60a914a246dfc0156e006c898848df8373a56f7a5a5ca85c71fc4a20a7ea6477fbf6da5455 +EBUILD opencascade-7.4.0.ebuild 3766 BLAKE2B 2f997bf0370d954515dcebcada59b5df5414356539e68a0f73beb84a7923896961f63be913cb29bc5a403727b8d3a7543f6633e015a378c098d9be5db8b5a13f SHA512 b63050e4dc4d616651c10fda42af95cfd2b426fcb21ed0a674f75b630531f6dc52b3d759b634b13debaaf26d9ee64d68d2637ff8aa65e7c151a213fe2a6f116c +MISC metadata.xml 957 BLAKE2B 609b823e60c216481f0628bf396a81b827dea3d3d7a8e96203d9243e46c110784e4dc55032773ccd808cfa10f18342b30852ad982983e86ab41a399cfc99692d SHA512 80246f152111d9bb48df691198b478f5181c51a94286e28dc0f3a037e025b403559ad2c1aebf7660693d6a6a333e058de4bc711317c45ba9491e98529bd2d5ba diff --git a/sci-libs/opencascade/files/opencascade-7.4.0-find-qt.patch b/sci-libs/opencascade/files/opencascade-7.4.0-find-qt.patch new file mode 100644 index 000000000000..1ebc1106a31b --- /dev/null +++ b/sci-libs/opencascade/files/opencascade-7.4.0-find-qt.patch @@ -0,0 +1,85 @@ +From 7304c888e57a581e9dc8ef2005e960ec579d58f4 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl@gmail.com> +Date: Sat, 9 Nov 2019 17:15:27 +0100 +Subject: [PATCH] Gentoo-specific: disable internal 3RDPARTY_QT_DIR + +The patch disables searching for internal 3rd-party Qt. Instead +system installed Qt is used. The call to find_package uses REQUIRED +flag for this. + +Signed-off-by: Bernd Waibel <waebbl@gmail.com> +--- + adm/cmake/qt.cmake | 24 ++++++++++++------------ + adm/cmake/qt_macro.cmake | 6 +++--- + 2 files changed, 15 insertions(+), 15 deletions(-) + +diff --git a/adm/cmake/qt.cmake b/adm/cmake/qt.cmake +index 6958bab5..b6a9b794 100644 +--- a/adm/cmake/qt.cmake ++++ b/adm/cmake/qt.cmake +@@ -3,27 +3,27 @@ + # Qt is searched manually first (just determine root) + message (STATUS "Processing Qt 3-rd party") + +-if (NOT DEFINED ${3RDPARTY_QT_DIR} AND ${3RDPARTY_QT_DIR} STREQUAL "") +- FIND_PRODUCT_DIR ("${3RDPARTY_DIR}" Qt 3RDPARTY_QT_DIR_NAME) ++#if (NOT DEFINED ${3RDPARTY_QT_DIR} AND ${3RDPARTY_QT_DIR} STREQUAL "") ++# FIND_PRODUCT_DIR ("${3RDPARTY_DIR}" Qt 3RDPARTY_QT_DIR_NAME) + +- if (NOT DEFINED ${3RDPARTY_QT_DIR_NAME} AND ${3RDPARTY_QT_DIR_NAME} STREQUAL "") +- message (FATAL_ERROR "... Qt root directory was not found") +- endif() ++# if (NOT DEFINED ${3RDPARTY_QT_DIR_NAME} AND ${3RDPARTY_QT_DIR_NAME} STREQUAL "") ++# message (FATAL_ERROR "... Qt root directory was not found") ++# endif() + + # Combine directory name with absolute path and show in GUI +- set (3RDPARTY_QT_DIR "${3RDPARTY_DIR}/${3RDPARTY_QT_DIR_NAME}" CACHE PATH "The directory containing Qt" FORCE) +- message (STATUS "Info: Qt is used from folder: ${3RDPARTY_QT_DIR}") +-endif() ++# set (3RDPARTY_QT_DIR "${3RDPARTY_DIR}/${3RDPARTY_QT_DIR_NAME}" CACHE PATH "The directory containing Qt" FORCE) ++# message (STATUS "Info: Qt is used from folder: ${3RDPARTY_QT_DIR}") ++#endif() + +-set (USED_3RDPARTY_QT_DIR "${3RDPARTY_QT_DIR}") ++#set (USED_3RDPARTY_QT_DIR "${3RDPARTY_QT_DIR}") + + # Now set CMAKE_PREFIX_PATH to point to local Qt installation. + # Without this setting find_package() will not work +-set(CMAKE_PREFIX_PATH ${3RDPARTY_QT_DIR}) ++#set(CMAKE_PREFIX_PATH ${3RDPARTY_QT_DIR}) + + # Now we can apply standard CMake finder for Qt5. We do this mostly + # to have qt5_wrap_cpp() function available and Qt5_FOUND variable filled +-find_package(Qt5 QUIET COMPONENTS Widgets Quick Xml PATHS ${3RDPARTY_QT_DIR} NO_DEFAULT_PATH) ++find_package(Qt5 COMPONENTS Widgets Quick Xml REQUIRED) + if (NOT ${Qt5_FOUND}) + # Now we can apply standard CMake finder for Qt. We do this mostly + # to have qt4_wrap_cpp() function available +@@ -31,4 +31,4 @@ if (NOT ${Qt5_FOUND}) + #message (STATUS "Qt4 cmake configuration") + else() + #message (STATUS "Qt5 cmake configuration") +-endif() +\ No newline at end of file ++endif() +diff --git a/adm/cmake/qt_macro.cmake b/adm/cmake/qt_macro.cmake +index ec897384..8bd314a4 100644 +--- a/adm/cmake/qt_macro.cmake ++++ b/adm/cmake/qt_macro.cmake +@@ -2,9 +2,9 @@ + + macro (FIND_QT_PACKAGE PROJECT_LIBRARIES_DEBUG PROJECT_LIBRARIES_RELEASE PROJECT_INCLUDES) + +- if ("${3RDPARTY_QT_DIR}" STREQUAL "") +- message (FATAL_ERROR "Empty Qt dir") +- endif() ++# if ("${3RDPARTY_QT_DIR}" STREQUAL "") ++# message (FATAL_ERROR "Empty Qt dir") ++# endif() + + if (${Qt5_FOUND}) + #message (STATUS "Qt5 cmake configuration") +-- +2.23.0 + diff --git a/sci-libs/opencascade/files/opencascade-7.4.0-fix-install.patch b/sci-libs/opencascade/files/opencascade-7.4.0-fix-install.patch new file mode 100644 index 000000000000..edf3545a74bd --- /dev/null +++ b/sci-libs/opencascade/files/opencascade-7.4.0-fix-install.patch @@ -0,0 +1,133 @@ +From 95c7c85f776d6e4764f2146c8385d6e29762043d Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl@gmail.com> +Date: Sat, 16 Nov 2019 18:28:11 +0100 +Subject: [PATCH] Gentoo-specific: patch installation paths + +Patch parts of cmake to install into proper locations and handle slotting. + +Signed-off-by: Bernd Waibel <waebbl@gmail.com> +--- + CMakeLists.txt | 28 +++++++++++++++------------- + adm/cmake/occt_macros.cmake | 2 +- + 2 files changed, 16 insertions(+), 14 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0b445de9..1fd5779e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,6 +15,8 @@ macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE) + endif() + endmacro() + ++SET(CMAKE_INSTALL_DO_STRIP OFF) ++ + # include variable description + OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/vardescr") + +@@ -231,7 +233,7 @@ endif() + # place the libraries to <prefix>/lib folder for unix and leave old structure for windows + if (NOT DEFINED INSTALL_DIR_LIB) + if ("${INSTALL_DIR_LAYOUT}" STREQUAL "Unix") +- set (INSTALL_DIR_LIB "lib" CACHE PATH "${INSTALL_DIR_LIB_DESCR}") ++ set (INSTALL_DIR_LIB "lib${LIB_SUFFIX}" CACHE PATH "${INSTALL_DIR_LIB_DESCR}") + else() + set (INSTALL_DIR_LIB "${OS_WITH_BIT}/${COMPILER}/lib" CACHE PATH "${INSTALL_DIR_LIB_DESCR}") + endif() +@@ -315,9 +317,9 @@ endif() + if (NOT DEFINED INSTALL_DIR_CMAKE) + if ("${INSTALL_DIR_LAYOUT}" STREQUAL "Unix") + if (INSTALL_DIR_WITH_VERSION) +- set (INSTALL_DIR_CMAKE "lib/cmake/opencascade-${OCC_VERSION_STRING_EXT}" CACHE PATH "${INSTALL_DIR_CMAKE_DESCR}") ++ set (INSTALL_DIR_CMAKE "lib${LIB_SUFFIX}/cmake/opencascade-${OCC_VERSION_STRING_EXT}" CACHE PATH "${INSTALL_DIR_CMAKE_DESCR}") + else() +- set (INSTALL_DIR_CMAKE "lib/cmake/opencascade" CACHE PATH "${INSTALL_DIR_CMAKE_DESCR}") ++ set (INSTALL_DIR_CMAKE "lib${LIB_SUFFIX}/cmake/opencascade-${OCC_VERSION_STRING_EXT}" CACHE PATH "${INSTALL_DIR_CMAKE_DESCR}") + endif() + else() + set (INSTALL_DIR_CMAKE "cmake" CACHE PATH "${INSTALL_DIR_CMAKE_DESCR}") +@@ -868,10 +870,10 @@ if (${DRAWEXE_INDEX} GREATER -1) + # copy draw script to install script folder + if (BUILD_PATCH AND EXISTS "${BUILD_PATCH}/adm/templates/draw.${SCRIPT_EXT}") + install (FILES "${BUILD_PATCH}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}" +- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE) ++ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + else() + install (FILES "${CMAKE_SOURCE_DIR}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}" +- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE) ++ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + endif() + + # copy draw script to CMake binary folder +@@ -892,9 +894,9 @@ if (EXISTS "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}") + + set (CUSTOM_CONTENT "${CUSTOM_CONTENT} ${ADDITIONAL_CUSTOM_CONTENT}") + +- file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}") ++ file (WRITE "${CMAKE_BINARY_DIR}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}") + else() +- OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}") ++ OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}") + endif() + + if (WIN32) +@@ -1067,10 +1069,10 @@ if (BUILD_TOOL_TOOLKITS) + # copy tinspector script to install script folder + if (BUILD_PATCH AND EXISTS "${BUILD_PATCH}/adm/templates/inspector.${SCRIPT_EXT}") + install (FILES "${BUILD_PATCH}/adm/templates/inspector.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}" +- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE) ++ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + else() + install (FILES "${CMAKE_SOURCE_DIR}/adm/templates/inspector.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}" +- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE) ++ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + endif() + + set (OpenCASCADE_BINARY_DIR "${INSTALL_DIR}/${INSTALL_DIR_BIN}") +@@ -1122,7 +1124,7 @@ foreach (OCCT_CONFIGURATION ${CMAKE_CONFIGURATION_TYPES}) + endforeach() + # install OpenCASCADE config file with compile definitions and C/C++ flags ONLY for current configuration + install (CODE "string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWER)") +-install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)") ++install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"\$ENV{DESTDIR}${INSTALL_DIR_CMAKE}/opencascade-${OCC_VERSION_STRING_EXT}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)") + + foreach (OCCT_MODULE ${OCCT_MODULES}) + if (BUILD_MODULE_${OCCT_MODULE}) +@@ -1163,7 +1165,7 @@ endif() + + # Configure and install cmake config file + configure_file("${CMAKE_SOURCE_DIR}/adm/templates/OpenCASCADEConfig.cmake.in" "OpenCASCADEConfig.cmake" @ONLY) +-install(FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfig.cmake" DESTINATION "${INSTALL_DIR_CMAKE}") ++install(FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfig.cmake" DESTINATION "${INSTALL_DIR_CMAKE}/opencascade-${OCC_VERSION_STRING_EXT}") + + # Configure cmake version file + include(CMakePackageConfigHelpers) +@@ -1172,11 +1174,11 @@ write_basic_package_version_file( ${CMAKE_BINARY_DIR}/OpenCASCADEConfigVersion.c + COMPATIBILITY ExactVersion ) + + # Install cmake version file +-install (FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfigVersion.cmake" DESTINATION "${INSTALL_DIR_CMAKE}") ++install (FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfigVersion.cmake" DESTINATION "${INSTALL_DIR_CMAKE}/opencascade-${OCC_VERSION_STRING_EXT}") + + # Install the export set for use with the install-tree for each configuration + foreach (OCCT_MODULE ${OCCT_MODULES_ENABLED}) +- install(EXPORT OpenCASCADE${OCCT_MODULE}Targets DESTINATION "${INSTALL_DIR_CMAKE}") ++ install(EXPORT OpenCASCADE${OCCT_MODULE}Targets DESTINATION "${INSTALL_DIR_CMAKE}/opencascade-${OCC_VERSION_STRING_EXT}") + endforeach() + + # Update generated OpenCASCADETargets-*.cmake files +diff --git a/adm/cmake/occt_macros.cmake b/adm/cmake/occt_macros.cmake +index 8220ecd5..228d801b 100644 +--- a/adm/cmake/occt_macros.cmake ++++ b/adm/cmake/occt_macros.cmake +@@ -598,7 +598,7 @@ macro (OCCT_UPDATE_TARGET_FILE) + "cmake_policy(PUSH) + cmake_policy(SET CMP0007 NEW) + string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE) +- file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") ++ file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR_CMAKE}/opencascade-${OCC_VERSION_STRING_EXT}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") + foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES}) + file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT) + file (REMOVE \"\${TARGET_FILENAME}\") +-- +2.23.0 + diff --git a/sci-libs/opencascade/files/opencascade-7.4.0.env.in b/sci-libs/opencascade/files/opencascade-7.4.0.env.in new file mode 100644 index 000000000000..2eefe188c1ab --- /dev/null +++ b/sci-libs/opencascade/files/opencascade-7.4.0.env.in @@ -0,0 +1,103 @@ +# +# This file sets needed and optional environment variables for +# Open CASCADE Technology +# +# See: https://dev.opencascade.org/doc/overview/html/index.html#OCCT_OVW_SECTION_4_2 +# for further documentation. +# +# Some of the values are set at compile time depending on what USE flags +# were enabled. Those values are marked as such. + +# define the root directory of Open CASCADE Technology (needed) +CASROOT=VAR_CASROOT +# PATH and LDPATH are used to find the binaries and libraries of OCCT (needed) +PATH=VAR_CASROOT/bin +LDPATH=VAR_CASROOT/lib + +############################################################################# +# The MMGT_* variables are used to determine how memory management will work +# in OCCT. All of those are optional. If they are not set here, their default +# values will be used. +# +# Uncomment or change the ones you need to adapt from its default. +############################################################################# +# MMGT_OPT = {0,1,2} (default: 0) set at compile time +# if set to 0 (the default), every memory block is allocated in C +# memory heap directly (via malloc() and free()). Will be set, if +# neither the the 'optimize' nor the 'tbb' USE flags are set. +# if set to 1, the memory manager performs it's own internal optimization. +# Will be set, if the 'optimize' USE flag is set. +# if set to 2, Intel(R) TBB optimized memory manager is used. Will be set, +# if the 'tbb' USE flag is set. +#MMGT_OPT=0 + +# MMGT_CLEAR = {0,1} (default: 1) +# if set to 0, memory block is returned as it is. Will be set, if the +# 'optimize' USE flag is set +# if set to 1, every allocated memory block is cleared by zeros +#MMGT_CLEAR=1 + +# MMGT_CELLSIZE (default: 200) +# defines the maximal size of blocks allocated in large pools of memory. +#MMGT_CELLSIZE=200 + +# MMGT_NBPAGES (default: 10000) +# defines the size of memory chunks allocated for small blocks in pages +# (OS dependant) +#MMGT_NBPAGES=10000 + +# MMGT_THRESHOLD (default: 40000) +# defines the maximal size of blocks that are recycled internally instead +# of being returned to the heap. +#MMGT_THRESHOLD=40000 + +# MMGT_MMAP = {0,1} (default: 1) +# if set to 0, large memory blocks will be allocated in the C heap by +# malloc() +# if set to 1, large memory blocks are allocated using memory mapping +# functions of the operating system. +#MMGT_MMAP=1 + +# CSF_LANGUAGE (default: us) optional +# defines the default language of messages indicated by a two-letter +# country code. Currently it's not verified if this work with other +# than the default languages, so we keep it commented. +#CSF_LANGUAGE=us + +# CSF_DEBUG_BOP (default: undefined) optional +# if defined then it should specify the directory where diagnostic data +# on problems occured in Boolean operations will be saved. Not defined by +# default. +# +# NOTE: Only enable for debugging purposes. If set, this variable has a +# large impact on the performance of boolean operations. +#CSF_DEBUG_BOP=/var/tmp + +# CSF_EXCEPTION_PROMPT (default: 1) optional +# not documented upstream (maybe a flag indicating whether the user shall +# be prompted in the case of exceptions) +CSF_EXCEPTION_PROMPT=1 + +# The following CSF_* variables define various directories and files where +# OCCT is looking for resources. +CSF_GraphicShr=VAR_CASROOT/lib/libTKOpenGl.so +CSF_MIGRATION_TYPES=VAR_CASROOT/share/opencascade/resources/StdResource/MigrationSheet.txt +CSF_MDTVTexturesDirectory=VAR_CASROOT/share/opencascade/resources/Textures +CSF_PluginDefaults=VAR_CASROOT/share/opencascade/resources/StdResource +CSF_StandardDefaults=VAR_CASROOT/share/opencascade/resources/StdResource +CSF_StandardLiteDefaults=VAR_CASROOT/share/opencascade/resources/StdResource +CSF_XCAFDefaults=VAR_CASROOT/share/opencascade/resources/StdResource +CSF_XmlOcafResource=VAR_CASROOT/share/opencascade/resources/XmlOcafResource +# The below values might be optional. +CSF_IGESDefaults=VAR_CASROOT/share/opencascade/resources/XSTEPResource +CSF_ShadersDirectory=VAR_CASROOT/share/opencascade/resources/Shaders +CSF_SHMessage=VAR_CASROOT/share/opencascade/resources/SHMessage +CSF_STEPDefaults=VAR_CASROOT/share/opencascade/resources/XSTEPResource +CSF_UnitsDefinition=/usr/lib64/opencascade-7.3.0/ros/share/opencascade/resources/UnitsAPI/Units.dat +CSF_XSMessage=/usr/lib64/opencascade-7.3.0/ros/share/opencascade/resources/XSMessage + +# TODO: check those +# they were defined in the original ebuild but the directories and files +# are not present in the current installation. +#CSF_MDTVFontDirectory=VAR_CASROOT/src/FontMFT +#CSF_UnitsLexicon=VAR_CASROOT/src/UnitsAPI/Lexi_Expr.dat diff --git a/sci-libs/opencascade/metadata.xml b/sci-libs/opencascade/metadata.xml index cfb5bac89f91..c601fab04b30 100644 --- a/sci-libs/opencascade/metadata.xml +++ b/sci-libs/opencascade/metadata.xml @@ -10,10 +10,27 @@ <name>Proxy Maintainers</name> </maintainer> <use> - <flag name="freeimage">Enable support for image i/o via media-libs/freeimage</flag> - <flag name="gl2ps">Use gl2ps PostScript printing library</flag> - <flag name="gles2">Use OpenGL ES 2.0</flag> - <flag name="tbb">Enable multithreading with the Intel Threads Building Block dev-cpp/tbb</flag> - <flag name="vtk">Enable Visualization Toolkit</flag> + <flag name="freeimage"> + Enable support for image i/o via media-libs/freeimage + </flag> + <flag name="gl2ps"> + Use gl2ps PostScript printing library + </flag> + <flag name="gles2"> + Use OpenGL ES 2.0 + </flag> + <flag name="inspector"> + Build the OCCT inspector tool for low-level data inspection + </flag> + <flag name="optimize"> + Don't clear allocated memory. Use optimized memory manager unless + tbb USE flag is set. + </flag> + <flag name="tbb"> + Enable multithreading with the Intel Threads Building Block dev-cpp/tbb + </flag> + <flag name="vtk"> + Enable Visualization Toolkit + </flag> </use> </pkgmetadata> diff --git a/sci-libs/opencascade/opencascade-7.4.0.ebuild b/sci-libs/opencascade/opencascade-7.4.0.ebuild new file mode 100644 index 000000000000..5c0a6496857e --- /dev/null +++ b/sci-libs/opencascade/opencascade-7.4.0.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# TODO: +# check the src files referenced in 51opencascade, i.e. resources and the like +# check where cmake gets it's '-s' linker flag to avoid pre-stripping (QA) + +EAPI=7 + +inherit check-reqs cmake-utils flag-o-matic java-pkg-opt-2 multilib + +DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange" +HOMEPAGE="https://www.opencascade.com" +MY_PV="$(ver_rs 1- '_')" +SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${MY_PV};sf=tgz -> ${P}.tar.gz" + +LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +# gl2ps +IUSE="debug doc examples ffmpeg freeimage gles2 inspector java optimize qt5 tbb +vtk" + +REQUIRED_USE=" + inspector? ( qt5 ) + ?? ( optimize tbb ) +" + +# gl2ps? ( x11-libs/gl2ps ) +RDEPEND=" + app-eselect/eselect-opencascade + dev-cpp/eigen + dev-lang/tcl:0= + dev-lang/tk:0= + dev-tcltk/itcl + dev-tcltk/itk + dev-tcltk/tix + media-libs/freetype:2 + media-libs/ftgl + virtual/glu + virtual/opengl + x11-libs/libXmu + ffmpeg? ( virtual/ffmpeg ) + freeimage? ( media-libs/freeimage ) + java? ( virtual/jdk:1.8 ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + ) + tbb? ( dev-cpp/tbb ) + vtk? ( >=sci-libs/vtk-8.1.0[rendering] ) +" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen )" + +# There's no easy way to test. Testing needs a rather big environment +# properly set up. +RESTRICT="test" + +CHECKREQS_MEMORY="256M" +CHECKREQS_DISK_BUILD="3584M" + +CMAKE_BUILD_TYPE=Release + +S="${WORKDIR}/occt-V${MY_PV}" + +PATCHES=( + "${FILESDIR}/${P}-find-qt.patch" + "${FILESDIR}/${P}-fix-install.patch" +) + +pkg_setup() { + check-reqs_pkg_setup + use java && java-pkg-opt-2_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare + use java && java-pkg-opt-2_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_DOC_Overview=$(usex doc) + -DBUILD_Inspector=$(usex inspector) + -DBUILD_WITH_DEBUG=$(usex debug) + -DCMAKE_CONFIGURATION_TYPES="Gentoo" + -DCMAKE_INSTALL_PREFIX="/usr/$(get_libdir)/${PF}/ros" + -DINSTALL_DIR_DOC="/usr/share/doc/${PF}" + -DINSTALL_DIR_CMAKE="/usr/$(get_libdir)/cmake" + -DINSTALL_DOC_Overview=$(usex doc) + -DINSTALL_SAMPLES=$(usex examples) + -DINSTALL_TEST_CASES=NO + -DUSE_D3D=no + -DUSE_FFMPEG=$(usex ffmpeg) + -DUSE_FREEIMAGE=$(usex freeimage) +# -DUSE_GL2PS=$(usex gl2ps) + -DUSE_GLES2=$(usex gles2) + -DUSE_TBB=$(usex tbb) + -DUSE_VTK=$(usex vtk) + ) + + use examples && mycmakeargs+=( -DBUILD_SAMPLES_QT=$(usex qt5) ) + + cmake-utils_src_configure + + # prepare /etc/env.d file + sed -e 's|VAR_CASROOT|'${EROOT%}'/usr/'$(get_libdir)'/'${P}'/ros|g' < "${FILESDIR}/${P}.env.in" >> "${T}/${PV}" || die + sed -i -e 's|ros/lib|ros/'$(get_libdir)'|' "${T}/${PV}" || die + + # use TBB for memory allocation optimizations? + use tbb && (sed -i -e 's|^#MMGT_OPT=0$|MMGT_OPT=2|' "${T}/${PV}" || die) + + if use optimize ; then + # use internal optimized memory manager? + sed -i -e 's|^#MMGT_OPT=0$|MMGT_OPT=1|' "${T}/${PV}" || die + # don't clear memory ? + sed -i -e 's|^#MMGT_CLEAR=1$|MMGT_CLEAR=0|' "${T}/${PV}" || die + fi +} + +src_install() { + cmake-utils_src_install + + # respect slotting + insinto "/etc/env.d/${PN}" + doins "${T}/${PV}" + + # remove examples + use examples || (rm -rf "${ED}/usr/$(get_libdir)/${P}/ros/share/${PN}/samples" || die) + use java || (rm -rf "${ED}/usr/$(get_libdir)/${P}/ros/share/${PN}/samples/java" || die) + use qt5 || (rm -rf "${ED}/usr/$(get_libdir)/${P}/ros/share/${PN}/samples/qt" || die) +} + +pkg_postinst() { + eselect ${PN} set ${PV} || die "failed to switch to updated implementation" + einfo "You can switch between available ${PN} implementations using eselect ${PN}" +} |