From 7bcfea9c5e79a425a62a66bba477b9d3c0d7fdd0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 7 May 2024 00:00:56 +0100 Subject: gentoo auto-resync : 07:05:2024 - 00:00:56 --- media-sound/lash/Manifest | 3 + media-sound/lash/files/lash-0.5.4-autotools.patch | 32 ++++++ media-sound/lash/files/lash-0.5.4-c99.patch | 11 ++ media-sound/lash/lash-0.5.4-r6.ebuild | 126 ++++++++++++++++++++++ 4 files changed, 172 insertions(+) create mode 100644 media-sound/lash/files/lash-0.5.4-autotools.patch create mode 100644 media-sound/lash/files/lash-0.5.4-c99.patch create mode 100644 media-sound/lash/lash-0.5.4-r6.ebuild (limited to 'media-sound/lash') diff --git a/media-sound/lash/Manifest b/media-sound/lash/Manifest index 5d2726bc8866..176f0209241c 100644 --- a/media-sound/lash/Manifest +++ b/media-sound/lash/Manifest @@ -1,3 +1,5 @@ +AUX lash-0.5.4-autotools.patch 984 BLAKE2B 7cff598522db5bc8e7257bbbb89b54fe58d98e506656bbeea9a22f56078e95b6eb1e223c9d864916b4574f1f716768983aecb646a41dfb9ef78222001ff32394 SHA512 f212665a6348f23349f046feee93917c95bfca1aa77ee75dd33369201242c8a31a17894346a9b27d1ed0ce7943d437c27492e12ffd1cff001dc282eb26dbd39f +AUX lash-0.5.4-c99.patch 192 BLAKE2B 627eca94699b0bb86f93b62046182911f90279b4414ee1fbb9da654b6c0c564b063ec7f44c77075d15bd2daa02072ccdfd24677b4cb656c39744bf87a1d2637d SHA512 065c598c4913aef7bf1285ff44c805c33c9c992f33096c42db8fa9d7c0207ee70c476aa3f703c794cdb8af06e3246ef274a2e51d7693e365270972a137116b9a AUX lash-0.5.4-gcc47.patch 299 BLAKE2B 83e8d5805686e62a2a46b6c91283ac268dda892312210d8af0aca5f386bd2cc718917b9bdbe7db87819e5c10e7028c41c36b056b17885fbc0f999f8432e598ef SHA512 3f56550130b18becafbd9a1e544aaec6b729af398cd0abb95c17895baec65e9bba3a849122a787b8913fee7b4422b9ef0ee3fa9e627b1eec5db26543035f75a6 AUX lash-0.5.4-glibc2.8.patch 344 BLAKE2B 6362c9d7ca824c26e0d037d80eb3221c2b4647cb999f7a16057d36e50b533a09c3228be72e7921ef8aadab7fdddb17317c85803b03144ae75392bfc9af9fd4ae SHA512 182cc371fbeb9ddd2407642b74fd5bb309f34c32ae1276d09d9c33c95ce9d065ea97df3a4306501fe151e2d3b4edc96c4140fabbc2c3016d8cba54fb0e8766cb AUX lash-0.5.4-strcmp.patch 252 BLAKE2B f2b002772df6dab5c2942039d36e681697894cc5b73d4bad7f5e27728e8e77c0032cc375a03b5ccb92c08a3e249b0539f8d3ece5a7007754af67693fbbeef4d9 SHA512 dba0d98fdd4f9cf84bb5c8e840fe76a3de8b729a7c2b88d55868939f119084433ae1bf5b7b3aacd1057995f73d6baa204878651cd9d0c4f419aca20910b84d66 @@ -5,4 +7,5 @@ AUX lash-0.5.4-swig_version_comparison.patch 1225 BLAKE2B 92f9fe4ae053dc454f8434 AUX lash-0.5.4-underlinking.patch 660 BLAKE2B 6f3ca7580a588493610869ae8f2ff58f1c53b8e593e45c8613b1a15e7b97521f01372b493d3f627d878a8f0f6a349460da6fcc1eb48cb2b7e18e283acdc3a81b SHA512 118bccb0da55f0e7808424696143b00784afb18cdf982fdef837bdafa1dea6b55ed912762a964e210c2f0ba4a3bd1469249cad957428cca87da6bd0514751d66 DIST lash-0.5.4.tar.gz 623469 BLAKE2B 463931a9fcacf806631746c69ccb2e2b795b8983e796835abce6036ed98571c41253fb8236a33c0a8bd1b5d3a910229d4e95f99257c1d82c64495201c64c6414 SHA512 93193dd585738b8c3432b3f75864d287f874b5618100a84f0a1b2bda2df15403203cfc66e7a0298adab7ef95bfdded81697614ca5ef8eaf5cebdde5860f47e3c EBUILD lash-0.5.4-r5.ebuild 2594 BLAKE2B 06889426765f7151104efe1fde41104f9acc2eb5df774f698a4933bc40ddc4df294f799a07d7630acaf0591124b6abfaffe19b0e92117b54578dd9e198c4fa19 SHA512 6ab198aba02562bd83a1ba255400540b423038765fca417d0d6b300714d80cc51ed735b8161b279a40cd4e9920a0bf9fc34f8fa69785266a50020864a79a2690 +EBUILD lash-0.5.4-r6.ebuild 2656 BLAKE2B 3f5f0706ff35fbf8a6bc25dd91a1ed913aa70a4c3eb4d066fe44ea00fd67e212e09649e4585947564c50bd1023877f9038d0b7dce369079f89072a849baa7973 SHA512 54026c311cdd29c504548953ae8506a45e0561d09d8aac10478c32493b03999efa456fc95820eb83308d36b13fc7fcc7102946aaf40f6243c5a873dd4a466ecb MISC metadata.xml 348 BLAKE2B a5547f7cc6e5cae590b4d49c378f44c3591dd94d0b42a5ba666a2bc72875a1b54db17f8b4b7ad489d1b816d5fd45d82d62ae66916902d5c58007a465337c97c7 SHA512 49464d68db43ca854eeb3774a086d041e688ad0613b5cb4099d90498efb868003aba35afddbb92d2583982d9d8be28340cc26bcd33330a47948b44734e411639 diff --git a/media-sound/lash/files/lash-0.5.4-autotools.patch b/media-sound/lash/files/lash-0.5.4-autotools.patch new file mode 100644 index 000000000000..54988c70bbc7 --- /dev/null +++ b/media-sound/lash/files/lash-0.5.4-autotools.patch @@ -0,0 +1,32 @@ +Fix build with modern autoconf/automake and fix a bashism in configure. +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,3 +1,5 @@ ++ACLOCAL_AMFLAGS = -I m4 ++ + SUBDIRS = m4 docs lash liblash lashd clients icons pylash + + pkgconfigdir = $(libdir)/pkgconfig +--- a/configure.ac ++++ b/configure.ac +@@ -2,7 +2,6 @@ AC_INIT([LASH],[0.5.4]) + AC_CONFIG_SRCDIR([lash/types.h]) + AC_CONFIG_HEADER([config.h]) + AM_INIT_AUTOMAKE +-AM_ACLOCAL_INCLUDE([m4]) + + ### Check for programs ### + AC_LANG([C]) +@@ -161,10 +160,10 @@ AC_ARG_ENABLE(pylash, [AS_HELP_STRING(--disable-pylash, [Force disable pylash bu + if test x$build_pylash != xdisabled; then + AM_PATH_PYTHON(2.3, python_found=yes, python_found=no) + +- if test x$python_found == xyes; then ++ if test x$python_found = xyes; then + AM_CHECK_PYTHON_HEADERS(, python_found=no) + +- if test x$python_found == xyes; then ++ if test x$python_found = xyes; then + AC_PROG_SWIG(1.3.31) + if test "$SWIG_LIB" ; then + build_pylash=yes diff --git a/media-sound/lash/files/lash-0.5.4-c99.patch b/media-sound/lash/files/lash-0.5.4-c99.patch new file mode 100644 index 000000000000..31dab715db7e --- /dev/null +++ b/media-sound/lash/files/lash-0.5.4-c99.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/925439 +--- a/clients/synth/lash.c ++++ b/clients/synth/lash.c +@@ -22,6 +22,7 @@ + + #include "config.h" + ++#include + #include + #include + diff --git a/media-sound/lash/lash-0.5.4-r6.ebuild b/media-sound/lash/lash-0.5.4-r6.ebuild new file mode 100644 index 000000000000..1ee913743360 --- /dev/null +++ b/media-sound/lash/lash-0.5.4-r6.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) + +inherit autotools multilib-minimal python-single-r1 + +DESCRIPTION="LASH Audio Session Handler" +HOMEPAGE="http://www.nongnu.org/lash/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="alsa debug gtk python static-libs" # doc + +BDEPEND=" + virtual/pkgconfig +" +RDEPEND=" + dev-libs/libxml2 + sys-apps/util-linux[${MULTILIB_USEDEP}] + virtual/jack + alsa? ( media-libs/alsa-lib ) + gtk? ( x11-libs/gtk+:2 ) + python? ( ${PYTHON_DEPS} ) + || ( sys-libs/readline dev-libs/libedit ) +" +DEPEND=" + ${RDEPEND} + python? ( dev-lang/swig ) +" +# doc? ( >=app-text/texi2html-5 ) + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) +HTML_DOCS=( docs/lash-manual-html-one-page/lash-manual.html ) + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( + "${FILESDIR}"/${P}-glibc2.8.patch + "${FILESDIR}"/${P}-swig_version_comparison.patch + "${FILESDIR}"/${P}-gcc47.patch + "${FILESDIR}"/${P}-underlinking.patch + "${FILESDIR}"/${P}-strcmp.patch + "${FILESDIR}"/${P}-autotools.patch + "${FILESDIR}"/${P}-c99.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + sed -i \ + -e '/texi2html/s:-number:&-sections:' \ + docs/Makefile.am || die #422045 + + eautoreconf +} + +multilib_src_configure() { + # 'no' could be '$(usex doc)' but we use the pregenerated lash-manual.html + export ac_cv_prog_lash_texi2html=no #422045 + + # --enable-pylash would disable it + local myconf=() + if ! multilib_is_native_abi || ! use python; then + myconf+=( --disable-pylash ) + fi + + if ! multilib_is_native_abi; then + # disable remaining configure checks + myconf+=( + JACK_CFLAGS=' ' + JACK_LIBS=' ' + XML2_CFLAGS=' ' + XML2_LIBS=' ' + + vl_cv_lib_readline=no + ) + fi + + ECONF_SOURCE=${S} \ + econf \ + $(use_enable static-libs static) \ + $(multilib_native_use_enable alsa alsa-midi) \ + $(multilib_native_use_enable gtk gtk2) \ + $(multilib_native_use_enable debug) \ + "${myconf[@]}" +} + +multilib_src_compile() { + if multilib_is_native_abi; then + default + else + emake -C liblash + fi +} + +multilib_src_test() { + multilib_is_native_abi && default +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" install + else + # headers + emake -C lash DESTDIR="${D}" install + # library + emake -C liblash DESTDIR="${D}" install + # pkg-config + emake DESTDIR="${D}" install-pkgconfigDATA + fi +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -delete || die + use python && python_optimize +} -- cgit v1.2.3