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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jul 1 23:33:30 2007 UTC (5 years, 10 months ago) by radek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.33.ebuild,v 1.2 2006/03/22 09:49:53 radek 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 makefile* || die "cleaning up makefiles"
28 }
29
30 src_compile() {
31 emake all2 || die "compilation error"
32 }
33
34 src_install() {
35 # this wrappers can not be symlinks, p7zip should be called with full path
36 make_wrapper 7za "/usr/lib/${PN}/7za"
37 make_wrapper 7z "/usr/lib/${PN}/7z"
38
39 dobin ${FILESDIR}/p7zip
40
41 exeinto /usr/$(get_libdir)/${PN}
42 doexe bin/7z bin/7za bin/7zCon.sfx || die "doexe bins"
43 exeinto /usr/$(get_libdir)/${PN}/Codecs
44 doexe bin/Codecs/* || die "doexe Codecs"
45 exeinto /usr/$(get_libdir)/${PN}/Formats
46 doexe bin/Formats/* || die "doexe Formats"
47
48 doman man1/7z.1 man1/7za.1
49 dodoc ChangeLog README TODO
50
51 if use doc ; then
52 dodoc DOCS/*.txt
53 dohtml -r DOCS/MANUAL/*
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.13