commit: 0b9ce841e0a49b15af6128db5f4fb4b7764a91ce Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sun May 26 21:28:19 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sun May 26 21:36:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b9ce841
dev-lang/smlnj: bump to 110.99.5 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-lang/smlnj/Manifest | 26 ++++++ dev-lang/smlnj/smlnj-110.99.5.ebuild | 153 +++++++++++++++++++++++++++++++++++ 2 files changed, 179 insertions(+) diff --git a/dev-lang/smlnj/Manifest b/dev-lang/smlnj/Manifest index 095f89ace7a8..ad55f5d0c13f 100644 --- a/dev-lang/smlnj/Manifest +++ b/dev-lang/smlnj/Manifest @@ -24,3 +24,29 @@ DIST smlnj-110.99.4-smlnj-c.tgz 10589 BLAKE2B df85102595bfdb492ee1a8967f4fc322b7 DIST smlnj-110.99.4-smlnj-lib.tgz 645485 BLAKE2B a1adc247c82dde766a34026a2cef77b4b89cc80f52b4a949173910d30aae2a8a28dc716691c7248d145791c81c27aae75f9b5a91cdcdd3397f1f944255c50c60 SHA512 ac32ed428de0512534445991ae02755170d61dfaa3d4ae5234b437edb7ed6cf9e72e94bfe8edbfd40e5bc7f7a18a97d90a42f5b4f8cbfac2b66cff1b8b6318fc DIST smlnj-110.99.4-system.tgz 282951 BLAKE2B 61ecb598b2daeefcd62ff8214579ecf30434368fb3b3d75edc2b701170ed9719b9f1bc8114c440ab3582329e5e965b3d1fc4287be0226707766bfc796db49fcf SHA512 35b5c2c1e27745c4f366d655768cbb5fd08953f58906751d49e6a4b5d19dd13bb0e1003e7dac5990dc121c81fc3ecab242a367ef43a02a2728ff3de9d2f0ad1b DIST smlnj-110.99.4-trace-debug-profile.tgz 3891 BLAKE2B 81cec5f57efc4345a287b5a0b5d93ee96271c2494feb06df3c4583bf23e6079322e9f93e0092469a233954ab145e7e6d56b821bf8bffb85c8d92338ad0fd7163 SHA512 db8c147d65b6211fdff71171a2b517726502e742c7ae48e4bb326decaaeba8ab5abfefd192cc7381182dc266d26a81d2792635821256c7ed7ff7652e9f6fbd41 +DIST smlnj-110.99.5-MLRISC.tgz 1457434 BLAKE2B 385460ebe010667dc4b22d13b4dce64a766c656ab6182b5b347e4612c5f3e428e3788f8ca3cfb1ba50f04fe86acfa7ce98ea5ee37631b179bf0c3d955548b86f SHA512 d134cd9f6f0ef49cabbbed15b390a1f4102271c5a65376afe96eb93ff196f36a591c6c252a9068b74c78158ebfbbc8e89e298f46d764701d38d4ea9bbaa7f22c +DIST smlnj-110.99.5-asdl.tgz 241656 BLAKE2B 60900c26da035690a2b41f67ba54edb5952f30e1455c62c7a12d57986b24fb10714955ee26eb5c0e037214190e07ef246e309e9e9527dd9837d184fa0ac9d5ce SHA512 3f829f057b5e33b574a79e6efdb5a0d595a462d6d6f95036d44924e6872898b353a21ae2d650bf42589d4bb444c77fb0d7a50857ca7514fa4d229be3ed305691 +DIST smlnj-110.99.5-boot.amd64-unix.tgz 6000465 BLAKE2B 56d84401739540bde737ef35814ed73ec6381b88b29a93503e242fd60c1bb421cd30d40439cd9e334e8ea70f18e3e25f2150c0a5cc143ec649f54bf65803abe4 SHA512 aa2ea0d615d9e90dedab6b9c915e642bb6ebb4189e1bea0214c47b057208a3a2a7609bdb59126c8331ecd49d3c1717b6db2ab18c2cca362cc5ff92dd51df539e +DIST smlnj-110.99.5-boot.ppc-unix.tgz 5879832 BLAKE2B 552c04efae3f32b6871c439eb1d5f36deb8bc06d154b3e44c2cf4bfcf264c108ddb6ea4f7be4bbf2165a197c0e2023e2d841255a601ef0eb99363925728921cb SHA512 ca9017bbe6f9ced187ca5a35c62aeb55f64d49cab660b2dc78122c253d91b2a1617d6446db63527e579eb1527c32a3256b3d9a4edfb7b2c7c4f4d7b95b060b28 +DIST smlnj-110.99.5-boot.sparc-unix.tgz 6019691 BLAKE2B 4eca69f41a567f012ae94fef2c158f82380e9e7d4acddffd3e4692aa3c98e08bf321c2acf9f955bd47e069e93c5f0b2c4813396b445259daf0313033a37215fc SHA512 84e0d15d6b351d2deea0385ef46e76b1cc9c813377d7026bdbc65bb4d754d78b1d66d620337a6e2443e16c1586af70e6f26aa622d3f5ff1fe6878b9091528748 +DIST smlnj-110.99.5-boot.x86-unix.tgz 5957165 BLAKE2B 162ffc78cefc46d7953b03d567aede86f80e55222467f3ff54007af1d503052a58ea2df43e20f85c1d17799e10367d7291abf2798505de4daedfdabd48e33369 SHA512 48f5aded7422f2d587e8cfa43161b18c71d4d57219a366a04162d16145ce4ae3ef7f168a65de635e770d510ba326b3a2a171d9a3a9fda9a8b587e057d114c3d3 +DIST smlnj-110.99.5-ckit.tgz 200816 BLAKE2B 19baf874be066c677c88b316659b3350a0343c45faa4a61704e93a1ba940bf2a0be7aa915ef06fc49b8b2be35bdb3ee1e69ce7e2bf75f8f713c24654a9142b4d SHA512 e276c665fe732b33e3bb2d564bcd321e51613ab660da02c808740b8dc362c19ff2eeca7f18c4ebdd618fcccb5c149c1e514ec96fdeb3768045d1a6689256625c +DIST smlnj-110.99.5-cm.tgz 220329 BLAKE2B 30bc6a5ab4a5009cb63dbb2cc87196d94c5c7c05647607fca5cff8baf06a66b6cd48191d7c2d560ab1b3e802f3a7c0e3374250efdda0b8fc7c0ec66dc1b83148 SHA512 9fc83a637868023fbad0e955a43d36db879538a6515707068b70b50ef957f1602065f2af0603fec47488be1c7e77b1b080ca139bc7d363da30de91938a96f86a +DIST smlnj-110.99.5-cml.tgz 103975 BLAKE2B 5eb737d7aa39c393f613464fbd655741b17d53953a3cf005bb7b595e0ae166657cdebaf7a2c47c16ea23ea13d2f7a4d9b043e9634cafb001ab1661122c71c429 SHA512 d6e789ebfae42724e70863e2bb5b315675a16254f3ec95d9dc7cc0a3f1738c6ae1333eb027fb0c63053df452d3f9faf31cda0f8ef76fb0984f738e466411a151 +DIST smlnj-110.99.5-compiler.tgz 888050 BLAKE2B 8d7ee627207fd9ed3464efa5cd35db048a08d66858e81092a877b64f0188e4f0397598e2307e338ff9fe4f030293f7e70f22005eca74c132fbd8d151e9eb19ee SHA512 f37ec10a68ce42c60821c1258cae65e93dac0fbfc5cbd9bf37de3dae61b2df065e737faf16504d8eda9e258c4520d3805c7b265457e6f60302975e5142d3c967 +DIST smlnj-110.99.5-config.tgz 23303 BLAKE2B 1f1f70da9d9d45d6ebd0681f281e46604568e0ac039d1e00bebc98dbd814236fd2940a7dfe77f41d7f6bddabef00d1b25e9de1c010d731770ed3f73d30f03ead SHA512 03457ce016c603ed23aaf310dc3c9231b267a1abb6510515c999bbec6cb25b7c3e6ab3e79a223ae835444c10b5635b2d54971ba1987f42dc308dc555b72f460e +DIST smlnj-110.99.5-doc.tgz 2529773 BLAKE2B d4d3addc5f614b53703445bb735df38031433a731a0d10a9dc9db39e66b8a5ce5355c08805dfde7ee11525746076fa7fbd8e907705a37809dc8feff5284c7e57 SHA512 4c2d90ce6e3dd0a561bb4a355963471fd2c2226825497b6dafd19dcfb53aef34c66eb116beb8f6d51bd911884fb642ab602175f42d54e0906a875ae8619c075b +DIST smlnj-110.99.5-eXene.tgz 714471 BLAKE2B e66ba11610d4d104b2ae8b53da23782de94a58bcb84ef8df90d049e0448fd9a5e0e014d76c67e4e831059180afed52053582682204320cfdd9fc57c41b6f81d0 SHA512 ba2ab853949c6d1f616326e35b2ec30aae0281bca5697c36fcc308ffdfc44dddfd745dc342be2c2f43e1cd4aa0d8a83508c404d357802b679af45b86a627db6e +DIST smlnj-110.99.5-heap2asm.tgz 1763 BLAKE2B 23a1dea3f408828eb68b2807a2bac06b3a47ecf0273f8450d6f75aff5b891a96cf13d17b963e65ca04cf1c3eaf553eb7b3ae0c90c110c5898bb9d8f305c331d8 SHA512 522b9c4f078410df135ec3a0f66f4abad0275a8b1dac9544951edb18ef3c12d2db375e3bd9c2fac291c1b276c5a4ae060b392899e30fd02033606278b87790e1 +DIST smlnj-110.99.5-ml-burg.tgz 40293 BLAKE2B a9d02176f7e60bac80704d0284838bfcc24b58a1a5bbb67d86e6a1a1f8c66d9b529356d250331fefd59476fbeffc5ad603a5016a2f1433f5487eafb42c18cd98 SHA512 45e8fe097d23004d5cb97553191271506bf7a6ba8152bf5d961e378c9f503e085288e6d93aeeb486c045bd0c7cefd493eb0a2f263ea3e0ee1b814deabf4db6e3 +DIST smlnj-110.99.5-ml-lex.tgz 28040 BLAKE2B 1920b9edc631634f756efa4d4281684729f518bd90a99917a98c979dfd0fcfd4e53d726f3ca76e2f016d0b927d55e67d18e654ecbac6708f83eecade090d7f1e SHA512 0e9ade2a6703a08ea9231c659acf1acab89c6d911bb73143b967512c7f0f195eda121239635c3dab492bbf90bd95afc2ec333928f1b7d1ba7c2bd794fa55510b +DIST smlnj-110.99.5-ml-lpt.tgz 267318 BLAKE2B 78c89ad24e3175f55453e5061f33441d974f011e921ed7ac3e968f7fa21137d93e8f106d680a7aaa6695fc7d954645a04026863d8453e662254864e05263b241 SHA512 17d2c79b80311e27a4260797a17564d5334bd91d23da6ba0e5c9b07475d51d9e896d5823ce8134ee6d621779ebc222c558f7d124a546dfcb1effe18b12240119 +DIST smlnj-110.99.5-ml-yacc.tgz 101379 BLAKE2B ebdd8498407e4b9ada7810d631b20acee44eab8029662bbe265477029332ad1937e095b6aa108178ff27a276e292e7d103c6022ab40e0c0b56bd6a12717c53a8 SHA512 984b3f74a35167ac85aa101279dd3ee6188516e27f7cb40b9be175a29419328a76e6f0812a18c97ab0fca4826531cbd0e43af0da41bebc73448e671480b7eb60 +DIST smlnj-110.99.5-nlffi.tgz 74701 BLAKE2B b27391f67f72c093d45f73c80e803b348e5a65f5a22e0a6a546c30fd05e4c49fe746649788a0da760194f9ace7ae66a166c0acf7618111aa9beeb276b933ca88 SHA512 492621b2725772af7af3cc8a0b96cc274083c010df96b9efa44ee5a0bf2965cb68bcd6415f9ba91bc1f3e64041cecf71e6298e5c66a7ea441842fdbef4416d01 +DIST smlnj-110.99.5-old-basis.tgz 1365 BLAKE2B 4b5b97131255976ee32b62a236f7cb0180b680832afe405c7286e1a501da25d2269deb5361135a90d5d0e51dad641ee39f90fa961b1664e49eb33dccf2cb8574 SHA512 1b0622f053ab83cd50516e9a6cbbb2da6b32e177e993a998c9fc1b73cb897411629f542260c38d9f4764e07ab0d5e79821c506a0e7bd9bb02bbb84ebe95e888a +DIST smlnj-110.99.5-pgraph.tgz 5367 BLAKE2B 77a94c720c06977c7906656b063ca382ec7313d6ca3318d6b839b8305281b36553310df384c07ebd0055639cc7a5d762796e534bec97f9fed33bf8b909ad5e26 SHA512 811f098a67ded93d14e05c0e805ed6d8d508635c919d3ed6b2b844f1180ac44b25d7c81d911aaec85d917e8817f2ceba654585523039f899f0ac6c4f4a71f57a +DIST smlnj-110.99.5-runtime.tgz 335029 BLAKE2B 5473aa7a40589ecd7de58f799623911fbd3bc02adb76ac28123d215d36bb319ba60899cac913555d55c24156a4ec6fd174d97a63e906e81b3b7fd4dc565d20fb SHA512 9a026b4a4d0c4d840d4e3a5d2db06484974315f7584c78f207eb474b6c4b188ce97cef907ff58280f924113ac0a2e6e38c13ce591631be814b072622315398dd +DIST smlnj-110.99.5-smlnj-c.tgz 10594 BLAKE2B 42b2e852a2ca16a04a1f406034aff66c83f9d1239eb4991489cce9f786d7bb15e0aae073262509def7dd0ab449c836a87d2a7460cfffdfe51d2b9324022a0bf3 SHA512 fd7ae015f94445ad7017a7849de028820ea02bf7343c0ad4231caedb2da2029a747c4b083dbbd424550a4feccac97b293627332b043f4f7e2f2d494729fae8e5 +DIST smlnj-110.99.5-smlnj-lib.tgz 658010 BLAKE2B d0f03e38116aa14c7d376facb855fd3b56778c601bc0f2bea21e1793d1a3d9a496da602f1f092fa2402eea411fac995f676cb30b1819e9a15832a60eef97a998 SHA512 0c643e3ab3f6ca5f3a483666042c3b7b835e73969ca3d7602359d8229d5291bd5b90fbc1e66a876a697a8d82fab003edebe61c18c0c0a79a7a987f430845c615 +DIST smlnj-110.99.5-system.tgz 295177 BLAKE2B cb6648d514754ea16650170dda240b2f318e326d1c6cb7a185c9f9e1a33ad32c5c71902ceda09be7a99d4610b3367f8ec590817f3b7d331d7c2b9ffa9cf5ae84 SHA512 038c233eae021293dd83cdaeee5e5d0a78259016684e74183a4f6defca4b72992158e1557c1195f8f1be4c4b5e6a6daf5bdc461eed5b1deabc75f51a8e9480c3 +DIST smlnj-110.99.5-trace-debug-profile.tgz 3892 BLAKE2B 48a4130428e48a46b1d33ae2d7d76b2e3dd564d186ae388b127ab5f72aa8a6d4d60eed5b2b03f9055ad2ac963aca09606a84c2f07aad871c83f1c4416081e887 SHA512 ca55979fccaaaf9a6668f459bbecff959b29d5e54e4c69c851fe7b9361b09e830d1133dfa821eece92610f5ed7faa3122c8c47fa2c87f5b9bbd807ec468f5a10 diff --git a/dev-lang/smlnj/smlnj-110.99.5.ebuild b/dev-lang/smlnj/smlnj-110.99.5.ebuild new file mode 100644 index 000000000000..49b93fb2e8fa --- /dev/null +++ b/dev-lang/smlnj/smlnj-110.99.5.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Standard ML of New Jersey compiler and libraries" +HOMEPAGE="http://www.smlnj.org" + +BASE_URI="http://smlnj.cs.uchicago.edu/dist/working/${PV}" + +SRC_FILES=" +doc.tgz + +config.tgz + +asdl.tgz +cm.tgz +compiler.tgz +runtime.tgz +system.tgz +MLRISC.tgz +smlnj-lib.tgz +old-basis.tgz + +ckit.tgz +nlffi.tgz + +cml.tgz +eXene.tgz + +ml-lpt.tgz +ml-lex.tgz +ml-yacc.tgz +ml-burg.tgz + +pgraph.tgz +trace-debug-profile.tgz + +heap2asm.tgz + +smlnj-c.tgz +" + +SRC_URI=" + amd64? ( ${BASE_URI}/boot.amd64-unix.tgz -> ${P}-boot.amd64-unix.tgz ) + ppc? ( ${BASE_URI}/boot.ppc-unix.tgz -> ${P}-boot.ppc-unix.tgz ) + sparc? ( ${BASE_URI}/boot.sparc-unix.tgz -> ${P}-boot.sparc-unix.tgz ) + x86? ( ${BASE_URI}/boot.x86-unix.tgz -> ${P}-boot.x86-unix.tgz ) +" + +for file in ${SRC_FILES} ; do + SRC_URI+=" ${BASE_URI}/${file} -> ${P}-${file} " +done + +S="${WORKDIR}" + +LICENSE="BSD" +SLOT="0" + +# sparc support should be there but is untested +KEYWORDS="~amd64 ~ppc ~x86" + +src_unpack() { + mkdir -p "${S}" || die + local file + for file in ${A} ; do + if [[ ${file} != ${P}-config.tgz ]] ; then + cp "${DISTDIR}/${file}" "${S}/${file#${P}-}" || die + fi + done + + # make sure we don't use the internet to download anything + unpack ${P}-config.tgz + rm config/*.bat || die + echo SRCARCHIVEURL=\"file:/${S}\" > "${S}"/config/srcarchiveurl + + mkdir base || die # without this unpacking runtime will fail + ./config/unpack "${S}" runtime || die + + # Unpack asdl to fix autoconf linker check + unpack "${S}"/asdl.tgz +} + +src_prepare() { + default + + # respect CC et al. (bug 243886) + sed -e "/^AS/s|as|$(tc-getAS)|" \ + -e "/^CC/s|gcc|$(tc-getCC)|" \ + -e "/^CPP/s|gcc|$(tc-getCC)|" \ + -e "/^CFLAGS/{s|-O[0123s]|| ; s|=|= ${CFLAGS}|}" \ + -i base/runtime/objs/mk.* || die + sed -e "/^AS/s|as|$(tc-getAS)|" \ + -e "/^AR/s|ar|$(tc-getAR)|" \ + -e "/^CC/s|cc|$(tc-getCC)|" \ + -e "/^CPP/s|/lib/cpp|$(tc-getCPP)|" \ + -e "/^RANLIB/s|ranlib|$(tc-getRANLIB)|" \ + -i base/runtime/objs/makefile || die + + sed -i "s|nm |$(tc-getNM) |g" config/chk-global-names.sh || die + sed -i "/^AC_PATH_PROG/s|\[ld\]|\[$(tc-getLD)\]|" asdl/configure.ac || die +} + +src_compile() { + local config_opts=( ) + use amd64 && config_opts+=( "-default 64" ) # force 64-bit build for amd64 + + SMLNJ_HOME="${S}" ./config/install.sh ${config_opts[@]} || + die "compilation failed" +} + +src_install() { + local DIR="/usr/$(get_libdir)/${PN}" + local i + + local file + for file in bin/{*,.*} ; do + [[ -f ${file} ]] && + sed -e "2iSMLNJ_HOME=${EPREFIX}/${DIR}" \ + -e "s|${WORKDIR}|${EPREFIX}/${DIR}|" \ + -i ${file} + done + + exeinto /usr/bin + newexe ./config/_heap2exec heap2exec + + exeinto "${DIR}/bin" + pushd bin || die + for i in {*,.*} ; do + [[ -f ${i} ]] && doexe ${i} + done + for i in ml-* sml ; do + dosym ../../${DIR}/bin/${i} /usr/bin/${i} + done + popd || die + + exeinto ${DIR}/bin/.run + pushd bin/.run || die + for i in run* ; do + doexe ${i} + done + popd || die + + insinto ${DIR}/bin/.heap + doins bin/.heap/* + + insinto ${DIR} + doins -r lib + doman doc/man/man*/*.* + dodoc -r doc/* +}