From 85809279ceef66e68b25eac8c3918bee6762f6cc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Feb 2024 17:40:36 +0000 Subject: gentoo auto-resync : 25:02:2024 - 17:40:36 --- app-misc/sl/Manifest | 2 ++ app-misc/sl/files/sl-5.02-LDFLAGS.patch | 8 ++++++ app-misc/sl/sl-5.02-r1.ebuild | 51 +++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 app-misc/sl/files/sl-5.02-LDFLAGS.patch create mode 100644 app-misc/sl/sl-5.02-r1.ebuild (limited to 'app-misc/sl') diff --git a/app-misc/sl/Manifest b/app-misc/sl/Manifest index 42be2643933c..f6b81fc98dd3 100644 --- a/app-misc/sl/Manifest +++ b/app-misc/sl/Manifest @@ -1,3 +1,5 @@ +AUX sl-5.02-LDFLAGS.patch 172 BLAKE2B 8c09df0c67c2de29e1167a33e8c8a5faa83838171474a1c3ba2d7a2aea0a0a145eaae75a5531443c0ae16b7ca816dd4e2be5dd9d3517235f76446ab69bd622c4 SHA512 c01253cbd3138dfd4774e684ac030d4d51c7eb7aa7c7f5187b685d0918fa92246503debc9bc716fb00d0eb98d89132f9bed56a842e3a15a1b82a643a7b56ddec DIST sl-5.02.tar.gz 5353 BLAKE2B dd8513bf22cf209fe69e28b4f3de5b11db6cdb8afe375fd32ef40c7b21b2ec39dbf2d71a260c13fd440219fb1209957beb1026d065628af45f6f2ebd0437956e SHA512 a4d18bc79d7e0eca7748b10226a6b2a85a7a01d636e4e9215bf524a7849bc5cb250034326e5a69f7423d79e40b92182fddc0e56e25df616edae06369c782cb26 +EBUILD sl-5.02-r1.ebuild 1033 BLAKE2B fbccd8e0cdec61721d9b8dcea7c64e5062d4d0ed105c875e01195e64db92418bd859683a803171e7513cd28110d5508c0481a8be5c77c98c74ec5d0c8e6f39a2 SHA512 074756d87da9d14b50a10c6cf4ac2b654ec291c050b5dae3221d5919ac6c949a9847419737ccbad0d7035d53dc0d56f7373c4e9f2ba17f35a1b2ec937c461fa5 EBUILD sl-5.02.ebuild 975 BLAKE2B a8feae0f81f31ede476c558a197271371146a1adbc28dc183f81b1cb12f6dc7322ee4d20ea58f61ce64d2384aa50643b32851e590622a4a5f817a8bfef35e10c SHA512 7cfda4b3a8dc0c2a19a9119e7be60d0fab6a0a90247a25e1ae536a4b0d0fe7daffe2e02eaa1b7088c8ac170936a85830d99f692de769c51dddaa502ceaf9cfcd MISC metadata.xml 608 BLAKE2B 893c44104636ef6eae97c55a79c20e2c30e05684911e109f82a1457a564d4b8048116f34239ce543f898a67d74b9e643adb1371475413d2283765df306afbbf6 SHA512 581259d5cefceaaf1f8d505e8071437b66a59c18868aa1ab23ccff174003490957ca6c9cb6c1c437cebbbc6700ed19dfe5f3b906aaa61bc85a027d4ab2cacb81 diff --git a/app-misc/sl/files/sl-5.02-LDFLAGS.patch b/app-misc/sl/files/sl-5.02-LDFLAGS.patch new file mode 100644 index 000000000000..22416a71594f --- /dev/null +++ b/app-misc/sl/files/sl-5.02-LDFLAGS.patch @@ -0,0 +1,8 @@ +--- a/Makefile ++++ b/Makefile +@@ -10,4 +10,4 @@ CC=gcc + CFLAGS=-O + + sl: sl.c sl.h +- $(CC) $(CFLAGS) -o sl sl.c -lncurses ++ $(CC) $(CFLAGS) -o sl $(LDFLAGS) sl.c -lncurses diff --git a/app-misc/sl/sl-5.02-r1.ebuild b/app-misc/sl/sl-5.02-r1.ebuild new file mode 100644 index 000000000000..50d9b2537716 --- /dev/null +++ b/app-misc/sl/sl-5.02-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Sophisticated graphical program which corrects your miss typing" +HOMEPAGE="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html https://github.com/mtoyoda/sl/" +SRC_URI="https://github.com/mtoyoda/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Toyoda" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="l10n_ja" + +RDEPEND="sys-libs/ncurses:=" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +DOCS=( README.md ) + +PATCHES=( + "${FILESDIR}"/${PN}-5.02-LDFLAGS.patch +) + +src_prepare() { + default + + sed -i -e \ + "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \ + Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin "${PN}" + doman "${PN}.1" + + if use l10n_ja; then + newman "${PN}.1.ja" "${PN}.ja.1" + DOCS+=( README.ja.md ) + fi + + einstalldocs +} -- cgit v1.2.3