/[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 - (hide annotations) (download)
Wed Oct 24 18:47:57 2012 UTC (2 years 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 ottxor 1.11 # Copyright 1999-2012 Gentoo Foundation
2 wormo 1.1 # Distributed under the terms of the GNU General Public License v2
3 ulm 1.13 # $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 wormo 1.1
5 ottxor 1.11 EAPI=4
6 wormo 1.4
7 ago 1.12 inherit eutils autotools toolchain-funcs
8 wormo 1.1
9     DESCRIPTION="build a self-extracting and self-installing binary package"
10 wormo 1.8 HOMEPAGE="http://sourceforge.net/projects/pdv"
11 wormo 1.1 SRC_URI="mirror://sourceforge/pdv/${P}.tar.gz"
12    
13     LICENSE="MIT"
14     SLOT="0"
15 ago 1.12 KEYWORDS="~amd64 ~hppa ppc x86 ~x86-linux ~ppc-macos"
16 ulm 1.6 IUSE="X"
17 wormo 1.1
18 ulm 1.13 DEPEND="X? ( >=x11-libs/motif-2.3:0
19 omp 1.5 >=x11-libs/libX11-1.0.0
20 wormo 1.1 >=x11-libs/libXt-1.0.0
21     >=x11-libs/libXext-1.0.0
22 omp 1.5 >=x11-libs/libXp-1.0.0 )"
23 ulm 1.9 RDEPEND="${DEPEND}"
24 wormo 1.1
25 ottxor 1.11 src_prepare() {
26 wormo 1.1 # 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 wormo 1.8 # prevent pre-stripped binaries
35     epatch "${FILESDIR}"/${P}-no-strip.patch
36 wormo 1.1
37     # re-build configure script since patch was applied to configure.in
38     cd "${S}"/X11
39 wormo 1.4 eautoreconf
40 ago 1.12 tc-export CC
41 flameeyes 1.7 }
42 wormo 1.1
43 ottxor 1.11 src_configure() {
44 wormo 1.1 local myconf=""
45 ulm 1.6 use X || myconf="--without-x" # configure script is broken, cant use use_with
46 ottxor 1.11 econf ${myconf}
47 wormo 1.1 }
48    
49     src_install() {
50 ottxor 1.11 dobin pdv pdvmkpkg
51 wormo 1.1 doman pdv.1 pdvmkpkg.1
52 ulm 1.6 if use X ; then
53 ottxor 1.11 dobin X11/xmpdvmkpkg
54     doman xmpdvmkpkg.1
55 wormo 1.1 fi
56     dodoc AUTHORS ChangeLog NEWS README pdv.lsm
57     }

  ViewVC Help
Powered by ViewVC 1.1.20