/[gentoo-x86]/sys-devel/bmake/bmake-20120325.ebuild
Gentoo

Contents of /sys-devel/bmake/bmake-20120325.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Apr 24 12:12:06 2012 UTC (2 years, 9 months ago) by aballier
Branch: MAIN
version bump

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

1 aballier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sys-devel/bmake/bmake-20110606.ebuild,v 1.1 2011/06/14 08:31:35 naota Exp $
4    
5     EAPI=3
6    
7     inherit eutils
8    
9     MK_VER=20120315
10     DESCRIPTION="NetBSD's portable make"
11     HOMEPAGE="http://www.crufty.net/help/sjg/bmake.html"
12     SRC_URI="http://void.crufty.net/ftp/pub/sjg/${P}.tar.gz
13     http://void.crufty.net/ftp/pub/sjg/mk-${MK_VER}.tar.gz"
14    
15     LICENSE="BSD"
16     SLOT="0"
17     KEYWORDS="~amd64 ~ppc ~x86"
18     IUSE=""
19    
20     DEPEND=""
21     RDEPEND=""
22    
23     S="${WORKDIR}/${PN}"
24    
25     src_configure() {
26     econf \
27     --with-mksrc=../mk \
28     --with-default-sys-path=/usr/share/mk/${PN} \
29     --with-machine_arch=${ARCH}
30     }
31    
32     src_compile() {
33     sh make-bootstrap.sh || die "bootstrap failed"
34     }
35    
36     src_test() {
37     cd unit-tests
38     LC_ALL=C env -u A ${S}/bmake -r -m . > test.out 2>&1 \
39     || die "tests compilation failed"
40     sed -i \
41     -e "s:${S}/::g" \
42     -e "s:bmake:make:g" \
43     -e "s:unit-tests/::g" \
44     test.out || die "Fixing values failed"
45     diff -u test.exp test.out
46     [[ $(diff -u test.exp test.out |wc -l) -gt 0 ]] && die "tests differ"
47     }
48    
49     src_install() {
50     dobin ${PN} || die
51     newman ${PN}.cat1 ${PN}.1 || die
52     FORCE_BSD_MK=1 SYS_MK_DIR=. \
53     sh ../mk/install-mk -v -m 644 "${D}"/usr/share/mk/${PN} \
54     || die "failed to install mk files"
55     }

  ViewVC Help
Powered by ViewVC 1.1.20