diff options
author | Fabian Groffen <grobian@gentoo.org> | 2009-06-21 13:31:36 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2009-06-21 13:31:36 +0000 |
commit | 8cbad6cca3a955b086766537f4a6934d79b0bd02 (patch) | |
tree | 8ba13fb3d40a5b18c7263337cc43aeea77ed54e9 /sys-apps | |
parent | define eapi before inherit and explicitly assign rdepend (diff) | |
download | historical-8cbad6cca3a955b086766537f4a6934d79b0bd02.tar.gz historical-8cbad6cca3a955b086766537f4a6934d79b0bd02.tar.bz2 historical-8cbad6cca3a955b086766537f4a6934d79b0bd02.zip |
Add sys-apps/darwin-miscutils from Gentoo Prefix tree
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/darwin-miscutils/ChangeLog | 45 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/Manifest | 15 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild | 106 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild | 143 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild | 141 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch | 14 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch | 20 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch | 10 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/metadata.xml | 5 |
9 files changed, 499 insertions, 0 deletions
diff --git a/sys-apps/darwin-miscutils/ChangeLog b/sys-apps/darwin-miscutils/ChangeLog new file mode 100644 index 000000000000..89ba00a949a2 --- /dev/null +++ b/sys-apps/darwin-miscutils/ChangeLog @@ -0,0 +1,45 @@ +# ChangeLog for sys-apps/darwin-miscutils +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog,v 1.1 2009/06/21 13:31:36 grobian Exp $ + +*darwin-miscutils-6 (19 Jun 2008) + + 19 Jun 2008; Fabian Groffen <grobian@gentoo.org> + +darwin-miscutils-6.ebuild: + Version bump based on the sources of OSX 10.5.3 + +*darwin-miscutils-5-r1 (02 Feb 2008) +*darwin-miscutils-4-r1 (02 Feb 2008) + + 02 Feb 2008; Fabian Groffen <grobian@gentoo.org> + -darwin-miscutils-4.ebuild, +darwin-miscutils-4-r1.ebuild, + -darwin-miscutils-5.ebuild, +darwin-miscutils-5-r1.ebuild: + No longer install rpcgen, since this tool is tightly associated to the OS it + runs on. In short, the Leopard version breaks on Tiger and vice versa. + +*darwin-miscutils-4 (14 Oct 2007) + + 14 Oct 2007; Fabian Groffen <grobian@gentoo.org> + -darwin-miscutils-3.ebuild, +darwin-miscutils-4.ebuild: + Add some tools of developer_cmds, to have rpcgen and unifdef + +*darwin-miscutils-3 (17 Aug 2007) + + 17 Aug 2007; Elias Pipping <pipping@gentoo.org> + -darwin-miscutils-2.ebuild, +darwin-miscutils-3.ebuild: + update to use latest version of shell_cmds, update header, fix typo + +*darwin-miscutils-2 (15 Dec 2006) + + 15 Dec 2006; Fabian Groffen <grobian@gentoo.org> + +darwin-miscutils-2.ebuild, -darwin-miscutils-18.ebuild: + New version with extra utilities from shell_cmds: alias apply getopt + hostname jot kill killall lastcomm renice script shlock su time w + whereis. Changed version scheme to be Gentoo specific, as this package + is a selection of programs missing in coreutils. findutils, etc. + + 9 Nov 2006; Fabian Groffen <grobian@gentoo.org> : + + Initial import of darwin-miscutils, a package with the tools found in + Darwin: cal, calendar, leave, lock, units. + diff --git a/sys-apps/darwin-miscutils/Manifest b/sys-apps/darwin-miscutils/Manifest new file mode 100644 index 000000000000..5b48b51b47cc --- /dev/null +++ b/sys-apps/darwin-miscutils/Manifest @@ -0,0 +1,15 @@ +AUX darwin-miscutils-5-error.patch 269 RMD160 72011ff848e52285daa47e238925a2a18973e9ca SHA1 7b75b28c78b0203550ff0c7d543d4a2aec68276e SHA256 4870dfd866f6b9b7220682cfb2eee223fd13ac561d53fd691aa265c5b06769bd +AUX darwin-miscutils-5-stdlib.patch 540 RMD160 e1b53eaa905faee4433a8c8fce553aed943b8aa5 SHA1 f1ec6ddd1d08f6d1f5ef90bc6990203b0a901e4a SHA256 6893425ca05712ad202922c9d183e053d98be3c3debcf491356d5d43bb6309db +AUX darwin-miscutils-5-w.patch 201 RMD160 a61c308e3ab9941fb8a6eafcf6ee30256bade277 SHA1 8f8bb62f5cfdf96a24d30b55c375361112909bd1 SHA256 42424190d253de8931bc3cde78aad2bd2fce695dc2998781e156c42121c2ab36 +DIST developer_cmds-39.tar.gz 155831 RMD160 9be72d4c6f4650006c8bd150916d9595f3f0e365 SHA1 e2953aea50f8738a1735a8fc8b0d4d18b96541f8 SHA256 37d58d783c44694bf869ef8906ea866a7d1798154f3206a1880b8adc154d6d81 +DIST developer_cmds-48.tar.gz 161783 RMD160 992b192602e4a6a6174d0f7da64827fd4d0d9d9a SHA1 f17050f76d7f9b010996e0e6afd0f6246dc32572 SHA256 212b1102580452576dcaa38c053aa1809ede046ce5712a4c268d964be71a287d +DIST developer_cmds-49.tar.gz 307753 RMD160 470890b959984563883c93ad7b14d475551d9e5b SHA1 34a11d147fa158459b5080fb18903ebc0e7dd954 SHA256 db0f2611c8efb0ec781cb8f03878958c589c8953ba9002e051afa4fc3bb6a762 +DIST misc_cmds-18.tar.gz 96635 RMD160 54683cf6a50d0aaf2aa9d920c5b592d995633e5c SHA1 55a0e3428b881100cd06d8d4263c2a8f30ad0f11 SHA256 dcc4b199cdb4d40cabd1dd58cc3498878751d9746ad736ada0177a86236d187e +DIST misc_cmds-23.tar.gz 114747 RMD160 b5a4d10cb8c2113360c50a1dc9771cd72f1778b8 SHA1 7402f45ef9fa344ec8225cc93af49d94be95ff4b SHA256 150c74e3041db4cb02b1aabddfedb998c152bfba616ed6e24b2b98d025fef785 +DIST shell_cmds-118.tar.gz 162145 RMD160 dae6c52e8f25797d1eb84a7d2b9bd91686cfd50d SHA1 808156dddef207d904cc83e50b7cbf451824fc5f SHA256 c4628a25407d940717f3e062e48e31bf3de2ce07e006bf909d69f927af92adb4 +DIST shell_cmds-81.tar.gz 154516 RMD160 033ccf7330d8b05f3b5d7d47c2de824990975c57 SHA1 d90b586e27a3778b5d61077c1fc4777b545a7c35 SHA256 64f0e01de9e13b9a1518ccd2cf45486b6159a5fdc562e7d0725e835d495cea81 +EBUILD darwin-miscutils-4-r1.ebuild 3141 RMD160 8ff59aff00c116a8a2a25c835a71b432414e6778 SHA1 a66348097c2f65393aadaa02b1f32639d7118fb3 SHA256 4e7c25cc37b03dec882b87eeb422d596a65c077d00c82f44583cb130d24d9784 +EBUILD darwin-miscutils-5-r1.ebuild 4364 RMD160 be45d9daec02ac4503589ea4b6e2605a70bb2c87 SHA1 21654bb3afa307777748bf214be75504b0b34131 SHA256 968ba64a1aba3406343023fe179069969de8311a1f6e69e1582314e20e4d7127 +EBUILD darwin-miscutils-6.ebuild 4396 RMD160 931c0d3c02e4f18ed9bf848fdec8ecc0c5849f63 SHA1 12b2281d8f8fede76e0883c3315add48bc72be69 SHA256 fb854ba1470670186804a711a282a1e467c2a9b5f943c7866e00c4d3180ac663 +MISC ChangeLog 1813 RMD160 fe09055ad7339c31cf91cdce0bbcc83cc99d388d SHA1 741dc94f02ce251eba1c8981a511413a0c49e623 SHA256 3d86f76cbe83ee829ff3ec59f14aaa2fd651ed022f6e377659395ccbab7ea92f +MISC metadata.xml 158 RMD160 61ad495b84df949a636009d30b8c3af6d267e469 SHA1 cacd49ab85e7648a81e5dd4791ef9598090ee63d SHA256 6a21555efc71392966785841abafc9b2984d97d75ad574d654db6adc8674b1bd diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild new file mode 100644 index 000000000000..de5d41ef25c2 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild,v 1.1 2009/06/21 13:31:36 grobian Exp $ + +inherit toolchain-funcs + +MISC_VER=18 +SHELL_VER=81 +DEV_VER=39 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems" +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="~ppc-macos ~x86-macos" +IUSE="" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in cal leave lock 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 + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill killall \ + lastcomm renice script 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 + cd "${TS}/su" + echo "in ${TS}/su:" + echo "$(tc-getCC) -lpam -o su su.c" + $(tc-getCC) -lpam -o su su.c || die "failed to compile su" + cd "${TS}/w" + echo "in ${TS}/w:" + echo "$(tc-getCC) -DSUCKAGE -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) -DSUCKAGE -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 Tiger version) + for t in asa error hexdump unifdef what ; do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t}" *.c + cd "${TS}/${t}" + sed -i -e '/^__FBSDID/d' *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + local ED=${ED-${D}} + + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in cal leave lock units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + + 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 +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild new file mode 100644 index 000000000000..4ab483bdc7f8 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild,v 1.1 2009/06/21 13:31:36 grobian Exp $ + +inherit toolchain-funcs eutils + +MISC_VER=23 +SHELL_VER=118 +DEV_VER=48 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems" +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="~ppc-macos ~x86-macos" +IUSE="" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-w.patch + epatch "${FILESDIR}"/${P}-error.patch + epatch "${FILESDIR}"/${P}-stdlib.patch +} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + 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 coreutils, 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}/su" + echo "in ${TS}/su:" + echo "$(tc-getCC) -lpam -o su su.c" + $(tc-getCC) -lpam -o su su.c || die "failed to compile su" + 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() { + local ED=${ED-${D}} + + 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 +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild new file mode 100644 index 000000000000..1e1caa1ddfa8 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild,v 1.1 2009/06/21 13:31:36 grobian Exp $ + +inherit toolchain-funcs eutils + +MISC_VER=23 +SHELL_VER=118 +DEV_VER=49 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems" +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="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-5-w.patch + epatch "${FILESDIR}"/${PN}-5-stdlib.patch + cd "${S}"/developer_cmds-${DEV_VER} + epatch "${FILESDIR}"/${PN}-5-error.patch +} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + 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 coreutils, 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}/su" + echo "in ${TS}/su:" + echo "$(tc-getCC) -lpam -o su su.c" + $(tc-getCC) -lpam -o su su.c || die "failed to compile su" + 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() { + local ED=${ED-${D}} + + 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 +} diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch new file mode 100644 index 000000000000..391dceb39188 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch @@ -0,0 +1,14 @@ +--- developer_cmds-48/error/error.h ++++ developer_cmds-48/error/error.h +@@ -194,11 +194,7 @@ + */ + extern int nerrors; + extern Eptr er_head; +-#ifdef __APPLE__ +-__private_extern__ +-#else + extern +-#endif + Eptr *errors; + /* + * Resources for each of the files mentioned diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch new file mode 100644 index 000000000000..0605310bff42 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch @@ -0,0 +1,20 @@ +--- misc_cmds-23/leave/leave.c ++++ misc_cmds-23/leave/leave.c +@@ -34,6 +34,7 @@ + */ + + #include <sys/cdefs.h> ++#include <stdlib.h> + #ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1980, 1988, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +--- shell_cmds-118/alias/alias.c ++++ shell_cmds-118/alias/alias.c +@@ -3,6 +3,7 @@ + the shell scripts. It does not lead to any deliverable. Do not remove this + file from this (..../shell_cmds/alias) directory. + */ ++#include <stdlib.h> + int main() + { + exit(0); diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch new file mode 100644 index 000000000000..f6db3753d930 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch @@ -0,0 +1,10 @@ +--- shell_cmds-118/w/w.c ++++ shell_cmds-118/w/w.c +@@ -75,7 +75,6 @@ + #include <kvm.h> + #endif + #include <langinfo.h> +-#include <libutil.h> + #include <limits.h> + #include <locale.h> + #include <netdb.h> diff --git a/sys-apps/darwin-miscutils/metadata.xml b/sys-apps/darwin-miscutils/metadata.xml new file mode 100644 index 000000000000..925cf70da957 --- /dev/null +++ b/sys-apps/darwin-miscutils/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>apple</herd> +</pkgmetadata> |