1 # Copyright © 2018 Nick Bowler
2 # License GPLv2+: GNU General Public License version 2 or any later version.
3 # This is free software: you are free to change and distribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
6 # This a modified version of the original ebuild from Gentoo GNU/Linux,
7 # covered by the following copyright and permission notice:
9 # Copyright 1999-2017 Gentoo Foundation
10 # Distributed under the terms of the GNU General Public License v2
13 inherit flag-o-matic readme.gentoo-r1 toolchain-funcs
15 DESCRIPTION="Original UNIX development tools"
16 HOMEPAGE="http://heirloom.sourceforge.net/devtools.html"
17 SRC_URI="http://downloads.sourceforge.net/project/heirloom/${PN}/${PV}/${P}.tar.bz2"
19 LICENSE="BSD BSD-4 CDDL"
21 KEYWORDS="~amd64 ~x64-solaris"
24 RDEPEND="app-shells/heirloom-sh
30 "$FILESDIR/$P-solaris.patch"
31 "$FILESDIR/$P-64-bit.patch"
32 "$FILESDIR/$P-gcc6.patch"
36 You may want to add /usr/5bin or /usr/ucb to \$PATH
37 to enable using the apps of heirloom toolchest by default.
38 Man pages are installed in /usr/share/man/5man/
39 You may need to set \$MANPATH to access them.
43 pkgconfig=`tc-getPKG_CONFIG`
44 rpc_cppflags=`$pkgconfig --cflags libtirpc`
45 rpc_libs=`$pkgconfig --libs libtirpc`
48 -e 's:^\(SHELL =\) \(.*\):\1 /bin/jsh:' \
49 -e 's:^\(POSIX_SHELL =\) \(.*\):\1 /bin/sh:' \
50 -e "s:^\(PREFIX=\)\(.*\):\1${EPREFIX}\2:" \
51 -e "s:^\(SUSBIN=\)\(.*\):\1${EPREFIX}\2:" \
52 -e "s:^\(LDFLAGS=\):\1${LDFLAGS}:" \
53 -e "s:^\(CFLAGS=\)\(.*\):\1${CFLAGS}:" \
54 -e 's:^\(STRIP=\)\(.*\):\1true:' \
55 -e "s:^\(CXX = \)\(.*\):\1$(tc-getCXX):" \
56 -e "s:^\(INSTALL=\)\(.*\):\1$(which install):" \
57 -e "/^CPPFLAGS *=/s:$: $rpc_cppflags:" \
58 -e "/^LIBS *=/s:$: $rpc_libs:" \
61 echo "CC=$(tc-getCC)" >> "./mk.config"
69 emake ROOT="${D}" install
70 readme.gentoo_create_doc
74 readme.gentoo_print_elog