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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Oct 30 11:51:05 2012 UTC (2 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
version bump

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

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-20120620.ebuild,v 1.3 2012/08/03 03:19:42 ryao Exp $
4
5 EAPI=3
6
7 inherit eutils
8
9 MK_VER=20121010
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 ~x64-freebsd"
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=${EPREFIX}/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 "${ED}"/usr/share/mk/${PN} \
54 || die "failed to install mk files"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20