/[gentoo-x86]/net-nntp/sn/sn-0.3.8.ebuild
Gentoo

Contents of /net-nntp/sn/sn-0.3.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Nov 22 01:39:53 2011 UTC (2 years, 4 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +19 -13 lines
Update to EAPI 4, add ~amd64 keyword, respect CFLAGS (bug #241092), respect LDFLAGS (bug #337884), fix qa warnings (bug #386917 by Michael), and fix parallel make issues.

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-nntp/sn/sn-0.3.8.ebuild,v 1.3 2009/09/23 19:45:43 patrick Exp $
4
5 EAPI=4
6
7 inherit toolchain-funcs eutils
8
9 DESCRIPTION="Hassle-free Usenet news system for small sites"
10 SRC_URI="http://infa.abo.fi/~patrik/sn/files/${P}.tar.bz2"
11 HOMEPAGE="http://infa.abo.fi/~patrik/sn/"
12
13 KEYWORDS="~amd64 x86 ~ppc"
14 SLOT="0"
15 LICENSE="GPL-2"
16 IUSE=""
17
18 RDEPEND="sys-libs/zlib"
19 DEPEND="${RDEPEND}
20 >=sys-apps/sed-4"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${P}-qa.patch
24 epatch "${FILESDIR}"/${P}-parallel-make.patch
25
26 sed -i -e 's/-g -Wall -pedantic -O/-Wall -pedantic/' Makefile || die
27 }
28
29 src_compile() {
30 emake cc-flags
31 echo ${CFLAGS} >>cc-flags
32
33 emake CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
34 SNROOT=/var/spool/news \
35 BINDIR=/usr/sbin \
36 MANDIR=/usr/share/man
37 }
38
39 src_install() {
40 dodir /var/spool/news /usr/sbin /usr/share/man/man8
41 mknod -m 600 "${D}"/var/spool/news/.fifo p
42 emake install \
43 SNROOT="${D}"/var/spool/news \
44 BINDIR="${D}"/usr/sbin \
45 MANDIR="${D}"/usr/share/man
46 dodoc CHANGES FAQ INSTALL* INTERNALS README* THANKS TODO
47 fowners news:news /var/spool/news{,/.fifo}
48 }

  ViewVC Help
Powered by ViewVC 1.1.20