* [gentoo-commits] proj/sci:ccp4 commit in: sci-visualization/openastexviewer/
@ 2013-06-18 9:03 Justin Lecher
0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2013-06-18 9:03 UTC (permalink / raw
To: gentoo-commits
commit: 9047b9bdd68f8d0467a79ff7432170fce8ebfb09
Author: Johann Schmitz <johann <AT> j-schmitz <DOT> net>
AuthorDate: Mon Jun 17 06:08:54 2013 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Jun 18 09:03:35 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9047b9bd
Added ebuild for sci-visualization/openastexviewer-3.0
---
sci-visualization/openastexviewer/ChangeLog | 8 +++
sci-visualization/openastexviewer/metadata.xml | 5 ++
.../openastexviewer/openastexviewer-3.0.ebuild | 62 ++++++++++++++++++++++
3 files changed, 75 insertions(+)
diff --git a/sci-visualization/openastexviewer/ChangeLog b/sci-visualization/openastexviewer/ChangeLog
new file mode 100644
index 0000000..8d770c8
--- /dev/null
+++ b/sci-visualization/openastexviewer/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sci-visualization/openastexviewer
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 03 Jun 2013; Justin Lecher <jlec@gentoo.org> openastexviewer-3.0.ebuild,
+ +metadata.xml:
+ Handle deps correctly, add icon to launcher, fix license, some minor QA
+ things
diff --git a/sci-visualization/openastexviewer/metadata.xml b/sci-visualization/openastexviewer/metadata.xml
new file mode 100644
index 0000000..6d47cbb
--- /dev/null
+++ b/sci-visualization/openastexviewer/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-visualization/openastexviewer/openastexviewer-3.0.ebuild b/sci-visualization/openastexviewer/openastexviewer-3.0.ebuild
new file mode 100644
index 0000000..cea7060
--- /dev/null
+++ b/sci-visualization/openastexviewer/openastexviewer-3.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Software for molecular visualisation"
+HOMEPAGE="http://openastexviewer.net/"
+SRC_URI="http://openastexviewer.net/web/OpenAstexViewerSrc.zip -> ${P}.zip"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+CDEPEND="
+ dev-java/nanoxml
+ dev-java/jlex
+ ~dev-java/javacup-0.10k"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5
+ dev-java/java-config"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ rm -r \
+ "${S}/lib/nanoxml.jar" \
+ "${S}/lib/nanoxml/" \
+ "${S}/lib/oracle/" \
+ "${S}/src/java_cup" \
+ "${S}/src/JLex" \
+ "${S}/src/astex/thinlet/ThinletOracle.java" || die # unused java file with hardcoded oracle jdbc usage
+}
+
+src_compile() {
+ local build_dir="${S}"/build
+ local dist_dir="${S}"/dist
+ local classpath="-classpath $(java-pkg_getjars nanoxml,javacup,jlex):${build_dir}:./lib"
+ mkdir "${build_dir}" "${dist_dir}" || die
+
+ ejavac ${classpath} -nowarn -d "${build_dir}" $(find src/ -name "*.java") || die
+ cp -r \
+ "${S}"/lib/jclass \
+ "${S}"/src/*.properties \
+ "${S}"/src/{images,fonts} "${build_dir}" || die
+ cp -r "${S}"/src/astex/thinlet/*.{properties,gif} "${build_dir}"/astex/thinlet/ || die
+
+ jar cfm "${dist_dir}/${PN}.jar" "${S}/src/AstexViewer.manifest" -C build . || die "jar failed"
+}
+
+src_install() {
+ java-pkg_dojar "${S}/dist/${PN}.jar"
+ java-pkg_dolauncher openastexviewer --main astex.MoleculeViewer
+
+ newicon src/astex_logo.png ${PN}.png
+ make_desktop_entry ${PN} ${PN} ${PN}
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/sci:ccp4 commit in: sci-visualization/openastexviewer/
@ 2013-06-18 9:13 Justin Lecher
0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2013-06-18 9:13 UTC (permalink / raw
To: gentoo-commits
commit: 97bb524b57b2fcb7cdf65a85e53d5c793903d1a8
Author: Johann Schmitz <johann <AT> j-schmitz <DOT> net>
AuthorDate: Mon Jun 17 06:08:54 2013 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 06:08:54 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=97bb524b
Added ebuild for sci-visualization/openastexviewer-3.0
---
sci-visualization/openastexviewer/ChangeLog | 8 +++
sci-visualization/openastexviewer/metadata.xml | 5 ++
.../openastexviewer/openastexviewer-3.0.ebuild | 62 ++++++++++++++++++++++
3 files changed, 75 insertions(+)
diff --git a/sci-visualization/openastexviewer/ChangeLog b/sci-visualization/openastexviewer/ChangeLog
new file mode 100644
index 0000000..8d770c8
--- /dev/null
+++ b/sci-visualization/openastexviewer/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sci-visualization/openastexviewer
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 03 Jun 2013; Justin Lecher <jlec@gentoo.org> openastexviewer-3.0.ebuild,
+ +metadata.xml:
+ Handle deps correctly, add icon to launcher, fix license, some minor QA
+ things
diff --git a/sci-visualization/openastexviewer/metadata.xml b/sci-visualization/openastexviewer/metadata.xml
new file mode 100644
index 0000000..6d47cbb
--- /dev/null
+++ b/sci-visualization/openastexviewer/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-visualization/openastexviewer/openastexviewer-3.0.ebuild b/sci-visualization/openastexviewer/openastexviewer-3.0.ebuild
new file mode 100644
index 0000000..cea7060
--- /dev/null
+++ b/sci-visualization/openastexviewer/openastexviewer-3.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Software for molecular visualisation"
+HOMEPAGE="http://openastexviewer.net/"
+SRC_URI="http://openastexviewer.net/web/OpenAstexViewerSrc.zip -> ${P}.zip"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+CDEPEND="
+ dev-java/nanoxml
+ dev-java/jlex
+ ~dev-java/javacup-0.10k"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5
+ dev-java/java-config"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ rm -r \
+ "${S}/lib/nanoxml.jar" \
+ "${S}/lib/nanoxml/" \
+ "${S}/lib/oracle/" \
+ "${S}/src/java_cup" \
+ "${S}/src/JLex" \
+ "${S}/src/astex/thinlet/ThinletOracle.java" || die # unused java file with hardcoded oracle jdbc usage
+}
+
+src_compile() {
+ local build_dir="${S}"/build
+ local dist_dir="${S}"/dist
+ local classpath="-classpath $(java-pkg_getjars nanoxml,javacup,jlex):${build_dir}:./lib"
+ mkdir "${build_dir}" "${dist_dir}" || die
+
+ ejavac ${classpath} -nowarn -d "${build_dir}" $(find src/ -name "*.java") || die
+ cp -r \
+ "${S}"/lib/jclass \
+ "${S}"/src/*.properties \
+ "${S}"/src/{images,fonts} "${build_dir}" || die
+ cp -r "${S}"/src/astex/thinlet/*.{properties,gif} "${build_dir}"/astex/thinlet/ || die
+
+ jar cfm "${dist_dir}/${PN}.jar" "${S}/src/AstexViewer.manifest" -C build . || die "jar failed"
+}
+
+src_install() {
+ java-pkg_dojar "${S}/dist/${PN}.jar"
+ java-pkg_dolauncher openastexviewer --main astex.MoleculeViewer
+
+ newicon src/astex_logo.png ${PN}.png
+ make_desktop_entry ${PN} ${PN} ${PN}
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-18 9:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18 9:03 [gentoo-commits] proj/sci:ccp4 commit in: sci-visualization/openastexviewer/ Justin Lecher
-- strict thread matches above, loose matches on Subject: below --
2013-06-18 9:13 Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox