commit:     2d31cad7dc40c77ad0c47d90e2b5f9b78c107b9b
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 22 06:24:03 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Jul 22 06:24:03 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2d31cad7

sci-chemistry/redcat: New package written by me

Package-Manager: portage-2.2.10

---
 sci-chemistry/redcat/ChangeLog            | 14 +++++++
 sci-chemistry/redcat/files/CMakeLists.txt | 13 +++++++
 sci-chemistry/redcat/metadata.xml         |  8 ++++
 sci-chemistry/redcat/redcat-3.ebuild      | 62 +++++++++++++++++++++++++++++++
 4 files changed, 97 insertions(+)

diff --git a/sci-chemistry/redcat/ChangeLog b/sci-chemistry/redcat/ChangeLog
new file mode 100644
index 0000000..665093e
--- /dev/null
+++ b/sci-chemistry/redcat/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sci-chemistry/redcat
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  22 Jul 2014; Justin Lecher <[email protected]> +redcat-3.ebuild,
+  +files/CMakeLists.txt, +metadata.xml:
+  New package written by me
+
+*redcat-3 (17 Jul 2014)
+
+  17 Jul 2014; Justin Lecher <[email protected]> +redcat-3.ebuild,
+  +files/CMakeLists.txt, +.listing, +metadata.xml:
+  New package written by me
+

diff --git a/sci-chemistry/redcat/files/CMakeLists.txt 
b/sci-chemistry/redcat/files/CMakeLists.txt
new file mode 100644
index 0000000..d8896a9
--- /dev/null
+++ b/sci-chemistry/redcat/files/CMakeLists.txt
@@ -0,0 +1,13 @@
+cmake_minimum_required (VERSION 2.8)
+project (Redcat)
+
+find_package(Eigen3 REQUIRED)
+
+include_directories (${Redcat_SOURCE_DIR}/src)
+include_directories (${EIGEN_INCLUDE_DIR})
+
+add_executable (Redcat src/main.cpp src/Redcat.cpp src/tensor.cpp 
src/matrix.cpp src/SVDiface.cpp)
+add_executable (Dynamic src/Dynamic.cpp)
+
+install (TARGETS Redcat Dynamic DESTINATION bin)
+

diff --git a/sci-chemistry/redcat/metadata.xml 
b/sci-chemistry/redcat/metadata.xml
new file mode 100644
index 0000000..ae9ec7c
--- /dev/null
+++ b/sci-chemistry/redcat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>sci-chemistry</herd>
+  <maintainer>
+    <email>[email protected]</email>
+  </maintainer>
+</pkgmetadata>

diff --git a/sci-chemistry/redcat/redcat-3.ebuild 
b/sci-chemistry/redcat/redcat-3.ebuild
new file mode 100644
index 0000000..dfa1ecf
--- /dev/null
+++ b/sci-chemistry/redcat/redcat-3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils java-utils-2
+
+DESCRIPTION="Analysis of residual dipolar couplings (RDCs) for structure 
validation and elucidation"
+HOMEPAGE="http://ifestos.cse.sc.edu/software.php";
+SRC_URI="http://ifestos.cse.sc.edu/downloads.php?get=Redcat.${PV}.tar.gz -> 
Redcat.${PV}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+       dev-cpp/eigen:3
+       dev-lang/tcl
+       dev-tcltk/bwidget
+       virtual/jdk:1.7
+       "
+DEPEND="${RDEPEND}
+       virtual/jre:1.7
+"
+
+RESTRICT="fetch"
+
+S="${WORKDIR}"/Redcat
+
+pkg_nofetch() {
+       elog "Please download ${A} from"
+       elog "http://ifestos.cse.sc.edu/downloads.php";
+}
+
+src_prepare() {
+       cp "${FILESDIR}"/CMakeLists.txt . || die
+       sed \
+               -e '/BWidget/s:1.9.4:1.9.7:g' \
+               -i scripts/REDCAT.tcl || die
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       java-pkg_dojar XplorGUI/XplorGUI.jar
+       java-pkg_dolauncher XplorGUI --jar XplorGUI.jar
+
+       dodoc Misc/REDCATManual.odt
+       docompress -x /usr/share/doc/${PF}/REDCATManual.odt
+
+       exeinto /usr/libexec/${PN}
+       doexe scripts/*
+
+       dosym ../libexec/${PN}/REDCAT.tcl /usr/bin/REDCAT.tcl
+       dosym ../libexec/${PN}/MakeRedcat.tcl /usr/bin/MakeRedcat.tcl
+
+       echo "${EPREFIX}/usr/share/redcat/" > conf/${PN}.conf
+       insinto /usr/share/redcat/
+       doins -r conf/${PN}.conf vmd data
+}

Reply via email to