* [gentoo-commits] repo/gentoo:master commit in: dev-lang/ats2/files/, dev-lang/ats2/
@ 2024-10-23 22:15 Maciej Barć
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2024-10-23 22:15 UTC (permalink / raw
To: gentoo-commits
commit: 2df15d3d969420af92b0482221005aa2c9938a87
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 23 21:44:46 2024 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Oct 23 22:15:23 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df15d3d
dev-lang/ats2: patches to Makefile and misc ones from Debian
Two patches come from the Debian's ATS2 package, that is:
"deprecated-cl-package" and "prelude-function-prototypes".
Bug: https://bugs.gentoo.org/923881
Closes: https://bugs.gentoo.org/920639
Closes: https://bugs.gentoo.org/941105
Closes: https://bugs.gentoo.org/917412
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
dev-lang/ats2/Manifest | 2 ++
.../{ats2-0.4.2.ebuild => ats2-0.4.2-r1.ebuild} | 26 +++++++++++++++++-----
dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch | 13 +++++++++++
3 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/dev-lang/ats2/Manifest b/dev-lang/ats2/Manifest
index d4fffea70473..8ed5b5df2f3a 100644
--- a/dev-lang/ats2/Manifest
+++ b/dev-lang/ats2/Manifest
@@ -1 +1,3 @@
DIST ATS2-Postiats-gmp-0.4.2.tgz 4532277 BLAKE2B 3263ab8790c737a2a4f30d2acb770e4f5d3bbedd40136bbf07283541f5b6678aaba7031cf4a2e77552755e5510fcc65446dfc3499645f5c7f4c4e5bc52e8942d SHA512 cfc3f15b1365badcdce535afc7e71ffe25471f2661bdc47294b77c917049566eee4eeb8ec373f4121ad474b8528263d7b3ff8627c1f5b7f3ea7475cb95ca7597
+DIST ats2-0.4.2-2-deprecated-cl-package.patch 2456 BLAKE2B 6a81727dd0dd384009683ce430d1d50caf1fea0d02f31ae0fab4e60861f657d348a334f454e0ea44024a10599c449385ec8bf694463a4a8d956648610c0a6f6f SHA512 1746072b88d8987648a0c7d606c1e0dd1b38d07d1119b89ca6999327aa81068c70e26ddc70bd26a7f5d1d1826fa0e71320a6d52f39aa05c2cd1d858557ba3afc
+DIST ats2-0.4.2-2-prelude-function-prototypes.patch 3715 BLAKE2B aff950ceb7b5419973b8ed8a82de92780a32ca4c5beb8856dfe89409fd47d91e154251cb8ab0d978a9ac50f2b6f91395629c78ddecfbc28c91a6b6314af80a7e SHA512 a4bda6c244a94347ec5b32f8b68e4057bf3a442bc8e5e08a7c059881366d25f93193e7d9942d93e2d80082ba9cd08a5fd0bc7b41b74c5056be83cd10a89c55f1
diff --git a/dev-lang/ats2/ats2-0.4.2.ebuild b/dev-lang/ats2/ats2-0.4.2-r1.ebuild
similarity index 68%
rename from dev-lang/ats2/ats2-0.4.2.ebuild
rename to dev-lang/ats2/ats2-0.4.2-r1.ebuild
index e4f7eae958af..a1f05aca38fb 100644
--- a/dev-lang/ats2/ats2-0.4.2.ebuild
+++ b/dev-lang/ats2/ats2-0.4.2-r1.ebuild
@@ -1,14 +1,22 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit elisp-common toolchain-funcs
+inherit elisp-common flag-o-matic toolchain-funcs
DESCRIPTION="Functional programming language with dependent types"
HOMEPAGE="https://www.cs.bu.edu/~hwxi/atslangweb/
https://sourceforge.net/projects/ats2-lang/"
-SRC_URI="http://downloads.sourceforge.net/sourceforge/ats2-lang/ATS2-Postiats-gmp-${PV}.tgz"
+
+SRC_URI="
+ http://downloads.sourceforge.net/sourceforge/ats2-lang/ATS2-Postiats-gmp-${PV}.tgz
+
+ https://sources.debian.org/data/main/a/ats2-lang/0.4.2-2/debian/patches/deprecated-cl-package
+ -> ${PN}-0.4.2-2-deprecated-cl-package.patch
+ https://sources.debian.org/data/main/a/ats2-lang/0.4.2-2/debian/patches/prelude-function-prototypes
+ -> ${PN}-0.4.2-2-prelude-function-prototypes.patch
+"
S="${WORKDIR}/ATS2-Postiats-gmp-${PV}"
LICENSE="GPL-3+"
@@ -24,6 +32,12 @@ DEPEND="
${RDEPEND}
"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.4.2-makefile_dist.patch"
+ "${DISTDIR}/${PN}-0.4.2-2-deprecated-cl-package.patch"
+ "${DISTDIR}/${PN}-0.4.2-2-prelude-function-prototypes.patch"
+)
+
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
@@ -32,8 +46,6 @@ src_prepare() {
sed -i Makefile \
-e "/^CFLAGS/s|=| = ${CFLAGS}|" \
-e "/^LDFLAGS/s|=| = ${LDFLAGS}|" \
- -e "/^MAKE/s|=make| ?= \$(MAKE)|g" \
- -e "/^MAKEJ4/s|-j4||" \
|| die
sed -i ccomp/atslib/Makefile \
@@ -53,6 +65,10 @@ src_prepare() {
}
src_compile() {
+ # Not really accurate but need Makefile investigation and patches.
+ # See: https://bugs.gentoo.org/941105 and https://bugs.gentoo.org/923881
+ filter-lto
+
emake -j1 CC="$(tc-getCC)" GCC="$(tc-getCC)" CCOMP="$(tc-getCC)" all
if use emacs ; then
diff --git a/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch b/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch
new file mode 100644
index 000000000000..ce24f44d32fc
--- /dev/null
+++ b/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch
@@ -0,0 +1,13 @@
+--- a/Makefile_dist
++++ b/Makefile_dist
+@@ -19,8 +19,8 @@ RMRF=rm -rf
+
+ ######
+
+-MAKE=make
+-MAKEJ4=make -j4
++MAKE ?= $(MAKE)
++MAKEJ4 ?= $(MAKE)
+
+ ######
+ #
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-lang/ats2/files/, dev-lang/ats2/
@ 2024-10-27 8:51 Maciej Barć
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2024-10-27 8:51 UTC (permalink / raw
To: gentoo-commits
commit: ff4ad1ea09221b9cb6a9385f42fba9177934b6f5
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 27 08:10:51 2024 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Oct 27 08:51:54 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff4ad1ea
dev-lang/ats2: patch make sub-call; fix AR
Closes: https://bugs.gentoo.org/942204
Closes: https://bugs.gentoo.org/942050
Closes: https://bugs.gentoo.org/923881
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
dev-lang/ats2/ats2-0.4.2-r1.ebuild | 11 ++++++-----
dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch | 11 +++++++++++
2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/dev-lang/ats2/ats2-0.4.2-r1.ebuild b/dev-lang/ats2/ats2-0.4.2-r1.ebuild
index 48cf6674525b..1c0702352d71 100644
--- a/dev-lang/ats2/ats2-0.4.2-r1.ebuild
+++ b/dev-lang/ats2/ats2-0.4.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit elisp-common flag-o-matic toolchain-funcs
+inherit elisp-common toolchain-funcs
DESCRIPTION="Functional programming language with dependent types"
HOMEPAGE="https://www.cs.bu.edu/~hwxi/atslangweb/
@@ -61,14 +61,15 @@ src_prepare() {
-e "s|ar -r|$(tc-getAR) ${ARFLAGS} -r|g" \
|| die
+ sed -i contrib/CATS-atscc2js/Makefile \
+ -i src/CBOOT/Makefile \
+ -e "/^AR=/s|ar|$(tc-getAR) ${ARFLAGS}|" \
+ || die
+
rm utils/emacs/flycheck-ats2.el || die
}
src_compile() {
- # Not really accurate but need Makefile investigation and patches.
- # See: https://bugs.gentoo.org/941105 and https://bugs.gentoo.org/923881
- filter-lto
-
emake -j1 CC="$(tc-getCC)" GCC="$(tc-getCC)" CCOMP="$(tc-getCC)" all
if use emacs ; then
diff --git a/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch b/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch
index ce24f44d32fc..94eb787121b7 100644
--- a/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch
+++ b/dev-lang/ats2/files/ats2-0.4.2-makefile_dist.patch
@@ -11,3 +11,14 @@
######
#
+--- a/Makefile_dist
++++ b/Makefile_dist
+@@ -78,7 +78,7 @@ LDFLAGS=
+ #
+ src2_patsopt: ; \
+ $(MAKEJ4) -C src/CBOOT patsopt \
+-CCOMP=$(CCOMP) GCFLAG=$(GCFLAG) LDFLAGS=$(LDFLAGS)
++CCOMP="$(CCOMP)" GCFLAG="$(GCFLAG)" LDFLAGS="$(LDFLAGS)"
+ #
+ bin2_patsopt: src2_patsopt ; $(CPF) src/CBOOT/patsopt bin/patsopt
+ #
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-27 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 22:15 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ats2/files/, dev-lang/ats2/ Maciej Barć
-- strict thread matches above, loose matches on Subject: below --
2024-10-27 8:51 Maciej Barć
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox