diff options
author | Andrey Grozin <grozin@gentoo.org> | 2024-01-10 17:57:10 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2024-01-10 17:57:10 +0700 |
commit | cb6a4eed41b62607b180d9926faf39f2d8a8763b (patch) | |
tree | 1c6055df9e747750d5ed1c4cfe26fbd1e0d52690 /sci-mathematics/form | |
parent | media-sound/mac: Stabilize 10.29 ppc64, #921696 (diff) | |
download | gentoo-cb6a4eed41b62607b180d9926faf39f2d8a8763b.tar.gz gentoo-cb6a4eed41b62607b180d9926faf39f2d8a8763b.tar.bz2 gentoo-cb6a4eed41b62607b180d9926faf39f2d8a8763b.zip |
sci-mathematics/form: bump to 5.0.0_beta1
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'sci-mathematics/form')
-rw-r--r-- | sci-mathematics/form/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/form/form-5.0.0_beta1.ebuild | 102 |
2 files changed, 103 insertions, 0 deletions
diff --git a/sci-mathematics/form/Manifest b/sci-mathematics/form/Manifest index e7450d4bc95c..9066a4b62e67 100644 --- a/sci-mathematics/form/Manifest +++ b/sci-mathematics/form/Manifest @@ -1,3 +1,4 @@ DIST form-4.3.0.tar.gz 1457721 BLAKE2B 029c62b0e1d92cf66be0290e45467e9de47f8ac9a593e7d012c13d877fb84aa1a212bb99b7a1a7b8b5b04c4cb056b58da80812faf5f0af5d33629c7632768ae6 SHA512 3f7f9cabf37d33fce0dcb7e091ac5ce60412ebe840fcea432655ab7f0c86c620200d60df085af3011d92d8057d9501583f16686257e5d097f6d0571d7f1b6742 DIST form-4.3.1.tar.gz 1470480 BLAKE2B 210ff3b97a18a495c2d81de0cba7945d9c5a8e5e2ab3dc833ed01fedf701c15f459f0e1b171597d1997b892916a571295407eea75a631b83ce49c0b52e343c85 SHA512 7fdf925b4843e2a853340fc74cc9cf1b603100ddcab2c6ac3752a18e646296761e2c9ee3036a098e2168800f10b4e9a8512b6c871d6d61b5505c3403be9bbdad +DIST form-5.0.0_beta1.tar.gz 1415449 BLAKE2B c919442941366488520b1ba0c058261de0261096548e752308f14db2dd0416172f8a6ccabe9a0e7ddccbb6f6ad605ba6ee4f15fbcd1fc9539ea9ab116bc27cbe SHA512 5bbdbdb3ccc865b33bc346d458d1927af13825320ad1ad795b3a5562732338ed119dc3a2ae5981d1bc8d89dd55c46febc66b7632560d27843aacc6e42f8904eb DIST form-mode.el.gz 6657 BLAKE2B 41d014e4ca8036249d53f5361012095e2ed2ef5e43543ba809a058f0ed241bd3ec984d9b61ab13a5b447faf07decf4e696362f24cacea3af5870cccdf43b1415 SHA512 aa81cc9c45a90af982179d56b874de0d152538653242ea028450675ab8421df2e0d53988c7efa3527845dae145c8047b71574191eedd90511fa89ad812851e25 diff --git a/sci-mathematics/form/form-5.0.0_beta1.ebuild b/sci-mathematics/form/form-5.0.0_beta1.ebuild new file mode 100644 index 000000000000..61a6d6f461b7 --- /dev/null +++ b/sci-mathematics/form/form-5.0.0_beta1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs elisp-common +DESCRIPTION="Symbolic Manipulation System" +HOMEPAGE="https://www.nikhef.nl/~form/ https://github.com/vermaseren/form/" +MY_PV=${PV/_beta/-beta.} +SRC_URI="https://github.com/vermaseren/${PN}/archive/refs/tags/v${PV/_beta/-beta.}.tar.gz -> ${P}.tar.gz + emacs? ( https://dev.gentoo.org/~grozin/form-mode.el.gz )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="devref doc doxygen emacs gmp mpi threads zlib" + +RDEPEND=" + gmp? ( dev-libs/gmp:0= ) + mpi? ( virtual/mpi ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + devref? ( dev-texlive/texlive-latexrecommended ) + doc? ( dev-texlive/texlive-latexrecommended ) + doxygen? ( app-doc/doxygen ) + emacs? ( app-editors/emacs:* )" + +SITEFILE="64${PN}-gentoo.el" +PATCHES=( "${FILESDIR}"/5.0.0_beta1-manual.patch ) +S="${WORKDIR}"/${PN}-${MY_PV} + +src_prepare() { + default + sed -i 's/LINKFLAGS = -s/LINKFLAGS =/' sources/Makefile.am || die + eautoreconf +} + +src_configure() { + # Workaround for GCC -fchecking ICE, bug #904339 + append-cxxflags $(test-flags-CXX -Wno-uninitialized) + + econf \ + --enable-scalar \ + --enable-largefile \ + --disable-debug \ + --disable-static-link \ + --with-api=posix \ + $(use_with gmp ) \ + $(use_enable mpi parform ) \ + $(use_enable threads threaded ) \ + $(use_with zlib ) \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" +} + +src_compile() { + default + if use devref; then + pushd doc/devref > /dev/null || die "doc/devref does not exist" + LANG=C VARTEXFONTS="${T}/fonts" emake pdf + popd > /dev/null + fi + if use doc; then + pushd doc/manual > /dev/null || die "doc/manual does not exist" + LANG=C VARTEXFONTS="${T}/fonts" emake pdf + popd > /dev/null + fi + if use doxygen; then + pushd doc/doxygen > /dev/null || die "doc/doxygen does not exist" + emake html + popd > /dev/null + fi +} + +src_install() { + default + if use devref; then + dodoc doc/devref/devref.pdf + fi + if use doc; then + dodoc doc/manual/manual.pdf + fi + if use doxygen; then + docinto html + dodoc -r doc/doxygen/html/. + fi + if use emacs; then + elisp-install ${PN} "${WORKDIR}"/*.el + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |