/[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.3 - (show annotations) (download)
Sat Apr 5 19:24:30 2014 UTC (6 months, 2 weeks ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2012 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-r1.ebuild,v 1.2 2012/12/03 23:14:19 ulm 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="HPND MIT"
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