diff options
author | Stephan Hartmann <stha09@googlemail.com> | 2020-03-26 16:34:52 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-03-26 19:46:42 +0200 |
commit | f13ea5002842f34785a6a9d4938d6b3001d3002b (patch) | |
tree | 5ab64e592c5dba149fc833c896020854014a8f6c /sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild | |
parent | dev-python/nose: Coverage supports py3.8 now (diff) | |
download | gentoo-f13ea5002842f34785a6a9d4938d6b3001d3002b.tar.gz gentoo-f13ea5002842f34785a6a9d4938d6b3001d3002b.tar.bz2 gentoo-f13ea5002842f34785a6a9d4938d6b3001d3002b.zip |
sys-apps/heirloom-tools: fix some QA issues, EAPI 7
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/15127
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild')
-rw-r--r-- | sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild new file mode 100644 index 000000000000..34e2e70756e4 --- /dev/null +++ b/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Heirloom toolchest - original Unix tools" +HOMEPAGE="http://heirloom.sourceforge.net/tools.html" +SRC_URI="http://downloads.sourceforge.net/project/heirloom/heirloom/${PV}/heirloom-${PV}.tar.bz2" + +LICENSE="CDDL GPL-2 LGPL-2.1 9base ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/zlib +" +DEPEND=${RDEPEND} +BDEPEND=" + sys-apps/ed + sys-devel/bc + virtual/pkgconfig +" +S="${WORKDIR}/heirloom-${PV}" +PATCHES=( + "${FILESDIR}"/${P}-major.patch + "${FILESDIR}"/${P}-makefile.patch + "${FILESDIR}"/${P}-glibc-2.30.patch + "${FILESDIR}"/${P}-glibc-2.31.patch + "${FILESDIR}"/${P}-gcc-10.patch +) + +# slightly broken +RESTRICT="test" + +src_compile() { + append-cppflags -D_GNU_SOURCE + emake -j1 \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CFLAGS2="${CFLAGS}" \ + CFLAGSS="${CFLAGS}" \ + CFLAGSU="${CFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + LCURS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \ + LDFLAGS="${LDFLAGS}" \ + ROOT="${ED}" \ + DEFBIN="/usr/bin/${PN}/5bin" \ + DEFSBIN="/usr/bin/${PN}/5bin" \ + SV3BIN="/usr/bin/${PN}/5bin" \ + S42BIN="/usr/bin/${PN}/5bin/s42" \ + SUSBIN="/usr/bin/${PN}/5bin/posix" \ + UCBBIN="/usr/bin/${PN}/ucb" \ + CCSBIN="/usr/bin/${PN}/ccs/bin" \ + SU3BIN="/usr/bin/${PN}/5bin/posix2001" \ + DEFLIB="/usr/bin/${PN}/5lib" \ + LIBZ=-lz +} + +src_install() { + # we don't want to strip here, so use "true" as noop + emake -j1 \ + STRIP="true" \ + ROOT="${ED}" \ + DEFBIN="/usr/bin/${PN}/5bin" \ + DEFSBIN="/usr/bin/${PN}/5bin" \ + SV3BIN="/usr/bin/${PN}/5bin" \ + S42BIN="/usr/bin/${PN}/5bin/s42" \ + SUSBIN="/usr/bin/${PN}/5bin/posix" \ + UCBBIN="/usr/bin/${PN}/ucb" \ + CCSBIN="/usr/bin/${PN}/ccs/bin" \ + SU3BIN="/usr/bin/${PN}/5bin/posix2001" \ + DEFLIB="/usr/bin/${PN}/5lib" \ + install +} + +pkg_postinst() { + elog "You may want to adjust your \$PATH, to enable " + elog "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." +} |