/[gentoo-x86]/app-arch/p7zip/p7zip-4.39.ebuild
Gentoo

Contents of /app-arch/p7zip/p7zip-4.39.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jul 1 23:33:30 2007 UTC (5 years, 11 months ago) by radek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
  version bump, and orphaned files cleaning
(Portage version: 2.1.3_rc6)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/p7zip/p7zip-4.39.ebuild,v 1.4 2006/06/10 09:24:52 hansmi Exp $
4
5 inherit eutils toolchain-funcs multilib
6
7 DESCRIPTION="Port of 7-Zip archiver for Unix"
8 HOMEPAGE="http://p7zip.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_src_all.tar.bz2"
10
11 LICENSE="LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="~hppa ppc x86"
14 IUSE="static doc"
15
16 S=${WORKDIR}/${PN}_${PV}
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21 use static && epatch "${FILESDIR}"/p7zip-4.16_x86_static.patch
22 # be aware that CXX is now gcc in pattern due to upstream (radek@20060318)
23 sed -i \
24 -e "/^CXX=/s:gcc:$(tc-getCXX):" \
25 -e "/^CC=/s:gcc:$(tc-getCC):" \
26 -e "s:-O1 -s:${CXXFLAGS}:" \
27 -e "s:-O -s:${CXXFLAGS}:" \
28 makefile* || die "cleaning up makefiles"
29
30 if use amd64; then
31 ewarn "Using suboptimal -fPIC upstream makefile due to amd64 being detected. See #126722"
32 cp -f makefile.linux_amd64 makefile.machine
33 fi
34 }
35
36 src_compile() {
37 emake all3 || die "compilation error"
38 }
39
40 src_install() {
41 # this wrappers can not be symlinks, p7zip should be called with full path
42 make_wrapper 7zr "/usr/lib/${PN}/7zr"
43 make_wrapper 7za "/usr/lib/${PN}/7za"
44 make_wrapper 7z "/usr/lib/${PN}/7z"
45
46 dobin ${FILESDIR}/p7zip
47
48 exeinto /usr/$(get_libdir)/${PN}
49 doexe bin/7z bin/7za bin/7zr bin/7zCon.sfx || die "doexe bins"
50 exeinto /usr/$(get_libdir)/${PN}/Codecs
51 doexe bin/Codecs/* || die "doexe Codecs"
52 exeinto /usr/$(get_libdir)/${PN}/Formats
53 doexe bin/Formats/* || die "doexe Formats"
54
55 doman man1/7z.1 man1/7za.1 man1/7zr.1
56 dodoc ChangeLog README TODO
57
58 if use doc ; then
59 dodoc DOCS/*.txt
60 dohtml -r DOCS/MANUAL/*
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20