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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Aug 3 03:19:42 2012 UTC (23 months, 4 weeks ago) by ryao
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Use ${EPREFIX}/usr/share/mk/bmake for default make definitions

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 naota 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ryao 1.3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/bmake/bmake-20120620.ebuild,v 1.2 2012/08/03 03:12:12 ryao Exp $
4 naota 1.1
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 ryao 1.2 KEYWORDS="~amd64 ~ppc ~x86 ~x64-freebsd"
18 naota 1.1 IUSE=""
19    
20     DEPEND=""
21     RDEPEND=""
22    
23     S="${WORKDIR}/${PN}"
24    
25     src_configure() {
26     econf \
27     --with-mksrc=../mk \
28 ryao 1.3 --with-default-sys-path=${EPREFIX}/usr/share/mk/${PN} \
29 naota 1.1 --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 ryao 1.2 sh ../mk/install-mk -v -m 644 "${ED}"/usr/share/mk/${PN} \
54 naota 1.1 || die "failed to install mk files"
55     }

  ViewVC Help
Powered by ViewVC 1.1.20