diff options
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/Manifest.gz | bin | 18995 -> 19003 bytes | |||
-rw-r--r-- | sci-mathematics/geogebra-bin/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/geogebra-bin/geogebra-bin-6.0.804.0.ebuild | 68 | ||||
-rw-r--r-- | sci-mathematics/glpk/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/glpk/glpk-5.0-r2.ebuild | 96 |
5 files changed, 167 insertions, 0 deletions
diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz Binary files differindex 91ad635778d1..913e7745503d 100644 --- a/sci-mathematics/Manifest.gz +++ b/sci-mathematics/Manifest.gz diff --git a/sci-mathematics/geogebra-bin/Manifest b/sci-mathematics/geogebra-bin/Manifest index b36dd1d16592..cf804f29f13b 100644 --- a/sci-mathematics/geogebra-bin/Manifest +++ b/sci-mathematics/geogebra-bin/Manifest @@ -1,5 +1,7 @@ AUX geogebra.sh 954 BLAKE2B 6345f6f0103f326a3d0acc56d9c794c0f269613916b221e690bb4065be9597a9b0c77b1caa370d144548b6f24bf96995f2c2b6ca70d2da16d296e0639feecc2b SHA512 f44c7250af9c991fb78b96d97d0324084f97e54c2b64c680fc82a71ddba1cb5c89c76276eaa0b3bd966ace4d90f4336b3cc3c3c5603294b2314d6d82916c70e0 DIST GeoGebra-Linux-Portable-5-0-752-0.tar.bz2 131020013 BLAKE2B f29b301d163daf9af62a4230ff3170eca2b61c20a2b41f851af4571db03487a0fd87cc178fad83d83c5268d9c22a1e47529b80f3067debc846c158bff4f78d1b SHA512 0c4fa07cdbccf0b7529726e1ee921bd6a461645a27012ac4b2e3140f3a4b068f2a9c929e1136a1c10cd510c8acbc5b1f38b735d9386d357b52b41f0a37e93acf +DIST GeoGebra-Linux64-Portable-6-0-804-0.zip 111009113 BLAKE2B efa8468fede7d0ad1751ead765f44d120e45fb3ff1738f267518bb7594494252ded7bd2a2f7476e938e035c0ccc55fcee38853042cc150b92ea05a64e541fbc6 SHA512 4ef0d3aaaed396c9ce934638f52b148c5e2c1bcd5a5a12aefa7250982030d16e23ccc33c1623807d8910c1360efbb2115af3e2552679576c0ebdb07afb5c031c DIST Geogebra.svg 522 BLAKE2B 8c11d037bd8af7af571abc2bba0a8610f0ed5c1cea46fdc47a40d0176e5ea3b7ad4700601a3094b1aa15012f769883c7f5cb60a70f4ed400df57e3b0610271e9 SHA512 a54fedd530d1c803e14d6f44ab7341d9f1ae17fb6b6496bd21788ad1b88b0977d574db6de199e9168543a03dff73ab19e3c50793ec91750ff5fff4a4b7af408d EBUILD geogebra-bin-5.0.752.0.ebuild 1198 BLAKE2B 6b06d42f01cdeea124c3ac07bc92fe61b8024c496c71a26a877f948a4ec3aa7e3184ea37a8a4077f9158f956fd95e809f3eeba099cae4d408aed79a93f578171 SHA512 b114997b3a52357d3fd98bab49ba2fbdecb49e7961dc71e51a131d97a975b6461c676f072a729ef3e553a73de2551a69e7624a631db855f686f0ff8b4fdfb739 +EBUILD geogebra-bin-6.0.804.0.ebuild 1766 BLAKE2B eae97d4eb6ac19ec2b0d4c0a19afda985221acc4551c06cd5097ef95eb2617b2dcbe27adc4530dd0f88c0a2021ff53d2e2def1812c7849b0b96a08372b4842a6 SHA512 eede98d1479e0438c821cbe874e7cdf272d75ab28bbcb5c62f323491d1cfa43a9ef04bb78db487c805060b00936bb154db7f8f6d9b79e7347d531420a35c06ce MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/sci-mathematics/geogebra-bin/geogebra-bin-6.0.804.0.ebuild b/sci-mathematics/geogebra-bin/geogebra-bin-6.0.804.0.ebuild new file mode 100644 index 000000000000..0695529b1e32 --- /dev/null +++ b/sci-mathematics/geogebra-bin/geogebra-bin-6.0.804.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +MY_PV="${PV//./-}" + +DESCRIPTION="Mathematics software for geometry" +HOMEPAGE="https://www.geogebra.org" +SRC_URI="https://download.geogebra.org/installers/$(ver_cut 1-2)/GeoGebra-Linux64-Portable-${MY_PV}.zip + https://dev.gentoo.org/~gyakovlev/distfiles/Geogebra.svg" + +LICENSE="Geogebra CC-BY-NC-SA-3.0 GPL-3 Apache-2.0 BSD-2 BSD BSD-4 colt EPL-1.0 icu LGPL-2.1 LGPL-2.1+ MIT W3C || ( GPL-2 CDDL )" +SLOT="0" +KEYWORDS="-* ~amd64" + +RDEPEND=" + x11-libs/libxshmfence + dev-libs/nss + app-accessibility/at-spi2-core + x11-libs/libdrm + >=x11-libs/gtk+-3 + media-libs/alsa-lib + net-print/cups +" +BDEPEND=" + app-arch/unzip + media-libs/libpng +" +DEPEND="${RDEPEND}" + +# no tests +RESTRICT="test" + +QA_PREBUILT="*" + +src_unpack() { + default + mv -v GeoGebra-linux-x64 "${P}" || die +} + +src_install() { + # Fix PNGs + png_path="${S}/resources/app/node_modules/ref-napi/docs/images" + pngfix --out=out.png "${png_path}/apple-touch-icon.png" + mv -f out.png "${png_path}/apple-touch-icon.png" || die + pngfix --out=out.png "${png_path}/apple-touch-icon-72x72.png" + mv -f out.png "${png_path}/apple-touch-icon-72x72.png" || die + pngfix --out=out.png "${png_path}/apple-touch-icon-114x114.png" + mv -f out.png "${png_path}/apple-touch-icon-114x114.png" || die + + rm -r "${S}/resources/app/node_modules/ref-napi/prebuilds/linux-arm64" + rm -r "${S}/resources/app/node_modules/ffi-napi/prebuilds/linux-arm64" + + insinto /opt/GeoGebra + doins -r . + + dosym -r /opt/GeoGebra/GeoGebra /usr/bin/geogebra + fperms 0755 /opt/GeoGebra/GeoGebra + doicon "${DISTDIR}/Geogebra.svg" + make_desktop_entry geogebra Geogebra Geogebra Science +} + +src_test() { + ewarn "package has no tests" +} diff --git a/sci-mathematics/glpk/Manifest b/sci-mathematics/glpk/Manifest index 31d076dbbbf2..01329fbf6a9f 100644 --- a/sci-mathematics/glpk/Manifest +++ b/sci-mathematics/glpk/Manifest @@ -2,4 +2,5 @@ AUX glpk-4.65-debundle-system-libs.patch 1930 BLAKE2B 0c265afe9338e75bb3d6536e9e AUX glpk-4.65-fix-mysql-include-prefix.patch 1837 BLAKE2B ecd90024e07f29e8ebb6af80b520c8f192cfea21c90d8c247001389f2ccfcf24ad487981a0cc719d1ca99e266dd2a9d66f6416d4f2d5e7c80bdf807b9bb7b74e SHA512 c74281bf3e03e136d183b562b8f682a3e1957019a36ec0c6a048049f0d5f55361107a62e36eaa9e3306a1f13df10adf55c2f54f096b6e353108856e05d9ce799 DIST glpk-5.0.tar.gz 4132649 BLAKE2B f8204f66a97af950c13ee72ee9541f305745741d1231325670ede14663cb6c28ec6fbc44b3625973f1924ca078183d1d43f494ad43a7b48b45be131882b00001 SHA512 4e92195fa058c707146f2690f3a38b46c33add948c852f67659ca005a6aa980bbf97be96528b0f8391690facb880ac2126cd60198c6c175e7f3f06cca7e29f9d EBUILD glpk-5.0-r1.ebuild 2337 BLAKE2B 659648006deea5911ea99aba53ac9cffc046fa32785198d59dab2bdc85ad8dadf9c84278dbf6066c0583748bbd82a0196d433e64e4756b8c0ff723be43d9192b SHA512 422961d5d98b8da9ae2c375f5deafa02fa3c4ab0ed12e73f9cd34be2b117892f3151f9ec52e917bae36be887267837bbe13f76c064d42900ee6cb2c3296063f8 +EBUILD glpk-5.0-r2.ebuild 2384 BLAKE2B a4d1511c697ed7ef6e61ad3a1018d57d5b0ebe8bbebbd5988a67dc0ad3f1087568b2803ac474a47c4cbfa56e24307dc9d1a0450c0cab1b9b98c6c81547351376 SHA512 02c77c1216cf611338ae2be5478fd3c955eea96b074c96e97daa5fa053f36e6156a90b5e0e50d064d0f4757c0db7eed785a61ff2a3a2d41cb28a44c94063c824 MISC metadata.xml 1104 BLAKE2B f22121178a0e7f3ab097558b05cb084a7dc787cc1530859d6182aea61abee220e135ad695f517419053bb805cecef9c3555fcdb2688d6b6d17cdd8b3ce2dbb21 SHA512 965c2c6c322c488736cb9743f1e076fdf2733976502b2b2668717534f7a1505f36b84f453f23f4ff5972f7a25883d253e345caef727bab8abed4c638f5a0dc5a diff --git a/sci-mathematics/glpk/glpk-5.0-r2.ebuild b/sci-mathematics/glpk/glpk-5.0-r2.ebuild new file mode 100644 index 000000000000..ccc0e863233f --- /dev/null +++ b/sci-mathematics/glpk/glpk-5.0-r2.ebuild @@ -0,0 +1,96 @@ +# 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 + +DESCRIPTION="GNU Linear Programming Kit" +HOMEPAGE="https://www.gnu.org/software/glpk/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0/40" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples gmp odbc mysql" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + sci-libs/amd:0= + sci-libs/colamd:= + sys-libs/zlib:0= + gmp? ( dev-libs/gmp:0= ) + mysql? ( + dev-db/mysql-connector-c + dev-libs/libltdl + ) + odbc? ( + || ( + dev-db/libiodbc:0 + dev-db/unixODBC:0 + ) + dev-libs/libltdl + )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-4.65-fix-mysql-include-prefix.patch + "${FILESDIR}"/${PN}-4.65-debundle-system-libs.patch +) + +src_prepare() { + # TODO: the ODBC library is dlopen()ed, so we only want to append + # -I<foo> to the preprocessor flags, and not all of the CFLAGS that + # were used to build libiodbc. That fix and the pkg-config fallback + # should be sent upstream, and placed into CPPFLAGS rather than + # CFLAGS (as configure.ac does now). + use odbc && [[ -z $(type -P odbc_config) ]] && \ + append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc) + + default + + eautoreconf +} + +src_configure() { + local myconf + if use mysql || use odbc; then + myconf="--enable-dl" + else + myconf="--disable-dl" + fi + + econf ${myconf} \ + --disable-static \ + $(use_enable mysql) \ + $(use_enable odbc) \ + $(use_with gmp) +} + +src_install() { + default + + if use examples; then + # The top-level Makefile descends into the "examples" directory + # unconditionally, building a program and excreting build + # artifacts that we don't want to install. Note: this still + # leaves the example program /usr/bin/glpsol installed. An + # additional "emake ... uninstall" could probably take care + # of that if desired. + emake -C examples clean + + # Installing the Makefiles for the examples does the user no + # good without the top-level Makefile. + rm examples/Makefile{.in,.am,} \ + || die "failed to remove example Makefiles" + + insinto "/usr/share/doc/${PF}" + doins -r examples + docompress -x "/usr/share/doc/${PF}/examples" + fi + + use doc && dodoc doc/*.pdf doc/notes/*.pdf doc/*.txt + + # no static archives + find "${D}" -name '*.la' -delete || die +} |