1 |
commit: cf45683b1d89e0cacc023eb13c0cccdb0c9248b6 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 1 18:25:58 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 1 18:28:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf45683b |
7 |
|
8 |
app-arch/pdv: x11-libs/libXp is not really needed |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-arch/pdv/pdv-1.5.1-r3.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 60 insertions(+) |
14 |
|
15 |
diff --git a/app-arch/pdv/pdv-1.5.1-r3.ebuild b/app-arch/pdv/pdv-1.5.1-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..c865fa96798 |
18 |
--- /dev/null |
19 |
+++ b/app-arch/pdv/pdv-1.5.1-r3.ebuild |
20 |
@@ -0,0 +1,60 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit autotools toolchain-funcs |
26 |
+ |
27 |
+DESCRIPTION="build a self-extracting and self-installing binary package" |
28 |
+HOMEPAGE="https://sourceforge.net/projects/pdv" |
29 |
+SRC_URI="mirror://sourceforge/pdv/${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="MIT" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-linux ~ppc-macos" |
34 |
+IUSE="X" |
35 |
+ |
36 |
+DEPEND=" |
37 |
+ X? ( |
38 |
+ >=x11-libs/motif-2.3:0 |
39 |
+ >=x11-libs/libX11-1.0.0 |
40 |
+ >=x11-libs/libXt-1.0.0 |
41 |
+ >=x11-libs/libXext-1.0.0 ) |
42 |
+" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ default |
47 |
+ |
48 |
+ # fix a size-of-variable bug |
49 |
+ eapply "${FILESDIR}"/${P}-opt.patch |
50 |
+ # fix a free-before-use bug |
51 |
+ eapply "${FILESDIR}"/${P}-early-free.patch |
52 |
+ # fix a configure script bug |
53 |
+ eapply "${FILESDIR}"/${P}-x-config.patch |
54 |
+ # fix default args bug from assuming 'char' is signed |
55 |
+ eapply "${FILESDIR}"/${P}-default-args.patch |
56 |
+ # prevent pre-stripped binaries |
57 |
+ eapply "${FILESDIR}"/${P}-no-strip.patch |
58 |
+ |
59 |
+ # re-build configure script since patch was applied to configure.in |
60 |
+ cd "${S}"/X11 |
61 |
+ mv configure.in configure.ac || die |
62 |
+ eautoreconf |
63 |
+ tc-export CC |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local myconf="" |
68 |
+ use X || myconf="--without-x" # configure script is broken, cant use use_with |
69 |
+ econf ${myconf} |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ dobin pdv pdvmkpkg |
74 |
+ doman pdv.1 pdvmkpkg.1 |
75 |
+ if use X ; then |
76 |
+ dobin X11/xmpdvmkpkg |
77 |
+ doman xmpdvmkpkg.1 |
78 |
+ fi |
79 |
+ dodoc AUTHORS ChangeLog NEWS README pdv.lsm |
80 |
+} |