summaryrefslogtreecommitdiff
path: root/sys-apps/heirloom-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-17 15:32:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-17 15:32:39 +0100
commitc74abf990d32765245eeb94b36ad4af642cae8c0 (patch)
treeb700660e782342b531312e3855b949f5b2fbbc60 /sys-apps/heirloom-tools
parent5a21cec0c36dba03507dcbd5e8ab6698d00b39bf (diff)
gentoo auto-resync : 17:08:2023 - 15:32:39
Diffstat (limited to 'sys-apps/heirloom-tools')
-rw-r--r--sys-apps/heirloom-tools/Manifest2
-rw-r--r--sys-apps/heirloom-tools/heirloom-tools-070715-r4.ebuild94
-rw-r--r--sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild98
3 files changed, 99 insertions, 95 deletions
diff --git a/sys-apps/heirloom-tools/Manifest b/sys-apps/heirloom-tools/Manifest
index 056959122c0f..77b45c728e61 100644
--- a/sys-apps/heirloom-tools/Manifest
+++ b/sys-apps/heirloom-tools/Manifest
@@ -5,5 +5,5 @@ AUX heirloom-tools-070715-glibc-2.31.patch 964 BLAKE2B c235d9c4d035c19617a1bdd40
AUX heirloom-tools-070715-major.patch 2104 BLAKE2B 88a602e587dc8376e8eb8198308e64a05db642b596e89b8087b30a2d6d16102b18f0b033cce4c1a4711a8ebcbd4a508139a7fb098b1cdcc292ef63d183bbc576 SHA512 7cee022491768031d413a8854a05a34cdbb6061fe30fa8514072efd0056614218e989c3e03fe771ae79a022085460f8bcdbb147fac0dcc6d97ab49703eaa98de
AUX heirloom-tools-070715-makefile.patch 581 BLAKE2B a74613af222aff0ec7e6e3e1c012bd444a0a1d74e9caa9ac6ee7b3175641f81966527d24dd2d67b88921943579b591e9f2f735bc427f0c8bfa66977078b2d537 SHA512 ab45b3feca27ad855e535ebae77537572b9d1b6b00bd7f973521d477e962691e56ec67ce5d900980b084758643d85db5af790447411374b488f6c440852cdf71
DIST heirloom-070715.tar.bz2 1000080 BLAKE2B 8719e38b7e260b0ecb9d055672e0097954eee31acd6cde8c582f82055a3b7f66511bf3c876309d0e74a8c29ac334b58ed81c56df26d1b9c065994bd353affd20 SHA512 0b30b0f4c4c92a10ee2da263ea44666f445d96bac86ca4afb7bbb50d8278986e4145a7bcdf3ed9f75611bb956e93e16fc0e19874498ce3ae1a00e6fbb4f910c9
-EBUILD heirloom-tools-070715-r4.ebuild 2288 BLAKE2B 5a84b190f8cc1215f08216f5567903c0f4e9150e4ccd80c28b84f91901654739eed9269594e698a63c8e7695df5205d385522644e615ac6f584f0bc71bca0530 SHA512 f3ef947e61037ee1f29da4e093e77406c15f9aaa5eec6e9bb6bf510e6b3f13d871d4a4eaac6d494d2993fad13d98a114e2a73c08cf18a1daafe55b1bb0ca1974
+EBUILD heirloom-tools-070715-r5.ebuild 2367 BLAKE2B 82e1801939fa31adff8625942966ead48ebed11b7d405f75e46f344e132288125187990dd06730cac4b168412058bae4ae2b75a4e1ab8bd3bb03a9a4dab3599b SHA512 e24d34eb48b9c33bf6e1c9cdf057f3658e7baf5080eccb6e7fef121839775ab37c00363977cce7d801eb28447a03e228d2ea99ee9f042dcd97f5936174b46941
MISC metadata.xml 246 BLAKE2B b1bc124a7ff0a17a05a04ee3f6f0dd9c223853d17e0a1e71c7c49347ee3934dc3dfc42f34d42a79e71708c79a7281187d520c845b71258efc53ea1551013e755 SHA512 662e39fbe0a4ff2655d605e22e199d974662ce76e7b34e62ac680b6dd716c24c71e39f210d310f228030ff4d1b1fcd140ca39863755c4fe7d2aa33901c85b7aa
diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715-r4.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715-r4.ebuild
deleted file mode 100644
index c91cfdb53b42..000000000000
--- a/sys-apps/heirloom-tools/heirloom-tools-070715-r4.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2021 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/ncurses:=
- 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
- "${FILESDIR}"/${P}-clang.patch
-)
-
-# slightly broken
-RESTRICT="test"
-
-src_prepare() {
- default
-
- sed -i "s/\bar\b/$(tc-getAR)/g" libwchar/Makefile.mk || die
-}
-
-src_compile() {
- append-cppflags -D_GNU_SOURCE
- emake -j1 \
- CC="$(tc-getCC)" \
- AR="$(tc-getAR)" \
- RANLIB="$(tc-getRANLIB)" \
- CFLAGS="${CFLAGS}" \
- CFLAGS2="${CFLAGS}" \
- CFLAGSS="${CFLAGS}" \
- CFLAGSU="${CFLAGS}" \
- CPPFLAGS="${CPPFLAGS}" \
- LCURS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \
- LDFLAGS="${LDFLAGS}" \
- 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."
-}
diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild
new file mode 100644
index 000000000000..2408c41d6a73
--- /dev/null
+++ b/sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic readme.gentoo-r1 toolchain-funcs
+
+DESCRIPTION="Heirloom toolchest - original Unix tools"
+HOMEPAGE="https://heirloom.sourceforge.net/tools.html"
+SRC_URI="mirror://sourceforge/heirloom/heirloom/${PV}/heirloom-${PV}.tar.bz2"
+S="${WORKDIR}/heirloom-${PV}"
+
+LICENSE="ZLIB BSD BSD-4 CDDL GPL-2+ LGPL-2.1+ LPL-1.2 Info-ZIP public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# slightly broken
+RESTRICT="test"
+
+RDEPEND="
+ sys-libs/ncurses:=
+ sys-libs/zlib
+ virtual/libcrypt:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-apps/ed
+ sys-devel/bc
+ virtual/pkgconfig
+"
+
+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
+ "${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+ default
+ sed -i "s:\bar\b:$(tc-getAR):g" libwchar/Makefile.mk || die
+}
+
+src_compile() {
+ mypaths=(
+ DEFBIN="${EPREFIX}/usr/lib/${PN}/5bin"
+ SV3BIN="${EPREFIX}/usr/lib/${PN}/5bin"
+ S42BIN="${EPREFIX}/usr/lib/${PN}/5bin/s42"
+ SUSBIN="${EPREFIX}/usr/lib/${PN}/5bin/posix"
+ SU3BIN="${EPREFIX}/usr/lib/${PN}/5bin/posix2001"
+ UCBBIN="${EPREFIX}/usr/lib/${PN}/ucb"
+ CCSBIN="${EPREFIX}/usr/lib/${PN}/ccs/bin"
+ DEFLIB="${EPREFIX}/usr/lib/${PN}/5lib"
+ DEFSBIN="${EPREFIX}/usr/lib/${PN}/5bin"
+ MANDIR="${EPREFIX}/usr/share/man/5man"
+ DFLDIR="${EPREFIX}/etc/default"
+ SPELLHIST="/dev/null"
+ SULOG="${EPREFIX}/var/log/sulog"
+ )
+
+ append-cppflags -D_GNU_SOURCE
+ emake -j1 \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ CFLAGS="${CFLAGS}" \
+ CFLAGS2="${CFLAGS}" \
+ CFLAGSS="${CFLAGS}" \
+ CFLAGSU="${CFLAGS}" \
+ CPPFLAGS="${CPPFLAGS}" \
+ LCURS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
+ LDFLAGS="${LDFLAGS}" \
+ LIBZ="-lz" \
+ "${mypaths[@]}"
+}
+
+src_install() {
+ # we don't want to strip here, so use "true" as noop
+ emake -j1 \
+ STRIP="true" \
+ ROOT="${D}" \
+ "${mypaths[@]}" \
+ install
+ rm -r "${D}/dev" || die
+
+ dodoc CHANGES README
+
+ local DOC_CONTENTS="You may want to adjust your PATH, to enable
+ using the apps of ${PN} by default.
+ \\n\\nMan pages are installed in /usr/share/man/5man/.
+ You may need to set MANPATH to access them."
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}