Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/nas/
Date: Mon, 19 Jun 2017 10:59:12
Message-Id: 1497869939.eea6d3c38330d2200b3021d828fb55dc7508e72e.aballier@gentoo
1 commit: eea6d3c38330d2200b3021d828fb55dc7508e72e
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 19 10:58:49 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 19 10:58:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea6d3c3
7
8 media-libs/nas: Run econf instead of letting the build system run configure itself.
9
10 It allows updating config.guess & co, needed for arm64. The build system also calls econf after unsetting CFLAGS...
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.2
13
14 media-libs/nas/nas-1.9.4-r2.ebuild | 103 +++++++++++++++++++++++++++++++++++++
15 1 file changed, 103 insertions(+)
16
17 diff --git a/media-libs/nas/nas-1.9.4-r2.ebuild b/media-libs/nas/nas-1.9.4-r2.ebuild
18 new file mode 100644
19 index 00000000000..b7cf68e7935
20 --- /dev/null
21 +++ b/media-libs/nas/nas-1.9.4-r2.ebuild
22 @@ -0,0 +1,103 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=5
27 +inherit eutils multilib toolchain-funcs multilib-minimal
28 +
29 +DESCRIPTION="Network Audio System"
30 +HOMEPAGE="http://radscan.com/nas.html"
31 +SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz"
32 +
33 +LICENSE="HPND MIT"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
36 +IUSE="doc static-libs"
37 +
38 +RDEPEND="x11-libs/libICE
39 + x11-libs/libSM
40 + x11-libs/libX11
41 + >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}]
42 + x11-libs/libXaw
43 + x11-libs/libXext
44 + x11-libs/libXmu
45 + x11-libs/libXpm
46 + >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]"
47 +DEPEND="${RDEPEND}
48 + app-text/rman
49 + sys-devel/bison
50 + sys-devel/flex
51 + x11-misc/gccmakedep
52 + x11-misc/imake
53 + >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]"
54 +
55 +DOCS=( BUILDNOTES FAQ HISTORY README RELEASE TODO )
56 +
57 +src_prepare() {
58 + epatch "${FILESDIR}"/${PN}-1.9.2-asneeded.patch
59 + epatch "${FILESDIR}"/${PN}-1.9.4-remove-abs-fabs.patch
60 +
61 + multilib_copy_sources
62 +}
63 +
64 +multilib_src_configure() {
65 + # Need to run econf so that config.guess is updated
66 + pushd config || die
67 + econf
68 + popd || die
69 + xmkmf -a || die
70 +}
71 +
72 +multilib_src_compile() {
73 + # EXTRA_LDOPTIONS, SHLIBGLOBALSFLAGS #336564#c2
74 + local emakeopts=(
75 + AR="$(tc-getAR) clq"
76 + AS="$(tc-getAS)"
77 + CC="$(tc-getCC)"
78 + CDEBUGFLAGS="${CFLAGS}"
79 + CXX="$(tc-getCXX)"
80 + CXXDEBUFLAGS="${CXXFLAGS}"
81 + EXTRA_LDOPTIONS="${LDFLAGS}"
82 + LD="$(tc-getLD)"
83 + MAKE="${MAKE:-gmake}"
84 + RANLIB="$(tc-getRANLIB)"
85 + SHLIBGLOBALSFLAGS="${LDFLAGS}"
86 + WORLDOPTS=
87 + )
88 +
89 + if multilib_is_native_abi ; then
90 + # dumb fix for parallel make issue wrt #446598, Imake sux
91 + emake "${emakeopts[@]}" -C server/dia all
92 + emake "${emakeopts[@]}" -C server/dda/voxware all
93 + emake "${emakeopts[@]}" -C server/os all
94 + else
95 + sed -i \
96 + -e 's/SUBDIRS =.*/SUBDIRS = include lib config/' \
97 + Makefile || die
98 + fi
99 +
100 + emake "${emakeopts[@]}" World
101 +}
102 +
103 +multilib_src_install() {
104 + # ranlib is used at install phase too wrt #446600
105 + emake RANLIB="$(tc-getRANLIB)" \
106 + DESTDIR="${D}" USRLIBDIR=/usr/$(get_libdir) \
107 + install install.man
108 +}
109 +
110 +multilib_src_install_all() {
111 + einstalldocs
112 + if use doc; then
113 + docinto doc
114 + dodoc doc/{actions,protocol.txt,README}
115 + docinto pdf
116 + dodoc doc/pdf/*.pdf
117 + fi
118 +
119 + mv -vf "${D}"/etc/nas/nasd.conf{.eg,} || die
120 +
121 + newconfd "${FILESDIR}"/nas.conf.d nas
122 + newinitd "${FILESDIR}"/nas.init.d nas
123 +
124 + use static-libs || rm -f "${D}"/usr/lib*/libaudio.a
125 +}