Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 463942
Collapse All | Expand All

(-)nas-1.9.3.ebuild (-18 / +23 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/nas/nas-1.9.3.ebuild,v 1.3 2012/12/09 16:16:36 hasufell Exp $
3
# $Header: $
4
4
5
inherit eutils toolchain-funcs
5
EAPI=5
6
7
inherit eutils toolchain-funcs multilib-minimal
6
8
7
DESCRIPTION="Network Audio System"
9
DESCRIPTION="Network Audio System"
8
HOMEPAGE="http://radscan.com/nas.html"
10
HOMEPAGE="http://radscan.com/nas.html"
Lines 13-44 Link Here
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
14
IUSE="doc static-libs"
16
IUSE="doc static-libs"
15
17
16
RDEPEND="x11-libs/libX11
18
RDEPEND="x11-libs/libX11[${MULTILIB_USEDEP}]
17
	x11-libs/libXau
19
	x11-libs/libXau[${MULTILIB_USEDEP}]
18
	x11-libs/libXaw
20
	x11-libs/libXaw[${MULTILIB_USEDEP}]
19
	x11-libs/libXp
21
	x11-libs/libXp[${MULTILIB_USEDEP}]
20
	x11-libs/libXres
22
	x11-libs/libXres
21
	x11-libs/libXt
23
	x11-libs/libXt[${MULTILIB_USEDEP}]
22
	x11-libs/libXTrap"
24
	x11-libs/libXTrap"
23
DEPEND="${RDEPEND}
25
DEPEND="${RDEPEND}
24
	app-text/rman
26
	app-text/rman
25
	x11-misc/gccmakedep
27
	x11-misc/gccmakedep
26
	x11-misc/imake
28
	x11-misc/imake
27
	x11-proto/xproto"
29
	x11-proto/xproto[${MULTILIB_USEDEP}]"
30
31
ECONF_SOURCE=${S}
28
32
29
src_unpack() {
33
src_prepare() {
30
	unpack ${A}
31
	cd "${S}"
32
	epatch \
34
	epatch \
33
		"${FILESDIR}"/${PN}-1.9.2-asneeded.patch \
35
		"${FILESDIR}"/${PN}-1.9.2-asneeded.patch \
34
		"${FILESDIR}"/${PN}-1.9.2-implicit-inet_ntoa-amd64.patch
36
		"${FILESDIR}"/${PN}-1.9.2-implicit-inet_ntoa-amd64.patch
35
}
36
37
37
src_compile() {
38
	multilib_copy_sources
38
	xmkmf -a || die
39
}
39
40
40
# I *think* this was because of missing -a switch in xmkmf, lets test without:
41
multilib_src_compile() {
41
#	touch doc/man/lib/tmp.{_man,man}
42
	# multilib fails without setting CC
43
	CC="$(tc-getCC)" xmkmf -a || die
42
44
43
	# EXTRA_LDOPTIONS, SHLIBGLOBALSFLAGS #336564#c2
45
	# EXTRA_LDOPTIONS, SHLIBGLOBALSFLAGS #336564#c2
44
	local emakeopts=(
46
	local emakeopts=(
Lines 63-71 Link Here
63
	emake "${emakeopts[@]}" World || die
65
	emake "${emakeopts[@]}" World || die
64
}
66
}
65
67
66
src_install() {
68
multilib_src_install() {
67
	# ranlib is used at install phase too wrt #446600
69
	# ranlib is used at install phase too wrt #446600
68
	emake RANLIB="$(tc-getRANLIB)" DESTDIR="${D}" install install.man || die
70
	emake RANLIB="$(tc-getRANLIB)" DESTDIR="${D}" install install.man || die
71
}
72
73
multilib_src_install_all() {
69
	dodoc BUILDNOTES FAQ HISTORY README RELEASE TODO
74
	dodoc BUILDNOTES FAQ HISTORY README RELEASE TODO
70
75
71
	if use doc; then
76
	if use doc; then

Return to bug 463942