From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/slang/
Date: Thu, 14 Sep 2023 04:43:38 +0000 (UTC) [thread overview]
Message-ID: <1694666587.10a68be525074c92f0d96ef0b3c14052b47ee2ba.sam@gentoo> (raw)
commit: 10a68be525074c92f0d96ef0b3c14052b47ee2ba
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 14 04:42:53 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 04:43:07 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10a68be5
sys-libs/slang: filter-lto, -fno-strict-aliasing
Not worth trying to fix the violations here.
Closes: https://bugs.gentoo.org/880589
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-libs/slang/slang-2.3.3-r1.ebuild | 87 ++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
diff --git a/sys-libs/slang/slang-2.3.3-r1.ebuild b/sys-libs/slang/slang-2.3.3-r1.ebuild
new file mode 100644
index 000000000000..b259c5ce3d6c
--- /dev/null
+++ b/sys-libs/slang/slang-2.3.3-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="Multi-platform library designed to allow a developer to create robust software"
+HOMEPAGE="https://www.jedsoft.org/slang/"
+
+if [[ ${PV} == *_pre* ]] ; then
+ MY_P="${PN}-pre${PV/_pre/-}"
+ SRC_URI="https://www.jedsoft.org/snapshots/${MY_P}.tar.gz"
+ S="${WORKDIR}/${MY_P}"
+else
+ SRC_URI="
+ https://www.jedsoft.org/releases/${PN}/${P}.tar.bz2
+ https://www.jedsoft.org/releases/${PN}/old/${P}.tar.bz2
+ "
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="cjk pcre png readline static-libs zlib"
+
+# ncurses for ncurses5-config to get terminfo directory
+RDEPEND="
+ sys-libs/ncurses:=
+ cjk? ( >=dev-libs/oniguruma-5.9.5:=[${MULTILIB_USEDEP}] )
+ pcre? ( >=dev-libs/libpcre-8.33-r1[${MULTILIB_USEDEP}] )
+ png? ( >=media-libs/libpng-1.6.10:=[${MULTILIB_USEDEP}] )
+ readline? ( >=sys-libs/readline-6.2_p5-r1:=[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.3.3-slsh-libs.patch
+)
+
+src_prepare() {
+ default
+
+ # Avoid linking to -ltermcap race with some systems
+ sed -i -e '/^TERMCAP=/s:=.*:=:' configure || die
+ # We use the GNU linker also on Solaris
+ sed -i -e 's/-G -fPIC/-shared -fPIC/g' \
+ -e 's/-Wl,-h,/-Wl,-soname,/g' configure || die
+
+ # Loads of blatant aliasing violations, bug #880589
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ # slang does not support configuration from another dir
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --with-readline=$(usex readline gnu slang)
+ $(use_with pcre)
+ $(use_with cjk onig)
+ $(use_with png)
+ $(use_with zlib z)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+ emake -j1 elf $(usev static-libs static)
+ emake -j1 -C slsh slsh
+}
+
+multilib_src_install() {
+ emake -j1 DESTDIR="${D}" install $(usev static-libs install-static)
+}
+
+multilib_src_install_all() {
+ rm -r "${ED}"/usr/share/doc/{slang,slsh} || die
+
+ local -a DOCS=( NEWS README *.txt doc/{,internal,text}/*.txt )
+ local -a HTML_DOCS=( doc/slangdoc.html slsh/doc/html/*.html )
+
+ einstalldocs
+}
next reply other threads:[~2023-09-14 4:43 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 4:43 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-17 5:37 [gentoo-commits] repo/gentoo:master commit in: sys-libs/slang/ Arthur Zamarin
2024-03-26 20:25 Sam James
2024-03-25 7:25 Arthur Zamarin
2024-03-25 7:25 Arthur Zamarin
2024-03-25 7:25 Arthur Zamarin
2024-03-25 7:25 Arthur Zamarin
2024-03-24 22:59 Jakov Smolić
2024-03-24 22:41 Sam James
2024-03-24 22:41 Sam James
2024-02-21 7:13 Sam James
2023-10-01 18:14 Arthur Zamarin
2023-09-08 9:29 Sam James
2023-09-08 9:29 Sam James
2023-09-08 9:29 Sam James
2023-09-08 9:29 Sam James
2023-09-07 23:03 Sam James
2023-09-07 23:03 Sam James
2023-09-07 20:53 Sam James
2022-05-10 1:35 WANG Xuerui
2021-08-08 19:46 Marek Szuba
2021-01-15 19:01 Lars Wendler
2021-01-06 15:35 Fabian Groffen
2018-06-03 17:42 Mikle Kolyada
2018-04-15 16:52 Mikle Kolyada
2018-04-08 21:55 Mart Raudsepp
2018-04-08 4:47 Matt Turner
2018-04-08 4:47 Matt Turner
2018-04-01 10:00 Tobias Klausmann
2018-03-31 11:45 Jeroen Roovers
2018-03-26 18:55 Sergei Trofimovich
2018-03-24 14:01 Sergei Trofimovich
2018-03-24 7:51 Mikle Kolyada
2018-03-05 8:06 Lars Wendler
2018-02-19 15:37 Lars Wendler
2017-12-01 22:19 David Seifert
2017-07-21 17:54 Thomas Deutschmann
2017-05-18 22:38 Michael Weber
2017-02-03 20:04 Lars Wendler
2017-02-03 19:47 Jeroen Roovers
2017-01-29 20:14 Fabian Groffen
2017-01-04 17:09 Agostino Sarubbo
2016-12-23 8:18 Lars Wendler
2016-12-23 8:18 Lars Wendler
2016-12-21 11:28 Tobias Klausmann
2016-11-26 11:27 Lars Wendler
2016-11-26 10:00 Markus Meier
2016-11-15 14:53 Tobias Klausmann
2016-09-19 13:17 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1694666587.10a68be525074c92f0d96ef0b3c14052b47ee2ba.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox