diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2022-02-04 09:44:16 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-02-04 09:45:22 +0100 |
commit | 80b16eb53a1cf575f086296cecc8ea125b486310 (patch) | |
tree | 2d2a3b89265b1639284bb049f985fab3aa155076 /media-libs | |
parent | dev-python/irc: Remove old (diff) | |
download | gentoo-80b16eb53a1cf575f086296cecc8ea125b486310.tar.gz gentoo-80b16eb53a1cf575f086296cecc8ea125b486310.tar.bz2 gentoo-80b16eb53a1cf575f086296cecc8ea125b486310.zip |
media-libs/nas: bump to 1.9.5
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/nas/Manifest | 1 | ||||
-rw-r--r-- | media-libs/nas/nas-1.9.5.ebuild | 113 |
2 files changed, 114 insertions, 0 deletions
diff --git a/media-libs/nas/Manifest b/media-libs/nas/Manifest index 07ffc8b6d401..ec48daf7ff4a 100644 --- a/media-libs/nas/Manifest +++ b/media-libs/nas/Manifest @@ -1 +1,2 @@ DIST nas-1.9.4.src.tar.gz 1464598 BLAKE2B d79ecda9f86a89d2d61bfadfeee4bb6a9feca6754bb88249b1eb3c1964e784d18098465f30f1b5bbb13d0550aebf48bb1b98aeb1b7c712f344a2eddc7720531b SHA512 3f8bd60f8ce0f25a2605af17caaadfe4f21223ba4cd3fa02078d1427b17cdf33ebda887e5dc30cd68eb7f64bfad80aafc9071ff0a26f0d3a4a93caacac03b5bb +DIST nas-1.9.5.tar.gz 1170144 BLAKE2B 81b063f888d66534f8779d6b0534397ada703868ff711c49b998fbf56bc6e4313fa245b6168fe9913936afa0685bab595df24f9f4bd5663dfa560c4b64534466 SHA512 051b32593e7ace09cf2d12720fb80e38d4f83f36858debacfb828c759e98b3e29401c76e3e3770f57fbbd1750a84b17a18e712f0de3dbe0ff56f2505c2488d9a diff --git a/media-libs/nas/nas-1.9.5.ebuild b/media-libs/nas/nas-1.9.5.ebuild new file mode 100644 index 000000000000..187f2582bca7 --- /dev/null +++ b/media-libs/nas/nas-1.9.5.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal toolchain-funcs + +DESCRIPTION="Network Audio System" +HOMEPAGE="https://radscan.com/nas.html" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="HPND MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc static-libs" + +RDEPEND=" + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau[${MULTILIB_USEDEP}] + x11-libs/libXaw + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/rman + sys-devel/bison + sys-devel/flex + x11-base/xorg-proto + x11-misc/gccmakedep + riscv? ( x11-misc/xorg-cf-files ) + >=x11-misc/imake-1.0.8-r1" + +DOCS=( BUILDNOTES FAQ HISTORY README RELEASE TODO ) + +PATCHES=( + "${FILESDIR}/${PN}-1.9.2-asneeded.patch" + "${FILESDIR}/${PN}-1.9.4-libfl.patch" +) + +src_prepare() { + default + multilib_copy_sources +} + +multilib_src_configure() { + # Need to run econf so that config.guess is updated + pushd config || die + econf + popd || die + CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \ + IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf -a || die +} + +multilib_src_compile() { + # EXTRA_LDOPTIONS, SHLIBGLOBALSFLAGS #336564#c2 + local emakeopts=( + AR="$(tc-getAR) cq" + AS="$(tc-getAS)" + CC="$(tc-getCC)" + CDEBUGFLAGS="${CFLAGS}" + CXX="$(tc-getCXX)" + CXXDEBUFLAGS="${CXXFLAGS}" + EXTRA_LDOPTIONS="${LDFLAGS}" + LD="$(tc-getLD)" + MAKE="${MAKE:-gmake}" + RANLIB="$(tc-getRANLIB)" + SHLIBGLOBALSFLAGS="${LDFLAGS}" + WORLDOPTS= + ) + + if multilib_is_native_abi ; then + # dumb fix for parallel make issue wrt #446598, Imake sux + emake "${emakeopts[@]}" -C server/dia all + emake "${emakeopts[@]}" -C server/dda/voxware all + emake "${emakeopts[@]}" -C server/os all + else + sed -i \ + -e 's/SUBDIRS =.*/SUBDIRS = include lib config/' \ + Makefile || die + fi + + emake "${emakeopts[@]}" +} + +multilib_src_install() { + # ranlib is used at install phase too wrt #446600 + emake RANLIB="$(tc-getRANLIB)" \ + DESTDIR="${D}" USRLIBDIR=/usr/$(get_libdir) \ + install install.man +} + +multilib_src_install_all() { + einstalldocs + if use doc; then + docinto doc + dodoc doc/{actions,protocol.txt,README} + docinto pdf + dodoc doc/pdf/*.pdf + fi + + mv -vf "${D}"/etc/nas/nasd.conf{.eg,} || die + + newconfd "${FILESDIR}"/nas.conf.d nas + newinitd "${FILESDIR}"/nas.init.d nas + + if ! use static-libs; then + rm -f "${D}"/usr/lib*/libaudio.a || die + fi +} |