summaryrefslogtreecommitdiff
path: root/sci-mathematics/isabelle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/isabelle
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/isabelle')
-rw-r--r--sci-mathematics/isabelle/Manifest24
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2012-graphbrowser.patch11
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2012-reverse-line-editor-order.patch12
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016-classpath.patch32
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016-jfreechart-classpath.patch16
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016.1-bash_process-1.2.1-settings.patch7
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016.1-disable-jedit-build-after-install.patch128
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016.1-jortho-1.0-2-classpath.patch8
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016.1-libsha1.patch11
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016.1-smt_read_only_certificates.patch33
-rw-r--r--sci-mathematics/isabelle/files/isabelle-2016.1-smt_timeout.patch22
-rw-r--r--sci-mathematics/isabelle/isabelle-2016.1.ebuild328
-rw-r--r--sci-mathematics/isabelle/metadata.xml29
13 files changed, 661 insertions, 0 deletions
diff --git a/sci-mathematics/isabelle/Manifest b/sci-mathematics/isabelle/Manifest
new file mode 100644
index 000000000000..ed0433d15bcd
--- /dev/null
+++ b/sci-mathematics/isabelle/Manifest
@@ -0,0 +1,24 @@
+AUX isabelle-2012-graphbrowser.patch 354 SHA256 0b6d3a3736ec89ad870ef24bb2ba3c2006a907e1a29a113e3f63a5ad609ec4b7 SHA512 ef850f554a41292e6a1811489309b9c13404191258acdf46d4739360b951634aaa76d25fcbef3784a54c25972b6a81ec2d4d151b6f53684224cdec286d4082c0 WHIRLPOOL dec708ff2653bdd50af5cccedd31c5e6f06d3e9910c4155d53c4a24b9b70c868226a4c68a12fadac868296fa95024799ef9cd027fd56f1d7c4e825cacddc74f1
+AUX isabelle-2012-reverse-line-editor-order.patch 423 SHA256 51a172b46baaaa269488801bad3d46ba4ccd0e3df35b2c15dc9b75592ceb843e SHA512 de9499e5c0d9bc22a72ef15320490fea7e71afbfe1ab6bc3a6a71a866eda2050833d47aadc7c0c7b106d4f0a28fa9a062ec2d9a6c15bf6c0eedd54274df20515 WHIRLPOOL 3a96e039df568ffd449dc0dc18a888d55a5b3db2940beb7f7e28628e0abdd3bd4132162abc7cac8c633f562cb2b18afb8a4e84cea26fa18f086488bfd3781a48
+AUX isabelle-2016-classpath.patch 1269 SHA256 bec5d12bd8895357dd71a15d223f400121264d6e7b12a430f7c15ef9620dc3d4 SHA512 912930f7bd392bb6bb8569d447f3c0ba52c872c5be26b25fa551749ce4938cdc6bb1db4687a3e682e70dcb418e5f4b2d2cb5a49b470089618ff27653f492d096 WHIRLPOOL f0186add1c3724162acfbf40fcfd327986009f42e040672da0c73ed310dd0763b9e70c1dfd8c3da55810342b6093d324abe58f47e108d9d9ce9950ad203b1275
+AUX isabelle-2016-jfreechart-classpath.patch 930 SHA256 fb31e9e9c64347527bcfffaa3cd438fcb808f3634e382c7172117aa7bcf677c1 SHA512 0479a158a25f11f9c1a2edea49fd5c5e635558095c46c543fe73cacc58aecedb91e9528ddc02be7bf1f4f3c6f4251e6918449f24dfa93aec3494aeed2590e7a6 WHIRLPOOL df86c65a35c533ad7eff1cf117f782d1b212e901029445d54f63e395c090876a06c65953f18883e42512e991530cea9c295f43def70529f56be6b7e276c70697
+AUX isabelle-2016.1-bash_process-1.2.1-settings.patch 399 SHA256 f62478173c20d103431e94399875d329a939be7e87a9491d2403d6f24249d81e SHA512 0965da49933834c2746f55a80e84ecfcf4e1a0faf6997224cc08ec3e458998887234839d346a2a12bf2ea2efbb91a1b4a53dcd4d390832655f30ce519fa59a66 WHIRLPOOL 0ccaa3e2ff323f0d82c34be8b5de0734b7dd639d837a42b8b29b04dc1f79f6a04d5c8571d5637dfa4a0ff7e871e6a15a0993b4c493ecd6c20d5a1f969de78ab8
+AUX isabelle-2016.1-disable-jedit-build-after-install.patch 3852 SHA256 43a5cc45fd60400f727e20074502b0f3649b883e9c86b6d24cf1fd28f06ed91f SHA512 1786facbfe939841b6949be37712a087e5a80afb564a39d9019bc2c2110604328056a06f10737a732a9ad7c4a9a36ced8347b1b2c17f4744f20c3ebe2cd1445e WHIRLPOOL ba4165605aff3ce054f6f2c1ed45027871b2a8d3094386b6d711af79aa2d49f7af9e1724a4d45f2d914550405593c68ea5a493abd28c6d9d5a7a9ae50847e7e6
+AUX isabelle-2016.1-jortho-1.0-2-classpath.patch 505 SHA256 b828cb77123941de1b5d8c0a47951827c70cb55673057f7b3e5e240638f7cc47 SHA512 74af59748e537b70bde496c67f93b2a3de1947616f4289421f4d2c045c63ac53f7c3eb6c435818c598285871afe012d6a3eabb94793f408d6c1e13e3f7812408 WHIRLPOOL f29c9f525e41ac30be31cf6ea827ab9d598989a03ae2ab6185616bf0825e6378fa6e3b8ca4d1eb54f94768e4ed99773be1427d038442cd4dfa17bb360d2697f3
+AUX isabelle-2016.1-libsha1.patch 535 SHA256 bd5a7cf8cf9216cb25132554f44aaa3c0e437a1b0e02b356b0c6d3e1acc14454 SHA512 7200f3a66c1ede6d1957cbab928a48ae6d7e785123e2df45bbbd62a8f09172b3fad383757929ee27f1efe358a61bff5c6f6de6fe486f2ffd269d08d2de840708 WHIRLPOOL 8b62ebbcfb29aefae6231abc5988b0254489fd5e07de46dde561408f5c7f6da28b48a6e648397f3795eb9152fab0bab82b826cced0191f6c33c49ce4122d81a1
+AUX isabelle-2016.1-smt_read_only_certificates.patch 1372 SHA256 ff201c0cb0d7220a1a43eeb8d5cf5882fe31029b9c89694cf90d2082f4af9063 SHA512 c6ef0253ef6fc100050dd35c15be07f17da14ef3119971a150d177f5fedec0bd134834965eee9dbcfa8e485fd05841b8770e0aaada75c74503ea2b3e6dd2bef3 WHIRLPOOL a13c69d0e708666134836b66b0ddb2d611d6f4ee1af9bca2025827db3376931900b82b17a571b925c88aa67e332599ee706b2c9f7eaeb507dd8e3a879fffb0a5
+AUX isabelle-2016.1-smt_timeout.patch 1092 SHA256 59e40843f954522f5be53b10dc958bbbc0bf1eb34a0a2a4503335eca816f5bf5 SHA512 ffbfb74959f35856c085a593e164d93a71bc08ce9c88d50d911f4cb4652b1be9aeade8d80cecf9f15165ba35135719ca36f82d3cbf789f1d8a9fac52bdb84bde WHIRLPOOL 3ce7708c58d84d14851d2cf5dc44cc265eca6388e0ec4c65eff3302d7ef92b90627f968b6ee06e28cb5ca189ccd3445d89346f519b49cca07e147bc0e2a50f3e
+DIST Isabelle2016-1.tar.gz 39567637 SHA256 79831f83df4f0275fbd64caf3cd3e170354809478139907f6e25ebc8fc4a083f SHA512 c7da7900033a8c816f002b8899e398da7819dc457b3b1176dc9a19adffeb42d5524f2d14581a391487da1f36ffeabd0867bacab6462f3decfc0f7a9caf81a2d2 WHIRLPOOL 98d8cd767e04a7c46d19c91886fd7a98ca935625454b57df4f968f874340aaa5a6184004c6879ebc1c35f971b4e5ff1a52f06e33e1d14e377dbce346e201d655
+DIST bash_process-isabelle-component-1.2.1.tar.gz 33182 SHA256 50ba6bed5a8fbcf26b9e9b090af783e1288daa9b6d2e67ec65e7de8621049bf4 SHA512 d9817191af5660e38f1647401803115a93f0052291bfbbcb1cd9b41a4bab89b3ebdde22b40744a04ad3268aed8ca037ae59981c513f71b3ff6d89855d29e14c3 WHIRLPOOL f8392e4df237e758568b3edd25b83b44b916a81f9a18f6d6dd931a084de9a915930ae9e65e39b7b39b80ab9f738fd112113c4c3496ef3433fd17efff2f51068a
+DIST csdp-isabelle-component-6.x.tar.gz 493 SHA256 65dde42fa476095052ca3820df4c0e45089653d4467a53de711c8e13670a1b19 SHA512 9be28ecbf61d0f6ad23e28d44bd7ceb8f06ab22f3a05a7c823a9c5bf52ddcf5e5c300c41e14451d6b8e6a4c32b1bbd17769c731cd890fab335a866cd5e735290 WHIRLPOOL c930c531637172e4c75ec44d68f71e69e748a8b976fa3651ef4015fb6a90e30b568bd092632dc16c6389aac09bc13f3249af6c3ac261f09ad2dc5ad915282f99
+DIST isabelle_fonts-isabelle-component-20160830.tar.gz 249427 SHA256 1e99293f2f77f906f32c3974becd7c4a9d474050d3ab78222e3e5f40fe3d8fce SHA512 a185f79990478861832e9400ea37ffd02f582d3f916d26d901b8b0ec923027c412538bafe4a763a132adb9277a4b00a7a510762928ec49433ef550ae3fe59dbc WHIRLPOOL c15a6df44fce1d5577a7642d7b659b4b202bfd148db35c2429ec8e6c2680e7f1302b6249792150f0563a4e9cd9c92325bedc33194c0c7cf5008f2a3f4677ef02
+DIST jedit_build-isabelle-component-20161024.tar.gz 10819946 SHA256 5b3cc4d2916a77ceef1b7aea80c3ade715795d2c2359f4f8f73b32e334c3f22e SHA512 0563b696307dd33b244e4ecc62664056a2b003c3291a5e3d7dd4f1c936dac2c3257ff90273cb2c8dc3bf9dea40fae745fabb57fc5f4ed420d0c8fd7d2b917433 WHIRLPOOL 46edf80819abef2c900a2d0dfb20530685678c25780a56946f8fa4af66abb047cfdcab17a7bb9700e60028e5465d93c227d7515084f6020546c781419d91cc03
+DIST jfreechart-isabelle-component-1.0.14-1.tar.gz 3444825 SHA256 b0eb7365c4c5877379889100f081a4afc4117afc0d332941c3dd01bef2c4aee9 SHA512 ee1d84a45e43029d5e3acee823176196da19789322e8d3c2c81d5504930ad81d50e16e5da87655e4151034901daefb4ce6b82334839e39134b3a7ce32203aa67 WHIRLPOOL e6f9caadb802ecb5b784e86e96c008e9271aa0b1c940152fb0b0358280d9c1e274bb0dee1507f8ff0fe7f43f863db538d631c76e146d1f66ab6e8a8fb27eb42d
+DIST jortho-isabelle-component-1.0-2.tar.gz 1723761 SHA256 cf004d735252dcdc00ff6d3c9b5cc400f56bc8b7eb49ed9a3227f12779639bad SHA512 8bef5e025d13b76c86a727bf93887b846cc906b2ce00299c38f69ccf33fb9dc7411e55b6fd1c56ed993c180d83a7e9ed90122f7feb6ae4fb70df93802ac21211 WHIRLPOOL 2a9aae3dcc62c52c194f17d0b5e59d710bd8efdb9e75ed6dd9fa68746a9bbc5178a218e405d7a23bf15d3957c3e1a8543ccdeb04f8556b05b8802aed47d8e537
+DIST polyml-isabelle-component-5.6-1.tar.gz 822 SHA256 158d597bb103b173ce95b40f4a5ed3bf45fce9a7185be4240e0fb69dbb74431d SHA512 403239aa48aab8c39e12cd5f82cb5e3ba7c31f9325d88f5137d3ec509bb25ab4eb8b1103a66b8ea5ad45c7c968ef092749c486217528a5db4223819106c00a59 WHIRLPOOL 6a1f766c71543748cdeab6bc1e3e1e7b8ab81b49976bebf0ec72086be8f161cd23b913d28cf0f0386b8f33a7b9637427a2c57f1bd7adf58c8c0f58054f84a9db
+DIST ssh-java-isabelle-component-20161009.tar.gz 412919 SHA256 60d9448e664a357816e64e4d21ce0db9fb27354e8c64e1199c4be839b084145e SHA512 685a9b8791046c1bc21aa77614fb1b304e7438715377e179954ebfd1603434ff66fe23e90de928a5af6f51a48ae6ea6f05f9ff8941d98f7c3a43fdda02d3b519 WHIRLPOOL 3c5c666f86e08c81d75b13442a98b6eaa51418a8a55310e87c53e68480e31ec6050c1e2b3876a0a3e06c58e5e8c9735150408e8fd120a8d83b9827b9b84b2c7c
+DIST xz-java-isabelle-component-1.5.tar.gz 315 SHA256 e7fdd433608561c87558d4d0ee39166e8396ce11242e85391417ec7fd3ce7b8e SHA512 6dfec49e12c4cafbb6b6386dd54477e86b6bb419a77c52d9606a0305aeea9cd11f087ed6bba77352c7bf9ec656052ef617e845f472e57b5cdfbccf22b2eeb4fa WHIRLPOOL 9c1fc16db0adc88557b81608902d9d69007dc90d5849f4f7501101930842ce81ded76af0e76e38df8bd0b07d137e53bafaa338bf6c7ae338e97af2a1433d5c1d
+EBUILD isabelle-2016.1.ebuild 11274 SHA256 70a5e4c8965efae590906057a261faa529a3c90b3a7e69d17320806da21cf02a SHA512 7d804624134b7659f62c2738f2fa20f4a1da39eab58f80cd20d47aad8fe326b4d9366a3c96ac51c5f2abfb2bbfd4656c979330794c85f0659b04f93759f53fc9 WHIRLPOOL 480bed7421e31bef346fc5b638e258359e284325ea8732f0a987f6596c8b8b5b869432d1587d36032a11b2f7cec27fb2d1842e06e847abc9f1d78ac9cd2a3b0d
+MISC ChangeLog 5348 SHA256 e08f36b3eaffd50a2683159655ab699b798e40376206e55967329ccfd0fb7808 SHA512 fcb4e7b2a34b2d17574c95eb8acfb1abbbbcf81855c60d6e85254df1d115fd12c0be613870fad613ef6eea0d50df63a9395210e9ce53cddddff78c740f448cd9 WHIRLPOOL 343447929e1cd264c470034e2e00d630529aa0716009ac361db1fad66113083aac79670f654906f6330c3be6c3de8cd8f70ba3e58cf88d113da44cb0ad11c854
+MISC ChangeLog-2015 4737 SHA256 8248af61826e77588bf83a0f9f6c80ff77b77bdffc09616061cfcbbcd39a9fcc SHA512 daa0e357b200d5b3896fad1e54860b388cfff74eab89aa4e7a5eee372130f720f4295f6f514c30d6a1463e15e47c920b6fd3df33d35dc7938412a388aed627a1 WHIRLPOOL 2aca3833b8bd919f15c9510fd90468486574ab80a4b80ceeb47fef03d172f788522e9d5d74603c61c1b0b7da2bfeb8eb10dd63219f6849e66a89803d8b9a5c3a
+MISC metadata.xml 1207 SHA256 0004d339e6cc2a11a1e5927b5111e31b565defe600805546cb2461012db433f3 SHA512 158021354cea7c08befe74a21aa066e529a9ba315d2ae4bfa3e17c689439564358650d0100c43e18851ae4138744b451b70eb3fdf49f2ce90e37eac7b3f2268b WHIRLPOOL 3a477b11204a4f46ab796e8fa833a5d23232c842b91f571359c263f2e1a62c3dc88a19cca3d4e3b91960f471659f2552a0bb91a5de8198646b32b27faec02175
diff --git a/sci-mathematics/isabelle/files/isabelle-2012-graphbrowser.patch b/sci-mathematics/isabelle/files/isabelle-2012-graphbrowser.patch
new file mode 100644
index 000000000000..3e63f1c62237
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2012-graphbrowser.patch
@@ -0,0 +1,11 @@
+--- Isabelle2012-orig/lib/browser/build 2012-05-20 19:34:33.000000000 +1000
++++ Isabelle2012/lib/browser/build 2012-05-26 22:18:41.952750622 +1000
+@@ -6,6 +6,8 @@
+ #
+ # Requires proper Isabelle settings environment.
+
++ISABELLE_HOME="$(cd "$(dirname "${0}")/../.."; pwd -P)"
++source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2
+
+ ## diagnostics
+
diff --git a/sci-mathematics/isabelle/files/isabelle-2012-reverse-line-editor-order.patch b/sci-mathematics/isabelle/files/isabelle-2012-reverse-line-editor-order.patch
new file mode 100644
index 000000000000..233ea5b50fad
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2012-reverse-line-editor-order.patch
@@ -0,0 +1,12 @@
+--- Isabelle2012-orig/etc/settings 2012-05-23 03:07:38.000000000 +1000
++++ Isabelle2012/etc/settings 2012-05-27 12:43:36.209715015 +1000
+@@ -62,8 +62,8 @@
+ ###
+
+ ISABELLE_LINE_EDITOR=""
+-[ -z "$ISABELLE_LINE_EDITOR" ] && ISABELLE_LINE_EDITOR="$(type -p rlwrap)"
+ [ -z "$ISABELLE_LINE_EDITOR" ] && ISABELLE_LINE_EDITOR="$(type -p ledit)"
++[ -z "$ISABELLE_LINE_EDITOR" ] && ISABELLE_LINE_EDITOR="$(type -p rlwrap)"
+
+
+ ###
diff --git a/sci-mathematics/isabelle/files/isabelle-2016-classpath.patch b/sci-mathematics/isabelle/files/isabelle-2016-classpath.patch
new file mode 100644
index 000000000000..032b18b71f3b
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016-classpath.patch
@@ -0,0 +1,32 @@
+Index: Isabelle2016/lib/Tools/java
+===================================================================
+--- Isabelle2016.orig/lib/Tools/java
++++ Isabelle2016/lib/Tools/java
+@@ -10,5 +10,5 @@ declare -a JAVA_ARGS; eval "JAVA_ARGS=($
+ unset CLASSPATH
+
+ isabelle_java java "${JAVA_ARGS[@]}" \
+- -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"
++ -classpath "$(platform_path "$ISABELLE_CLASSPATH:$(java-config -p scala-2.11)")" "$@"
+
+Index: Isabelle2016/lib/Tools/scala
+===================================================================
+--- Isabelle2016.orig/lib/Tools/scala
++++ Isabelle2016/lib/Tools/scala
+@@ -14,4 +14,4 @@ do
+ done
+
+ isabelle_scala scala "${SCALA_ARGS[@]}" \
+- -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"
++ -classpath "$(platform_path "$ISABELLE_CLASSPATH:$(java-config -p scala-2.11)")" "$@"
+Index: Isabelle2016/lib/Tools/scalac
+===================================================================
+--- Isabelle2016.orig/lib/Tools/scalac
++++ Isabelle2016/lib/Tools/scalac
+@@ -7,5 +7,5 @@
+ isabelle_admin_build jars || exit $?
+
+ isabelle_scala scalac -Dfile.encoding=UTF-8 \
+- -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"
++ -classpath "$(platform_path "$ISABELLE_CLASSPATH:$(java-config -p scala-2.11)")" "$@"
+
diff --git a/sci-mathematics/isabelle/files/isabelle-2016-jfreechart-classpath.patch b/sci-mathematics/isabelle/files/isabelle-2016-jfreechart-classpath.patch
new file mode 100644
index 000000000000..9a88ebef26ca
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016-jfreechart-classpath.patch
@@ -0,0 +1,16 @@
+--- Isabelle2016-orig/contrib/jfreechart-1.0.14-1/etc/settings 2013-09-12 07:46:57.000000000 +1000
++++ Isabelle2016/contrib/jfreechart-1.0.14-1/etc/settings 2016-07-07 17:22:55.716464804 +1000
+@@ -1,9 +1,8 @@
+ # -*- shell-script -*- :mode=shellscript:
+
+ JFREECHART_HOME="$COMPONENT"
+-JFREECHART_JAR_NAMES="iText-2.1.5.jar jcommon-1.0.18.jar jfreechart-1.0.14.jar"
+-
+-classpath "$JFREECHART_HOME/lib/iText-2.1.5.jar"
+-classpath "$JFREECHART_HOME/lib/jcommon-1.0.18.jar"
+-classpath "$JFREECHART_HOME/lib/jfreechart-1.0.14.jar"
++JFREECHART_JAR_NAMES="$(java-config --classpath itext | sed -e 's@:@ @g' -e 's@/[^ ]*/@@g') $(java-config --classpath jcommon-1.0 | sed -e 's@:@ @g' -e 's@/[^ ]*/@@g') $(java-config --classpath jfreechart-1.0 | sed -e 's@:@ @g' -e 's@/[^ ]*/@@g')"
+
++classpath "$(java-config --classpath itext)"
++classpath "$(java-config --classpath jcommon-1.0)"
++classpath "$(java-config --classpath jfreechart-1.0)"
diff --git a/sci-mathematics/isabelle/files/isabelle-2016.1-bash_process-1.2.1-settings.patch b/sci-mathematics/isabelle/files/isabelle-2016.1-bash_process-1.2.1-settings.patch
new file mode 100644
index 000000000000..38d047199ce8
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016.1-bash_process-1.2.1-settings.patch
@@ -0,0 +1,7 @@
+--- Isabelle2016-1-orig/contrib/bash_process-1.2.1/etc/settings 2016-02-14 09:48:03.000000000 +1100
++++ Isabelle2016-1/contrib/bash_process-1.2.1/etc/settings 2017-01-02 13:44:49.355549312 +1100
+@@ -1,3 +1,3 @@
+ # -*- shell-script -*- :mode=shellscript:
+
+-ISABELLE_BASH_PROCESS="$COMPONENT/${ISABELLE_PLATFORM64:-$ISABELLE_PLATFORM32}/bash_process"
++ISABELLE_BASH_PROCESS="$COMPONENT/bash_process"
diff --git a/sci-mathematics/isabelle/files/isabelle-2016.1-disable-jedit-build-after-install.patch b/sci-mathematics/isabelle/files/isabelle-2016.1-disable-jedit-build-after-install.patch
new file mode 100644
index 000000000000..6bac5ccbe748
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016.1-disable-jedit-build-after-install.patch
@@ -0,0 +1,128 @@
+--- Isabelle2016-1-orig/src/Tools/jEdit/lib/Tools/jedit 2016-12-13 01:03:49.000000000 +1100
++++ Isabelle2016-1/src/Tools/jEdit/lib/Tools/jedit 2017-01-01 17:24:50.107722845 +1100
+@@ -239,125 +239,6 @@
+ "$ISABELLE_JEDIT_BUILD_HOME/contrib/jsr305-2.0.0.jar"
+ )
+
+-
+-# target
+-
+-TARGET="dist/jars/Isabelle-jEdit.jar"
+-
+-declare -a UPDATED=()
+-
+-if [ "$BUILD_JARS" = jars_fresh ]; then
+- OUTDATED=true
+-else
+- OUTDATED=false
+- if [ ! -e "$TARGET" ]; then
+- OUTDATED=true
+- else
+- if [ -n "$ISABELLE_JEDIT_BUILD_HOME" ]; then
+- declare -a DEPS=(
+- "$JEDIT_JAR" "${JEDIT_JARS[@]}" "$PURE_JAR"
+- "${SOURCES[@]}" "${RESOURCES[@]}"
+- )
+- elif [ -e "$ISABELLE_HOME/Admin/build" ]; then
+- declare -a DEPS=("$PURE_JAR" "${SOURCES[@]}" "${RESOURCES[@]}")
+- else
+- declare -a DEPS=()
+- fi
+- for DEP in "${DEPS[@]}"
+- do
+- [ ! -e "$DEP" ] && fail "Missing file: $DEP"
+- [ "$DEP" -nt "$TARGET" ] && {
+- OUTDATED=true
+- UPDATED["${#UPDATED[@]}"]="$DEP"
+- }
+- done
+- fi
+-fi
+-
+-
+-# build
+-
+-if [ "$OUTDATED" = true ]
+-then
+- echo "### Building Isabelle/jEdit ..."
+-
+- [ "${#UPDATED[@]}" -gt 0 ] && {
+- echo "Changed files:"
+- for FILE in "${UPDATED[@]}"
+- do
+- echo " $FILE"
+- done
+- }
+-
+- [ -z "$ISABELLE_JEDIT_BUILD_HOME" ] && \
+- fail "Unknown ISABELLE_JEDIT_BUILD_HOME -- missing auxiliary component"
+-
+- rm -rf dist || failed
+- mkdir -p dist dist/classes || failed
+-
+- cp -p -R -f "$ISABELLE_JEDIT_BUILD_HOME/contrib/$ISABELLE_JEDIT_BUILD_VERSION/." dist/.
+- cp -p -R -f "${RESOURCES[@]}" dist/classes/.
+- cp src/jEdit.props dist/properties/.
+- cp -p -R -f src/modes/. dist/modes/.
+-
+- perl -i -e 'while (<>) {
+- if (m/FILE="ml.xml"/ or m/FILE_NAME_GLOB="...sml,ml."/) { }
+- elsif (m/NAME="javacc"/) {
+- print qq!<MODE NAME="isabelle" FILE="isabelle.xml" FILE_NAME_GLOB="{*.thy,ROOT0.ML,ROOT.ML}"/>\n\n!;
+- print qq!<MODE NAME="isabelle-ml" FILE="isabelle-ml.xml" FILE_NAME_GLOB="*.ML"/>\n\n!;
+- print qq!<MODE NAME="isabelle-news" FILE="isabelle-news.xml"/>\n\n!;
+- print qq!<MODE NAME="isabelle-options" FILE="isabelle-options.xml"/>\n\n!;
+- print qq!<MODE NAME="isabelle-root" FILE="isabelle-root.xml" FILE_NAME_GLOB="ROOT"/>\n\n!;
+- print;
+- }
+- elsif (m/NAME="sqr"/) {
+- print qq!<MODE NAME="sml" FILE="sml.xml" FILE_NAME_GLOB="*.{sml,sig}"/>\n\n!;
+- print;
+- }
+- else { print; }
+- }' dist/modes/catalog
+-
+- cd dist
+- isabelle_jdk jar xf jedit.jar
+- cp "$ISABELLE_HOME/lib/logo/isabelle_transparent-32.gif" \
+- "org/gjt/sp/jedit/icons/themes/classic/32x32/apps/isabelle.gif" || failed
+- cp "$ISABELLE_HOME/lib/logo/isabelle_transparent-32.gif" \
+- "org/gjt/sp/jedit/icons/themes/tango/32x32/apps/isabelle.gif" || failed
+- isabelle_jdk jar cfe jedit.jar org.gjt.sp.jedit.jEdit org || failed
+- rm -rf META-INF org
+- cd ..
+-
+- cp -p -R -f "${JEDIT_JARS[@]}" dist/jars/. || failed
+- (
+- #FIXME workarounds for scalac 2.11.0
+- export CYGWIN="nodosfilewarning"
+- function stty() { :; }
+- export -f stty
+-
+- for JAR in "$JEDIT_JAR" "${JEDIT_JARS[@]}" "$PURE_JAR"
+- do
+- classpath "$JAR"
+- done
+- export CLASSPATH="$(platform_path "$ISABELLE_CLASSPATH")"
+- exec "$SCALA_HOME/bin/scalac" $ISABELLE_SCALA_BUILD_OPTIONS -d dist/classes "${SOURCES[@]}"
+- ) || fail "Failed to compile sources"
+-
+- cd dist/classes
+- isabelle_jdk jar cf "../jars/Isabelle-jEdit.jar" * || failed
+- cd ../..
+- rm -rf dist/classes
+-
+- cp "$ISABELLE_JEDIT_BUILD_HOME/doc/jedit5.3.0manual-a4.pdf" dist/doc/jedit-manual.pdf
+- cp dist/doc/CHANGES.txt dist/doc/jedit-changes
+- cat > dist/doc/Contents <<EOF
+-Original jEdit Documentation
+- jedit-manual jEdit 5.3 User's Guide
+- jedit-changes jEdit 5.3 Version History
+-
+-EOF
+-
+-fi
+-
+ popd >/dev/null
+
+
diff --git a/sci-mathematics/isabelle/files/isabelle-2016.1-jortho-1.0-2-classpath.patch b/sci-mathematics/isabelle/files/isabelle-2016.1-jortho-1.0-2-classpath.patch
new file mode 100644
index 000000000000..a34cae3fcf45
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016.1-jortho-1.0-2-classpath.patch
@@ -0,0 +1,8 @@
+--- Isabelle2016-1-orig/contrib/jortho-1.0-2/etc/settings 2014-04-16 06:03:34.000000000 +1000
++++ Isabelle2016-1/contrib/jortho-1.0-2/etc/settings 2017-01-02 00:13:01.619790577 +1100
+@@ -3,4 +3,4 @@
+ JORTHO_HOME="$COMPONENT"
+ JORTHO_DICTIONARIES="$JORTHO_HOME/dictionaries/en.gz:$JORTHO_HOME/dictionaries/en_US.gz:$JORTHO_HOME/dictionaries/en_GB-ise.gz:$JORTHO_HOME/dictionaries/en_GB-ize.gz:$JORTHO_HOME/dictionaries/en_CA.gz"
+
+-classpath "$JORTHO_HOME/jortho.jar"
++classpath "$(java-config -p jortho)"
diff --git a/sci-mathematics/isabelle/files/isabelle-2016.1-libsha1.patch b/sci-mathematics/isabelle/files/isabelle-2016.1-libsha1.patch
new file mode 100644
index 000000000000..f19436acd1c3
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016.1-libsha1.patch
@@ -0,0 +1,11 @@
+--- Isabelle2016-1-orig/src/Pure/General/sha1.ML 2016-12-13 01:03:45.000000000 +1100
++++ Isabelle2016-1/src/Pure/General/sha1.ML 2016-12-28 20:50:36.814706587 +1100
+@@ -146,7 +146,7 @@
+ (* C library and memory *)
+
+ val library_path =
+- Path.explode ("$ML_HOME/" ^ (if ML_System.platform_is_windows then "sha1.dll" else "libsha1.so"));
++ Path.explode ("$SHA1_HOME/" ^ (if ML_System.platform_is_windows then "sha1.dll" else "libsha1.so"));
+
+ fun with_memory n =
+ Thread_Attributes.uninterruptible (fn restore_attributes => fn f =>
diff --git a/sci-mathematics/isabelle/files/isabelle-2016.1-smt_read_only_certificates.patch b/sci-mathematics/isabelle/files/isabelle-2016.1-smt_read_only_certificates.patch
new file mode 100644
index 000000000000..d766a957021d
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016.1-smt_read_only_certificates.patch
@@ -0,0 +1,33 @@
+--- Isabelle2016-1-orig/src/HOL/SMT_Examples/Boogie.thy 2016-12-13 01:03:38.000000000 +1100
++++ Isabelle2016-1/src/HOL/SMT_Examples/Boogie.thy 2016-12-30 23:46:11.947737290 +1100
+@@ -52,7 +52,7 @@
+ section \<open>Verification condition proofs\<close>
+
+ declare [[smt_oracle = false]]
+-declare [[smt_read_only_certificates = true]]
++declare [[smt_read_only_certificates = false]]
+
+
+ declare [[smt_certificates = "Boogie_Max.certs"]]
+--- Isabelle2016-1-orig/src/HOL/SMT_Examples/SMT_Examples.thy 2016-12-13 01:03:38.000000000 +1100
++++ Isabelle2016-1/src/HOL/SMT_Examples/SMT_Examples.thy 2016-12-30 23:46:11.953737338 +1100
+@@ -9,7 +9,7 @@
+ begin
+
+ declare [[smt_certificates = "SMT_Examples.certs"]]
+-declare [[smt_read_only_certificates = true]]
++declare [[smt_read_only_certificates = false]]
+
+
+ section \<open>Propositional and first-order logic\<close>
+--- Isabelle2016-1-orig/src/HOL/SMT_Examples/SMT_Word_Examples.thy 2016-12-13 01:03:38.000000000 +1100
++++ Isabelle2016-1/src/HOL/SMT_Examples/SMT_Word_Examples.thy 2016-12-30 23:46:11.967737450 +1100
+@@ -11,7 +11,7 @@
+ declare [[smt_oracle = true]]
+ declare [[z3_extensions = true]]
+ declare [[smt_certificates = "SMT_Word_Examples.certs"]]
+-declare [[smt_read_only_certificates = true]]
++declare [[smt_read_only_certificates = false]]
+
+ text \<open>
+ Currently, there is no proof reconstruction for words.
diff --git a/sci-mathematics/isabelle/files/isabelle-2016.1-smt_timeout.patch b/sci-mathematics/isabelle/files/isabelle-2016.1-smt_timeout.patch
new file mode 100644
index 000000000000..249c94bd2583
--- /dev/null
+++ b/sci-mathematics/isabelle/files/isabelle-2016.1-smt_timeout.patch
@@ -0,0 +1,22 @@
+--- Isabelle2016-1-orig/src/HOL/SMT.thy 2016-12-13 01:03:38.000000000 +1100
++++ Isabelle2016-1/src/HOL/SMT.thy 2016-12-30 14:11:09.379863215 +1100
+@@ -201,7 +201,7 @@
+ (given in seconds) to restrict their runtime.
+ \<close>
+
+-declare [[smt_timeout = 20]]
++declare [[smt_timeout = 300]]
+
+ text \<open>
+ SMT solvers apply randomized heuristics. In case a problem is not
+--- Isabelle2016-1-orig/src/HOL/Tools/SMT/smt_config.ML 2016-12-13 01:03:42.000000000 +1100
++++ Isabelle2016-1/src/HOL/Tools/SMT/smt_config.ML 2016-12-30 14:11:27.186904132 +1100
+@@ -170,7 +170,7 @@
+ (* options *)
+
+ val oracle = Attrib.setup_config_bool @{binding smt_oracle} (K true)
+-val timeout = Attrib.setup_config_real @{binding smt_timeout} (K 30.0)
++val timeout = Attrib.setup_config_real @{binding smt_timeout} (K 300.0)
+ val reconstruction_step_timeout = Attrib.setup_config_real @{binding smt_reconstruction_step_timeout} (K 10.0)
+ val random_seed = Attrib.setup_config_int @{binding smt_random_seed} (K 1)
+ val read_only_certificates = Attrib.setup_config_bool @{binding smt_read_only_certificates} (K false)
diff --git a/sci-mathematics/isabelle/isabelle-2016.1.ebuild b/sci-mathematics/isabelle/isabelle-2016.1.ebuild
new file mode 100644
index 000000000000..99534d2b1389
--- /dev/null
+++ b/sci-mathematics/isabelle/isabelle-2016.1.ebuild
@@ -0,0 +1,328 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils check-reqs java-pkg-2 versionator
+
+MY_PN="Isabelle"
+MY_PV=$(replace_all_version_separators '-')
+MY_P="${MY_PN}${MY_PV}"
+
+BP_PV="1.2.1"
+BP_PN="bash_process"
+BP_P="${BP_PN}-${BP_PV}"
+BP_IC_PN="${BP_PN}-isabelle-component"
+BP_IC_P="${BP_IC_PN}-${BP_PV}"
+
+# csdp is used in the compile of HOL_ex in
+# Library/Sum_of_Squares/sos_wrapper.ML where it execs $ISABELLE_CSDP
+CSDP_PV="6.x"
+CSDP_PN="csdp"
+CSDP_P="${CSDP_PN}-${CSDP_PV}"
+CSDP_IC_PN="${CSDP_PN}-isabelle-component"
+CSDP_IC_P="${CSDP_IC_PN}-${CSDP_PV}"
+
+ISABELLE_FONTS_PV="20160830"
+ISABELLE_FONTS_PN="isabelle_fonts"
+ISABELLE_FONTS_P="${ISABELLE_FONTS_PN}-${ISABELLE_FONTS_PV}"
+ISABELLE_FONTS_IC_PN="${ISABELLE_FONTS_PN}-isabelle-component"
+ISABELLE_FONTS_IC_P="${ISABELLE_FONTS_IC_PN}-${ISABELLE_FONTS_PV}"
+
+JEDIT_PV="20161024"
+JEDIT_PN="jedit_build"
+JEDIT_P="${JEDIT_PN}-${JEDIT_PV}"
+JEDIT_IC_PN="${JEDIT_PN}-isabelle-component"
+JEDIT_IC_P="${JEDIT_IC_PN}-${JEDIT_PV}"
+
+JORTHO_PV="1.0-2"
+JORTHO_PN="jortho"
+JORTHO_P="${JORTHO_PN}-${JORTHO_PV}"
+JORTHO_IC_PN="${JORTHO_PN}-isabelle-component"
+JORTHO_IC_P="${JORTHO_IC_PN}-${JORTHO_PV}"
+
+JFREECHART_PV="1.0.14-1"
+JFREECHART_PN="jfreechart"
+JFREECHART_P="${JFREECHART_PN}-${JFREECHART_PV}"
+JFREECHART_IC_PN="${JFREECHART_PN}-isabelle-component"
+JFREECHART_IC_P="${JFREECHART_IC_PN}-${JFREECHART_PV}"
+
+POLYML_PV="5.6-1"
+POLYML_PN="polyml"
+POLYML_P="${POLYML_PN}-${POLYML_PV}"
+POLYML_IC_PN="${POLYML_PN}-isabelle-component"
+POLYML_IC_P="${POLYML_IC_PN}-${POLYML_PV}"
+
+SSH_JAVA_PV="20161009"
+SSH_JAVA_PN="ssh-java"
+SSH_JAVA_P="${SSH_JAVA_PN}-${SSH_JAVA_PV}"
+SSH_JAVA_IC_PN="${SSH_JAVA_PN}-isabelle-component"
+SSH_JAVA_IC_P="${SSH_JAVA_IC_PN}-${SSH_JAVA_PV}"
+
+XZ_JAVA_PV="1.5"
+XZ_JAVA_PN="xz-java"
+XZ_JAVA_P="${XZ_JAVA_PN}-${XZ_JAVA_PV}"
+XZ_JAVA_IC_PN="${XZ_JAVA_PN}-isabelle-component"
+XZ_JAVA_IC_P="${XZ_JAVA_IC_PN}-${XZ_JAVA_PV}"
+
+SS="2.11"
+
+DESCRIPTION="Isabelle is a generic proof assistant"
+HOMEPAGE="http://www.cl.cam.ac.uk/research/hvg/Isabelle/index.html"
+SRC_URI="http://isabelle.in.tum.de/website-${MY_P}/dist/${MY_P}.tar.gz
+ http://isabelle.in.tum.de/dist/contrib/${BP_P}.tar.gz -> ${BP_IC_P}.tar.gz
+ https://dev.gentoo.org/~gienah/snapshots/${CSDP_IC_P}.tar.gz
+ http://isabelle.in.tum.de/dist/contrib/${ISABELLE_FONTS_P}.tar.gz -> ${ISABELLE_FONTS_IC_P}.tar.gz
+ http://isabelle.in.tum.de/components/${JORTHO_P}.tar.gz -> ${JORTHO_IC_P}.tar.gz
+ http://isabelle.in.tum.de/components/${JEDIT_P}.tar.gz -> ${JEDIT_IC_P}.tar.gz
+ http://isabelle.in.tum.de/dist/contrib/${JFREECHART_P}.tar.gz -> ${JFREECHART_IC_P}.tar.gz
+ https://dev.gentoo.org/~gienah/snapshots/${POLYML_IC_P}.tar.gz
+ http://isabelle.in.tum.de/dist/contrib/${SSH_JAVA_P}.tar.gz -> ${SSH_JAVA_IC_P}.tar.gz
+ https://dev.gentoo.org/~gienah/snapshots/${XZ_JAVA_IC_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc graphbrowsing ledit readline"
+
+#upstream says
+#bash 2.x/3.x, Poly/ML 5.x, Perl 5.x,
+#for document preparation: complete LaTeX
+DEPEND=">=app-shells/bash-3.0:*
+ >=dev-java/jcommon-1.0.18:1.0
+ dev-java/jortho:0
+ >=dev-java/jfreechart-1.0.14:1.0
+ >=dev-java/itext-2.1.5:0
+ dev-java/xz-java:0
+ >=dev-lang/ghc-7.6.3
+ >=dev-lang/polyml-5.6:=[-portable]
+ >=dev-lang/perl-5.8.8-r2
+ >=dev-lang/swi-prolog-6.6.6
+ sci-libs/coinor-csdp
+ =sci-mathematics/z3-4.4*[isabelle]
+ >=virtual/jdk-1.8
+ doc? (
+ virtual/latex-base
+ dev-tex/rail
+ )
+ >=dev-lang/scala-2.11.8:${SS}
+ ledit? (
+ app-misc/ledit
+ )
+ readline? (
+ app-misc/rlwrap
+ )"
+
+RDEPEND="dev-perl/libwww-perl
+ sci-mathematics/sha1-polyml
+ >=virtual/jre-1.8
+ ${DEPEND}"
+
+S="${WORKDIR}"/Isabelle${MY_PV}
+TARGETDIR="/usr/share/Isabelle"
+
+# Notes on QA warnings: * Class files not found via DEPEND in package.env
+# Stuff with $ in the name appear to be spurious:
+# isabelle/Markup_Tree$$anonfun$results$1$1.class
+# scala/tools/nsc/backend/jvm/GenJVM$BytecodeGenerator$$anonfun$computeLocalVarsIndex$1.class
+# It wants javafx, I am unsure how to fix this. I test isabelle with the Sun JDK:
+# javafx/application/Platform.class javafx
+# Presumably the user can provide the jEdit plugins if they are necessary:
+# marker/MarkerSetsPlugin.class http://plugins.jedit.org/plugins/?MarkerSets
+# projectviewer/gui/OptionPaneBase.class http://plugins.jedit.org/plugins/?ProjectViewer
+
+JAVA_GENTOO_CLASSPATH="itext,jcommon-1.0,jortho,jfreechart-1.0,scala-${SS},xz-java"
+
+CHECKREQS_MEMORY="8192M"
+CHECKREQS_DISK_BUILD="17G"
+CHECKREQS_DISK_USR="8G"
+
+src_unpack() {
+ unpack "${MY_P}.tar.gz"
+ cd "${S}/contrib" || die
+ unpack ${BP_IC_P}.tar.gz
+ unpack ${CSDP_IC_P}.tar.gz
+ unpack ${ISABELLE_FONTS_IC_P}.tar.gz
+ unpack ${JEDIT_IC_P}.tar.gz
+ unpack ${JORTHO_IC_P}.tar.gz
+ unpack ${JFREECHART_IC_P}.tar.gz
+ unpack ${POLYML_IC_P}.tar.gz
+ unpack ${SSH_JAVA_IC_P}.tar.gz
+ unpack ${XZ_JAVA_IC_P}.tar.gz
+}
+
+pkg_setup() {
+ java-pkg-2_pkg_setup
+ check-reqs_pkg_setup
+}
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ java-pkg_getjars ${JAVA_GENTOO_CLASSPATH}
+ rm -rf "${S}/contrib/${BP_P}/{x86-cygwin,x86-darwin,x86_64-darwin,x86-linux,x86_64-linux}" \
+ || die "Could not remove bash_process binaries"
+ rm -f "${S}/contrib/${JORTHI_P}/${JORTHO_PN}.jar" \
+ || die "Could not remove contrib/${JORTHI_P}/${JORTHO_PN}.jar"
+ eapply "${FILESDIR}/${PN}-2016-classpath.patch"
+ eapply "${FILESDIR}/${PN}-2016-jfreechart-classpath.patch"
+ eapply "${FILESDIR}/${PN}-2016.1-bash_process-1.2.1-settings.patch"
+ eapply "${FILESDIR}/${PN}-2012-graphbrowser.patch"
+ eapply "${FILESDIR}/${PN}-2016.1-libsha1.patch"
+ eapply "${FILESDIR}/${PN}-2016.1-smt_timeout.patch"
+ eapply "${FILESDIR}/${PN}-2016.1-smt_read_only_certificates.patch"
+ eapply "${FILESDIR}/${PN}-2016.1-disable-jedit-build-after-install.patch"
+ eapply "${FILESDIR}/${PN}-2016.1-jortho-1.0-2-classpath.patch"
+ local polymlver=$(poly -v | cut -d' ' -f2)
+ local polymlarch=$(poly -v | cut -d' ' -f9 | cut -d'-' -f1)
+ cat <<- EOF >> "${S}/etc/settings"
+ # Poly/ML Gentoo (${polymlarch,,})
+ ML_PLATFORM=${polymlarch,,}-linux
+ ML_HOME="${ROOT}usr/bin"
+ ML_SYSTEM=polyml-${polymlver}
+ ML_OPTIONS="-H 1000"
+ ML_SOURCES="${ROOT}usr/src/debug/dev-lang/polyml-${polymlver}"
+
+ ISABELLE_GHC="${ROOT}usr/bin/ghc"
+ ISABELLE_OCAML="${ROOT}usr/bin/ocaml"
+ ISABELLE_SWIPL="${ROOT}usr/bin/swipl"
+ ISABELLE_JDK_HOME="\$(java-config --jdk-home)"
+ ISABELLE_BUILD_JAVA_OPTIONS="-Djava.awt.headless=true"
+ SCALA_HOME="${ROOT}usr/share/scala-${SS}"
+ SHA1_HOME="${ROOT}usr/$(get_libdir)/sha1-polyml"
+ EOF
+ local Z3_P="$(best_version sci-mathematics/z3 | sed 's:sci-mathematics/::')"
+ cat <<- EOF >> "${S}/etc/components"
+ #bundled components
+ contrib/${BP_P}
+ contrib/${CSDP_P}
+ contrib/${ISABELLE_FONTS_P}
+ contrib/${JEDIT_P}
+ contrib/${JORTHO_P}
+ contrib/${JFREECHART_P}
+ contrib/${POLYML_P}
+ contrib/${SSH_JAVA_P}
+ contrib/${XZ_JAVA_P}
+ contrib/${Z3_P}
+ EOF
+ local Z3_RC="${ROOT}usr/share/Isabelle/contrib/${Z3_P}"
+ [ -d "${Z3_RC}" ] \
+ || die "z3 isabelle component directory ${Z3_RC} does not exist"
+ ln -s "${Z3_RC}" \
+ "${S}/contrib/${Z3_P}" \
+ || die "Failed to create z3 isabelle component symbolic link"
+ if use ledit && ! use readline; then
+ eapply "${FILESDIR}/${PN}-2012-reverse-line-editor-order.patch"
+ fi
+ rm -f "${S}/contrib/${JFREECHART_P}/lib"/*.jar \
+ || die "Could not rm bundled jar files supplied by Gentoo"
+}
+
+src_compile() {
+ unset DISPLAY
+ einfo "Building Isabelle. This may take some time."
+ pushd contrib/${BP_P} || die "Could not cd to contrib/${BP_P}"
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${BP_PN} ${BP_PN}.c \
+ || die "Could not build ${BP_PN}"
+ popd || die
+ if use graphbrowsing
+ then
+ rm -f "${S}/lib/browser/GraphBrowser.jar" \
+ || die "failed cleaning graph browser directory"
+ pushd "${S}/lib/browser" \
+ || die "Could not change directory to lib/browser"
+ ./build || die "failed building the graph browser"
+ popd
+ fi
+ ./bin/isabelle jedit -b -f || die "pide build failed"
+ pushd "${S}"/src/Pure || die "Could not change directory to src/Pure"
+ ../../bin/isabelle env ./build-jars -f || die "build-jars failed"
+ popd || die
+ ./bin/isabelle build -a -b -s -v || die "isabelle build failed"
+}
+
+src_install() {
+ local Z3_P="$(best_version sci-mathematics/z3 | sed 's:sci-mathematics/::')"
+ rm "${S}/contrib/${Z3_P}" \
+ || die "Failed to remove z3 isabelle component symbolic link"
+
+ insinto ${TARGETDIR}
+ doins -r src
+ doins -r lib
+ doins -r contrib
+ doins ROOTS
+
+ docompress -x /usr/share/doc/${PF}
+ dodoc -r doc
+ if use doc; then
+ dosym /usr/share/doc/${PF}/doc "${TARGETDIR}/doc"
+ # The build of sci-mathematics/haskabelle with use doc requires
+ # sci-mathematics/isabelle[doc?]. The haskabelle doc build requires
+ # the src/Doc directory stuff in the isabelle package.
+ doins -r src/Doc
+ for i in $(find ./src/Doc -type f -executable -print)
+ do
+ exeinto $(dirname "${TARGETDIR}/${i}")
+ doexe ${i}
+ done
+ fi
+
+ for i in $(find \
+ ./{bin,lib,"contrib/${BP_P}/${BP_PN}",src/HOL,src/Pure,src/Tools} \
+ -type f -executable -print)
+ do
+ exeinto $(dirname "${TARGETDIR}/${i}")
+ doexe ${i}
+ done
+
+ insinto /etc/isabelle
+ doins -r etc/*
+ dosym /etc/isabelle "${TARGETDIR}/etc"
+
+ local LIBDIR="/usr/"$(get_libdir)"/Isabelle"${MY_PV}
+ dosym "${LIBDIR}/heaps" "${TARGETDIR}/heaps"
+ insinto ${LIBDIR}
+ doins -r heaps
+
+ ./bin/isabelle install -d ${TARGETDIR} "${ED}usr/bin" \
+ || die "isabelle install failed"
+ newicon lib/icons/"${PN}.xpm" "${PN}.xpm"
+ newicon lib/icons/"${PN}-mini.xpm" "${PN}-mini.xpm"
+
+ java-pkg_regjar \
+ $(find . -type f -name \*.jar -print | sed -e "s@^\.@${ED}${TARGETDIR}@g")
+
+ local DOCS=( "ANNOUNCE" "CONTRIBUTORS" "COPYRIGHT" "NEWS" "README" )
+ einstalldocs
+}
+
+pkg_postinst() {
+ # If any of the directories in /etc/isabelle/components do not exist, then
+ # even isabelle getenv ISABELLE_HOME fails. Hence it is necessary to
+ # to delete any non-existing directories. If an old Isabelle version was
+ # installed with component ebuilds like sci-mathematics/e, then the
+ # Isabelle version is upgraded, then the contrib directories will not
+ # exist initially, it is necessary to delete them from /etc/isabelle/components.
+ # Then these components are rebuilt (creating these directories) using the
+ # EAPI=5 subslot depends.
+ for i in $(egrep '^[^#].*$' "${ROOT}etc/isabelle/components")
+ do
+ if [ ! -d ${TARGETDIR}/${i} ]; then
+ sed -e "\@${i}@d" -i "${ROOT}etc/isabelle/components"
+ fi
+ done
+ if use ledit && use readline; then
+ elog "Both readline and ledit use flags specified. The default setting"
+ elog "if both are installed is to use readline (rlwrap), this can be"
+ elog "modfied by editing the ISABELLE_LINE_EDITOR setting in"
+ elog "${ROOT}/etc/isabelle/settings"
+ fi
+ elog "Please ensure you have a pdf viewer installed, for example:"
+ elog "As root: emerge app-text/zathura-pdf-poppler"
+ elog "Please configure your preferred pdf viewer, something like:"
+ elog "As normal user: xdg-mime default zathura.desktop application/pdf"
+ elog "Or alternatively by editing the PDF_VIEWER variable in the system"
+ elog "settings file ${ROOT}etc/isabelle/settings and/or the user"
+ elog "settings file \$HOME/.isabelle/${MY_P}/etc/settings"
+ elog "For nitpick it is necessary to install:"
+ elog "emerge sci-mathematics/kodkodi"
+}
diff --git a/sci-mathematics/isabelle/metadata.xml b/sci-mathematics/isabelle/metadata.xml
new file mode 100644
index 000000000000..d59b385fb4ad
--- /dev/null
+++ b/sci-mathematics/isabelle/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>gienah@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+</maintainer>
+<longdescription lang="en">
+Isabelle is a generic proof assistant. It allows mathematical
+formulas to be expressed in a formal language and provides tools
+for proving those formulas in a logical calculus. The main
+application is the formalization of mathematical proofs and in
+particular formal verification, which includes proving the
+correctness of computer hardware or software and proving
+properties of computer languages and protocols.
+</longdescription>
+<use>
+ <flag name="graphbrowsing">Generate theory browsing information,
+ including HTML documents that show a theory's definition, the
+ theorems proved in its ML file and the relationship with its
+ ancestors and descendants.</flag>
+ <flag name="ledit">Use ledit for the isabelle tty line editor</flag>
+ <flag name="readline">Use readline (rlwrap) for the isabelle tty line
+ editor</flag>
+</use>
+</pkgmetadata>