From d938920a33f03124f4e211a67d9291283442caa1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 Sep 2023 10:46:43 +0100 Subject: gentoo auto-resync : 14:09:2023 - 10:46:43 --- sys-libs/slang/Manifest | 1 + sys-libs/slang/slang-2.3.3-r1.ebuild | 87 ++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 sys-libs/slang/slang-2.3.3-r1.ebuild (limited to 'sys-libs/slang') diff --git a/sys-libs/slang/Manifest b/sys-libs/slang/Manifest index f01f8345453f..f8e4ed3767bd 100644 --- a/sys-libs/slang/Manifest +++ b/sys-libs/slang/Manifest @@ -3,5 +3,6 @@ AUX slang-2.3.3-slsh-libs.patch 1638 BLAKE2B 5d187745c96d44780e4f335f4db7d52905b DIST slang-2.3.2.tar.bz2 1586720 BLAKE2B e923a431e6273f1783c40dc09b2e324ace22e41a163fd46dcb8ab16c9ef27f190651df8da24432edc75890b83cd95051a835d5e582385bb23e36cd8ae18e6d24 SHA512 35cdfe8af66dac62ee89cca60fa87ddbd02cae63b30d5c0e3786e77b1893c45697ace4ac7e82d9832b8a9ac342560bc35997674846c5022341481013e76f74b5 DIST slang-2.3.3.tar.bz2 1646311 BLAKE2B 2f304b25e807fe38b544479f4a6e98723816d08cda576177a270df736d7db8992a478f980333afc10a7bc0b5dc5508e49b33a13de02f0466f065efdfa3b7b351 SHA512 f882f09e3fcd53427de0f233c9fc3ab15497f2323007be9a084696c8cf810ffe2726cd003149e757df26198b390b9f8c1ff411dc6473513457bd0f94722f8490 EBUILD slang-2.3.2.ebuild 2200 BLAKE2B f2ccfc703a58d18ae96d9a41508cbbcf6f30828fb489ac442b43c84e3ce1dd294a2d4c71927c4cf7228bcc6248a2f7f3692be6b1afd8cc9e50a7fb1e0bbdc3ca SHA512 ffbdcf7d57325e18a8c7adca3fb4a29a2ac4ead9d0ead7fbcb0f520e42144e58e30eee6eb16825d0e0acb9fa570b3f2e7add0cf012d9e8e8ce081e290f0406ef +EBUILD slang-2.3.3-r1.ebuild 2319 BLAKE2B 8a2db2fc82b2ea1d441e76ea92638ab650bc092a4a75a4a87e8bb4bbdbbae3d9adcca04a9b037a05aebe86720305fe58094313e41df63844ec425b72bdac31b0 SHA512 3572971d101ca9d9a46a77b32634049041dcaaf54b3bef0aef11a28d1310f6653de666c98e412613b5da0f6327cfed17cb04e6421825d5c3c599e31dab29cf77 EBUILD slang-2.3.3.ebuild 2205 BLAKE2B 156e13db2b5704a1dcd2bc93f0820a8b69a5c8ffb4317a6cf9f81bbb94ceea338152f0c1c0d81c3b7e281ab852fb2712c3e8f1e60445e84e8f14cdc1e30248ad SHA512 032d8d52733b33a96af34cb2f70920e8ada858584cfa24468101e5b5c77aa774b7d0b67414dbd63457cf4a3b44de6bd84ea7d7119e9c0540e156791f31c85883 MISC metadata.xml 235 BLAKE2B a3e5a3109b59e3f97ef14f8d55ba13b16dc5371a1b7d6f238230aa4494db32dd4a42e3ee012ec8b18fae394feb2b1b56882bc70504aa7c6b969c1b20140f0ece SHA512 7c4e5f5dea465e45c662f5f53513626088aff514e1326593426af227d77e63d8a00d8af05aa208881a399f83dd41e73cd2ef81c8b7f275a2fa891f295231d67c 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 +} -- cgit v1.2.3