diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-03-01 19:25:58 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-03-01 19:28:03 +0100 |
commit | cf45683b1d89e0cacc023eb13c0cccdb0c9248b6 (patch) | |
tree | 177e627aaa98ce3059ff8b92fb2741d0dcda1bff /app-arch/pdv | |
parent | app-emulation/spim: x11-libs/libXp is not really needed (diff) | |
download | gentoo-cf45683b1d89e0cacc023eb13c0cccdb0c9248b6.tar.gz gentoo-cf45683b1d89e0cacc023eb13c0cccdb0c9248b6.tar.bz2 gentoo-cf45683b1d89e0cacc023eb13c0cccdb0c9248b6.zip |
app-arch/pdv: x11-libs/libXp is not really needed
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-arch/pdv')
-rw-r--r-- | app-arch/pdv/pdv-1.5.1-r3.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-arch/pdv/pdv-1.5.1-r3.ebuild b/app-arch/pdv/pdv-1.5.1-r3.ebuild new file mode 100644 index 000000000000..c865fa967985 --- /dev/null +++ b/app-arch/pdv/pdv-1.5.1-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools toolchain-funcs + +DESCRIPTION="build a self-extracting and self-installing binary package" +HOMEPAGE="https://sourceforge.net/projects/pdv" +SRC_URI="mirror://sourceforge/pdv/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-linux ~ppc-macos" +IUSE="X" + +DEPEND=" + X? ( + >=x11-libs/motif-2.3:0 + >=x11-libs/libX11-1.0.0 + >=x11-libs/libXt-1.0.0 + >=x11-libs/libXext-1.0.0 ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + # fix a size-of-variable bug + eapply "${FILESDIR}"/${P}-opt.patch + # fix a free-before-use bug + eapply "${FILESDIR}"/${P}-early-free.patch + # fix a configure script bug + eapply "${FILESDIR}"/${P}-x-config.patch + # fix default args bug from assuming 'char' is signed + eapply "${FILESDIR}"/${P}-default-args.patch + # prevent pre-stripped binaries + eapply "${FILESDIR}"/${P}-no-strip.patch + + # re-build configure script since patch was applied to configure.in + cd "${S}"/X11 + mv configure.in configure.ac || die + eautoreconf + tc-export CC +} + +src_configure() { + local myconf="" + use X || myconf="--without-x" # configure script is broken, cant use use_with + econf ${myconf} +} + +src_install() { + dobin pdv pdvmkpkg + doman pdv.1 pdvmkpkg.1 + if use X ; then + dobin X11/xmpdvmkpkg + doman xmpdvmkpkg.1 + fi + dodoc AUTHORS ChangeLog NEWS README pdv.lsm +} |