blob: 18603d5f10f40b0f1e672b38dae777428a3ff13d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/pmake/pmake-1.45-r2.ebuild,v 1.15 2004/07/15 03:35:32 agriffis Exp $
IUSE=""
inherit eutils
EPATCH_SOURCE="${FILESDIR}"
EPATCH_SUFFIX="patch"
MY_P="${PN}_${PV}-11"
DESCRIPTION="BSD build tool to create programs in parallel"
HOMEPAGE="http://www.netbsd.org/"
SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 alpha ia64 amd64"
DEPEND="virtual/libc"
#RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
# We do not want all patches in ${FILESDIR}, as 01_all_groffpatch.patch is
# not longer valid for this version.
epatch ${FILESDIR}/02_all_mktemp.patch
mv Makefile.boot Makefile.bootorig
sed 's/MACHINE=sun/MACHINE=gentoo/g' Makefile.bootorig > Makefile.bootor
use x86 && sed 's/MACHINE_ARCH=sparc/MACHINE_ARCH=i386/g' Makefile.bootor > Makefile.boot
use alpha && sed 's/MACHINE_ARCH=sparc/MACHINE_ARCH=alpha/g' Makefile.bootor > Makefile.boot
use ppc && sed 's/MACHINE_ARCH=sparc/MACHINE_ARCH=ppc/g' Makefile.bootor > Makefile.boot
use amd64 && sed 's/MACHINE_ARCH=sparc/MACHINE_ARCH=amd64/g' Makefile.bootor > Makefile.boot
}
src_compile() {
make -f Makefile.boot CFLAGS="-O2 -g -Wall -D_GNU_SOURCE -D__COPYRIGHT\(x\)= -D__RCSID\(x\)= -I."
}
src_install() {
dodir /usr/share/mk
insinto /usr/share/mk
rm -f mk/*~
doins mk/*
mv bmake pmake
dobin pmake
dobin mkdep
mv make.1 pmake.1
doman mkdep.1 pmake.1
dodoc PSD.doc/tutorial.ms
}
|