summaryrefslogtreecommitdiff
blob: 89c7692f885252a0bd1411840d2bab6cda3518ad (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/heirloom-devtools/heirloom-devtools-999999.ebuild,v 1.2 2013/06/10 00:14:03 ryao Exp $

EAPI=4

inherit cvs flag-o-matic toolchain-funcs

ECVS_AUTH="pserver"
ECVS_USER="anonymous"
ECVS_SERVER="heirloom.cvs.sourceforge.net:/cvsroot/heirloom"
ECVS_MODULE="heirloom-devtools"
ECVS_PASS=""
ECVS_CVS_OPTIONS="-dP"

DESCRIPTION="Original UNIX development tools"
HOMEPAGE="http://heirloom.sourceforge.net/devtools.html"
SRC_URI=""

LICENSE="BSD BSD-4 CDDL"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="app-shells/heirloom-sh"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}"

src_prepare() {

	sed -i \
		-e 's:\(SHELL =\) \(.*\):\1 /bin/jsh:' \
		-e 's:\(POSIX_SHELL =\) \(.*\):\1 /bin/sh:' \
		-e "s:\(PREFIX=\)/\(.*\):\1${ED}\2:" \
		-e "s:\(SUSBIN=\)/\(.*\):\1${ED}\2:" \
		-e "s:\(LDFLAGS=\):\1${LDFLAGS}:" \
		-e 's:\(STRIP=\)\(.*\):\1true:' \
		-e "s:\(CXX = \)\(.*\):\1$(tc-getCXX):" \
		./mk.config

}

src_compile() {
	emake -j1
}

pkg_postinst() {
	elog "You may want to add /usr/5bin or /usr/ucb to \$PATH"
	elog "to enable using the apps of heirloom toolchest by default."
	elog "Man pages are installed in /usr/share/man/5man/"
	elog "You may need to set \$MANPATH to access them."
}