public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Martin Mokrejs" <mmokrejs@fold.natur.cuni.cz>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/Atlas/
Date: Fri, 23 Sep 2016 17:29:18 +0000 (UTC)	[thread overview]
Message-ID: <1474651752.91fe67bb6be48a87da506a96a06548cbc06fcaba.mmokrejs@gentoo> (raw)

commit:     91fe67bb6be48a87da506a96a06548cbc06fcaba
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Fri Sep 23 17:29:12 2016 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Fri Sep 23 17:29:12 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=91fe67bb

sci-biology/Atlas: a lot more hackery to fix Makefile

Package-Manager: portage-2.3.0

 sci-biology/Atlas/Atlas-2005.ebuild | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/sci-biology/Atlas/Atlas-2005.ebuild b/sci-biology/Atlas/Atlas-2005.ebuild
index 4806d1c..318b493 100644
--- a/sci-biology/Atlas/Atlas-2005.ebuild
+++ b/sci-biology/Atlas/Atlas-2005.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -22,13 +22,20 @@ RDEPEND="${DEPEND}"
 S="${WORKDIR}"/atlas-src/CBT
 
 src_prepare(){
-	sed -e "s/^CC =/CC = $(tc-getCC)/" -e "s/^GCC =/GCC = $(tc-getCXX)/" -i Makefile || die
-	sed -e "s/^GCC =/GCC = $(tc-getCXX)/" -i ../CBTApps/Makefile.in || die
+	sed -e "s/^CC = .*/CC = $(tc-getCC)/" -e "s/^GCC = .*/GCC = $(tc-getCXX)/" -i Makefile || die
+	sed -e "s/^CC = .*/CC = $(tc-getCC)/" -e "s/^GCC = .*/GCC = $(tc-getCXX)/" -i ../CBTApps/Makefile.in || die
+	sed -e "s@^# CBT_DEVEL_USER = .*@CBT_DEVEL_USER = ${EPREFIX}/@" -i Makefile || die
+	sed -e "s@^# CBT_DEVEL_USER = .*@CBT_DEVEL_USER = ${EPREFIX}/@" -i Makefile.in || die
+	sed -e "s#^CBT_INSTALL_LIB = /home/hgsc/lib/#CBT_INSTALL_LIB = ${EPREFIX}/usr/lib/#" -i Makefile || die
+	sed -e "s#^CBT_INSTALL_LIB = /home/hgsc/lib/#CBT_INSTALL_LIB = ${EPREFIX}/usr/lib/#" -i Makefile.in || die
+	sed -e "s#^BOOST_DIR = .*#BOOST_DIR = ${EPREFIX}/usr/lib/#" -i Makefile || die
+	sed -e "s#^BOOST_DIR = .*#BOOST_DIR = ${EPREFIX}/usr/lib/#" -i Makefile.in || die
+	sed -e "s#^CXX = .*#CXX = $(tc-getCXX)#" -i gzstream/Makefile || die
 }
 
 src_compile(){
 	# install headers, bins and libs into CBT_DEVEL_USER, then compile apps
-	emake CBT_DEVEL_DIR="${S}" CBT_INSTALL_DIR="${D}"
+	emake CBT_DEVEL_DIR="${WORKDIR}/atlas-src/CBT" CBT_INSTALL_DIR="${D}"/"${EPREFIX}"
 	cd ../CBTApps || die
-	emake CBT_DEVEL_DIR="${S}" CBT_INSTALL_DIR="${D}"
+	emake CBT_DEVEL_DIR="${WORKDIR}/atlas-src/CBTApps" CBT_INSTALL_DIR="${D}"/"${EPREFIX}"
 }


             reply	other threads:[~2016-09-23 17:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-23 17:29 Martin Mokrejs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-27 22:43 [gentoo-commits] proj/sci:master commit in: sci-biology/Atlas/ Horea Christian
2016-06-30 18:06 Martin Mokrejs
2016-06-23 16:39 Martin Mokrejs
2015-01-10 14:07 Justin Lecher
2015-01-07 21:55 Martin Mokrejs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474651752.91fe67bb6be48a87da506a96a06548cbc06fcaba.mmokrejs@gentoo \
    --to=mmokrejs@fold.natur.cuni.cz \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox