diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-12 04:04:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-12 04:04:10 +0100 |
commit | 3980ecf15e6202ac2f2015045b549600e709b721 (patch) | |
tree | 6f854410381fa9d52df5a548314626b48329f1c3 /dev-lang | |
parent | 61af1efe96cf1037982d2fc90af0749b5ec5a0c6 (diff) |
gentoo auto-resync : 12:10:2024 - 04:04:10
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/Manifest.gz | bin | 21828 -> 21825 bytes | |||
-rw-r--r-- | dev-lang/algol68g/Manifest | 4 | ||||
-rw-r--r-- | dev-lang/algol68g/algol68g-3.5.7.ebuild (renamed from dev-lang/algol68g/algol68g-3.5.6.ebuild) | 0 | ||||
-rw-r--r-- | dev-lang/icon/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/icon/icon-9.5.22e.ebuild | 2 | ||||
-rw-r--r-- | dev-lang/ocaml/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/ocaml/ocaml-4.14.2.ebuild | 2 | ||||
-rw-r--r-- | dev-lang/swi-prolog/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/swi-prolog/swi-prolog-9.3.9.ebuild | 184 |
9 files changed, 192 insertions, 6 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz Binary files differindex 9d2126eebf0d..cd349aeb2b10 100644 --- a/dev-lang/Manifest.gz +++ b/dev-lang/Manifest.gz diff --git a/dev-lang/algol68g/Manifest b/dev-lang/algol68g/Manifest index 3a655f5a84d9..bf5c1b18cf56 100644 --- a/dev-lang/algol68g/Manifest +++ b/dev-lang/algol68g/Manifest @@ -1,8 +1,8 @@ AUX algol68g-3.3.21-configure-implicit.patch 236 BLAKE2B e59d1e65f6d1b83ac1bb43f00614d44ca13b0b2ad77fbc2da944b163487f679302e73d23bbe7d4adeb9a3168466bf38e53a38a3001b2e64725682f7e0edbbeac SHA512 11d9d38d98e210a2b20ef464ae365b4a1eab72befdb5daae15ad031cfda0d65f5d7134fe2c9c26d2929c172ebfef3acafd9072977c68a383784f2ccdefc41ff1 DIST algol68g-3.5.4.tar.gz 664208 BLAKE2B b8e2bcc53cf3cc7254da37f1d5655ddc4f79564c51608fea374da25bc828c34056284f2a48e4ada92202f866c38326c1323aa9803bbbb0be22d3a682767c24fa SHA512 0cedce2c2cb4c8d7de91ef022ade38c2040d8fcd02c747226721a016f1c5ae9a9249314370ac6466be2fdba34f7602ab0954e05dbf20d7af1e68a04059270a5c DIST algol68g-3.5.5.tar.gz 664205 BLAKE2B 1ac99c1723e45ff69a72592c0209716409c35ce208e79682ed77a972b08cab49b78b735f1b585640c9a8b5d59853cafb601d8a049bc33bfa42f6a37c93848285 SHA512 5c671e1b7f90a6a0197afd0efdae737d409d0db98b4f62e2a958ecbec5d731cb68896e8c14e975d4d569e399a79ee12be3269c6ab2e9c6a34f2cb6d9a1e5a273 -DIST algol68g-3.5.6.tar.gz 664375 BLAKE2B ccb6cd26ca700191ff09e81359fc7a72b803213519d8b835fbee70e8d403915752f26c9b4cd9bf6cf5675879c9a90613bdb971302167a11452632380335d21dc SHA512 b737e20fdab0c7b8918a400cc3923ee5d265cb732a240e0fdcdc9d0343e46aa68d852b19e9feb4659fe5ea5b86f2d6542ebf59b4d8ea356f63c3c9b4520bf3a9 +DIST algol68g-3.5.7.tar.gz 664353 BLAKE2B 109a94c6e8996d71634187bafaf33ce6be40c054dcd62a5cb40a5197ad645a3f8769b3596504206aeccd4769aa80af263ad763b115171db73e3255b5e64347a8 SHA512 05a3d51cffb918d0e61d8692da83905190d3c52079acb3bcad2c49e8fa9dcc9ab433a830486db337ff28c540b128795d5af876d70ad778c72426549c1a6116d9 EBUILD algol68g-3.5.4.ebuild 946 BLAKE2B 7826e7dd8c13921585c3056103f6ad3e241e1599e45ed7854fd1f2da334d057bd5c92d6178491387cbdf391b7bc3bda1d2f1ca1eb458a0eb2d1b4251157ef29d SHA512 509e4b99469fcf59a74871f4d5f28ec22d2b6ae6c361abfa9305ef666580f27154cd33ffa3c923df665229c581bb56d8a57f33d16dc0d0b546cf1509cf6f1d39 EBUILD algol68g-3.5.5.ebuild 947 BLAKE2B 87f8a18c197e751b44821dcf82b8c262d8430caa080e2f3a742771b583a94d99b6e072c109d7c66738dce198a03de3c3fecc8fac9f45a504b0d9508fa3d07688 SHA512 d2e9d150e89e830205f4a9f7c406c40ccce9399a89499f8757b0ff1e3651143333f2577b0a4eb6b388a706b14a884023f562bf4a0c018c41bd50cff9c52ac7a3 -EBUILD algol68g-3.5.6.ebuild 947 BLAKE2B 87f8a18c197e751b44821dcf82b8c262d8430caa080e2f3a742771b583a94d99b6e072c109d7c66738dce198a03de3c3fecc8fac9f45a504b0d9508fa3d07688 SHA512 d2e9d150e89e830205f4a9f7c406c40ccce9399a89499f8757b0ff1e3651143333f2577b0a4eb6b388a706b14a884023f562bf4a0c018c41bd50cff9c52ac7a3 +EBUILD algol68g-3.5.7.ebuild 947 BLAKE2B 87f8a18c197e751b44821dcf82b8c262d8430caa080e2f3a742771b583a94d99b6e072c109d7c66738dce198a03de3c3fecc8fac9f45a504b0d9508fa3d07688 SHA512 d2e9d150e89e830205f4a9f7c406c40ccce9399a89499f8757b0ff1e3651143333f2577b0a4eb6b388a706b14a884023f562bf4a0c018c41bd50cff9c52ac7a3 MISC metadata.xml 665 BLAKE2B 2b9b283f86666d64dd77164c5afb0d76403c63f9f0dfac3170eb2ade95bcc382b09d14248cb720edf7c1b055e78ca5ca0017b6784caf4381d970a011301058bd SHA512 b3171d505f9f9e4dcdd5b5a0c6d302849fa017538402832dd3db205c48c68a39867089aae4d1f3c158a45bfc170b21f83789cba16511f251d70300020e102b0a diff --git a/dev-lang/algol68g/algol68g-3.5.6.ebuild b/dev-lang/algol68g/algol68g-3.5.7.ebuild index 6689c5616025..6689c5616025 100644 --- a/dev-lang/algol68g/algol68g-3.5.6.ebuild +++ b/dev-lang/algol68g/algol68g-3.5.7.ebuild diff --git a/dev-lang/icon/Manifest b/dev-lang/icon/Manifest index 566ef54709f4..88befa411bb3 100644 --- a/dev-lang/icon/Manifest +++ b/dev-lang/icon/Manifest @@ -3,5 +3,5 @@ DIST icon-9.5.21b.tar.gz 3138053 BLAKE2B dbd507e28d51458b4e7fcc47088e8e8a4b8e1ef DIST icon-9.5.22e.tar.gz 3088775 BLAKE2B 0f0019f4f4bc0ed695bcb99d927c57e1fe041047d2b2e74590d23b4cb032aa4d459f916e3571a294e6d98d68be16bc55828337320173abfb5220fc4470d54903 SHA512 2a718999e7fc3f1cc2ad745215a06fecb5865f890ff83e8e61c8408df0bec2dea0c3123ab1edc0c3a9ec3cd415ca0fd116c5ff93c8ce0797a5f2abf5ff79003c EBUILD icon-9.5.20i.ebuild 3387 BLAKE2B 1ac99a6a2f2307d2583fadc39dface52d3b48672c2b59f30c1bd9ca98959765c09cae6245bf5e12862f0772947713e4182dff1b8476d2cda37bdc9505c1fba4a SHA512 f75a53c23978ef8fae2815d85e7730def3ae87b60ecf79ee83c05e31b40e81f0586aa65a2f2394e0af983025324eba3797165c9b7b636db95e85b1f39b8dce31 EBUILD icon-9.5.21b.ebuild 3393 BLAKE2B b8b037e2203c4a0d683adc328f9536ae05ad5ec7fa917dc1099bd4f3d2b7846ffe8d93ccf0b9bfce21ed6cfb7f31059750eb41f17ca28f44e62bca637e6fc493 SHA512 09164631bc27b6b83ce3aa381775ed689b7422ee87c4fad457e85154f89aaa0094ae6ecc88a7b84a6ac26009ad677bb39819ba366b64e0227a22c94510c577d3 -EBUILD icon-9.5.22e.ebuild 3398 BLAKE2B 49ba36fb13a51850beb6043c6758048758a316ad76ad6b43d5a21c8d0663ba3bd23add64af497f1eedbae93710001b83c3e09923b06f573f32fa933ac64b5bbd SHA512 2d6d0b08fe0c74ab17eec8fd2ba4d7fcf76bbd3a92a75253674c8c47fa5838d656872a537434b06bd2f59ac8442a122853c296aba2e032d34c4084dd0f8c71d3 +EBUILD icon-9.5.22e.ebuild 3397 BLAKE2B 25ff51b1242eb781d312abe786d82b891213a2abe96695cf1ecf44a9af146899bc34b17d04c6d993df0076defbd273881cb8ae304ab455f9d6bbcac2225fd390 SHA512 99d8d138ff3a4f4188a79cb45802731b7e4eaaf8230eb8a3d33928be4d4de825a1a75624d52b7e750a6e9970830679c71ea3d64e6ff5f799bf3fa70d3190eb0d MISC metadata.xml 410 BLAKE2B 5f65752284d58a7678eb4e338e2d4c03e9e098dd8cbd28aeb7a0276bebe2a925cb4b00325ace7edad24c94e33664c1aafda84f3f4348e57bd02a7b655f7a29ac SHA512 d05b0eaffd002eeb0e9088d43847304bd1346cf4da75c801e3663518a3fbac77bba1b2fed04ac422bedfe1220109f00d1b3809d04a0e7edd4c418088dd010d89 diff --git a/dev-lang/icon/icon-9.5.22e.ebuild b/dev-lang/icon/icon-9.5.22e.ebuild index b48a8a78dac1..12b81e30b19e 100644 --- a/dev-lang/icon/icon-9.5.22e.ebuild +++ b/dev-lang/icon/icon-9.5.22e.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/gtownsend/icon/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="public-domain HPND" SLOT="0" -KEYWORDS="~alpha amd64 ~hppa ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +KEYWORDS="~alpha amd64 ~hppa ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" IUSE="X" S="${WORKDIR}/icon-${PV}" diff --git a/dev-lang/ocaml/Manifest b/dev-lang/ocaml/Manifest index 1f51a25c7266..b61968a40a25 100644 --- a/dev-lang/ocaml/Manifest +++ b/dev-lang/ocaml/Manifest @@ -20,6 +20,6 @@ EBUILD ocaml-4.11.2-r2.ebuild 2590 BLAKE2B 37ce14549ad68e0d30c9326ed568d921cd3f7 EBUILD ocaml-4.12.1.ebuild 2518 BLAKE2B 2ff12f9411da66ba34171a3b925fedc3c56d8ade80de43f5bd0c569ec9bc4e414dda5f967a3abb945c09e04c5f32ec185d2b92cf2293cea06ba0ed87a4de513e SHA512 cedae5738804ad3336937f26e5130691f8982393e803a99521c98c08e407b2054e18a51e880e261f107f6116f23b2ea97194aa3e4954602f0f14d9b1eb059205 EBUILD ocaml-4.13.1.ebuild 2481 BLAKE2B 3fb04e2dd03dbabf807ba0620ed494be28b9c4f465f4e52eafde03f3e3e0db6876c7cb73570f3048e6ef6d6f1f4b90447f622d4bb29d9fcbd743ce461c6bb245 SHA512 ea093161ff02e609d4b063b38fa8e29d2dbb471f61c40b1fda63cb733dd5175744449d9b2b1edf758d15adfc0359dfd2cac26042db000ace742edc0eab22eac8 EBUILD ocaml-4.14.1.ebuild 2440 BLAKE2B ea1cb9fba221ff93a3a4f5ae49db23e0b32aaae0c94ae16ebe075564548da2784370a8da70e4e1e332ae95e233c6c0ba034cd7e4a955c65807fe649f043119ad SHA512 55f97a54904be60ced8ff3a15301e8cd338a19722da39dc76da8a5dc3a25baba32497003ac37bb6cf2e20ac9d490f8596738e03304187c011c7a561b104da2d0 -EBUILD ocaml-4.14.2.ebuild 2561 BLAKE2B 2e8110939ae0824d88d65ae71161047af85bd5b013d9f6de0e08e41618bed231f8386deef2adc43647bf337d3a6e966e5f621f922d15bec473c691d153e65444 SHA512 4da47b6dfba55c53ec9707af8598db2664b82df214d538a27943a52c7c24e35707bc16b62c3aef30548aa1c8270d12ff98fa03053bbc8511b1d1d27c202e1dc8 +EBUILD ocaml-4.14.2.ebuild 2592 BLAKE2B 93442bf0377e0592086fe55960983bf19eccbc6c112a4ee6811845647f690a958ebdd8b270c1d2d3db1711a67911d534ef2a10c29c76ff86eda8d29b943e1ef5 SHA512 a662cc5194937b982ef4598259b8d8836ac2dffcbf6e904242956dea6e6b500667f1b178df855e36592eebd44ad87764841c66c4ef4119283e4bc4a5352997b4 EBUILD ocaml-5.2.0.ebuild 2627 BLAKE2B 4dc6c29849839927544941c263ff33b0d24e3617a466a3ef4cf78fe6ae949fb650da9c9cdcc011adf426ff54f0e837482f969f8ade9b0642bab5940196b6e1e6 SHA512 31fc07c3cca11ca8d53d27ffca92b636bea2c112a2a73d437cf57bdfa175021f61db9d656bca5058c0d86c77457f36e012e6aaf233a9de2b6bd9f22d08f02177 MISC metadata.xml 671 BLAKE2B 452ea340c8abacedbdb20a344cffa9b91db2251e0174db596e4f96bf2b1c9d308ceb035e0870e738a15c313003fcbf39bb91c5f68b40a185e5e08e3ea7042616 SHA512 1d8248e2b05b145c804cc9cce6aa617bd6466f26326033cee06ed27ceb93ebc88b62f3badbfe13092fbaa89c3a71087491b88c4fc094da8624ab668cdc73b383 diff --git a/dev-lang/ocaml/ocaml-4.14.2.ebuild b/dev-lang/ocaml/ocaml-4.14.2.ebuild index 8e7f57e9ba57..2658c9aac397 100644 --- a/dev-lang/ocaml/ocaml-4.14.2.ebuild +++ b/dev-lang/ocaml/ocaml-4.14.2.ebuild @@ -20,7 +20,7 @@ BDEPEND="${RDEPEND} PDEPEND="emacs? ( app-emacs/ocaml-mode ) xemacs? ( app-xemacs/ocaml )" -QA_FLAGS_IGNORED='/usr/lib.*/ocaml/bigarray.cmxs' +QA_FLAGS_IGNORED='/usr/lib.*/ocaml/.*.cmxs /usr/lib.*/ocaml/libasmrun_shared.so' src_prepare() { default diff --git a/dev-lang/swi-prolog/Manifest b/dev-lang/swi-prolog/Manifest index bbd7e8f1dfea..24a564a0e574 100644 --- a/dev-lang/swi-prolog/Manifest +++ b/dev-lang/swi-prolog/Manifest @@ -1,4 +1,6 @@ AUX swi-prolog-9.1.2-configure-clang16.patch 2605 BLAKE2B c0e547c31c5d613659d92cebd66a1a67ce12fe97f8609116eccc294e5515170521a7c266a88655040da75e126b7314ea7a05f7d35e5d30e010e8df0998fe6945 SHA512 6863b15a7e9aa313ef06a98a6a3a8e4a5c494684c212ba8995a7995e07d1679b7d8b5b0a271209344cd6a858d4a65e462083e9e450396017148c0ee220c89fc0 DIST swipl-9.1.2.tar.gz 11827220 BLAKE2B e4bf40d1b4d0c48af5e630728208ca849b9a3d0f4129c827b98cd8d666b934218bbbee4c357b67cdd72b9e15046b70a873ffd9e31eaacac620a9aba6a7aec7fd SHA512 d47375c21ed33a2822b9df294a709141fc2e1f0aa61a297bd51a504f6f7859a1deb0ea6705d30b6f8198c71f440b176c7259bd83bff1ac5393ced77fdfbf564a +DIST swipl-9.3.9.tar.gz 12302913 BLAKE2B fb657c58673a250a5a0563a2efd164b491eba15402c4442a0751f2fd3dd176337fc3f8eac828014c8341b852b6546a56c755fa0488daf211329bc8ff02fb67a5 SHA512 6e7247871b6379801b52df7da22d808dd823bc3f42ec1212bd3c3f61d0363dc05135ab389ea08143b99a8b3b356bfed52a749a32a45bb434d8aa6e3514c521b9 EBUILD swi-prolog-9.1.2-r1.ebuild 4047 BLAKE2B c1417db7aff1db4cb7116e2666044f70f5541c62dd8efd4e36bb9511fe90b8458a63121faf4754e74ded44a8f9cf606539d6c4a197d36f1296dbb5414231f9fc SHA512 8e80345d293a98d55c80062a77931014f268e43be371c9136adb7a44aeff027d4f143f3fadf976332805403ba3424d204e998e55b2b88069e1522cb80df29f31 +EBUILD swi-prolog-9.3.9.ebuild 4102 BLAKE2B bdbe82060df37289c1187cdccad031c9e7ec602c9082364b5db054a1bdff3a75e17b4ae04c03705ef0436a441918e3517adc8bf99e32a0063801dbeb86af0eec SHA512 dd26cce63ebcea70dd6c51d2e193691ca19396c0b53558af9c74950a6dcbe3deed38756caf585220cf02396b8efdf186673cbcef6d8c6a8107daf834ef03e812 MISC metadata.xml 739 BLAKE2B d9bdefa945afd5752828f5e0e4edcbc15bf7db4bd1c68133c5011cf2b416a1511be1f58a2fd69cc55b0f4ee68efa8c7ec65200e2714f0381a02b75096dc31460 SHA512 7ea63958dd18ad3c8b9fa9a3511706f63e00c21249e39fcb47de57d539bffbebf640a9c48b1764f89caacedb267e24dea1f94cf792a66ba6bf9c5d10460c2f75 diff --git a/dev-lang/swi-prolog/swi-prolog-9.3.9.ebuild b/dev-lang/swi-prolog/swi-prolog-9.3.9.ebuild new file mode 100644 index 000000000000..f2edfed3417b --- /dev/null +++ b/dev-lang/swi-prolog/swi-prolog-9.3.9.ebuild @@ -0,0 +1,184 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="swipl-${PV}" +PATCHSET_VER="0" + +inherit cmake desktop flag-o-matic java-pkg-opt-2 toolchain-funcs xdg + +DESCRIPTION="Versatile implementation of the Prolog programming language" +HOMEPAGE="https://www.swi-prolog.org/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/SWI-Prolog/swipl-devel.git" +else + SRC_URI="https://www.swi-prolog.org/download/devel/src/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + + KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="X archive berkdb +cli debug doc +gmp gui +ipc java minimal odbc pcre pgo qt6 ssl test yaml" +RESTRICT="!test? ( test )" + +# See cmake/PackageSelection.cmake and cmake/DocDepends.cmake +REQUIRED_USE=" + doc? ( archive ) + minimal? ( !archive !doc !ipc !ssl !test ) +" + +COMMON_DEPEND=" + sys-libs/ncurses:= + sys-libs/zlib:= + virtual/libcrypt:= + X? ( + media-libs/freetype:2 + media-libs/fontconfig:1.0 + media-libs/libjpeg-turbo:= + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXinerama + x11-libs/libXpm + x11-libs/libXt + ) + archive? ( app-arch/libarchive:= ) + berkdb? ( >=sys-libs/db-4:= ) + cli? ( + dev-libs/libedit + sys-libs/readline:= + ) + gmp? ( dev-libs/gmp:0= ) + gui? ( + !qt6? ( + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + qt6? ( dev-qt/qtbase:6[gui,widgets] ) + ) + !minimal? ( dev-libs/ossp-uuid ) + odbc? ( dev-db/unixODBC ) + pcre? ( dev-libs/libpcre ) + ssl? ( dev-libs/openssl:0= ) + yaml? ( dev-libs/libyaml ) +" +RDEPEND=" + ${COMMON_DEPEND} + java? ( >=virtual/jre-1.8:* ) +" +DEPEND=" + ${COMMON_DEPEND} + X? ( x11-base/xorg-proto ) + java? ( + >=virtual/jdk-1.8:* + test? ( dev-java/junit:4 ) + ) +" +BDEPEND=" + virtual/pkgconfig +" + +pkg_setup() { + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + if [[ -d "${WORKDIR}"/${PV} ]] ; then + eapply "${WORKDIR}"/${PV} + fi + + sed \ + -e "s|\(SWIPL_INSTALL_PREFIX\) lib/.*)|\1 $(get_libdir)/swipl)|" \ + -e "s|\(SWIPL_INSTALL_CMAKE_CONFIG_DIR\) lib/|\1 $(get_libdir)/|" \ + -i CMakeLists.txt || die + + sed "s/ -Werror//g" \ + -i cmake/GCCBuiltins.cmake \ + -i cmake/Config.cmake \ + -i packages/ssl/CMakeLists.txt || die + + local ncurses_lib_flags=$($(tc-getPKG_CONFIG) --libs ncurses) + sed -i "/project(SWI-Prolog)/a set(CMAKE_REQUIRED_LIBRARIES \${CMAKE_REQUIRED_LIBRARIES} ${ncurses_lib_flags})" CMakeLists.txt || die + sed -i "s:\${CURSES_LIBRARIES}:${ncurses_lib_flags}:" src/CMakeLists.txt || die + + java-pkg-opt-2_src_prepare + cmake_src_prepare +} + +src_configure() { + # Lots of UB, see https://gcc.gnu.org/PR113521 + filter-lto + append-flags -fno-strict-aliasing + use debug && append-flags -DO_DEBUG + + if use pgo; then + CMAKE_BUILD_TYPE="PGO" + append-flags -Wno-error=coverage-mismatch + fi + + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DINSTALL_DOCUMENTATION=$(usex doc) + -DSWIPL_INSTALL_PREFIX=$(get_libdir)/swipl + -DSWIPL_PACKAGES_ARCHIVE=$(usex archive) + -DSWIPL_PACKAGES_BASIC=$(usex !minimal) + -DSWIPL_PACKAGES_BDB=$(usex berkdb) + -DSWIPL_PACKAGES_JAVA=$(usex java) + -DSWIPL_PACKAGES_ODBC=$(usex odbc) + -DSWIPL_PACKAGES_PCRE=$(usex pcre) + -DSWIPL_PACKAGES_SSL=$(usex ssl) + -DSWIPL_PACKAGES_TERM=$(usex cli) + -DSWIPL_PACKAGES_TIPC=$(usex ipc) + -DSWIPL_PACKAGES_X=$(usex X) + -DSWIPL_PACKAGES_YAML=$(usex yaml) + -DUSE_GMP=$(usex gmp) + -DUSE_TCMALLOC=OFF + ) + + if use gui; then + mycmakeargs+=( + -DSWIPL_PACKAGES_QT=yes + $(cmake_use_find_package qt6 Qt6) + ) + else + mycmakeargs+=( -DSWIPL_PACKAGES_QT=no ) + fi + + if use test && use java; then + mycmakeargs+=( -DJUNIT_JAR="${ESYSROOT}"/usr/share/junit-4/lib/junit.jar ) + fi + + export XDG_CONFIG_DIRS="${HOME}" + export XDG_DATA_DIRS="${HOME}" + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use gui; then + doicon "${S}"/snap/gui/swipl.png + make_desktop_entry swipl-win "SWI-Prolog" swipl "Development" + fi +} + +pkg_preinst() { + java-pkg-opt-2_pkg_preinst + use gui && xdg_pkg_preinst +} + +pkg_postinst() { + use gui && xdg_pkg_postinst +} + +pkg_postrm() { + use gui && xdg_pkg_postrm +} |