From 760e6538395d889c5481876a772a384fea67fdd5 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Wed, 13 Apr 2016 22:07:16 +0200 Subject: www-apache/anyterm: Fix boost::system underlinking Gentoo-Bug: 579522 * EAPI=6 * Remove unnecessary '|| die' on Gentoo helper functions * Add missing 'toolchain-funcs' inherit * Make all patches -p1 compliant for eapply Package-Manager: portage-2.2.28 --- www-apache/anyterm/anyterm-1.1.29-r1.ebuild | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'www-apache/anyterm/anyterm-1.1.29-r1.ebuild') diff --git a/www-apache/anyterm/anyterm-1.1.29-r1.ebuild b/www-apache/anyterm/anyterm-1.1.29-r1.ebuild index 88c80e5ebda2..a627d7c21bd4 100644 --- a/www-apache/anyterm/anyterm-1.1.29-r1.ebuild +++ b/www-apache/anyterm/anyterm-1.1.29-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI="5" +EAPI=6 -inherit eutils flag-o-matic +inherit flag-o-matic toolchain-funcs DESCRIPTION="A terminal anywhere" HOMEPAGE="http://anyterm.org/" @@ -26,25 +26,30 @@ PATCHES=( ) src_prepare() { - epatch "${PATCHES[@]}" + default + + # Fix underlinking issue caused by recent boost versions + # depending on boost::system, Gentoo bug #579522 + sed -e 's/\($(CXX) -o $@ $(LDFLAGS) $(OBJS) $(BLOBS) $(LINK_FLAGS)\)/\1 -lboost_system/' \ + -i common.mk || die } src_compile() { # this package uses `ld -r -b binary` and thus resulting executable contains # executable stack append-ldflags -Wl,-z,noexecstack - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" } src_install() { - dosbin anytermd || die - dodoc CHANGELOG README || die - doman anytermd.1 || die - newinitd "${FILESDIR}/anyterm.init.d" anyterm || die - newconfd "${FILESDIR}/anyterm.conf.d" anyterm || die + dosbin anytermd + dodoc CHANGELOG README + doman anytermd.1 + newinitd "${FILESDIR}/anyterm.init.d" anyterm + newconfd "${FILESDIR}/anyterm.conf.d" anyterm } pkg_postinst() { - elog "To proceed installation, read following:" + elog "To proceed with installation, read the following:" elog "http://anyterm.org/1.1/install.html" } -- cgit v1.2.3-65-gdbad