--- /usr/portage/app-arch/unzip/unzip-5.50-r2.ebuild Sat Jun 26 05:38:52 2004 +++ /usr/local/portage/app-arch/unzip/unzip-5.50-r2.ebuild Mon Aug 30 17:51:57 2004 @@ -10,7 +10,7 @@ LICENSE="Info-ZIP" SLOT="0" -KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390" +KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390 macos" IUSE="" RDEPEND="virtual/libc" @@ -22,7 +22,12 @@ cd ${S} epatch ${FILESDIR}/${P}-dotdot.patch - sed -i \ + if [ ${ARCH} = macos ]; then + SED=gsed + else + SED=sed + fi + ${SED} -i \ -e "s:-O3:${CFLAGS}:" \ -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \ -e "s:-O :${CFLAGS} :" \ @@ -35,6 +40,7 @@ use x86 \ && TARGET=linux \ || TARGET=linux_noasm + use macos && TARGET=macosx emake -f unix/Makefile ${TARGET} || die "emake failed" }