public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrea Arteaga" <andyspiros@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/trilinos/
Date: Sun,  8 Apr 2012 23:22:03 +0000 (UTC)	[thread overview]
Message-ID: <1333927149.b56b7b4f7966a5434723ed52dd097d0d41a54f4f.spiros@gentoo> (raw)

commit:     b56b7b4f7966a5434723ed52dd097d0d41a54f4f
Author:     Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Sun Apr  8 23:19:09 2012 +0000
Commit:     Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Sun Apr  8 23:19:09 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b56b7b4f

[sci-libs/trilinos] Solved many issues.

---
 sci-libs/trilinos/ChangeLog               |    4 ++
 sci-libs/trilinos/trilinos-10.10.1.ebuild |   55 +++--------------------------
 2 files changed, 9 insertions(+), 50 deletions(-)

diff --git a/sci-libs/trilinos/ChangeLog b/sci-libs/trilinos/ChangeLog
index ad9f45d..6c94090 100644
--- a/sci-libs/trilinos/ChangeLog
+++ b/sci-libs/trilinos/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  9 Apr 2012; Andrea Arteaga <andyspiros@gmail.com>
+  trilinos-10.10.1.ebuild +metadata.xml:
+  Solved many issues.
+
 *trilinos-10.10.1 (8 Apr 2012)
 
   8 Apr 2012; Andrea Arteaga <andyspiros@gmail.com>

diff --git a/sci-libs/trilinos/trilinos-10.10.1.ebuild b/sci-libs/trilinos/trilinos-10.10.1.ebuild
index 9cae14b..7b964e4 100644
--- a/sci-libs/trilinos/trilinos-10.10.1.ebuild
+++ b/sci-libs/trilinos/trilinos-10.10.1.ebuild
@@ -68,6 +68,11 @@ src_configure() {
 	mycmakeargs=(
 		-DBUILD_SHARED_LIBS=ON
 		-DTrilinos_ENABLE_ALL_PACKAGES=ON
+		
+		# Directories (workaround for generating correct Makefiles and CMakefiles)
+		-DCMAKE_INSTALL_PREFIX="/"
+		-DTrilinos_INSTALL_INCLUDE_DIR="/usr/include/trilinos"
+		-DTrilinos_INSTALL_LIB_DIR="/usr/$(get_libdir)/trilinos"
 
 		# Tests
 		$(cmake-utils_use test Trilinos_ENABLE_TESTS)
@@ -104,53 +109,3 @@ src_configure() {
 
 	cmake-utils_src_configure
 }
-
-src_compile() {
-    cmake-utils_src_compile
-}
-
-src_install() {
-	cmake-utils_src_install
-
-	local k
-	local fname
-	local libpath
-	local tpkg
-
-	# Edit cmake files
-	libpath="/usr/$(get_libdir)/Trilinos"
-	pushd "${D}/usr/lib/cmake"
-	for i in *; do
-	fname="${i}/${i}Config.cmake"
-
-	k=$(grep -n "${i}_INCLUDE_DIRS" "${fname}" | sed 's/\([0-9]*\):.*/\1/')
-	sed "${k}s|/usr/include|/usr/include/Trilinos|" < "${fname}" > "${fname}.temp"
-
-	k=$(grep -n "${i}_LIBRARY_DIRS" "${fname}" | sed 's/\([0-9]*\):.*/\1/')
-	sed "${k}s|/usr/lib|${libpath}|" < "${fname}.temp" > "${fname}"
-
-	rm "${fname}.temp"
-	done
-	popd
-
-	# Edit Makefiles
-	pushd "${D}/usr/include"
-	for i in Makefile.export.*; do
-	tpkg="$(echo ${i} | sed 's/Makefile.export.//')"
-
-	sed "s|${tpkg}_INCLUDE_DIRS= -I/usr/include|${tpkg}_INCLUDE_DIRS= -I/usr/include/Trilinos|" < "Makefile.export.${tpkg}" > "Makefile.export.${tpkg}.temp"
-	sed "s|${tpkg}_LIBRARY_DIRS= -L/usr/lib|${tpkg}_LIBRARY_DIRS= -L${libpath}|" < "Makefile.export.${tpkg}.temp" > "Makefile.export.${tpkg}"
-	rm "Makefile.export.${tpkg}.temp"
-	done
-	popd
-
-
-	# Move libraries
-	mkdir -p "${D}/${libpath}"
-	mv ${D}usr/lib/*.so "${D}/${libpath}"
-
-	# Move headers
-	mkdir "${T}/headers"
-	mv ${D}usr/include/* "${T}/headers"
-	mv "${T}/headers" "${D}/usr/include/Trilinos"
-}



             reply	other threads:[~2012-04-08 23:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-08 23:22 Andrea Arteaga [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-05-15 16:34 [gentoo-commits] proj/sci:master commit in: sci-libs/trilinos/ Matthias Maier
2018-04-03  3:52 Matthias Maier
2018-04-02 12:45 Justin Lecher
2017-07-07 15:52 Matthias Maier
2017-07-07 15:49 Matthias Maier
2017-02-24 18:32 Christoph Junghans
2016-08-31  6:56 Marius Brehler
2016-08-31  6:56 Marius Brehler
2016-07-12 19:57 Marius Brehler
2016-07-12 19:57 Marius Brehler
2016-07-12 19:57 Marius Brehler
2016-03-06 21:40 Justin Lecher
2016-03-06 21:32 Justin Lecher
2015-09-21 19:44 Justin Lecher
2015-08-27 15:01 Justin Lecher
2015-02-19 21:12 Christoph Junghans
2014-10-24  3:33 Christoph Junghans
2014-01-06 19:27 Justin Lecher
2014-01-06 18:33 Justin Lecher
2013-11-12 16:43 Nicolas Bock
2013-06-19 23:51 Sebastien Fabbro
2013-06-12 20:04 Justin Lecher
2013-04-22  1:40 Christoph Junghans
2013-02-22 15:46 Justin Lecher
2012-04-08  0:54 Andrea Arteaga

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=1333927149.b56b7b4f7966a5434723ed52dd097d0d41a54f4f.spiros@gentoo \
    --to=andyspiros@gmail.com \
    --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