/[gentoo-x86]/media-libs/nas/nas-1.9.2-r1.ebuild
Gentoo

Contents of /media-libs/nas/nas-1.9.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Oct 31 11:08:59 2010 UTC (3 years, 10 months ago) by ssuominen
Branch: MAIN
Fix implicit declaration of inet_ntoa wrt #323511 by Michał Górny.

(Portage version: 2.2.0_alpha1/cvs/Linux x86_64)

1 ssuominen 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/media-libs/nas/nas-1.9.2.ebuild,v 1.9 2010/04/16 17:35:39 ranger Exp $
4    
5     inherit eutils toolchain-funcs
6    
7     DESCRIPTION="Network Audio System"
8     HOMEPAGE="http://radscan.com/nas.html"
9     SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz"
10    
11     LICENSE="MIT as-is"
12     SLOT="0"
13     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
14     IUSE="doc"
15    
16     RDEPEND="x11-libs/libXt
17     x11-libs/libXau
18     x11-libs/libXaw
19     x11-libs/libX11
20     x11-libs/libXres
21     x11-libs/libXTrap
22     x11-libs/libXp"
23     DEPEND="${RDEPEND}
24     x11-misc/gccmakedep
25     x11-misc/imake
26     app-text/rman
27     x11-proto/xproto"
28    
29     src_unpack() {
30     unpack ${A}
31     cd "${S}"
32     epatch "${FILESDIR}"/${P}-asneeded.patch \
33     "${FILESDIR}"/${P}-implicit-inet_ntoa-amd64.patch
34     }
35    
36     src_compile() {
37     xmkmf || die "xmkmf failed"
38     touch doc/man/lib/tmp.{_man,man}
39     emake \
40     MAKE="${MAKE:-gmake}" \
41     CDEBUGFLAGS="${CFLAGS}" \
42     CXXDEBUFLAGS="${CXXFLAGS}" \
43     CC="$(tc-getCC)" \
44     CXX="$(tc-getCXX)" \
45     AR="$(tc-getAR) clq" \
46     AS="$(tc-getAS)" \
47     LD="$(tc-getLD)" \
48     RANLIB="$(tc-getRANLIB)" World || die "emake World failed"
49     }
50    
51     src_install () {
52     emake DESTDIR="${D}" install install.man || die "emake install failed"
53     dodoc BUILDNOTES FAQ HISTORY README RELEASE TODO
54    
55     if use doc; then
56     docinto doc
57     dodoc doc/{actions,protocol.txt,README}
58     insinto /usr/share/doc/${PF}/pdf
59     doins doc/pdf/*.pdf
60     fi
61    
62     mv "${D}"/etc/nas/nasd.conf{.eg,}
63    
64     newconfd "${FILESDIR}"/nas.conf.d nas
65     newinitd "${FILESDIR}"/nas.init.d nas
66     }
67    
68     pkg_postinst() {
69     elog "To enable NAS on boot you will have to add it to the"
70     elog "default profile, issue the following command as root:"
71     elog "# rc-update add nas default"
72     }

  ViewVC Help
Powered by ViewVC 1.1.20