public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/shiftx2/
Date: Sun, 16 Jun 2013 17:23:57 +0000 (UTC)	[thread overview]
Message-ID: <1371403328.70c6bdd6914374ca8b505c4c843955e8289394d2.jlec@gentoo> (raw)

commit:     70c6bdd6914374ca8b505c4c843955e8289394d2
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 17:22:08 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 17:22:08 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=70c6bdd6

sci-chemistry/shiftx2: Respect FLAGS

Package-Manager: portage-2.2.0_alpha180

---
 sci-chemistry/shiftx2/ChangeLog                    |  8 ++++++++
 sci-chemistry/shiftx2/metadata.xml                 | 10 +++++-----
 .../shiftx2/shiftx2-1.07_p20120106.ebuild          | 22 +++++++++++++++-------
 3 files changed, 28 insertions(+), 12 deletions(-)

diff --git a/sci-chemistry/shiftx2/ChangeLog b/sci-chemistry/shiftx2/ChangeLog
new file mode 100644
index 0000000..5aafaf3
--- /dev/null
+++ b/sci-chemistry/shiftx2/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sci-chemistry/shiftx2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  16 Jun 2013; Justin Lecher <jlec@gentoo.org> shiftx2-1.07_p20120106.ebuild,
+  metadata.xml:
+  Respect FLAGS
+

diff --git a/sci-chemistry/shiftx2/metadata.xml b/sci-chemistry/shiftx2/metadata.xml
index 947e346..80444f4 100644
--- a/sci-chemistry/shiftx2/metadata.xml
+++ b/sci-chemistry/shiftx2/metadata.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<herd>sci</herd>
-	<longdescription>
+  <herd>sci</herd>
+  <longdescription>
 		SHIFTX2 predicts both the backbone and side chain 1H, 13C and 15N chemical
 		shifts for proteins using their structural (PDB) coordinates as input.
 		SHIFTX2 combines ensemble machine learning methods with sequence
@@ -33,7 +33,7 @@
 		prediction. Journal of Biomolecular NMR, Volume 50, Number 1, 43-57.
 		doi: 10.1007/s10858-011-9478-4.
 	</longdescription>
-	<use>
-		<flag name='debug'>Enables debug output in the shiftx2 java part</flag>
-	</use>
+  <use>
+    <flag name="debug">Enables debug output in the shiftx2 java part</flag>
+  </use>
 </pkgmetadata>

diff --git a/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild b/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild
index e9cb4c7..5a19e4b 100644
--- a/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild
+++ b/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild
@@ -25,12 +25,15 @@ CDEPEND="dev-util/weka"
 
 RDEPEND="${CDEPEND}
 	dev-lang/R
+	sci-chemistry/reduce
 	>=virtual/jre-1.5"
 DEPEND="${CDEPEND}
 	>=virtual/jdk-1.5"
 
 S="${WORKDIR}"/${MY_P}
 
+QA_PREBUILT="/opt/.*"
+
 src_prepare() {
 	epatch "${FILESDIR}/gentoo-fixes.patch"
 	rm "${S}"/src/FeatureRanges.java || die
@@ -43,7 +46,12 @@ src_prepare() {
 	fi
 
 	# hack alert!
-	sed '/-o/s:$: -lm:g' -i "${S}/modules/resmf/Makefile" || die
+	sed \
+		-e '/-o/s:$(GCC):$(GCC) $(LDFLAGS):g' \
+		-e '/-o/s:$(CC):$(CC) $(LDFLAGS):g' \
+		-i modules/*/Makefile || die
+
+	sed -e '/-o/s:$: -lm:g' -i "${S}/modules/resmf/Makefile" || die
 }
 
 src_compile() {
@@ -65,7 +73,7 @@ src_compile() {
 	einfo "Building module effects"
 	cd "${S}"/modules/effects || die
 	emake clean
-	emake CFLAGS="${CFLAGS}" GCC=$(tc-getCC) LINK="${LDFLAGS}" all
+	emake CFLAGS="${CFLAGS}" CC=$(tc-getCC) LINK="${LDFLAGS}" all
 }
 
 src_install() {
@@ -83,12 +91,11 @@ src_install() {
 	dodoc README 1UBQ.pdb
 	python_parallel_foreach_impl python_doscript "${S}"/*py
 
-	# modules/angles
-	cd "${S}"/modules/angles || die
-	dobin get_angles phipsi
-
 	# other modules
-	dobin "${S}"/modules/resmf/resmf "${S}"/modules/effects/caleffect
+	dobin \
+		"${S}"/modules/angles/{get_angles,phipsi} \
+		"${S}"/modules/resmf/resmf \
+		"${S}"/modules/effects/caleffect
 
 	# script
 	python_scriptinto ${instdir}/script
@@ -101,4 +108,5 @@ src_install() {
 	python_parallel_foreach_impl python_doscript "${S}"/shifty3/*py
 	exeinto ${instdir}/shifty3
 	doexe "${S}"/shifty3/xalign_x
+	dosym ../${PN}/shifty3/xalign_x /opt/bin/xalign_x
 }


             reply	other threads:[~2013-06-16 17:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-16 17:23 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-03-22  9:45 [gentoo-commits] proj/sci:master commit in: sci-chemistry/shiftx2/ Justin Lecher
2014-03-20  9:04 Justin Lecher
2013-10-23  6:42 Justin Lecher
2013-10-16  6:30 Justin Lecher
2013-10-16  4:49 Nicolas Bock
2013-10-15 17:17 Justin Lecher
2013-06-16 17:23 Justin Lecher

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=1371403328.70c6bdd6914374ca8b505c4c843955e8289394d2.jlec@gentoo \
    --to=jlec@gentoo.org \
    --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