summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Köster <koesterreich@fastmail.fm>2012-10-27 19:49:00 +0200
committerFabian Köster <koesterreich@fastmail.fm>2012-10-27 19:49:00 +0200
commite6e72a2a4cc9093dc8ca3766b59c4473af61cd50 (patch)
treec095d96e97de7581a47f76c4429926df95d1b511
parentDrop old (diff)
downloadhibiscus-e6e72a2a4cc9093dc8ca3766b59c4473af61cd50.tar.gz
hibiscus-e6e72a2a4cc9093dc8ca3766b59c4473af61cd50.tar.bz2
hibiscus-e6e72a2a4cc9093dc8ca3766b59c4473af61cd50.zip
Add ebuild for jameica.scripting
-rw-r--r--dev-java/jameica-scripting/Manifest5
-rw-r--r--dev-java/jameica-scripting/files/disable-examples.patch16
-rw-r--r--dev-java/jameica-scripting/jameica-scripting-1.0.ebuild57
-rw-r--r--dev-java/jameica-scripting/jameica-scripting-2.2.0.ebuild86
-rw-r--r--dev-java/jameica-scripting/jameica-scripting-2.3.0_pre.ebuild53
5 files changed, 131 insertions, 86 deletions
diff --git a/dev-java/jameica-scripting/Manifest b/dev-java/jameica-scripting/Manifest
new file mode 100644
index 0000000..2d5ca66
--- /dev/null
+++ b/dev-java/jameica-scripting/Manifest
@@ -0,0 +1,5 @@
+AUX disable-examples.patch 546 SHA256 678bc0a9e6eac25fb544f11e4e036fa84d2d02d2de4a48293b69050562e70f14 SHA512 5cfebb380a812cedb7e477fcb3870c933d8cbd6001fc7dc4fdcd1c1746502ea1031c733286836976e6df786d605b14e8b187da42deb1e3339e3c6233b37d4493 WHIRLPOOL 3e9e332b3807b9d09f60e12c49c2e0043b05cfd1b807d9ad43d49925d49fd738e85002e5fae8ceea7f967e932ad437c647add09105758312ac34e8bca5d8d699
+DIST jameica-scripting-1.0.zip 26023 SHA256 e99be32078cc8866b9be1ece39503f05159b6dbb0d2175655c424353009e8eac SHA512 4eed8d8022369752b8280f51f49cc22f1b12c239ff7919561b67b3b3d11b165f6eea7dcec4f6da8fdf1b11a195084b3ad7173bbbd6eba969473da0a64a45076d WHIRLPOOL fabeea3982e4d30e8e0a040d02f8cfc906c90dc135d1b8177133a91df5539ca47e8c3d984abce200c799c0a4c41c12b4afaa0abc3a60f18a64a03840da24e8b3
+DIST jameica.scripting-2.3.0-nightly.src.zip 25521 SHA256 4af9f531bb08bb2380ad2a98a99255cba57b3691c786b0d1f093714566121bab SHA512 2f8dd8f0164a5e1e2a44e39c98f1df4d8c983e8b51736d6d99039b78811333c78873c2da6235f089daca36fb5150944b29b2220ac024f6632f98b3acf401b08c WHIRLPOOL 613f736412a779e3df3c10764c7ae57d266dff555d7e07a50b8b41b44f7653c984a0bc69cea0c3b3c934ff5ff6479de7544f2714a7e57dad3c8f66f06bc64123
+EBUILD jameica-scripting-1.0.ebuild 1342 SHA256 02d31f59048da584bcbe4b74ef06a899e514e00405fa73d47a889e722bdc0d11 SHA512 0d95255fa55af507543b0afdf5be9ccc4acbfc07e2e3dd527b24ab43dfea7f6020d4b0c8a2511f6411a8a4433991ddcd98cd28364ad731ae9222b5d9b474e231 WHIRLPOOL 5f13f49c422c8ccda0a369a625350b87557dc33e1c2f2a10c255a2dcffe10ae321774baa75226ce78de845cf496bfe8c7c9479d163b0801d27d497c11b7db946
+EBUILD jameica-scripting-2.3.0_pre.ebuild 1294 SHA256 4a78dc9f04b51ebdd8a39e1356437f7d2107a7e6b494e343733478896b739bd1 SHA512 47785eb41f5e3410e3c4c10d64b8113e7b178b19f911f9cc9c7f0c8e595dfa70b08218d6f7332bd959f3065e4ac31b77fcad3dc7f5b604519e3137c725a80220 WHIRLPOOL f08eac566f8d9c28ac0b59c61baf7cb47e204169edaa64b70dcca6f4c5b7f48601eab1d09c5cba3e7af43ffd6eb7b9022e73315d45380e20103eeccf77bea69a
diff --git a/dev-java/jameica-scripting/files/disable-examples.patch b/dev-java/jameica-scripting/files/disable-examples.patch
new file mode 100644
index 0000000..17af20e
--- /dev/null
+++ b/dev-java/jameica-scripting/files/disable-examples.patch
@@ -0,0 +1,16 @@
+Index: jameica.scripting/build/build.xml
+===================================================================
+--- jameica.scripting.orig/build/build.xml
++++ jameica.scripting/build/build.xml
+@@ -143,11 +143,6 @@
+ <antcall target="addlib"/>
+ <antcall target="addwebapps"/>
+
+- <mkdir dir="${project.zipdir}/examples" />
+- <copy todir="${project.zipdir}/examples">
+- <fileset dir="examples" />
+- </copy>
+-
+ <copy file="plugin.xml" todir="${project.zipdir}" />
+ <copy file="${build.dir}/COPYING" todir="${project.zipdir}" />
+
diff --git a/dev-java/jameica-scripting/jameica-scripting-1.0.ebuild b/dev-java/jameica-scripting/jameica-scripting-1.0.ebuild
new file mode 100644
index 0000000..f8889ea
--- /dev/null
+++ b/dev-java/jameica-scripting/jameica-scripting-1.0.ebuild
@@ -0,0 +1,57 @@
+EAPI="2"
+JAVA_PKG_IUSE="doc source"
+
+WANT_ANT_TASKS="ant-nodeps"
+inherit eutils java-pkg-2 java-ant-2 versionator
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PN="jameica.scripting"
+
+DESCRIPTION="Scripting extension for Jameica"
+HOMEPAGE="http://www.willuhn.de/products/jameica/extensions.php#${MY_PN}"
+SRC_URI="https://github.com/willuhn/jameica.scripting/zipball/2cabf4a4c7db673cfee12e265169b9726d4a09b9 -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+COMMON_DEP=">=dev-java/jameica-1.10.0"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_PN}"
+
+src_unpack() {
+ default
+ mv willuhn-${MY_PN}-* ${MY_PN}
+}
+
+java_prepare() {
+ cd "${S}"
+ rm -v build/BUILD
+
+ EANT_GENTOO_CLASSPATH="jameica"
+ mkdir lib
+ java-pkg_jar-from --with-dependencies --into lib "${EANT_GENTOO_CLASSPATH}"
+}
+
+src_compile() {
+ eant -f build/build.xml jar $(use_doc javadoc)
+}
+
+src_install() {
+ local INST_DIR="/usr/share/jameica/plugins/${MY_PN}"
+
+ dodir "$INST_DIR"
+ insinto ${INST_DIR}
+ doins releases/${MY_PV}-0/${MY_PN}/${MY_PN}.jar || die "doins failed"
+ doins releases/${MY_PV}-0/${MY_PN}/plugin.xml || die "doins failed"
+
+ #use doc && java-pkg_dojavadoc releases/${PV}-0/javadoc
+ #use source && java-pkg_dosrc src/de
+}
diff --git a/dev-java/jameica-scripting/jameica-scripting-2.2.0.ebuild b/dev-java/jameica-scripting/jameica-scripting-2.2.0.ebuild
deleted file mode 100644
index ff7bcf1..0000000
--- a/dev-java/jameica-scripting/jameica-scripting-2.2.0.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-EAPI="2"
-JAVA_PKG_IUSE="doc source"
-
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils java-pkg-2 java-ant-2 versionator
-
-MY_PV="$(get_version_component_range 1-2)"
-
-DESCRIPTION="Scripting extension for Jameica"
-HOMEPAGE="http://www.willuhn.de/products/jameica/extensions.php#jameica.scripting"
-SRC_URI="http://www.willuhn.de/products/jameica/releases/${MY_PV}/jameica.scripting-${PV}.src.zip"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-COMMON_DEP="~dev-java/willuhn-util-${MY_PV}
- ~dev-java/willuhn-datasource-${MY_PV}
- >=dev-java/nanoxml-2.2.3
- dev-java/swt:3.7
- >=dev-java/velocity-1.5
- >=dev-java/xmlrpc-3.1
- >=dev-java/commons-cli-1.1
- >=dev-java/commons-collections-3.2.1
- >=dev-java/commons-lang-2.6
- >=dev-java/commons-logging-1.1.1
- dev-java/swtcalendar
- >=dev-java/bcprov-1.44
- >=dev-java/h2-1.2.145
- >=dev-java/commons-lang-2.6
- >=dev-java/swt-paperclips-1.0.4"
-
-RDEPEND=">=virtual/jre-1.5
- ${COMMON_DEP}"
-
-DEPEND=">=virtual/jdk-1.5
- app-arch/unzip
- ${COMMON_DEP}"
-
-S=${WORKDIR}/${PN}
-
-java_prepare() {
- #rm -r ${S}/lib/*
- cd ${S}/lib
-
- rm -vr apache_xmlrpc bouncycastle de_willuhn_ds de_willuhn_util h2 jakarta_commons mckoi mysql nanoxml paperclips splash.jar swtcalendar velocity
- rm -vr swt/linux swt/linux64 swt/macos swt/macos64 swt/win32 swt/win64
-
- mkdir gentoo
- local xmlrpc
- xmlrpc="xmlrpc"
- if has_version ">=dev-java/xmlrpc-3"; then
- #TODO: How to reference slot instead of version ?
- xmlrpc="xmlrpc-3"
- fi
-
- EANT_GENTOO_CLASSPATH="willuhn-util,willuhn-datasource,nanoxml,swt-3.7,velocity,${xmlrpc},commons-cli-1,commons-collections,commons-lang-2.1,commons-logging,swtcalendar,bcprov,h2,swt-paperclips"
-
- java-pkg_jar-from --with-dependencies --into gentoo "${EANT_GENTOO_CLASSPATH}"
-}
-
-src_compile() {
- eant -f build/build.xml jar $(use_doc javadoc)
-}
-
-src_install() {
- java-pkg_newjar releases/${PV}-0/jameica/jameica.jar
-
- java-pkg_newjar lib/swt/org.eclipse.core.runtime*.jar org.eclipse.core.runtime.jar
- java-pkg_newjar lib/swt/org.eclipse.jface*.jar org.eclipse.jface.jar
- java-pkg_newjar lib/swt/org.eclipse.osgi*.jar org.eclipse.osgi.jar
- java-pkg_newjar lib/swt/org.eclipse.ui.forms*.jar org.eclipse.ui.forms.jar
-
- insinto /usr/share/${PN}
- doins plugin.xml
- dodir /usr/share/${PN}/plugins
-
- java-pkg_dolauncher ${PN} --main de.willuhn.jameica.Main --pwd /usr/share/jameica/
-
- newicon build/${PN}-icon.png ${PN}-icon.png || die "newicon failed"
- make_desktop_entry jameica "Jameica" ${PN}-icon "Office;Finance"
-
- use doc && java-pkg_dojavadoc releases/${PV}-0/javadoc
- use source && java-pkg_dosrc src/de
-}
diff --git a/dev-java/jameica-scripting/jameica-scripting-2.3.0_pre.ebuild b/dev-java/jameica-scripting/jameica-scripting-2.3.0_pre.ebuild
new file mode 100644
index 0000000..eae5f16
--- /dev/null
+++ b/dev-java/jameica-scripting/jameica-scripting-2.3.0_pre.ebuild
@@ -0,0 +1,53 @@
+EAPI="2"
+JAVA_PKG_IUSE="doc source"
+
+WANT_ANT_TASKS="ant-nodeps"
+inherit eutils java-pkg-2 java-ant-2 versionator
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PN="jameica.scripting"
+
+DESCRIPTION="Scripting extension for Jameica"
+HOMEPAGE="http://www.willuhn.de/products/jameica/extensions.php#${MY_PN}"
+SRC_URI="http://www.willuhn.de/products/jameica/releases/nightly/${MY_PN}-${MY_PV}-nightly.src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+COMMON_DEP=">=dev-java/jameica-2.3.0"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_PN}"
+
+java_prepare() {
+ epatch "${FILESDIR}/disable-examples.patch"
+
+ cd "${S}"
+
+ EANT_GENTOO_CLASSPATH="jameica"
+ mkdir lib
+ java-pkg_jar-from --with-dependencies --into lib "${EANT_GENTOO_CLASSPATH}"
+}
+
+src_compile() {
+ eant -f build/build.xml jar $(use_doc javadoc)
+}
+
+src_install() {
+ local INST_DIR="/usr/share/jameica/plugins/${MY_PN}"
+
+ dodir "$INST_DIR"
+ insinto ${INST_DIR}
+ doins releases/${MY_PV}-0/${MY_PN}/${MY_PN}.jar || die "doins failed"
+ doins releases/${MY_PV}-0/${MY_PN}/plugin.xml || die "doins failed"
+
+ #use doc && java-pkg_dojavadoc releases/${PV}-0/javadoc
+ #use source && java-pkg_dosrc src/de
+}