diff options
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/uudeview/files/uudeview-0.5.20-makefile.patch | 29 | ||||
-rw-r--r-- | app-text/uudeview/uudeview-0.5.20-r2.ebuild | 45 |
2 files changed, 74 insertions, 0 deletions
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 00000000000..ed3cdf66374 --- /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 00000000000..59646962167 --- /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) +} |