diff options
Diffstat (limited to 'sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild')
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild deleted file mode 100644 index 925ecd40fb14..000000000000 --- a/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit toolchain-funcs epatch - -MISC_VER=23 -SHELL_VER=118 -DEV_VER=49 - -DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Leopard" -HOMEPAGE="http://www.opensource.apple.com/" -SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz - http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz - http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~arm64-macos ~ppc-macos ~x64-macos" -IUSE="" - -S=${WORKDIR} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-5-w.patch - epatch "${FILESDIR}"/${PN}-5-stdlib.patch - epatch "${FILESDIR}"/${PN}-6-w64.patch - cd "${S}"/developer_cmds-${DEV_VER} - epatch "${FILESDIR}"/${PN}-5-error.patch - # deal with OSX Lion and above - sed -i -e 's/getline/ugetline/g' unifdef/unifdef.c || die - - eapply_user -} - -src_compile() { - local TS=${S}/misc_cmds-${MISC_VER} - # tsort is provided by corepatch - for t in leave units calendar; do - cd "${TS}/${t}" - echo "in ${TS}/${t}:" - echo "$(tc-getCC) -o ${t}" *.c - $(tc-getCC) -o ${t} *.c || die "failed to compile $t" - done - # compile cal separately - cd "${TS}/ncal" - echo "in ${TS}/ncal:" - local flags - flags[0]=-I. - flags[1]=-D__FBSDID=__RCSID - flags[2]=-Wsystem-headers - echo "$(tc-getCC) ${flags[@]} -c calendar.c" - $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" - echo "$(tc-getCC) ${flags[@]} -c easter.c" - $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" - echo "$(tc-getCC) ${flags[@]} -c ncal.c" - $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" - echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" - $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" - - TS=${S}/shell_cmds-${SHELL_VER} - # only pick those tools not provided by corepatch, findutils - for t in \ - alias apply getopt hostname jot kill \ - lastcomm renice shlock time whereis; - do - echo "in ${TS}/${t}:" - echo "$(tc-getCC) -o ${t} ${t}.c" - cd "${TS}/${t}" - $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t" - done - # script and killall need additonal flags - for t in \ - killall script - do - echo "in ${TS}/${t}:" - echo "$(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c" - cd "${TS}/${t}" - $(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c || die "failed to compile $t" - done - cd "${TS}/w" - echo "in ${TS}/w:" - echo "$(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" - $(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ - || die "failed to compile w" - - TS=${S}/developer_cmds-${DEV_VER} - # only pick those tools that do not conflict (no ctags and indent) - # do not install lorder, mkdep and vgrind as they are a non-prefix-aware - # shell scripts - # don't install rpcgen, as it is heavily related to the OS it runs - # on (and this is the Leopard version) - for t in asa error hexdump unifdef what ; do - echo "in ${TS}/${t}:" - cd "${TS}/${t}" - sed -i -e '/^__FBSDID/d' *.c - echo "$(tc-getCC) -o ${t}" *.c - $(tc-getCC) -o ${t} *.c || die "failed to compile $t" - done -} - -src_install() { - mkdir -p "${ED}"/bin - mkdir -p "${ED}"/usr/bin - - local TS=${S}/misc_cmds-${MISC_VER} - for t in leave units calendar ; do - cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ - doman "${TS}/${t}/${t}.1" - done - # copy cal separately - cp "${TS}/ncal/cal" "${ED}"/usr/bin/ - dosym /usr/bin/cal /usr/bin/ncal - doman "${TS}/ncal/ncal.1" - dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 - - TS=${S}/shell_cmds-${SHELL_VER} - for t in \ - alias apply getopt jot killall lastcomm \ - renice script shlock su time w whereis; - do - cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ - [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" - [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" - done - cp "${TS}/w/w" "${ED}"/usr/bin/uptime - doman "${TS}/w/uptime.1" - for t in hostname kill; do - cp "${TS}/${t}/${t}" "${ED}"/bin/ - doman "${TS}/${t}/${t}.1" - done - - TS=${S}/developer_cmds-${DEV_VER} - for t in asa error hexdump unifdef what ; do - cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ - doman "${TS}/${t}/${t}.1" - done -} |