1 # Copyright © 2018, 2020-2021 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"
33 "$FILESDIR/$P-no-stropts.patch"
37 You may want to add /usr/5bin or /usr/ucb to \$PATH
38 to enable using the apps of heirloom toolchest by default.
39 Man pages are installed in /usr/share/man/5man/
40 You may need to set \$MANPATH to access them.
44 pkgconfig=`tc-getPKG_CONFIG`
45 rpc_cppflags=`$pkgconfig --cflags libtirpc`
46 rpc_libs=`$pkgconfig --libs libtirpc`
49 -e 's:^\(SHELL =\) \(.*\):\1 /bin/jsh:' \
50 -e 's:^\(POSIX_SHELL =\) \(.*\):\1 /bin/sh:' \
51 -e "s:^\(PREFIX=\)\(.*\):\1${EPREFIX}\2:" \
52 -e "s:^\(SUSBIN=\)\(.*\):\1${EPREFIX}\2:" \
53 -e "s:^\(LDFLAGS=\):\1${LDFLAGS}:" \
54 -e "s:^\(CFLAGS=\)\(.*\):\1${CFLAGS}:" \
55 -e 's:^\(STRIP=\)\(.*\):\1true:' \
56 -e "s:^\(CXX = \)\(.*\):\1$(tc-getCXX) -fpermissive:" \
57 -e "s:^\(INSTALL=\)\(.*\):\1$(which install):" \
58 -e "/^CPPFLAGS *=/s:$: $rpc_cppflags:" \
59 -e "/^LIBS *=/s:$: $rpc_libs:" \
62 echo "CC=$(tc-getCC)" >> "./mk.config"
70 emake ROOT="${D}" install
71 readme.gentoo_create_doc
75 readme.gentoo_print_elog