commit:     ef57bc87b6e20084ee342b327c28d50626368407
Author:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 11:06:08 2015 +0000
Commit:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Wed Nov 18 11:13:03 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef57bc87

app-text/uudeview: revision bump

EAPI 5, add support for user patches,
do not use deprecated einstall in src_install

Package-Manager: portage-2.2.23

 .../uudeview/files/uudeview-0.5.20-makefile.patch  | 29 ++++++++++++++
 app-text/uudeview/uudeview-0.5.20-r2.ebuild        | 45 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/app-text/uudeview/files/uudeview-0.5.20-makefile.patch 
b/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
new file mode 100644
index 0000000..ed3cdf6
--- /dev/null
+++ b/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
@@ -0,0 +1,29 @@
+--- Makefile.in.orig   2015-11-18 13:52:44.173432349 +0300
++++ Makefile.in        2015-11-18 13:53:39.244429093 +0300
+@@ -183,22 +183,22 @@
+ 
+ install:              $(DOINST)
+       -for d in $(MPAGES) ; do \
+-              $(INSTALL_DATA) $(srcdir)/man/$$d $(MANDIR)/man1/$$d ; \
++              $(INSTALL_DATA) $(srcdir)/man/$$d $(DESTDIR)$(MANDIR)/man1/$$d 
; \
+       done
+ 
+ install-uudeview:     uudeview
+       for d in uudeview uuenview ; do \
+-              $(INSTALL_PROGRAM) unix/$$d $(BINDIR)/$$d ; \
++              $(INSTALL_PROGRAM) unix/$$d $(DESTDIR)$(BINDIR)/$$d ; \
+       done
+ 
+ install-tcl:          xdeview
+       for d in xdeview uuwish ; do \
+-              $(INSTALL_PROGRAM) tcl/$$d $(BINDIR)/$$d ; \
++              $(INSTALL_PROGRAM) tcl/$$d $(DESTDIR)$(BINDIR)/$$d ; \
+       done
+ 
+ install-minews:               minews
+       for d in minews ; do \
+-              $(INSTALL_PROGRAM) inews/$$d $(BINDIR)/$$d ; \
++              $(INSTALL_PROGRAM) inews/$$d $(DESTDIR)$(BINDIR)/$$d ; \
+       done
+ 
+ links:                tcl/config.h unix/config.h uulib/config.h

diff --git a/app-text/uudeview/uudeview-0.5.20-r2.ebuild 
b/app-text/uudeview/uudeview-0.5.20-r2.ebuild
new file mode 100644
index 0000000..5964696
--- /dev/null
+++ b/app-text/uudeview/uudeview-0.5.20-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils autotools
+
+DESCRIPTION="uu, xx, base64, binhex decoder"
+HOMEPAGE="http://www.fpx.de/fp/Software/UUDeview/";
+SRC_URI="http://www.fpx.de/fp/Software/UUDeview/download/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="tk"
+
+RDEPEND="tk? ( dev-lang/tk:0 )"
+DEPEND="${RDEPEND}"
+
+DOCS=( HISTORY INSTALL README )
+
+PATCHES=(
+       "${FILESDIR}/${P}-bugfixes.patch"
+       "${FILESDIR}/${P}-CVE-2004-2265.patch"
+       "${FILESDIR}/${P}-CVE-2008-2266.patch"
+       "${FILESDIR}/${P}-man.patch"
+       "${FILESDIR}/${P}-rename.patch"
+       "${FILESDIR}/${P}-makefile.patch"
+)
+
+src_prepare() {
+       epatch ${PATCHES[@]}
+
+       mv configure.in configure.ac || die
+
+       epatch_user
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable tk tcl) \
+               $(use_enable tk)
+}

Reply via email to