commit: f73ae7dd317ffab84687e59e4458d8e42c4d9b66 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> AuthorDate: Tue May 6 23:11:14 2014 +0000 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> CommitDate: Tue May 6 23:11:14 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f73ae7dd
sci-physics/thepeg: Properly link with c++ Package-Manager: portage-2.2.8-prefix --- sci-physics/thepeg/ChangeLog | 3 +++ sci-physics/thepeg/thepeg-1.9.1.ebuild | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sci-physics/thepeg/ChangeLog b/sci-physics/thepeg/ChangeLog index 57d3fad..bca9a07 100644 --- a/sci-physics/thepeg/ChangeLog +++ b/sci-physics/thepeg/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 06 May 2014; Sébastien Fabbro <bicat...@gentoo.org> thepeg-1.9.1.ebuild: + sci-physics/thepeg: Properly link with c++ + *thepeg-1.9.1 (06 May 2014) 06 May 2014; Sébastien Fabbro <bicat...@gentoo.org> +thepeg-1.9.1.ebuild: diff --git a/sci-physics/thepeg/thepeg-1.9.1.ebuild b/sci-physics/thepeg/thepeg-1.9.1.ebuild index e70b39f..6ecdb8a 100644 --- a/sci-physics/thepeg/thepeg-1.9.1.ebuild +++ b/sci-physics/thepeg/thepeg-1.9.1.ebuild @@ -23,7 +23,7 @@ SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2 ${TEST_URI}/MRST2001nlo.LHgrid ) )" LICENSE="GPL-2" -SLOT="0" +SLOT="0/18" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="emacs fastjet hepmc java lhapdf rivet static-libs test zlib" @@ -46,7 +46,11 @@ PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch ) src_prepare() { find -name 'Makefile.am' -exec \ sed -i -e '1ipkgdatadir=$(datadir)/thepeg' {} \; || die - sed -i -e '/dist_pkgdata_DATA = ThePEG.el/d' lib/Makefile.am || die + # trick to force c++ linking + sed -i \ + -e '1inodist_EXTRA_libThePEG_la_SOURCES = dummy.cxx' \ + -e '/dist_pkgdata_DATA = ThePEG.el/d' \ + lib/Makefile.am || die autotools-utils_src_prepare java-pkg-opt-2_src_prepare }