/[gentoo-x86]/app-arch/pdv/pdv-1.5.1-r2.ebuild
Gentoo

Contents of /app-arch/pdv/pdv-1.5.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Oct 24 18:47:57 2012 UTC (22 months, 4 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -2 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/pdv/pdv-1.5.1-r2.ebuild,v 1.12 2012/10/20 09:09:54 ago Exp $
4
5 EAPI=4
6
7 inherit eutils autotools toolchain-funcs
8
9 DESCRIPTION="build a self-extracting and self-installing binary package"
10 HOMEPAGE="http://sourceforge.net/projects/pdv"
11 SRC_URI="mirror://sourceforge/pdv/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~hppa ppc x86 ~x86-linux ~ppc-macos"
16 IUSE="X"
17
18 DEPEND="X? ( >=x11-libs/motif-2.3:0
19 >=x11-libs/libX11-1.0.0
20 >=x11-libs/libXt-1.0.0
21 >=x11-libs/libXext-1.0.0
22 >=x11-libs/libXp-1.0.0 )"
23 RDEPEND="${DEPEND}"
24
25 src_prepare() {
26 # fix a size-of-variable bug
27 epatch "${FILESDIR}"/${P}-opt.patch
28 # fix a free-before-use bug
29 epatch "${FILESDIR}"/${P}-early-free.patch
30 # fix a configure script bug
31 epatch "${FILESDIR}"/${P}-x-config.patch
32 # fix default args bug from assuming 'char' is signed
33 epatch "${FILESDIR}"/${P}-default-args.patch
34 # prevent pre-stripped binaries
35 epatch "${FILESDIR}"/${P}-no-strip.patch
36
37 # re-build configure script since patch was applied to configure.in
38 cd "${S}"/X11
39 eautoreconf
40 tc-export CC
41 }
42
43 src_configure() {
44 local myconf=""
45 use X || myconf="--without-x" # configure script is broken, cant use use_with
46 econf ${myconf}
47 }
48
49 src_install() {
50 dobin pdv pdvmkpkg
51 doman pdv.1 pdvmkpkg.1
52 if use X ; then
53 dobin X11/xmpdvmkpkg
54 doman xmpdvmkpkg.1
55 fi
56 dodoc AUTHORS ChangeLog NEWS README pdv.lsm
57 }

  ViewVC Help
Powered by ViewVC 1.1.20