-# 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/"
)
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"
}
=== modified file 'common.mk'
---- common.mk 2009-01-24 12:40:55 +0000
-+++ common.mk 2009-01-24 14:02:19 +0000
+--- anyterm-1.1.29/common.mk 2009-01-24 12:40:55 +0000
++++ anyterm-1.1.29/common.mk 2009-01-24 14:02:19 +0000
@@ -71,7 +71,7 @@
OBJS=$(addsuffix .o,$(notdir $(basename $(CC_SRCS))))
Patch by Arfrever; sent to upstream developer.
---- libpbe/src/parse_http_request.cc
-+++ libpbe/src/parse_http_request.cc
+--- anyterm-1.1.29/libpbe/src/parse_http_request.cc
++++ anyterm-1.1.29/libpbe/src/parse_http_request.cc
@@ -18,11 +18,11 @@
#include "parse_http_request.hh"
namespace pbe {
---- libpbe/src/URI.cc
-+++ libpbe/src/URI.cc
+--- anyterm-1.1.29/libpbe/src/URI.cc
++++ anyterm-1.1.29/libpbe/src/URI.cc
@@ -18,11 +18,11 @@
#include "URI.hh"