/[gentoo-x86]/app-arch/zip/zip-3.0-r3.ebuild
Gentoo

Contents of /app-arch/zip/zip-3.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Apr 14 10:51:28 2015 UTC (5 years, 2 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Stable for ia64, wrt bug #530914

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ia64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/zip/zip-3.0-r3.ebuild,v 1.10 2015/04/13 08:18:21 ago Exp $
4
5 EAPI="4"
6 inherit toolchain-funcs eutils flag-o-matic
7
8 MY_P="${PN}${PV//.}"
9 DESCRIPTION="Info ZIP (encryption support)"
10 HOMEPAGE="http://www.info-zip.org/"
11 SRC_URI="mirror://sourceforge/infozip/${MY_P}.zip"
12
13 LICENSE="Info-ZIP"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~arm-linux"
16 IUSE="bzip2 crypt natspec unicode"
17
18 RDEPEND="bzip2? ( app-arch/bzip2 )
19 natspec? ( dev-libs/libnatspec )"
20 DEPEND="${RDEPEND}
21 app-arch/unzip"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${P}-no-crypt.patch #238398
27 epatch "${FILESDIR}"/${P}-pic.patch
28 epatch "${FILESDIR}"/${P}-exec-stack.patch #122849
29 epatch "${FILESDIR}"/${P}-build.patch #200995
30 epatch "${FILESDIR}"/${P}-zipnote-freeze.patch #322047
31 epatch "${FILESDIR}"/${P}-format-security.patch #512414
32 use natspec && epatch "${FILESDIR}"/${PN}-3.0-natspec.patch #275244
33 }
34
35 src_configure() {
36 append-cppflags \
37 -DLARGE_FILE_SUPPORT \
38 -DUIDGID_NOT_16BIT \
39 -D$(usex bzip2 '' NO)BZIP2_SUPPORT \
40 -D$(usex crypt '' NO)CRYPT \
41 -D$(usex unicode '' NO)UNICODE_SUPPORT
42 # Third arg disables bzip2 logic as we handle it ourselves above.
43 sh ./unix/configure "$(tc-getCC)" "-I. -DUNIX ${CFLAGS} ${CPPFLAGS}" "${T}" || die
44 if use bzip2 ; then
45 sed -i -e "s:LFLAGS2=:&'-lbz2 ':" flags || die
46 fi
47 }
48
49 src_compile() {
50 emake \
51 CPP="$(tc-getCPP)" \
52 -f unix/Makefile generic
53 }
54
55 src_install() {
56 dobin zip zipnote zipsplit
57 doman man/zip{,note,split}.1
58 if use crypt ; then
59 dobin zipcloak
60 doman man/zipcloak.1
61 fi
62 dodoc BUGS CHANGES README* TODO WHATSNEW WHERE proginfo/*.txt
63 }

  ViewVC Help
Powered by ViewVC 1.1.20