summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-11-09 19:56:37 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-11-09 19:56:37 -0500
commitdf73944a46f6128c02dd1b3b57a7975242e0a211 (patch)
tree5d127543daceb87ee1c4bfe7e689dde2f242a685 /libre
parente43b0867d4aa7f66e297b357c1c5c2edf8bd562f (diff)
downloadabslibre-df73944a46f6128c02dd1b3b57a7975242e0a211.tar.gz
abslibre-df73944a46f6128c02dd1b3b57a7975242e0a211.tar.bz2
abslibre-df73944a46f6128c02dd1b3b57a7975242e0a211.zip
jmol: add new packages to [libre]
Diffstat (limited to 'libre')
-rw-r--r--libre/jmol/PKGBUILD64
-rw-r--r--libre/jmol/jmol-14.6.4_dontsign.patch63
2 files changed, 127 insertions, 0 deletions
diff --git a/libre/jmol/PKGBUILD b/libre/jmol/PKGBUILD
new file mode 100644
index 000000000..a4446f7c3
--- /dev/null
+++ b/libre/jmol/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=jmol
+pkgver=14.6.4
+_pkgver=${pkgver}_2016.10.02
+pkgrel=1.parabola1
+pkgdesc="a Java 3D viewer for chemical structures"
+arch=(any)
+url="http://jmol.sourceforge.net"
+license=(LGPL)
+depends=('java-runtime')
+makedepends=('apache-ant-contrib' 'icedtea-web' 'java-commons-cli' 'java-naga' 'saxon6' 'unzip')
+source=("http://sourceforge.net/projects/jmol/files/Jmol/Version%20${pkgver%.*}/Version%20$pkgver/Jmol-$_pkgver-full.tar.gz"
+ 'jmol-14.6.4_dontsign.patch')
+sha1sums=('ac2dea8a62a3346590994fe74b014f5e69e02bef'
+ '03c3ba2a05d0e2192a627b6cd00219b5e4389e75')
+
+prepare() {
+ cd $pkgname-$_pkgver
+ rm src/com/sparshui/cpp/HPTouchSmart/*.{dll,exe}
+ rm -v {.,jars,plugin-jars,tools}/*.jar
+ rm -v doc/jcfl-*.tar.gz
+ #rm -v jsmol.zip
+
+ patch -Np1 -i ../jmol-14.6.4_dontsign.patch
+
+ ln -sf /usr/share/icedtea-web/plugin.jar jars/netscape.jar
+ ln -sf /usr/share/java/commons-cli.jar jars/commons-cli-1.2.jar
+ ln -sf /usr/share/java/naga-3_0.jar jars/naga-3_0.jar
+ ln -sf /usr/share/java/saxon.jar jars/saxon.jar
+}
+
+build() {
+ cd $pkgname-$_pkgver
+ ant classes \
+ -lib /usr/share/java/ant-contrib.jar
+ jar -cvf jars/JSpecView.jar -C build/classes/ jspecview
+
+ ant init jar applet-jar doc \
+ -lib /usr/share/java/ant-contrib.jar
+}
+
+package() {
+ cd $pkgname-$_pkgver
+
+ # Install license file
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+
+ # Install documentation
+ install -d "$pkgdir/usr/share/doc/$pkgname"
+ cp -r build/javadoc "$pkgdir/usr/share/doc/$pkgname"
+
+ # Install jsmol
+ unzip appletweb/jsmol.zip -d "$pkgdir/usr/share/"
+
+ # Install jmol
+ install -d "$pkgdir/usr/share/$pkgname"
+ cp build/{Jmol,JmolData,JmolLib}.jar "$pkgdir/usr/share/$pkgname"
+ cp jars/JSpecView.jar "$pkgdir/usr/share/$pkgname"
+ cp build/jmol.sh "$pkgdir/usr/share/$pkgname"
+
+ install -d "$pkgdir/usr/bin"
+ ln -s "/usr/share/$pkgname/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+}
diff --git a/libre/jmol/jmol-14.6.4_dontsign.patch b/libre/jmol/jmol-14.6.4_dontsign.patch
new file mode 100644
index 000000000..daccac469
--- /dev/null
+++ b/libre/jmol/jmol-14.6.4_dontsign.patch
@@ -0,0 +1,63 @@
+--- jmol-14.6.4_2016.10.02.orig/build.xml 2016-10-02 23:01:03.000000000 -0500
++++ jmol-14.6.4_2016.10.02/build.xml 2016-11-09 18:43:28.077873627 -0500
+@@ -159,7 +159,7 @@
+ </fileset>
+ </path>
+
+- <target name="main" id="main" depends="init,jar,applet-jar,signed-applet,smiles-applet-jar"/>
++ <target name="main" id="main" depends="init,jar,applet-jar,smiles-applet-jar"/>
+
+ <target name="all" id="all" depends="doc,main"/>
+
+@@ -520,10 +520,10 @@
+ <fileset dir="src/org/jmol/translation/Jmol" includes="Messages*.class"/>
+ <fileset dir="src/org/jmol/translation/JmolApplet" includes="Messages*.class"/>
+ </jar>
+- <antcall target="sign-jar-file">
++ <!--<antcall target="sign-jar-file">
+ <param name="sign-jar-file-dir" value="build" />
+ <param name="sign-jar-file-name" value="Jmol.jar" />
+- </antcall>
++ </antcall>-->
+
+ <jar destfile="build/JmolData.jar"
+ manifest="manifest/applicationData.txt">
+@@ -555,10 +555,10 @@
+ <fileset dir="src/org/jmol/translation/Jmol" includes="Messages*.class"/>
+ <fileset dir="src/org/jmol/translation/JmolApplet" includes="Messages*.class"/>
+ </jar>
+- <antcall target="sign-jar-file">
++ <!--<antcall target="sign-jar-file">
+ <param name="sign-jar-file-dir" value="build" />
+ <param name="sign-jar-file-name" value="JmolData.jar" />
+- </antcall>
++ </antcall>-->
+
+ <copy todir="build">
+ <fileset dir=".">
+@@ -586,10 +586,10 @@
+ </fileset>
+ <fileset dir="${appjars.dir}" includes="**/*"/>
+ </jar>
+- <antcall target="sign-jar-file">
++ <!--<antcall target="sign-jar-file">
+ <param name="sign-jar-file-dir" value="build" />
+ <param name="sign-jar-file-name" value="Jvxl.jar" />
+- </antcall>
++ </antcall>-->
+ <!--
+ <jar destfile="ChimeToJmol.jar"
+ manifest="manifest/chimetojmol.txt">
+@@ -1163,10 +1163,10 @@
+ </indexjars>
+ </jar>
+ <echo> signing JmolApplet*.jar</echo>
+- <antcall target="sign-jar-file">
++ <!--<antcall target="sign-jar-file">
+ <param name="sign-jar-file-dir" value="build" />
+ <param name="sign-jar-file-name" value="JmolApplet*.jar" />
+- </antcall>
++ </antcall>-->
+ </else></if>
+ </target>
+