# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-arch/zip/zip-2.31-r1.ebuild,v 1.3 2006/07/08 13:55:52 flameeyes Exp $ inherit toolchain-funcs eutils flag-o-matic DESCRIPTION="Info ZIP (encryption support)" HOMEPAGE="ftp://ftp.freesoftware.com/pub/infozip/Zip.html" SRC_URI="ftp://ftp.info-zip.org/pub/infozip/src/zip${PV//.}.tar.gz" LICENSE="Info-ZIP" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="crypt" DEPEND="" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/zip-2.3-unix_configure-pic.patch epatch "${FILESDIR}"/${P}-exec-stack.patch epatch "${FILESDIR}"/${P}-make.patch cd unix use crypt || append-flags -DNO_CRYPT sed -i -e "s:-O2:${CFLAGS}:" Makefile } src_compile() { emake \ -f unix/Makefile \ CC="$(tc-getCC)" \ CPP="$(tc-getCC) -E" \ generic || die } src_install() { dobin zip zipnote zipsplit || die doman man/zip.1 dosym zip.1 /usr/share/man/man1/zipnote.1 dosym zip.1 /usr/share/man/man1/zipzplit.1 if use crypt ; then dobin zipcloak || die dosym zip.1 /usr/share/man/man1/zipcloak.1 fi dodoc BUGS CHANGES MANUAL README TODO WHATSNEW WHERE proginfo/*.txt }