commit:     07ac091dcb4f72a52893ddd1faa07b754eca1d63
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 14 20:22:15 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Nov 14 23:40:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ac091d

dev-lang/smlnj: bump to 110.99.6.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/smlnj/Manifest                |  26 ++++++
 dev-lang/smlnj/smlnj-110.99.6.1.ebuild | 157 +++++++++++++++++++++++++++++++++
 2 files changed, 183 insertions(+)

diff --git a/dev-lang/smlnj/Manifest b/dev-lang/smlnj/Manifest
index ad55f5d0c13f..d7ff701ac8aa 100644
--- a/dev-lang/smlnj/Manifest
+++ b/dev-lang/smlnj/Manifest
@@ -50,3 +50,29 @@ DIST smlnj-110.99.5-smlnj-c.tgz 10594 BLAKE2B 
42b2e852a2ca16a04a1f406034aff66c83
 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
+DIST smlnj-110.99.6.1-MLRISC.tgz 1457420 BLAKE2B 
8870e2488023aa766d96506d4508c6a97af5fa623b00053d5dd8c9953cb693eb9154e1aab8261e214642376b817186be1f85bcde3cbddce9da6e18907df9118e
 SHA512 
02eac103280fbb7254f2c91bca74c0b2b678b261558a71457b34f40e6652a5cae4fee1f997d48ea6b10ccb6f39f65eaf670925e1aba6be1e5d374afe6511dd30
+DIST smlnj-110.99.6.1-asdl.tgz 241731 BLAKE2B 
de7bdcb3a471740d9667c69ff1856809afb98e5d844ad7d41410d523ed0aa920f92343e20bff4c61c6374b2c222e3f9cef82f210286b663293cef171894a7e59
 SHA512 
a7ae64d36a12fa736566d6fa2ceeacff8ccbf3cd318c8b90ad80c2db3e1c567a8eb2d40e31c6d37b9e8bbc9bca9b5730ab9b4b6eae9c0dde36b40900ff1ba7eb
+DIST smlnj-110.99.6.1-boot.amd64-unix.tgz 5994405 BLAKE2B 
37c94a6fb649af3e9387dc2fb6e20e0cc2ae1f4aa421dc2703c0772e8c666c705701a28d3cd94ef6b42b03e7053632d23f96e3c39735d491aba0869e3c9d3c8f
 SHA512 
238e669d5044fafe3b9636ec18e162266f0b6fd4cd7a397b9228b6a85e45822c4abf7d72cbed4e4b7cb92f2e2a34ca19575a2d08ec79f3e8ca2ff91ddade4e85
+DIST smlnj-110.99.6.1-boot.ppc-unix.tgz 5863277 BLAKE2B 
a858f2186a840f070c8b685ca2e1ecf2c586c4b8af1bd8ac47878189cb51e6f60a6d30917261e1e3c49e8160c85ec9bdb7d4ac3c8b38ad9cf638fc94e7d23990
 SHA512 
123be2205512cd432a8002369588d4b8cba9f6993cc78623938c69e089176ec296713c0e5b50a32e42e241a5752598c377fe27c1702a07523ff519004bb0cede
+DIST smlnj-110.99.6.1-boot.sparc-unix.tgz 6003561 BLAKE2B 
11e3847f2b7e0a88817ffb78316fc09e7e3a251929c695347c36df83570595edb6685292227db9d73e71c0b833bbaaa378ed559b0a1bce4e20b345b81718e1a1
 SHA512 
690d222a1218833f678831f1535287a0a3ab6be6c4c428b544386f52ebd05e698277e8f83e00838f7a64fcd37ac9be2f588832a8cc633186a01696251e77c611
+DIST smlnj-110.99.6.1-boot.x86-unix.tgz 5946836 BLAKE2B 
f2505ea07741e24db0fe48dc933cda2711ec545b54fb6d978408ff84bcdfd2151eb18eb1c78c542e38ea68eb150b320df388655e05a01ba1c6906648b9f7aab6
 SHA512 
a35361865ad787d4b5eb0b34af84810f7cef2afbdb215939e0147e5207593f784efa9281a8c2cdfaeb882b34ff8e6c74d2d8aa192551ba550beabd7dd4f67314
+DIST smlnj-110.99.6.1-ckit.tgz 200761 BLAKE2B 
dc09dc869d04c73e5972c45cf576f9b491ae3e56a563085f3b50add766e22029c8bbea3377f74841185f06e71e965d6616cabdb00e52383c254dd6d80f6e52f0
 SHA512 
e8ebabce99b03cd4d05eb4b75d455b765a860c19d2b20896595f936cb4e8dbbca353b4580d23601679ddba38c2c988d49e073415140315bbdef792406352dd34
+DIST smlnj-110.99.6.1-cm.tgz 220336 BLAKE2B 
49c1674de0c3cc718298bcfa66979485a893b302497dfeef4d990ae40d3e14cab114d89ed784076a5ecc3b5b31abfc5a207e0663c74590b68255331962b19a52
 SHA512 
287f32d0a7caf6476e39d34ee99cfe7ef83c873a8d5beab3eaefb28cbb90b5774032177cf26f9d851877597906fb190afcf035664ed254fb4f8ff8bb4d84f258
+DIST smlnj-110.99.6.1-cml.tgz 103972 BLAKE2B 
f32ecd3a22b50434a6812e11bf8edad2d17ca6b8585c7f9ecf76a341295c1be288815bcd301240a789a0f346f897444b0bb40c0b16518092dbc4c2371f505d34
 SHA512 
d4eb5d352abbd56a143f3d12aa7fef6e06098ea6d81fe1fe3dbbe5b5bc7158649b2675d315d68dcd939ab7659674d16e31116bee311dc49a5b6beabe11c9dcd3
+DIST smlnj-110.99.6.1-compiler.tgz 888655 BLAKE2B 
d559833962831ab6bc2bb04183c227ff455479195a9a15a346dc8ce9ca216968390a1514593343a9473bacff45ae0409128e3798627a1ba5013a300c460308a7
 SHA512 
24e8f224b8608ca480a1a45dc4ab727a7263347ff481a7951911f041e92343aa44d50c35bcb1be766a815cedf21c3dcf8333149132838de01198fdb091f99287
+DIST smlnj-110.99.6.1-config.tgz 23321 BLAKE2B 
78e2dec8f19956607b76509d81f41b7ff4f1ad9f135a10f7c352661e56933f3ff335643ea1a819e5025d8516db22e37b160ce6a9f40993172293ba0be7aa29f5
 SHA512 
9e6408aea829030f196d34121a3c4155f98705c347bbc44c1e6e44974bb19dd88146a6ab734d129488bf9a470a122e1b3c933bed61ed9bce77f296d3ebd433fb
+DIST smlnj-110.99.6.1-doc.tgz 2748425 BLAKE2B 
3abda6a42372abc6b2f94c4194712c28fe7186c338fc617e7afc8474fc427452a11911ceae9338883704620f028473353a3dea896aa31be68e7f2714c1f94c11
 SHA512 
20d293c8319da7448d03e815bb4a627a21091ea18bf1d987a8c6e7dee44cb522d9bff5a5969d35391d00db058a5ad2da58d742162697db634e30b0c558717d57
+DIST smlnj-110.99.6.1-eXene.tgz 714459 BLAKE2B 
13b61c30b435b5bf628ccad91f0a83c891d8829e230474a8dd8411cf2041fc8cf48bcdb45be4d08d4330b90f2896f330adc99c855d55fdfdd799fc93cf1b16a9
 SHA512 
02c96373217d94213174aaecbd505cbeef4a0956931b6a3f2ff9f218a9e41d8de5e575972b23fdac78e65b333a054c0b2d3ba7a096645ce2d09f6a9a7e6a0ee7
+DIST smlnj-110.99.6.1-heap2asm.tgz 1721 BLAKE2B 
757e3c121b234a8297a7620da6d56049fc392f802ef18a7aac425c42d806c4c836327312e12e32d0389a8d0259c2196d33841dce5b6258e4d5987a863e3bba82
 SHA512 
0c125d9f38ba61780d7b73cdb04c942e18f33cd319a282d121343dfb4cb60d31f1242767964230e0c6e16b73042672bdc44b70210974da72ecaa68d5cebafd26
+DIST smlnj-110.99.6.1-ml-burg.tgz 40296 BLAKE2B 
144965833581e2c277ff78bde59ee0d3b591be41ebb26cf5929f89c7895c9d3714a79256c85e0ae7e8f8a03eaf310b1a07e35010d2ae5fbf807c9b09d5646a18
 SHA512 
6437b8bdc91e09150186bc320b6c0fe4c76b659b113de494cbea82580d338598ba3a5b0e9699bb989d5ae098d83ecab18af561bcb3678d2fca9517d7de89e9fe
+DIST smlnj-110.99.6.1-ml-lex.tgz 28039 BLAKE2B 
004b5218022b5d1a6e2a8d8583bfdd83603b0d2f023cdc927ff903efc0f77f1d459ed307bed1e2890e9917b97921e77bb53cf003f5d01eb9d9ab1ac37fbc0e6d
 SHA512 
0eb085978744d6f2924532ad925a8b0ba7f3d733f12b457edc1da82e9758d2b04e74aadd5ae4667e972e8386784f4e50bcac7d6c4012a4ab7be65016dbd600a4
+DIST smlnj-110.99.6.1-ml-lpt.tgz 267376 BLAKE2B 
219ea9437f0ea478c1623fb563c15a5b66d3c19991a7b33027856b0a693b5f8710b05d2a6e843a0451920deaff4c580619636b973b329376a1d158f820eb8087
 SHA512 
e4f6d9aa4cd951a026c4dbee9cf4de79ca57fd61dabf8af5e07a7a498d46604b19e536d0789c59cae9b587c7985d0c9929029b4fd824fa9817dcbe376b95ac9b
+DIST smlnj-110.99.6.1-ml-yacc.tgz 101379 BLAKE2B 
f34b0a979416b29f9f7504be9a7a2f6774914f86627f7b20a67800792eab2e3c10c08e58b6d9fd8c00e8240ed19dce1a5f2610b2d4b2d874880a5ff900aa7b61
 SHA512 
9d024efa441c2bd0921f4245c2ee03054c017790afe040c8f7ff658b51930c51c8deac2c9d673517c288429d5baa7dc1fb18f7802519990f53f5c32f8afa8b0f
+DIST smlnj-110.99.6.1-nlffi.tgz 74692 BLAKE2B 
76c123b77109ad9f46d87c385825f5df5c3712053a9bdde63c52667415b7c21effccfa8b7287bd7ecae0f3167cceb0519244ea2e74dc91fa430a66a38757597d
 SHA512 
7fd55bebefca35fa68e6866239c7a6a760fa874d6a93fca4ee05f364db2c16fc552046e9aadbb41f66fc2eeccee523e145706bdfd06ce398a33e7e12f7788feb
+DIST smlnj-110.99.6.1-old-basis.tgz 1365 BLAKE2B 
3979b6a5c5fa5ceaaef471a9a0b0cc02d9fefea7bed1a1c98162788d1dea014488429a4ea198d98537047c835c81de8cc68d861832a1976d23d55d3a4fd7d542
 SHA512 
46377bc3a9a9c4a048b178b65e87693c0e175b0b911232599302c4b87ca0b9ca77cb437a6da935055684b2cbbc5db42a9c8393d9be7e39c59ae8555aae6617bb
+DIST smlnj-110.99.6.1-pgraph.tgz 5367 BLAKE2B 
5d28ced575017fadb407aa39edd08fa5941b27b6d44d6ca38ca25e29fe710321cba897ac365a617d2fe527df8e16b51b8a6362c8792ae21b98b520219be1cd6a
 SHA512 
8bfc9565f10746310824744f1d83c3ab9444ad1acb4e6ded3ef9bf72818cc28b75d2ec73ac88a8f67b671dc2677b73d3939bf5f334f0600e1d25045ee4211cff
+DIST smlnj-110.99.6.1-runtime.tgz 335071 BLAKE2B 
9a77826e242a9e51f737550b4599626b5c7e1f01f726e8d7ebd0446e2ea604fe8c189d0e35a2e5a7e77ec0800926871bca7cdcb5e27df34dc2d517cff1f6d62e
 SHA512 
0b2af16c5bc901312af0d094a96abc7577c5c573635f39ec0fe48813b02a2ecbd573546f5f87c0c22381d5920faf2083dd8ad704f4462836612d03df4ee25a30
+DIST smlnj-110.99.6.1-smlnj-c.tgz 10592 BLAKE2B 
cccf6af644b9156898ce631a963940d40e5a7e6dbe0f0343e6c7cba3b83e03687d5c0542bd9d9920e12e7418ce81074c52f7331fba4faf56acd04bad9d99c7d4
 SHA512 
9f043aa240c17591904e3871aa7e5bacd20e92ee60f89b5e9ccd8d9609c731473b538e7bc36952bd65ac78e8716141bca210c340a3f80f96cef87f7f7a76934e
+DIST smlnj-110.99.6.1-smlnj-lib.tgz 666400 BLAKE2B 
97da7fa5daae8ca9a3b3f781316eb1d93898013ff29e12ce406579baf4810ab5af42ab91b1a0a896d871e0872365376e17ee47cc1b09258766baa868781f94cb
 SHA512 
466b430722ca3f7f4e95491314dc852b8c55d757d5648ff4c4a1da046997d973d6198e59fd828ee7264184f3d73ff3c8d4d1856f9c44f8eede5514ece44282bf
+DIST smlnj-110.99.6.1-system.tgz 295678 BLAKE2B 
516fc3949a80929072c0fc831b8dbf9edd1bc871c2003831efb054417ffa37b86d0e7db2542212fc2df871c455a3f864b0f947718722d8ec56ed32f457b3de3c
 SHA512 
c18cfefa32c5e8d768a64d4966f0e6c64649583787dbfdd39a79975cd832b01e17d6ae73efbfd9cd544bf17623aa7b9e6fdb9f96cbf68d1acbc4a0c85de38900
+DIST smlnj-110.99.6.1-trace-debug-profile.tgz 3892 BLAKE2B 
fc324e4faff721084545423595b2130d80e4def1bdbbf87ebdfee720c573f222e0b3ec18968c515c31ad36c82dfdabad191c6459544ec500b1c0001d6479fad1
 SHA512 
7854191ffe58103c3ee727dba6718936d75d99887351d47263de80fd2732e5b5adfb1fd58e4379823d0649e687fa7dc6f6057240f331439573d72e4e0a4696d9

diff --git a/dev-lang/smlnj/smlnj-110.99.6.1.ebuild 
b/dev-lang/smlnj/smlnj-110.99.6.1.ebuild
new file mode 100644
index 000000000000..e07e1a3cd989
--- /dev/null
+++ b/dev-lang/smlnj/smlnj-110.99.6.1.ebuild
@@ -0,0 +1,157 @@
+# 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"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-110.99.4-shuffle.patch"
+)
+
+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/*
+}

Reply via email to