summaryrefslogtreecommitdiff
path: root/sci-misc
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/ViSP-images/Manifest5
-rw-r--r--sci-misc/ViSP-images/ViSP-images-3.0.1.ebuild23
-rw-r--r--sci-misc/ViSP-images/metadata.xml8
-rw-r--r--sci-misc/apertium/Manifest8
-rw-r--r--sci-misc/apertium/apertium-3.2.0.ebuild34
-rw-r--r--sci-misc/apertium/files/3.2.0-datadir.patch35
-rw-r--r--sci-misc/apertium/files/3.2.0-flags.patch72
-rw-r--r--sci-misc/apertium/files/apertium-3.2.0-libpcre.patch43
-rw-r--r--sci-misc/apertium/metadata.xml15
-rw-r--r--sci-misc/boinc/Manifest16
-rw-r--r--sci-misc/boinc/boinc-7.2.47.ebuild175
-rw-r--r--sci-misc/boinc/boinc-7.4.52-r6.ebuild180
-rw-r--r--sci-misc/boinc/boinc-7.6.33-r6.ebuild181
-rw-r--r--sci-misc/boinc/boinc-7.8.1.ebuild181
-rw-r--r--sci-misc/boinc/files/boinc.conf23
-rw-r--r--sci-misc/boinc/files/boinc.init.in254
-rw-r--r--sci-misc/boinc/files/boinc.service11
-rw-r--r--sci-misc/boinc/files/fix_webview.patch11
-rw-r--r--sci-misc/boinc/metadata.xml27
-rw-r--r--sci-misc/cdfplayer/Manifest6
-rw-r--r--sci-misc/cdfplayer/cdfplayer-10.4.0.ebuild81
-rw-r--r--sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild81
-rw-r--r--sci-misc/cdfplayer/metadata.xml8
-rw-r--r--sci-misc/fitscut/Manifest5
-rw-r--r--sci-misc/fitscut/files/fitscut-1.4.4-fix-asinh.patch33
-rw-r--r--sci-misc/fitscut/fitscut-1.4.4.ebuild38
-rw-r--r--sci-misc/fitscut/metadata.xml14
-rw-r--r--sci-misc/fitsverify/Manifest7
-rw-r--r--sci-misc/fitsverify/fitsverify-4.17.ebuild34
-rw-r--r--sci-misc/fitsverify/fitsverify-4.18.ebuild34
-rw-r--r--sci-misc/fitsverify/metadata.xml13
-rw-r--r--sci-misc/flashdot/Manifest6
-rw-r--r--sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch23
-rw-r--r--sci-misc/flashdot/flashdot-1.1.4-r1.ebuild35
-rw-r--r--sci-misc/flashdot/metadata.xml12
-rw-r--r--sci-misc/gato/Manifest5
-rw-r--r--sci-misc/gato/gato-1.2.2.ebuild37
-rw-r--r--sci-misc/gato/metadata.xml15
-rw-r--r--sci-misc/gt-itm/Manifest7
-rw-r--r--sci-misc/gt-itm/files/gt-itm-implicits.patch111
-rw-r--r--sci-misc/gt-itm/gt-itm-19961004-r2.ebuild79
-rw-r--r--sci-misc/gt-itm/metadata.xml8
-rw-r--r--sci-misc/h5utils/Manifest7
-rw-r--r--sci-misc/h5utils/files/h5utils-1.12.1-automagic.patch63
-rw-r--r--sci-misc/h5utils/files/h5utils-1.12.1-png15.patch43
-rw-r--r--sci-misc/h5utils/h5utils-1.12.1-r2.ebuild41
-rw-r--r--sci-misc/h5utils/metadata.xml20
-rw-r--r--sci-misc/lttoolbox/Manifest5
-rw-r--r--sci-misc/lttoolbox/lttoolbox-3.3.3.ebuild27
-rw-r--r--sci-misc/lttoolbox/metadata.xml15
-rw-r--r--sci-misc/mendeleydesktop/Manifest9
-rw-r--r--sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-libdir.patch19
-rw-r--r--sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-qt5plugins.patch15
-rw-r--r--sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-unix-distro-build.patch16
-rw-r--r--sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild131
-rw-r--r--sci-misc/mendeleydesktop/metadata.xml17
-rw-r--r--sci-misc/metadata.xml42
-rw-r--r--sci-misc/nco/Manifest7
-rw-r--r--sci-misc/nco/metadata.xml26
-rw-r--r--sci-misc/nco/nco-3.9.9.ebuild70
-rw-r--r--sci-misc/nco/nco-4.5.1-r2.ebuild49
-rw-r--r--sci-misc/ncview/Manifest5
-rw-r--r--sci-misc/ncview/metadata.xml15
-rw-r--r--sci-misc/ncview/ncview-2.1.7.ebuild35
-rw-r--r--sci-misc/netlogo-bin/Manifest10
-rw-r--r--sci-misc/netlogo-bin/files/hubnet.sh4
-rw-r--r--sci-misc/netlogo-bin/files/netlogo-3d.sh4
-rw-r--r--sci-misc/netlogo-bin/files/netlogo-5.0.3.sh4
-rw-r--r--sci-misc/netlogo-bin/files/netlogo.sh4
-rw-r--r--sci-misc/netlogo-bin/metadata.xml16
-rw-r--r--sci-misc/netlogo-bin/netlogo-bin-5.0.3-r1.ebuild60
-rw-r--r--sci-misc/oww/Manifest9
-rw-r--r--sci-misc/oww/files/oww-0.86.4-build.patch79
-rw-r--r--sci-misc/oww/files/oww-0.86.5-format-security.patch30
-rw-r--r--sci-misc/oww/metadata.xml11
-rw-r--r--sci-misc/oww/oww-0.86.4.ebuild37
-rw-r--r--sci-misc/oww/oww-0.86.5.ebuild38
-rw-r--r--sci-misc/pythoncad/Manifest6
-rw-r--r--sci-misc/pythoncad/files/pythoncad-1.37-png.patch24
-rw-r--r--sci-misc/pythoncad/metadata.xml9
-rw-r--r--sci-misc/pythoncad/pythoncad-1.37-r1.ebuild48
-rw-r--r--sci-misc/repsnapper/Manifest12
-rw-r--r--sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch54
-rw-r--r--sci-misc/repsnapper/files/std-c11.patch31
-rw-r--r--sci-misc/repsnapper/metadata.xml10
-rw-r--r--sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild33
-rw-r--r--sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild36
-rw-r--r--sci-misc/repsnapper/repsnapper-2.4a_p3.ebuild34
-rw-r--r--sci-misc/repsnapper/repsnapper-9999.ebuild29
-rw-r--r--sci-misc/vitables/Manifest8
-rw-r--r--sci-misc/vitables/files/vitables-2.1-no-docs.patch19
-rw-r--r--sci-misc/vitables/metadata.xml17
-rw-r--r--sci-misc/vitables/vitables-2.1-r1.ebuild49
-rw-r--r--sci-misc/vitables/vitables-3.0.0.ebuild36
94 files changed, 3432 insertions, 0 deletions
diff --git a/sci-misc/ViSP-images/Manifest b/sci-misc/ViSP-images/Manifest
new file mode 100644
index 000000000000..918f03ba287a
--- /dev/null
+++ b/sci-misc/ViSP-images/Manifest
@@ -0,0 +1,5 @@
+DIST ViSP-images-3.0.1.zip 70498859 SHA256 b9af30bcde6fbac7925628e9e511b72b9caf931ce61549f042448c430b32b92e SHA512 b3fac5b08a9aad24c27e9f887a096386995a30af616c0137ca2e61445c96dc474a905604133740d550827f7e67d2c0d492774e0c0277e4ca44c5df6df06c8477 WHIRLPOOL 561acb9d1d1c837ca884f639d7a179792a618755549877e83458a37b6f9a72f4146ee12fbb4223bc62104e2d98fb3e070cc5172df96921dd85e3205597c67a1f
+EBUILD ViSP-images-3.0.1.ebuild 503 SHA256 c26251f89c058c0183d9fdabd95da388e52aef72088198da68087b45aa2d54cb SHA512 ebee1ff121e00f304aa6e2769c347334c1924acd00907a08a1442a33ef69077359faf01dbe8def2ff5e4dafd34e5f6822226e7bb7e1c473f891cd1d2a9ec1db9 WHIRLPOOL 5a96aa61da328fe465afce4aebafea62dda0c098ca402d2e8bf80affe8cbfa1a3a59ee7822324ea358fcfaa2b445a0e5903190ab86236ec7677cb95fb9c3bef3
+MISC ChangeLog 2409 SHA256 6620ed5e6c70b173cabac55f3be1e53b3c66b7d59a857dad2f477ce663c05b8b SHA512 22540c0cf30c9a3e855e022041f175085ecb44c20dcfb9b9be8e968bb45eee2e2b29dc786da5744fe3e457afcbc27ae7972ef72197693f7e6d9677c9e2c2b9da WHIRLPOOL 3f6d8bf6ab9afa3bf36c28f50d4a4388e6ca3d1fc452c76a8297157d8337551e72dac68ed97060f7fca5717a13d430f35096a2544f38c39776a7e6508c2927e8
+MISC ChangeLog-2015 474 SHA256 e256a91c1841b1fe17595307646a3992795ece54e9ccd46105134a8562397989 SHA512 11e410ff4181ad05b56391a04d4670a45c9f1b42f71ebfa030d4c5d51f423ac15bc38022df1564fed8a2d1c2e8ddd7218122f3165bdc5ea408ced2a38a9255bc WHIRLPOOL a7d061633ac12e548826a54d29a12bbef9bc5c331b23722e842cddaf844f3abc1befb175d543c37c8131d56115cb6f85abc34097c25d9722a34388f79f6c5eb4
+MISC metadata.xml 243 SHA256 15deb598d18c4f8b8de5be1aa70b9f355143d083acd82d6ecb15eef490960590 SHA512 c9d5c1cdd2874fe293f21f7584c6e15ef9439bd82b0d2e862e3e34c9a9e0e3191370fee2727b9d4d8647fb85cf56a39fdd6c1e0003ada1554496aad311ef335c WHIRLPOOL 1a3dcdd25c150262234f12dc0b25a8a5f67acf1ae5e7e7195b472ed0c7ee869a105c19125f8e58401c8ff7a8b2ca86db6b0cf382045130a50dbb79f3cd3cf5ec
diff --git a/sci-misc/ViSP-images/ViSP-images-3.0.1.ebuild b/sci-misc/ViSP-images/ViSP-images-3.0.1.ebuild
new file mode 100644
index 000000000000..00725f82c4b3
--- /dev/null
+++ b/sci-misc/ViSP-images/ViSP-images-3.0.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="ViSP images data set"
+HOMEPAGE="http://www.irisa.fr/lagadic/visp/"
+SRC_URI="http://visp-doc.inria.fr/download/dataset/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_install() {
+ dodoc README.md
+ rm -f README.md LICENSE.txt
+ dodir /usr/share/visp-images-data/
+ mv "${S}" "${ED}/usr/share/visp-images-data/${PN}"
+}
diff --git a/sci-misc/ViSP-images/metadata.xml b/sci-misc/ViSP-images/metadata.xml
new file mode 100644
index 000000000000..6ca4a599be8f
--- /dev/null
+++ b/sci-misc/ViSP-images/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>aballier@gentoo.org</email>
+<name>Alexis Ballier</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-misc/apertium/Manifest b/sci-misc/apertium/Manifest
new file mode 100644
index 000000000000..60bf2fd0386a
--- /dev/null
+++ b/sci-misc/apertium/Manifest
@@ -0,0 +1,8 @@
+AUX 3.2.0-datadir.patch 1315 SHA256 c15ecf476e2b8fb1382634cd94b25247897e2366d8d54f8ae2c0325d5c98bb5d SHA512 51d4950ee82298a3b77a83e625c7bf788bdbc15b0fa16e1b5e0b57a8be1c28d5a499a1d3fa2436b7cdeedf397803b6ca6fe6740871b8c3a9687b57b3182f9e6a WHIRLPOOL 298b1c55a9216955910fa6716d28a07cab3edbc6cb86332e33a14f349444b5bdd791aa0321c6883ea5ad16a93e5309e6936061c5b65f455afb0b8de7e0b3769e
+AUX 3.2.0-flags.patch 2163 SHA256 4603b544b2cc7d7b48945453f2a3c462e5a3f175ee834dcd108d94de8db9bc81 SHA512 25a1e8687c38091b249fbbef4dac01c95f4b446ad7e3ffd829b8803d056e34ec49057855af80f8ec578d83894234ab0c87b900daec759a6fd3ba8ae3fc736fce WHIRLPOOL a247d99fac478f2289b69f955272de96ed25695224dccf57ede3fba0ebcf3f1ef39dd5a914712a1a5f27e7b69fc3bc0f8c38bd889b206d3a260e961918ab8aac
+AUX apertium-3.2.0-libpcre.patch 1480 SHA256 ce62b641ea49e838d22f716eb1ff40c99bfefd0a8ff04d57589c901317b689ea SHA512 e8816e99ea2e2c0c027e498d77bf6948002f84781a3af77bb6cf570dfbf29a4a111b94abadfd4b8e4c35737c17abc51c89d880ee938a71fd7a2e57fe88ac081b WHIRLPOOL 768d84121d1081182223835ebd18478c2d76e65776253cf236f2d6e0816c00cc47367620a9a96d87890965cfd6320c06cb5e3e9d14f5df4627977e51c397df28
+DIST apertium-3.2.0.tar.gz 767311 SHA256 6ce2fdc85da5d1e50d69da2e50cc97a87b689476f2c83417765636d9a4b7e9ac SHA512 ec80d72480e414eb9a169241d0921b21009dde7c1da9a773f500f16ac785741be1f4a221c25b3b32e7847405f76e93b5feadb6f541170c0742718e27dfa1fb25 WHIRLPOOL 44b8c6fcda7abe363540d1b3ce344322bec60ff1b822ffb5f228a50b156f9660798a9aafa3c9ccf25652cf858be32efb41b06d5d05e7d8fd3284db7d81aac4a4
+EBUILD apertium-3.2.0.ebuild 697 SHA256 898885884d220ca4338bb2a6920a463b5238d986c9ecec2ae9f8f1ce532d7b11 SHA512 c2a803fa2291a879acc95808a740228f06b0105134eecb93f2be103e0db964ada9e5e43e1acb7a7021c07f2d758fa3e4d8536c677616106d01c3eb5ba5179ade WHIRLPOOL b6b3ce53218b5a12566ff1d1df6e7c08557a5ef09aefbaa9f85b66d9df269742d711d939b1c469906ed116f149a0d6ec8b775fddddbf72c800bf82757d73340d
+MISC ChangeLog 2523 SHA256 4bb4afb919e63b655f034c6a2d75ebb279252d278ef1f8e2b72e7e6b71282264 SHA512 00c337404bd1302e8ad6056a343e941afc9518535094bebafec2e5351746cc881c84d92dcc8cafcfe921c448333efbf28eb0aceed5c177421160065ae10160d0 WHIRLPOOL d718528c201ce3d7c11fed645300000442e5252c3e25edd0558f2e179f763b348aecc89b0aa2ef52b27b4cb5966c79fb1f62f8f03216bb02b79d9ffa16c546cf
+MISC ChangeLog-2015 1199 SHA256 02cf3ea216478118fea78ff32f9fe0d2704a77e6bf9c76d3dbc96fc6926879dd SHA512 9f0b5ecb5afb26e8274879bdd0bdb6d1261ba3e2a3d5944d8a6d5e83ffa169c7f5eb026f37e2396ef396d82fa7fde2795456364080fcdb9980e29c5254e73006 WHIRLPOOL ed1191076cfc0a2845f1fc7694845f05f35f52f04c7007f4c120780c9fd2d3a030ab29f6dee0f1392702a98eaf4c1567bb3006442cad81aca18af958b01d1a3a
+MISC metadata.xml 478 SHA256 984130b49fd12df36c2c631b02e89fe52449e5731004ce79cb0213d45a1ae3ce SHA512 72d6f114b0e196e37ff8bac0f16aad4b4e212d50fc1b805b2b875cc829dd12ec05af39a8e7c748f619681eaab7158757162ce6a761ac126d9c683e17f35f5790 WHIRLPOOL 4166756d14f5595f80e9c4abde405e0ee120702760cae03803d4715ea01c94d3ae4b8fd021066e7665d1d4bc5bceadc914c8cad874034798d2f63a72255893e0
diff --git a/sci-misc/apertium/apertium-3.2.0.ebuild b/sci-misc/apertium/apertium-3.2.0.ebuild
new file mode 100644
index 000000000000..9f77d6c90257
--- /dev/null
+++ b/sci-misc/apertium/apertium-3.2.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Shallow-transfer machine Translation engine and toolbox"
+HOMEPAGE="http://apertium.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ dev-libs/libxslt
+ dev-libs/libpcre[cxx]
+ >=sci-misc/lttoolbox-3.2
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-flags.patch
+ "${FILESDIR}"/${PV}-datadir.patch
+ "${FILESDIR}"/${P}-libpcre.patch
+ )
+
+MAKEOPTS+=" -j1"
+AUTOTOOLS_IN_SOURCE_BUILD=1
diff --git a/sci-misc/apertium/files/3.2.0-datadir.patch b/sci-misc/apertium/files/3.2.0-datadir.patch
new file mode 100644
index 000000000000..d081cd50bc79
--- /dev/null
+++ b/sci-misc/apertium/files/3.2.0-datadir.patch
@@ -0,0 +1,35 @@
+diff -Nur apertium-3.2.0.orig/apertium/Makefile.am apertium-3.2.0/apertium/Makefile.am
+--- apertium-3.2.0.orig/apertium/Makefile.am 2011-07-29 06:55:49.000000000 +0100
++++ apertium-3.2.0/apertium/Makefile.am 2011-07-29 07:03:58.000000000 +0100
+@@ -66,10 +66,10 @@
+
+ instdir = apertium
+
+-apertiumdir = $(prefix)/share/apertium
++apertiumdir = $(datadir)/
+ apertiuminclude = $(prefix)/include/apertium-$(GENERIC_API_VERSION)
+ apertiumlib = $(prefix)/lib
+-apertiumsysconf = $(prefix)/etc/apertium
++apertiumsysconf = $(sysconfdir)/apertium
+
+ apertium_DATA = deformat.xsl reformat.xsl new2old.xsl lexchoice.xsl \
+ lexchoicebil.xsl tagger.dtd interchunk.dtd format.dtd \
+diff -Nur apertium-3.2.0.orig/Makefile.am apertium-3.2.0/Makefile.am
+--- apertium-3.2.0.orig/Makefile.am 2011-07-29 06:55:49.000000000 +0100
++++ apertium-3.2.0/Makefile.am 2011-07-29 07:08:39.000000000 +0100
+@@ -1,13 +1,10 @@
+ SUBDIRS = $(GENERIC_LIBRARY_NAME)
+ DIST_SUBDIRS = $(GENERIC_LIBRARY_NAME)
+
+-modesdir=$(prefix)/share/apertium/modes
++modesdir = $(datadir)/apertium/modes
++modes_DATA = README-MODES
+
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = apertium-$(GENERIC_RELEASE).pc
+
+ EXTRA_DIST=autogen.sh README-MODES
+-
+-install-data-local:
+- mkdir -p $(modesdir)
+- $(INSTALL_DATA) README-MODES $(modesdir)/README
diff --git a/sci-misc/apertium/files/3.2.0-flags.patch b/sci-misc/apertium/files/3.2.0-flags.patch
new file mode 100644
index 000000000000..9bdc4a34c117
--- /dev/null
+++ b/sci-misc/apertium/files/3.2.0-flags.patch
@@ -0,0 +1,72 @@
+diff -Nur apertium-3.2.0.orig/configure.ac apertium-3.2.0/configure.ac
+--- apertium-3.2.0.orig/configure.ac 2011-07-29 06:43:38.000000000 +0100
++++ apertium-3.2.0/configure.ac 2011-07-29 06:46:26.000000000 +0100
+@@ -54,68 +54,6 @@
+
+ # Checks for programs.
+
+-AC_MSG_CHECKING([Compilation architecture: PPC, i686, x86_64, Other])
+-if test x$(which arch) = x
+-then ARCH=$($(which uname) -m)
+-else ARCH=$($(which arch))
+-fi
+-
+-case "${target_os}" in
+- mingw*)
+- MinGW=yes
+- ;;
+- cygwin*)
+- Cygwin=yes
+- ;;
+-esac
+-
+-if test x$ARCH = xppc
+-then
+- AC_MSG_RESULT([PowerPC])
+- CFLAGS="$CFLAGS -Wall -ansi -fomit-frame-pointer"
+- CXXFLAGS="$CXXFLAGS -Wall -ansi -fomit-frame-pointer"
+-else
+- if test x$MinGW = xyes
+- then
+- AC_MSG_RESULT([MinGW])
+- CFLAGS="$CFLAGS -Wall -march=i686 -O3 -DMINGW -fomit-frame-pointer \
+- -funroll-loops -I/include -L/lib"
+- CXXFLAGS="$CXXFLAGS -Wall -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops -I/include -L/lib"
+- CPPFLAGS="$CPPFLAGS -I/include"
+- else
+- if test x$Cygwin = xyes
+- then
+- AC_MSG_RESULT([Cygwin])
+- CFLAGS="$CFLAGS -Wall -march=i686 -O3 -fomit-frame-pointer \
+- -funroll-loops"
+- CXXFLAGS="$CXXFLAGS -Wall -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops"
+- CPPFLAGS="$CPPFLAGS"
+- else
+- if test x$ARCH = xi686
+- then
+- AC_MSG_RESULT([i686])
+- CFLAGS="$CFLAGS -Wall -ansi -march=i686 -O3 -fomit-frame-pointer -funroll-loops"
+- CXXFLAGS="$CXXFLAGS -Wall -ansi -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops"
+- else
+- if test x$ARCH = xx86_64
+- then
+- AC_MSG_RESULT([x86_64])
+- CFLAGS="-Wall -ansi -O3 -mtune=nocona -fomit-frame-pointer -funroll-loops $CFLAGS"
+- CXXFLAGS="-Wall -ansi -O3 -mtune=nocona \
+- -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+- else
+- AC_MSG_RESULT([Other])
+- CFLAGS="-Wall -ansi -O3 $CFLAGS"
+- CXXFLAGS="-Wall -ansi -O3 $CXXFLAGS"
+- fi
+- fi
+- fi
+- fi
+-fi
+-
+ AC_PROG_CXX
+ AC_PROG_LIBTOOL
+ AM_SANITY_CHECK
diff --git a/sci-misc/apertium/files/apertium-3.2.0-libpcre.patch b/sci-misc/apertium/files/apertium-3.2.0-libpcre.patch
new file mode 100644
index 000000000000..29a6a5483bb8
--- /dev/null
+++ b/sci-misc/apertium/files/apertium-3.2.0-libpcre.patch
@@ -0,0 +1,43 @@
+ configure.ac | 28 ++++++++++++++++------------
+ 1 file changed, 16 insertions(+), 12 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0bfca01..2d8ec3b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -183,19 +183,23 @@ AC_CHECK_FUNCS(strcasecmp)
+
+ if test x$(uname) != xDarwin;
+ then
+-AC_CHECK_HEADER(pcreposix.h,
+- AC_CHECK_LIB(pcre, pcre_info,[
+- LIBS="$LIBS -lpcreposix -lpcre"
+- no_comp_check=yes],
+- AC_MSG_ERROR([*** unable to locate pcre library ***])),
+- AC_MSG_ERROR([*** unable to locate pcreposix.h include file ***]))
++PKG_CHECK_MODULES([PCRE],
++ [libpcre libpcreposix libpcrecpp],
++ [LIBS="${LIBS} ${PCRE_LIBS}" no_comp_check=yes], [
++ AC_CHECK_HEADER(pcreposix.h,
++ AC_CHECK_LIB(pcre, pcre_version,[
++ LIBS="$LIBS -lpcreposix -lpcre"
++ no_comp_check=yes],
++ AC_MSG_ERROR([*** unable to locate pcre library ***])),
++ AC_MSG_ERROR([*** unable to locate pcreposix.h include file ***]))
+
+-AC_CHECK_HEADER(pcrecpp.h,
+- AC_CHECK_LIB(pcrecpp,pcre_compile,[
+- LIBS="$LIBS -lpcrecpp"
+- no_comp_check=yes],
+- AC_MSG_ERROR([*** unable to locate pcrecpp library ***])),
+- AC_MSG_ERROR([*** unable to locate pcrecpp.h include file ***]))
++ AC_CHECK_HEADER(pcrecpp.h,
++ AC_CHECK_LIB(pcrecpp,pcre_compile,[
++ LIBS="$LIBS -lpcrecpp"
++ no_comp_check=yes],
++ AC_MSG_ERROR([*** unable to locate pcrecpp library ***])),
++ AC_MSG_ERROR([*** unable to locate pcrecpp.h include file ***]))
++ ])
+ fi
+
+
diff --git a/sci-misc/apertium/metadata.xml b/sci-misc/apertium/metadata.xml
new file mode 100644
index 000000000000..b06cbb847c34
--- /dev/null
+++ b/sci-misc/apertium/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Apertium is an open-source shallow-transfer machine translation
+ engine and toolbox.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">apertium</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest
new file mode 100644
index 000000000000..0f1b88961c05
--- /dev/null
+++ b/sci-misc/boinc/Manifest
@@ -0,0 +1,16 @@
+AUX boinc.conf 524 SHA256 ed42b285adc35b8d2d5e5aeac934e63e36e67e99036978d05e48deccaf3042b8 SHA512 60091e8ff96a07fd9bf508cb295f97be280a4c64d0dbefb88414c86bb193ead72c25dd085d20105b616be5e94dfd5aaf3f5b35fa6b6ce2adf09e38996f1f67b0 WHIRLPOOL 89dab4bc8e7d65cd47a8b8376adef273c91e66e99ba0e65b932ae596db31108ba1c8d7e7ddc558b2df95dfead05962d0968bc4b8dfd0c6b659b88b9925ae0645
+AUX boinc.init.in 6144 SHA256 c8d6daacb06c3be6eed1afbd942384ecf0aa98d78fd23fc44e3f008f49404c5d SHA512 be57013b24d4cf7a140890d70e08f8113560a88c000c7f42ea0da0c4d6b5207a25f10fb08cb3f42ec02ea8d0697e2e108e8a4f2276b30554197b214a70f98697 WHIRLPOOL bbbb95bb55a84cfca74d2b21434066849aebdca9c3713934fbacd8d50d511bf8a3211b91f53cf1164cd0149045f018873da32778b8f7443f5f80dfbe32bc4bff
+AUX boinc.service 178 SHA256 3bcd2bdc65f7b6d9f568eeb63f54e7beaa2f0681f34bfd2d486cfd212fced105 SHA512 86a59b9096b19e6472781cb2a7229dd0540569666bcb5bedd83371e6264f1d6bee70e8b47216e1a5b6462726dcd3b54d86ba8de4478faab6c1792071b76abaf9 WHIRLPOOL 1c34aef20a8cdc0cb50a5b25c759cf622488dd2749945317f9f162a1ef1e8189b1f1069ea7be78528d1ee6454945f02f859b02359381e1d27240b796c5c0a85b
+AUX fix_webview.patch 413 SHA256 829baa79e1e423df39ec732aa0b5ecfa623af1fd70bfc1b55cf1451cb0d1288b SHA512 71f34c4211b28dfdf6837bee64cbf966abf4129109b23a8d05af1d5c3a9f7a5026aa7d88df9a7a646337ee8cad53f42235b9a5a8e43d3074def4c9319c8fb785 WHIRLPOOL 1257e014523ed3a0d80195823ace577e3c581fd0794c5ca684e078fbbf4d9f3fe6c16f5a31f8faa066269dbb5ef643c5cb04e0d80eddee3673b6af68200f1cc9
+DIST boinc-7.2.47.tar.gz 45121528 SHA256 2b06d0bbff2aae52645db124052ba1b749c38261e9b9f006fc9b5d00b35c2141 SHA512 25d44c5db8533367bdf960f76c52bb6f1763110843be3616b822dbc2d0d1aea2837052f041c04e0336f3371449a96562740f484969b73e26c0f5b20407c74e14 WHIRLPOOL 9b6ad2d776dd0ab506af25df576b098988a12649da6d4deef6505c7e2284062d494293f5b9b9ddb44cce131819112b705e7658cd1473ca5889fed6f9a0b7e306
+DIST boinc-7.4.52.tar.gz 44146597 SHA256 b1a53a845c3f9e727d2b3017b266438fd346d73b06c5b0b371e689e803ef0b02 SHA512 09743401e204b4af1e2fb5a594a4cb024b5270b80e69a82cf67eb5e648b14b348a3f7f3b45128667e3ba4ef5f85bc3206606276a91a3497a1a3e7f775f1df006 WHIRLPOOL 27f29ac83a6494943c55f89bbdca8cbbbdd469ab1bf389c6772423e7eb0aaf4e4650a4a883ad45a99f97aa32fb3d598c926ae06a5f8ceae30a415e41fb3dd9e1
+DIST boinc-7.6.33.tar.gz 43569061 SHA256 dd2bee1f0ee734961a24f4edfb9f45efa4bd6d7351f5bd5f715a822245ac4353 SHA512 dc374b4dcfbe4cc1b75274ba651ee8bb7da1223263bd71d9589eeee39330b09757a9c8c22da43d06126cf444933c01814775d234294a5d4c00dc31a7ec27895b WHIRLPOOL 15221749191abf7fe28091f2b916c896fd9101e23ff3e711fa4bd9d925f00fb58d14345c656ad0fe5988eba5f22f2671fc6fc748f39615eeba1aab08cc8619cb
+DIST boinc-7.8.1.tar.gz 52056850 SHA256 6c9668bf2240b4d4e96ee5955b91d474011ec62414434de2d4f170e3ecb7bd6d SHA512 32a30f19dd6b7e6b6050de9952091c2a60e27f4891542f70a449a7d7af347d9b0eecae4501bfb7465f453d1bbe321369f911be74b882384aa5216db3bf569656 WHIRLPOOL 3fee0f50d96e6a4ddd5f0c6b7976658e92358ae73c1169f403495a42f3758398d3ba5d868ec433519ded3f65f01a50325a6f24ae5fbfddf8f63201e246e32980
+DIST boinc.tif 288208 SHA256 5c14c65a7531e1dc3f7f7c18ef86eb0e27726527cb835967aed8b0d003eb564a SHA512 548e19b87fd70dbeb05687320b86aad39981c161b5b5b7e02fc3ce886d4c464c9bb763d5652d9895dd505ce247c7ff4490caa3d407e28f54ce889ffbab22d046 WHIRLPOOL 6a6cace44c8483000cda787da39006db521fd9408539f8abca2c2ab913371405b97719af0518acd2f5239451a9605d0f6d67a40fdb14cb49a03a42a7a44a4c86
+EBUILD boinc-7.2.47.ebuild 5422 SHA256 e358dc7707fc377f98e4d80c48c651b59eaeb2d7cb479229944ca7a5f910ee4e SHA512 38a67fa8c2307f95179a4adc037f942595b7c8b86039c0669db258f0a5ba31be34251278fca18e57e7dbb08d6e4984d9c562e5beca8721776f3da57befa39941 WHIRLPOOL 3ee2b11e5bfeba1e03643699c99f4bd3b57b069d965f3f0926245c197183caa9428149a925805f5653e63be5d1bec0aac1217b667b7fcb71150fa05af5d174bc
+EBUILD boinc-7.4.52-r6.ebuild 5538 SHA256 dbeae452f9f100cedb45031c4c368ae8b9a520683d4fe8c63556e248c71d795b SHA512 141187ee0c3b1e57b993eedfd24abf8d7ab7e11ccb8959556328255a38c51db401f67a28b10a7174508d72c8293f3f910dec5c09f0ce01ba99ec7468cd4228c6 WHIRLPOOL 4cf797aa9bcdce629c41767dd1c1d044cb931e2d31eca560a281343d02b84e54713f73fdaccf1b36f3ad395bd82ee14b40d62df251c2daa47b1ef076d90b21b2
+EBUILD boinc-7.6.33-r6.ebuild 5545 SHA256 510c1f926930a0173c66aaa89c1d90065538faa8262d5ff33175ef05bb522459 SHA512 43a17a1ec145b9547c102506280ee116d110162290df1bbe8359122a86602d37502e3f0cf94836b7d98124b5e51f643aac4d269d47ed9f728d8e7f258e343e0a WHIRLPOOL af17d2eead45955b49cb5ae1d1d7e4a3457b80bbe14a5079330aeaa473b2626e428cc4d4ab4f9bf3358216ee801ee1b0ce431aeabfca1255d77c6ade223f4e71
+EBUILD boinc-7.8.1.ebuild 5545 SHA256 510c1f926930a0173c66aaa89c1d90065538faa8262d5ff33175ef05bb522459 SHA512 43a17a1ec145b9547c102506280ee116d110162290df1bbe8359122a86602d37502e3f0cf94836b7d98124b5e51f643aac4d269d47ed9f728d8e7f258e343e0a WHIRLPOOL af17d2eead45955b49cb5ae1d1d7e4a3457b80bbe14a5079330aeaa473b2626e428cc4d4ab4f9bf3358216ee801ee1b0ce431aeabfca1255d77c6ade223f4e71
+MISC ChangeLog 13736 SHA256 0ec51bf8d69bfd100be0e714ef223ae7aeee5234065523ee4e9eedd8f2928fde SHA512 dd3cd838d53444e8278e0b2c2bf94d3b6da12da3c0eccc21bcda4f380bfd924f0f7d7f5a9800bd32f1a621b3ac8cf76d739e14f288149f14b72f7a79af2bafa0 WHIRLPOOL 5b1756746da994dd6f75c0a61d714e17696c83708c39c38644a4314a57ca0f407aaea6976331b66024e892f1277097cf3c97dd9a64fe41c0083436b8cc92d25c
+MISC ChangeLog-2015 21036 SHA256 25d01b170cfc019bc7ecaf5d524d7c353fc55aa98ddb79c2b245df99fc741fca SHA512 5946fb7fdac08f702254d734165d2157bb48c7e3aaf14097aa678d1a565bcfd714d8563f3863ff84a0ded05977853fb29f9a083e42ef540bfd94966f616db2fd WHIRLPOOL 580fd13c28f85c517b41ec5b1995dbe49080760fbb02326e9e30531e2d5b2b67caa1e5c30922c930ef5bbcfdaf3f449099e8d65bf6d7d68305ba69fa19655dc5
+MISC metadata.xml 956 SHA256 9eb4b9accf700bd9c706fecb52b33b8238dceb805053e44e69c3698d2c20fc16 SHA512 383b00c559f1144fe8288406d085f4894e11a0067260d5ba6c38ca498db73e83b59d0ba9073b57abe5cc88ea6c8e82685f692d92523ac9beef359a5d0926803f WHIRLPOOL b86cb2636d0b8650d4850bea0263730bf5ec95c34f596e91c52662ff55a6ff5e4ee67700a2fa660ace1129a6842222b632fe791ef63a1f5fa2b638c409b917d4
diff --git a/sci-misc/boinc/boinc-7.2.47.ebuild b/sci-misc/boinc/boinc-7.2.47.ebuild
new file mode 100644
index 000000000000..a5b8a0a8c2dc
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.2.47.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER=2.8
+
+inherit autotools eutils linux-info systemd user versionator wxwidgets
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
+ X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
+RESTRICT="mirror"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
+
+REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
+
+# libcurl must not be using an ssl backend boinc does not support.
+# If the libcurl ssl backend changes, boinc should be recompiled.
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
+ sys-apps/util-linux
+ sys-libs/zlib
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-2.1
+ >=x11-drivers/nvidia-drivers-180.22
+ )
+ X? (
+ dev-db/sqlite:3
+ media-libs/freeglut
+ sys-libs/glibc:2.2
+ virtual/jpeg:0=
+ x11-libs/gtk+:2
+ >=x11-libs/libnotify-0.7
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+ X? ( virtual/imagemagick-tools[png,tiff] )
+"
+
+S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
+
+pkg_setup() {
+ # Bug 578750
+ if use kernel_linux; then
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might be missing vsyscall support."
+ elif kernel_is -ge 4 4 \
+ && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
+ ewarn "You do not have vsyscall emulation enabled."
+ ewarn "This will prevent some boinc projects from running."
+ ewarn "Please enable vsyscall emulation:"
+ ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
+ ewarn "in /usr/src/linux/.config, to be found at"
+ ewarn " Processor type and features --->"
+ ewarn " vsyscall table for legacy applications (None) --->"
+ ewarn " (X) Emulate"
+ ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
+ ewarn "However, this has security implications and is not recommended."
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ eautoreconf
+
+ use X && need-wxwidgets unicode
+}
+
+src_configure() {
+ econf --disable-server \
+ --enable-client \
+ --enable-dynamic-client-linkage \
+ --disable-static \
+ --enable-unicode \
+ --with-ssl \
+ $(use_with X x) \
+ $(use_enable X manager) \
+ $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
+}
+
+src_install() {
+ default
+
+ keepdir /var/lib/${PN}
+
+ if use X; then
+ # Create new icons. bug 593362
+ local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
+ for s in "${SIZES[@]}"; do
+ convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
+ newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
+ done
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED%/}"/etc || die "rm failed"
+
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
+ newinitd ${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}
+
+pkg_preinst() {
+ enewgroup ${PN}
+ # note this works only for first install so we have to
+ # elog user about the need of being in video group
+ local groups="${PN}"
+ if use cuda; then
+ groups+=",video"
+ fi
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
+}
+
+pkg_postinst() {
+ elog
+ elog "You are using the source compiled version of boinc."
+ use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
+ elog
+ elog "You need to attach to a project to do anything useful with boinc."
+ elog "You can do this by running /etc/init.d/boinc attach"
+ elog "The howto for configuration is located at:"
+ elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
+ elog
+ # Add warning about the new password for the client, bug 121896.
+ if use X; then
+ elog "If you need to use the graphical manager the password is in:"
+ elog "/var/lib/boinc/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/boinc"
+ elog "You should change this password to something more memorable (can be even blank)."
+ elog "Remember to launch init script before using manager. Or changing the password."
+ elog
+ fi
+ if use cuda; then
+ elog "To be able to use CUDA you should add boinc user to video group."
+ elog "Run as root:"
+ elog "gpasswd -a boinc video"
+ fi
+ # Add information about BOINC supporting OpenCL
+ elog "BOINC supports OpenCL. To use it you have to eselect"
+ if use cuda; then
+ elog "nvidia as the OpenCL implementation, as you are using CUDA."
+ else
+ elog "the correct OpenCL implementation for your graphic card."
+ fi
+ elog
+}
diff --git a/sci-misc/boinc/boinc-7.4.52-r6.ebuild b/sci-misc/boinc/boinc-7.4.52-r6.ebuild
new file mode 100644
index 000000000000..55454c00e456
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.4.52-r6.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER=3.0
+
+inherit autotools eutils linux-info systemd user versionator wxwidgets
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
+ X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
+RESTRICT="mirror"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
+
+REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
+
+# libcurl must not be using an ssl backend boinc does not support.
+# If the libcurl ssl backend changes, boinc should be recompiled.
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
+ sys-apps/util-linux
+ sys-libs/zlib
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-2.1
+ >=x11-drivers/nvidia-drivers-180.22
+ )
+ X? (
+ dev-db/sqlite:3
+ media-libs/freeglut
+ sys-libs/glibc:2.2
+ virtual/jpeg:0=
+ x11-libs/gtk+:2
+ >=x11-libs/libnotify-0.7
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+ X? ( virtual/imagemagick-tools[png,tiff] )
+"
+
+PATCHES=(
+ # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462
+ "${FILESDIR}"/fix_webview.patch
+)
+
+S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
+
+pkg_setup() {
+ # Bug 578750
+ if use kernel_linux; then
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might be missing vsyscall support."
+ elif kernel_is -ge 4 4 \
+ && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
+ ewarn "You do not have vsyscall emulation enabled."
+ ewarn "This will prevent some boinc projects from running."
+ ewarn "Please enable vsyscall emulation:"
+ ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
+ ewarn "in /usr/src/linux/.config, to be found at"
+ ewarn " Processor type and features --->"
+ ewarn " vsyscall table for legacy applications (None) --->"
+ ewarn " (X) Emulate"
+ ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
+ ewarn "However, this has security implications and is not recommended."
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ eautoreconf
+
+ use X && need-wxwidgets unicode
+}
+
+src_configure() {
+ econf --disable-server \
+ --enable-client \
+ --enable-dynamic-client-linkage \
+ --disable-static \
+ --enable-unicode \
+ --with-ssl \
+ $(use_with X x) \
+ $(use_enable X manager) \
+ $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
+}
+
+src_install() {
+ default
+
+ keepdir /var/lib/${PN}
+
+ if use X; then
+ # Create new icons. bug 593362
+ local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
+ for s in "${SIZES[@]}"; do
+ convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
+ newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
+ done
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED%/}"/etc || die "rm failed"
+
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
+ newinitd ${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}
+
+pkg_preinst() {
+ enewgroup ${PN}
+ # note this works only for first install so we have to
+ # elog user about the need of being in video group
+ local groups="${PN}"
+ if use cuda; then
+ groups+=",video"
+ fi
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
+}
+
+pkg_postinst() {
+ elog
+ elog "You are using the source compiled version of boinc."
+ use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
+ elog
+ elog "You need to attach to a project to do anything useful with boinc."
+ elog "You can do this by running /etc/init.d/boinc attach"
+ elog "The howto for configuration is located at:"
+ elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
+ elog
+ # Add warning about the new password for the client, bug 121896.
+ if use X; then
+ elog "If you need to use the graphical manager the password is in:"
+ elog "/var/lib/boinc/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/boinc"
+ elog "You should change this password to something more memorable (can be even blank)."
+ elog "Remember to launch init script before using manager. Or changing the password."
+ elog
+ fi
+ if use cuda; then
+ elog "To be able to use CUDA you should add boinc user to video group."
+ elog "Run as root:"
+ elog "gpasswd -a boinc video"
+ fi
+ # Add information about BOINC supporting OpenCL
+ elog "BOINC supports OpenCL. To use it you have to eselect"
+ if use cuda; then
+ elog "nvidia as the OpenCL implementation, as you are using CUDA."
+ else
+ elog "the correct OpenCL implementation for your graphic card."
+ fi
+ elog
+}
diff --git a/sci-misc/boinc/boinc-7.6.33-r6.ebuild b/sci-misc/boinc/boinc-7.6.33-r6.ebuild
new file mode 100644
index 000000000000..59a13dfeba92
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.6.33-r6.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER=3.0
+
+inherit autotools eutils linux-info systemd user versionator wxwidgets
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
+ X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
+RESTRICT="mirror"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
+
+REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
+
+# libcurl must not be using an ssl backend boinc does not support.
+# If the libcurl ssl backend changes, boinc should be recompiled.
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
+ sys-apps/util-linux
+ sys-libs/zlib
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-2.1
+ >=x11-drivers/nvidia-drivers-180.22
+ )
+ X? (
+ dev-db/sqlite:3
+ media-libs/freeglut
+ sys-libs/glibc:2.2
+ virtual/jpeg:0=
+ x11-libs/gtk+:2
+ >=x11-libs/libnotify-0.7
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+ X? ( virtual/imagemagick-tools[png,tiff] )
+"
+
+PATCHES=(
+ # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462
+ "${FILESDIR}"/fix_webview.patch
+)
+
+S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
+
+pkg_setup() {
+ # Bug 578750
+ if use kernel_linux; then
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might be missing vsyscall support."
+ elif kernel_is -ge 4 4 \
+ && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
+ ewarn "You do not have vsyscall emulation enabled."
+ ewarn "This will prevent some boinc projects from running."
+ ewarn "Please enable vsyscall emulation:"
+ ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
+ ewarn "in /usr/src/linux/.config, to be found at"
+ ewarn " Processor type and features --->"
+ ewarn " vsyscall table for legacy applications (None) --->"
+ ewarn " (X) Emulate"
+ ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
+ ewarn "However, this has security implications and is not recommended."
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ eautoreconf
+
+ use X && need-wxwidgets unicode
+}
+
+src_configure() {
+ econf --disable-server \
+ --enable-client \
+ --enable-dynamic-client-linkage \
+ --disable-static \
+ --enable-unicode \
+ --with-ssl \
+ $(use_with X x) \
+ $(use_enable X manager) \
+ $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
+}
+
+src_install() {
+ default
+
+ keepdir /var/lib/${PN}
+
+ if use X; then
+ # Create new icons. bug 593362
+ local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
+ for s in "${SIZES[@]}"; do
+ convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
+ newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
+ done
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED%/}"/etc || die "rm failed"
+
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
+ newinitd ${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}
+
+pkg_preinst() {
+ enewgroup ${PN}
+ # note this works only for first install so we have to
+ # elog user about the need of being in video group
+ local groups="${PN}"
+ if use cuda; then
+ groups+=",video"
+ fi
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
+}
+
+pkg_postinst() {
+ elog
+ elog "You are using the source compiled version of boinc."
+ use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
+ elog
+ elog "You need to attach to a project to do anything useful with boinc."
+ elog "You can do this by running /etc/init.d/boinc attach"
+ elog "The howto for configuration is located at:"
+ elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
+ elog
+ # Add warning about the new password for the client, bug 121896.
+ if use X; then
+ elog "If you need to use the graphical manager the password is in:"
+ elog "/var/lib/boinc/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/boinc"
+ elog "You should change this password to something more memorable (can be even blank)."
+ elog "Remember to launch init script before using manager. Or changing the password."
+ elog
+ fi
+ if use cuda; then
+ elog "To be able to use CUDA you should add boinc user to video group."
+ elog "Run as root:"
+ elog "gpasswd -a boinc video"
+ elog
+ fi
+ # Add information about BOINC supporting OpenCL
+ elog "BOINC supports OpenCL. To use it you have to eselect"
+ if use cuda; then
+ elog "nvidia as the OpenCL implementation, as you are using CUDA."
+ else
+ elog "the correct OpenCL implementation for your graphic card."
+ fi
+ elog
+}
diff --git a/sci-misc/boinc/boinc-7.8.1.ebuild b/sci-misc/boinc/boinc-7.8.1.ebuild
new file mode 100644
index 000000000000..59a13dfeba92
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.8.1.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER=3.0
+
+inherit autotools eutils linux-info systemd user versionator wxwidgets
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
+ X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
+RESTRICT="mirror"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
+
+REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
+
+# libcurl must not be using an ssl backend boinc does not support.
+# If the libcurl ssl backend changes, boinc should be recompiled.
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
+ sys-apps/util-linux
+ sys-libs/zlib
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-2.1
+ >=x11-drivers/nvidia-drivers-180.22
+ )
+ X? (
+ dev-db/sqlite:3
+ media-libs/freeglut
+ sys-libs/glibc:2.2
+ virtual/jpeg:0=
+ x11-libs/gtk+:2
+ >=x11-libs/libnotify-0.7
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+ X? ( virtual/imagemagick-tools[png,tiff] )
+"
+
+PATCHES=(
+ # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462
+ "${FILESDIR}"/fix_webview.patch
+)
+
+S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
+
+pkg_setup() {
+ # Bug 578750
+ if use kernel_linux; then
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might be missing vsyscall support."
+ elif kernel_is -ge 4 4 \
+ && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
+ ewarn "You do not have vsyscall emulation enabled."
+ ewarn "This will prevent some boinc projects from running."
+ ewarn "Please enable vsyscall emulation:"
+ ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
+ ewarn "in /usr/src/linux/.config, to be found at"
+ ewarn " Processor type and features --->"
+ ewarn " vsyscall table for legacy applications (None) --->"
+ ewarn " (X) Emulate"
+ ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
+ ewarn "However, this has security implications and is not recommended."
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ eautoreconf
+
+ use X && need-wxwidgets unicode
+}
+
+src_configure() {
+ econf --disable-server \
+ --enable-client \
+ --enable-dynamic-client-linkage \
+ --disable-static \
+ --enable-unicode \
+ --with-ssl \
+ $(use_with X x) \
+ $(use_enable X manager) \
+ $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
+}
+
+src_install() {
+ default
+
+ keepdir /var/lib/${PN}
+
+ if use X; then
+ # Create new icons. bug 593362
+ local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
+ for s in "${SIZES[@]}"; do
+ convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
+ newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
+ done
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED%/}"/etc || die "rm failed"
+
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
+ newinitd ${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}
+
+pkg_preinst() {
+ enewgroup ${PN}
+ # note this works only for first install so we have to
+ # elog user about the need of being in video group
+ local groups="${PN}"
+ if use cuda; then
+ groups+=",video"
+ fi
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
+}
+
+pkg_postinst() {
+ elog
+ elog "You are using the source compiled version of boinc."
+ use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
+ elog
+ elog "You need to attach to a project to do anything useful with boinc."
+ elog "You can do this by running /etc/init.d/boinc attach"
+ elog "The howto for configuration is located at:"
+ elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
+ elog
+ # Add warning about the new password for the client, bug 121896.
+ if use X; then
+ elog "If you need to use the graphical manager the password is in:"
+ elog "/var/lib/boinc/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/boinc"
+ elog "You should change this password to something more memorable (can be even blank)."
+ elog "Remember to launch init script before using manager. Or changing the password."
+ elog
+ fi
+ if use cuda; then
+ elog "To be able to use CUDA you should add boinc user to video group."
+ elog "Run as root:"
+ elog "gpasswd -a boinc video"
+ elog
+ fi
+ # Add information about BOINC supporting OpenCL
+ elog "BOINC supports OpenCL. To use it you have to eselect"
+ if use cuda; then
+ elog "nvidia as the OpenCL implementation, as you are using CUDA."
+ else
+ elog "the correct OpenCL implementation for your graphic card."
+ fi
+ elog
+}
diff --git a/sci-misc/boinc/files/boinc.conf b/sci-misc/boinc/files/boinc.conf
new file mode 100644
index 000000000000..22fcca0d3001
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.conf
@@ -0,0 +1,23 @@
+# Config file for /etc/init.d/boinc
+
+# Owner of BOINC process (must be existing)
+USER="boinc"
+GROUP="boinc"
+
+# Directory with runtime data: Work units, project binaries, user info etc.
+RUNTIMEDIR="/var/lib/boinc"
+
+# Location of the boinc command line binary
+BOINCBIN="/usr/bin/boinc_client"
+
+# Location of the boinc_client pid file
+BOINC_PIDFILE="/var/run/boinc_client.pid"
+
+# Location of the boinccmd command
+BOINCCMD="/usr/bin/boinccmd"
+
+# Allow remote gui RPC yes or no
+ALLOW_REMOTE_RPC="no"
+
+# nice level
+NICELEVEL="19"
diff --git a/sci-misc/boinc/files/boinc.init.in b/sci-misc/boinc/files/boinc.init.in
new file mode 100644
index 000000000000..b46a06e3d384
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.init.in
@@ -0,0 +1,254 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="attach resume suspend"
+
+depend() {
+ # we can use dns and net, but we can also in most cases live without them
+ use dns net ntp-client ntpd
+}
+
+create_work_directory() {
+ local sslcrt="/etc/ssl/certs/ca-certificates.crt"
+
+ if [ ! -d "${RUNTIMEDIR}" ]; then
+ einfo "Directory ${RUNTIMEDIR} does not exist, creating now."
+ if ! mkdir -p "${RUNTIMEDIR}"; then
+ eerror "Directory ${RUNTIMEDIR} could not be created!"
+ return 1
+ fi
+
+ # ensure proper ownership
+ if ! chown "${USER}:${GROUP}" "${RUNTIMEDIR}"; then
+ eerror "Changing ownership of '${RUNTIMEDIR}' to '${USER}:${GROUP}' failed!"
+ return 1
+ fi
+ fi
+
+ if [ ! -e "${RUNTIMEDIR}"/ca-bundle.crt ]; then
+ if [ ! -f "${sslcrt}" ]; then
+ eerror "'${sslcrt}' does not exist!"
+ return 1
+ fi
+
+ if ! ln -s "${sslcrt}" "${RUNTIMEDIR}"/ca-bundle.crt; then
+ eerror "Symlinking '${sslcrt}' failed!"
+ return 1
+ fi
+ fi
+
+ return 0
+}
+
+fix_lib_symlinks() {
+ local src="$1"
+ local tgt="$2"
+
+ # If the source does not exist, we can not do anything
+ if [ ! -f "${src}" ] ; then
+ return 1
+ fi
+
+ # Check whether the symlink is already there and in order
+ if [ -L "${tgt}" ] ; then
+ if [ -f "${tgt}" ] ; then
+ return 0
+ fi
+
+ # Remove broken symlink
+ if ! rm -f "${tgt}"; then
+ eerror "Removing '${tgt}' failed!"
+ return 1
+ fi
+ fi
+
+ # symlink the correct path
+ if ! ln -snf "${src}" "${tgt}"; then
+ eerror "Symlinking '${src}' to '${tgt}' failed!"
+ return 1
+ fi
+
+ return 0
+}
+
+cuda_check() {
+ local libsource="/opt/cuda/@libdir@/libcudart.so"
+ local libtarget="${RUNTIMEDIR}/libcudart.so"
+
+ fix_lib_symlinks "${libsource}" "${libtarget}" || return 1
+ return 0
+}
+
+opencl_check() {
+ local libsource="/usr/@libdir@/libOpenCL.so"
+ local libtarget="${RUNTIMEDIR}/libOpenCL.so"
+
+ fix_lib_symlinks "${libsource}" "${libtarget}" || return 1
+ return 0
+}
+
+env_check() {
+ # Make sure the configuration is sane
+ : ${USER:="boinc"}
+ : ${GROUP:="boinc"}
+ : ${RUNTIMEDIR:="/var/lib/boinc"}
+ : ${BOINCBIN:="$(which boinc_client)"}
+ : ${BOINC_PIDFILE:="/var/run/boinc_client.pid"}
+ : ${BOINCCMD:="$(which /usr/bin/boinccmd)"}
+ : ${ALLOW_REMOTE_RPC:="yes"}
+ : ${NICELEVEL:="19"}
+ # ARGS is not checked, it could have been explicitly set
+ # to be empty by the user.
+
+ # If the client was not found (how?) something is seriously wrong
+ if [ ! -x "${BOINCBIN}" ]; then
+ eerror "No boinc_client found!"
+ return 1
+ fi
+
+ # The boinccmd is crucial, or we can not attach, suspend or resume
+ # the boinc client
+ if [ ! -x "${BOINCCMD}" ]; then
+ eerror "No boinccmd program found!"
+ return 1
+ fi
+
+ return 0
+}
+
+need_passwd_arg() {
+ local vers=$(${BOINCBIN} --version | tr -d .)
+ [ -z "${vers}" ] && vers="00"
+ [ $(expr substr "${vers}" 1 2) -lt 74 ] && return 0
+
+ # From version 7.4 on, the default is to read
+ # gui_rpc_auth.cfg for the password.
+
+ return 1
+}
+
+start_pre() {
+ env_check || return 1
+ create_work_directory || return 1
+ cuda_check || einfo "CUDA not supported"
+ opencl_check || einfo "OpenCL not supported"
+
+ if [ ! -f "${RUNTIMEDIR}/lockfile" ]; then
+ einfo "File \"${RUNTIMEDIR}/lockfile\" does not exist, assuming first run."
+ einfo "You need to setup an account on the BOINC project homepage beforehand!"
+ einfo "Go to http://boinc.berkeley.edu/ and locate your project."
+ einfo "Then either run ${RC_SERVICE} attach or connect with a gui client"
+ einfo "and attach to a project with that."
+ einfo ""
+ ewarn "Note that for attaching to some project you need your network up and running."
+ ewarn "network is needed only for jobs fetching afterwards"
+ fi
+
+ return 0
+}
+
+start() {
+ if [ "${ALLOW_REMOTE_RPC}" = "yes" ]; then
+ ARGS="${ARGS} --allow_remote_gui_rpc"
+ fi
+
+ ARGS="${ARGS} --dir "${RUNTIMEDIR}" --redirectio"
+
+ ebegin "Starting ${RC_SVCNAME}"
+ start-stop-daemon --start --nicelevel ${NICELEVEL} \
+ --user "${USER}:${GROUP}" --quiet --make-pidfile \
+ --pidfile "${BOINC_PIDFILE}" --background \
+ --exec "${BOINCBIN}" -- ${ARGS}
+ eend $?
+}
+
+attach() {
+ local password=""
+ local url=""
+ local key=""
+
+ env_check || return 1
+
+ einfo "If you can't find your account key just try to obtain it by using:"
+ einfo " boinccmd --passwd PASSWORD_FROM_GUI_RPC_AUTH --lookup_account URL EMAIL PASSWORD"
+
+ printf " Enter the Project URL: "
+ read url
+ printf " Enter your Account Key: "
+ read key
+
+ if ! service_started; then
+ "${RC_SERVICE}" start
+ fi
+
+ if need_passwd_arg; then
+ password="--passwd \"$(cat "${RUNTIMEDIR}/gui_rpc_auth.cfg")\""
+ fi
+
+ ebegin "${RC_SVCNAME}: Attaching to project"
+ start-stop-daemon --user "${USER}:${GROUP}" --quiet \
+ --chdir "${RUNTIMEDIR}" --exec "${BOINCCMD}" \
+ -- ${password} --project_attach ${url} ${key}
+ eend $?
+
+ sleep 10
+ tail "${RUNTIMEDIR}/stdoutdae.txt"
+}
+
+stop() {
+ local password=""
+ local stop_timeout="SIGTERM/60/SIGTERM/30/SIGKILL/30"
+
+ env_check || return 1
+
+ if need_passwd_arg; then
+ password="--passwd \"$(cat "${RUNTIMEDIR}/gui_rpc_auth.cfg")\""
+ fi
+
+ ebegin "Stopping ${RC_SVCNAME}"
+ start-stop-daemon --stop --quiet --progress \
+ --retry ${stop_timeout} \
+ --pidfile "${BOINC_PIDFILE}"
+ eend $?
+}
+
+resume() {
+ env_check || return 1
+
+ local password=""
+
+ if need_passwd_arg; then
+ password="--passwd \"$(cat "${RUNTIMEDIR}/gui_rpc_auth.cfg")\""
+ fi
+
+ for url in $(cd "${RUNTIMEDIR}" ; \
+ "${BOINCCMD}" ${password} --get_project_status | \
+ sed -n 's/\s*master URL: //p'); do
+ ebegin "Resuming ${url}"
+ start-stop-daemon --user "${USER}:${GROUP}" --quiet \
+ --chdir "${RUNTIMEDIR}" --exec "${BOINCCMD}" \
+ -- ${password} --project ${url} resume
+ eend $?
+ done
+}
+
+suspend() {
+ env_check || return 1
+
+ local password=""
+
+ if need_passwd_arg; then
+ password="--passwd \"$(cat "${RUNTIMEDIR}/gui_rpc_auth.cfg")\""
+ fi
+
+ for url in $(cd "${RUNTIMEDIR}" ; \
+ "${BOINCCMD}" ${password} --get_project_status | \
+ sed -n 's/\s*master URL: //p'); do
+ ebegin "Suspending ${url}"
+ start-stop-daemon --user "${USER}:${GROUP}" --quiet \
+ --chdir "${RUNTIMEDIR}" --exec "${BOINCCMD}" \
+ -- ${password} --project ${url} suspend
+ eend $?
+ done
+}
diff --git a/sci-misc/boinc/files/boinc.service b/sci-misc/boinc/files/boinc.service
new file mode 100644
index 000000000000..af8edf4d5041
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=BOINC Daemon
+
+[Service]
+User=boinc
+Group=boinc
+Nice=19
+ExecStart=/usr/bin/boinc_client --dir /var/lib/boinc --redirectio
+
+[Install]
+WantedBy=multi-user.target
diff --git a/sci-misc/boinc/files/fix_webview.patch b/sci-misc/boinc/files/fix_webview.patch
new file mode 100644
index 000000000000..6c141eb7c829
--- /dev/null
+++ b/sci-misc/boinc/files/fix_webview.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac 2016-07-06 11:16:41.000000000 +0200
++++ b/configure.ac 2016-07-06 11:45:51.088155620 +0200
+@@ -1250,7 +1250,7 @@
+ CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -DNDEBUG"
+ fi
+
+-CLIENTGUILIBS="${WX_LIBS} ${SQLITE3_LIBS}"
++CLIENTGUILIBS="${WX_LIBS} $($WX_CONFIG_WITH_ARGS --libs webview) ${SQLITE3_LIBS}"
+
+ if test "${enable_client_release}" = "yes" ; then
+ if test "x${WX_LIBS_STATIC}" = "x" ; then
diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml
new file mode 100644
index 000000000000..5e74c0cc24c0
--- /dev/null
+++ b/sci-misc/boinc/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>yamakuzure@gmx.net</email>
+ <name>Sven Eden</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+<longdescription lang="en">
+ BOINC (Berkeley Open Infrastructure for Network Computing) is a software
+ platform for distributed computing using volunteered computer resources.
+</longdescription>
+ <use>
+ <flag name="cuda">
+ Use nvidia cuda toolkit for speeding up computations.
+ NOTE: works only for subset of nvidia graphic cards so make sure your card
+ is supported before opening a bug about it.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="github">BOINC/boinc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/cdfplayer/Manifest b/sci-misc/cdfplayer/Manifest
new file mode 100644
index 000000000000..76ea98334ab8
--- /dev/null
+++ b/sci-misc/cdfplayer/Manifest
@@ -0,0 +1,6 @@
+DIST CDFPlayer_10.4.0_LINUX.sh 1315941152 SHA256 4c202541762839c766d6f484377e3413de9dd7c70f47484da615572c8e44f4ed SHA512 13205dad6d3a57937b55f41d895e6eef5c7ebf1f416622226cbe97a7de4a39c8d1b5c7424194c2aa4bca9020b52f52ef311af118d810c6065a1275e58d9580a1 WHIRLPOOL 36236338c6ec922a6294da34e5379ba5ecf087b307a484abd79c516804d1db6f859b33a1535a9dce6f1980a51972ec1ceff3b39a6270b9d9797beedabc03a0f3
+DIST CDFPlayer_11.0.1_LINUX.sh 1630401312 SHA256 0f5f89d252481ea7fb49bd6c6c9b0a38956d4f0c32c361d02a543a8582c472e8 SHA512 bf52caa6a495ce78670ab6931e8caa3167121d5193e6839bb745026883f32c536d460faa960a59e593486fbf1a90d1ca51cb8e8a52eedff20e48eb1cb1a80701 WHIRLPOOL 9946110dffe973043dc4d89fd015ebcadfbd6e747b3993059cc811ce7e8f09df37db80daf9a3701cbd09de2331c3e534a20064876eabc256561aeca9fe4357a3
+EBUILD cdfplayer-10.4.0.ebuild 2135 SHA256 17e30c53f04fc60f6188bf22b8f5f161ee1cb463cf12bd2eb10d3ad02c623bee SHA512 e2e80d28a4904057b4d80514d9b157edd62b8c7538a30dcb6311ad385ec5d6eb23c530d831bad3a665d08eab9dd187f1f8639c666a65e04bfb0bd1f2349f0c1e WHIRLPOOL 06652ebf2283d755bd12c5992be7c54275aca5378113abe8a39b36d88aead4e2cbcb5de978603503003c573382c7fb0d7211c2051a46a598b71dd75677f77082
+EBUILD cdfplayer-11.0.1.ebuild 2135 SHA256 2cbe2f838edaf52d56e4fe6fd84564cdb301a208dae29c8fa71c5c3a3d5afd90 SHA512 8a33853c1680c9948473ace3fdbb4a296bb6c12b8939669ef735aedd0384c7d140f0413f84bab5d2a4c4fb82710f68d9128be554df5a7bd7843c52f2a67ab77b WHIRLPOOL 265aacd1f8a0d1347743629b31623739591ab4cc2469c1444202d022c4eca5882ca9a32b62fd03d77cdfcde82ffea1f51fa5336ed0a691f166de3e495d7e8b92
+MISC ChangeLog 467 SHA256 1dd0280f81ec39dee43b1e320c79fc03d3ae1259766311632501b055045cbd64 SHA512 37ed90b9ddcbcad7a77a134f91d42ba8916886e26429f3e6a9a2b622b359cb7a89689924743774d69c33b1b99ea7307311f652e83432fec2bceb2e04168e66b8 WHIRLPOOL a2b976636b2456eddfc7d11fa8d56659dbc773a390b81e30a0cd0c1cca389116b60127b3e104d2aa5eb266a2c7fb4170193a568cbea5fa7348f5f2fa20827e97
+MISC metadata.xml 260 SHA256 54d925b128111356e200a850d4827b8152a5a8dda5872a267760f5e5e2594308 SHA512 b6369aad1615446c9a4e1740a51a49d843868e114e49bc526e7b00cefdc795a601b9c508d866b065cc4ed750b85f48f136ee5925b9511a80f4056d7ef832eab2 WHIRLPOOL 3a28dd661032b374525a7d2309e989678cbb971daf710e52313f4d80d794b3cd3b81340fec53b9bc2d0415286a8dd3b239712d3b8cd4840a428d22768eff4eb7
diff --git a/sci-misc/cdfplayer/cdfplayer-10.4.0.ebuild b/sci-misc/cdfplayer/cdfplayer-10.4.0.ebuild
new file mode 100644
index 000000000000..c8687b11278f
--- /dev/null
+++ b/sci-misc/cdfplayer/cdfplayer-10.4.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)"
+SRC_URI="CDFPlayer_10.4.0_LINUX.sh"
+HOMEPAGE="http://www.wolfram.com/cdf-player/"
+
+LICENSE="WolframCDFPlayer"
+KEYWORDS="-* ~amd64 ~x86"
+SLOT="0"
+IUSE=""
+
+RESTRICT="strip mirror bindist fetch"
+
+DEPEND=""
+
+# this list comes from lsof output
+# probably there are still some libraries missing
+RDEPEND="
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXcursor
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXt
+ media-libs/alsa-lib
+ dev-libs/expat
+ media-libs/fontconfig
+ dev-libs/icu
+ x11-libs/libxcb
+ dev-libs/libxml2
+ || ( sys-libs/ncurses:5/5 sys-libs/ncurses:0/5 )
+"
+
+# we need this a few times
+MPV=$(get_version_component_range 1-2)
+
+# we might as well list all files in all QA variables...
+QA_PREBUILT="opt/*"
+
+S=${WORKDIR}
+
+src_unpack() {
+ /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/CDFPlayer/${MPV}" "-execdir=${S}/opt/bin" || die
+}
+
+src_install() {
+ # move all over
+ mv "${S}/opt" "${D}/opt" || die
+
+ # the autogenerated symlinks point into sandbox, redo
+ rm "${D}/opt/bin/"* || die
+ dosym /opt/Wolfram/CDFPlayer/${MPV}/Executables/wolframcdfplayer opt/bin/wolframcdfplayer
+ dosym /opt/Wolfram/CDFPlayer/${MPV}/Executables/WolframCDFPlayer opt/bin/WolframCDFPlayer
+
+ # fix some embedded paths and install desktop files
+ insinto /usr/share/applications
+ for filename in $(find "${D}" -name "wolfram-cdf10.desktop") ; do
+ echo Fixing "${filename}"
+ sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}"
+ echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}"
+ doins "${filename}"
+ done
+}
+
+pkg_nofetch() {
+ einfo "Sadly Wolfram provides no permanent link to the player files."
+ einfo "Please download the Wolfram CFD Player installation file ${SRC_URI} from"
+ einfo "${HOMEPAGE} and place it in ${DISTDIR}"
+}
diff --git a/sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild b/sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild
new file mode 100644
index 000000000000..561ed97e3815
--- /dev/null
+++ b/sci-misc/cdfplayer/cdfplayer-11.0.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)"
+SRC_URI="CDFPlayer_11.0.1_LINUX.sh"
+HOMEPAGE="http://www.wolfram.com/cdf-player/"
+
+LICENSE="WolframCDFPlayer"
+KEYWORDS="-* ~amd64 ~x86"
+SLOT="0"
+IUSE=""
+
+RESTRICT="strip mirror bindist fetch"
+
+DEPEND=""
+
+# this list comes from lsof output
+# probably there are still some libraries missing
+RDEPEND="
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXcursor
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXt
+ media-libs/alsa-lib
+ dev-libs/expat
+ media-libs/fontconfig
+ dev-libs/icu
+ x11-libs/libxcb
+ dev-libs/libxml2
+ || ( sys-libs/ncurses:5/5 sys-libs/ncurses:0/5 )
+"
+
+# we need this a few times
+MPV=$(get_version_component_range 1-2)
+
+# we might as well list all files in all QA variables...
+QA_PREBUILT="opt/*"
+
+S=${WORKDIR}
+
+src_unpack() {
+ /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/CDFPlayer/${MPV}" "-execdir=${S}/opt/bin" || die
+}
+
+src_install() {
+ # move all over
+ mv "${S}/opt" "${D}/opt" || die
+
+ # the autogenerated symlinks point into sandbox, redo
+ rm "${D}/opt/bin/"* || die
+ dosym /opt/Wolfram/CDFPlayer/${MPV}/Executables/wolframcdfplayer opt/bin/wolframcdfplayer
+ dosym /opt/Wolfram/CDFPlayer/${MPV}/Executables/WolframCDFPlayer opt/bin/WolframCDFPlayer
+
+ # fix some embedded paths and install desktop files
+ insinto /usr/share/applications
+ for filename in $(find "${D}" -name "wolfram-cdf11.desktop") ; do
+ echo Fixing "${filename}"
+ sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}"
+ echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}"
+ doins "${filename}"
+ done
+}
+
+pkg_nofetch() {
+ einfo "Sadly Wolfram provides no permanent link to the player files."
+ einfo "Please download the Wolfram CFD Player installation file ${SRC_URI} from"
+ einfo "${HOMEPAGE} and place it in ${DISTDIR}"
+}
diff --git a/sci-misc/cdfplayer/metadata.xml b/sci-misc/cdfplayer/metadata.xml
new file mode 100644
index 000000000000..80a71f597854
--- /dev/null
+++ b/sci-misc/cdfplayer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dilfridge@gentoo.org</email>
+ <name>Andreas K. Huettel</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-misc/fitscut/Manifest b/sci-misc/fitscut/Manifest
new file mode 100644
index 000000000000..113faf668774
--- /dev/null
+++ b/sci-misc/fitscut/Manifest
@@ -0,0 +1,5 @@
+AUX fitscut-1.4.4-fix-asinh.patch 1238 SHA256 baf7ddf271b2a4bc400586287db3094e3243124bde6020da8c251c613c803d06 SHA512 dc0f72c3177ebccbcfd062bf4e12ef5775e91eb53a3ccdb7ce0aeacec698e469c3593e6d33c7bc27f73b71d588a999ca9c51c0b36dde926f7e7fd8108324afd9 WHIRLPOOL 95a19db1956b86656d68bb3dd5d38bd5ddda5a510e2bd93cfc53daca909487336406f929f2ae8223ac11d243fce1d5411cbedbb70c264a206deb64dd1db421e5
+DIST fitscut-1.4.4.tar.gz 163663 SHA256 1df936af9cd36bf1cd1e3a095ecc8bec68a6974525e0f4fd0e9cccb9633728bb SHA512 1d80671efeebfb07e7e2714d9cdbdd445a2e7644119d5b82ba4a8f033b36e773d13f87998ece45091f4a127beca374021e8c5afd88f649c9405fb329cd1ee97f WHIRLPOOL fa2a7ac7306988b574dd9155fe1062bd86fea8cf1bd45cfb8a05795d7ef305cd5de9d9061fe00b2d7e9f25c263f8db4bed252bf171082943b7c9d82684c0dcd4
+EBUILD fitscut-1.4.4.ebuild 904 SHA256 6df6dcf893ec1c0141067b3e1121ad28aa0733a01df1f870f0336a30e93ee033 SHA512 0fbf7e3c169fd1eec37d5a695a7b8c7596b5453865d97d53e775f2a1124f3ce8354f590b3f96da3ff0d43b85e83bbab10895cafde61efa7c0860affb71625a9d WHIRLPOOL 088161c8930814e7f25f6d9db6b8ff1d15e944b4868b19f3779e87343b6a0c2a1e31ab8355916c8ba2f4917c4db81790182e0b35de49e0e5446ddf4fdebf3500
+MISC ChangeLog 352 SHA256 27396f49ea07db28688fd569cad8a14b3cef65ecc94a185b6a3e05cab05a31b8 SHA512 5b8e22e1a4e313c7ff1f98feb87ca9ff5119f4772f0322f2dcba715658cdcc968838c3083d2a31314dbdc4a968f92408735e4ce9b034df210e0fc879e960c1c3 WHIRLPOOL a0d406170b80e317627a56075bf4ad658b7e6e53b3f1719f79a66592dbf17d5f52464c0278d915ab8e0421588cd21463c7ceb9d1196e6d769b1ae0b63348e923
+MISC metadata.xml 564 SHA256 f3dcdc1b397884949733ff136245d16a78788941750f29ec8cd428877d93128d SHA512 0a7da435d3131addb07f5d2a7fdd9fd85d67ab60041421f72ccc37cb67b3490c808f2c749726490efe235ba07ad0652b87da909e06f77d4094020057a7976ae8 WHIRLPOOL cc19fd63d62f198b0c6cd832340b01abce736f7cee420af80876d6638db687100c949afe616d7bd099b945d3cded8b15c00a2e5d958271da32e9295050229751
diff --git a/sci-misc/fitscut/files/fitscut-1.4.4-fix-asinh.patch b/sci-misc/fitscut/files/fitscut-1.4.4-fix-asinh.patch
new file mode 100644
index 000000000000..be5c3a1c2309
--- /dev/null
+++ b/sci-misc/fitscut/files/fitscut-1.4.4-fix-asinh.patch
@@ -0,0 +1,33 @@
+Author: Ole Streicher <olebole@debian.org>
+Description: Avoid NaN in asinh calculation.
+ Also, ignore NaN in histogram creation.
+--- a/histogram.c
++++ b/histogram.c
+@@ -83,8 +83,10 @@
+ ind = 0;
+ else if (value > dmax)
+ ind = length-1;
+- else
++ else if (isfinite(value))
+ ind = ceil ((value-dmin) / binsize);
++ else
++ continue;
+ hist[ind] += 1.0;
+ }
+ }
+--- a/image_scale.c
++++ b/image_scale.c
+@@ -326,8 +326,11 @@
+ if (t > maxval)
+ maxval = t;
+ }
+-
+- weight = asinh (sum * nonlinearity) / (nonlinearity * sum);
++ if (sum * nonlinearity == 0.0) {
++ weight = 1.0;
++ } else {
++ weight = asinh (sum * nonlinearity) / (nonlinearity * sum);
++ }
+ for (k = 0; k < Image->channels; k++) {
+ if (Image->data[k] == NULL)
+ continue;
diff --git a/sci-misc/fitscut/fitscut-1.4.4.ebuild b/sci-misc/fitscut/fitscut-1.4.4.ebuild
new file mode 100644
index 000000000000..7e9d93d64b13
--- /dev/null
+++ b/sci-misc/fitscut/fitscut-1.4.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Extract cutouts from FITS image files"
+HOMEPAGE="http://acs.pha.jhu.edu/general/software/fitscut/"
+SRC_URI="${HOMEPAGE}/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+ sci-libs/cfitsio:0=
+ sci-astronomy/wcstools:0=
+ media-libs/libpng:0=
+ virtual/jpeg:0="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-fix-asinh.patch" )
+
+src_prepare() {
+ default
+ # gentoo wcs is called wcstools to avoid conflict with wcslib
+ sed -e 's/libwcs/wcs/g' \
+ -i wcs*.c fitscut.c || die
+ # cfitsio/fitsio.h might conflict with host on prefix
+ sed -e 's/LIB(wcs,/LIB(wcstools,/' \
+ -e 's/-lwcs/-lwcstools/' \
+ -e '/cfitsio\/fitsio.h/d' \
+ configure.in > configure.ac || die
+ rm configure.in
+ eautoreconf
+}
diff --git a/sci-misc/fitscut/metadata.xml b/sci-misc/fitscut/metadata.xml
new file mode 100644
index 000000000000..cc63d596cc37
--- /dev/null
+++ b/sci-misc/fitscut/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-astronomy@gentoo.org</email>
+ <name>Gentoo Astronomy Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ fitscut is designed to extract cutouts from FITS image format
+ files. FITS, PNG, and JPEG output types are supported.
+ When multiple input files are specified and the output type is PNG or
+ JPEG the resulting image is an RGB color image.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/fitsverify/Manifest b/sci-misc/fitsverify/Manifest
new file mode 100644
index 000000000000..a869ad034379
--- /dev/null
+++ b/sci-misc/fitsverify/Manifest
@@ -0,0 +1,7 @@
+DIST fitsverify-4.17.tar.gz 42634 SHA256 1ffb76e285715477ac3d7de3cc5ce96e74c3cd81f9b3d840327dda39d0598c3b SHA512 0d15b8e4ae5098126bed2bb2dfaa47ac20d977ed707352dc7930ebaf23a7a20cc69458fd77f9e76888e2ec4ef8a2a2f180c2fe03b9b7a4c9299aeea6df831879 WHIRLPOOL f666800c32603027ea07dff975d104b525643e13bc7920bf6056d8ff2f5c0dc1701a4a7d870e5c0a64ca1399f199b3d542ffcbed6a6a280202d193c615305b0f
+DIST fitsverify-4.18.tar.gz 42840 SHA256 e6fd00c2aa3749ab991167c7129ad27c79d9ee841ec8df1c11b307e875b8faba SHA512 4be82078bf328538e1b98b386aedd6b2501a25e3d17f19e0db5b82ed8f62493e51f01228653ecf769ff3c706a16c8d65fe64ebc8693e8dd406e88d0a9ffc5010 WHIRLPOOL 8256483b864301ac1f73c117b0487456891520401fb93640a627ea7c82bb4c69cda0bdd1fafd4a22b48c3aa0b6b551d22fa75ea64b4eccae67b4785bf383b055
+EBUILD fitsverify-4.17.ebuild 734 SHA256 a73015d26f973aff481a878c585eab56c31fe85efdd86fcbe7fe1ad3de444e26 SHA512 190b2f407cb53b85aa8f1230d0d31291316df4f2056b5ea8f51503fc072104d555689c371fd333eaa264503e235c541a9f0c3d58e1ab7f3e692ba66e2a36c2dc WHIRLPOOL fdf126b786b50c3904eae586201a47a244b1a2cd6eea5916d67d89322f958fb822fd89cacf417747645ac2ff0474ed2a5e1b8b4ae5d435d0ae5ffd75d40a1cea
+EBUILD fitsverify-4.18.ebuild 734 SHA256 a73015d26f973aff481a878c585eab56c31fe85efdd86fcbe7fe1ad3de444e26 SHA512 190b2f407cb53b85aa8f1230d0d31291316df4f2056b5ea8f51503fc072104d555689c371fd333eaa264503e235c541a9f0c3d58e1ab7f3e692ba66e2a36c2dc WHIRLPOOL fdf126b786b50c3904eae586201a47a244b1a2cd6eea5916d67d89322f958fb822fd89cacf417747645ac2ff0474ed2a5e1b8b4ae5d435d0ae5ffd75d40a1cea
+MISC ChangeLog 3178 SHA256 54a5b1b2204402c51b5a91e3a160b2f7d821d199e3d8cbcfee4fac7da3047d38 SHA512 af71d2a3852d454e8d385b950eb3cca2b5cc5777007799019cac375e615c5258e9c92fc1d1fbe7f21ecb98ea10d521afc30fefbfa5c635834191089472921cb5 WHIRLPOOL a5228981698bb9502b1aa2e83abc1e5113c4ce82069cd5f8905fa4b625dee33e2115afb369752a602e3e5109c4f6e0e809c6d427995bff4807a7daadc3ad8f1a
+MISC ChangeLog-2015 996 SHA256 bd954c5b26c07ed3b3d2e840690717d89f24a0ee023fa7e13a55996c300d5bc5 SHA512 2bdef70a170bad9dfff51b588779f3c5aefd37e9fcfcc8f996f8822c5d0e6167fb5b035ffe665eabe457ba7da1fa254c0349def7647e79579072bd5a0d9a749c WHIRLPOOL ddc7f6e6c33e7dea9e05f2177953a206dc1614574676341f33b25bd0b2698c4da9ead943cc56e83a772132f21594a21afe9eda8314e3b217ec958a5d521e7ac8
+MISC metadata.xml 510 SHA256 9b6bdcbc8ec163e567df5967003e72931af447f1d83c40389d93d8faa3e9a207 SHA512 9ea9f53b535bd5b567682c2a0c62e2e9b9549a2bb250ffd71ebb5729a2299744dd4cbd324393d8fdc266d208c19e4156195e0729f0ffbbc591d8d798fc5d118b WHIRLPOOL 5cc0793ad4440c92b8dacc7e8ee27de6fe491a4f51a444f0a82510df2cfa41015da3da5c39ad038a36bee561d1f12f4c44d1f2cc724c097de140f6111a6be623
diff --git a/sci-misc/fitsverify/fitsverify-4.17.ebuild b/sci-misc/fitsverify/fitsverify-4.17.ebuild
new file mode 100644
index 000000000000..b7daee4cc8e1
--- /dev/null
+++ b/sci-misc/fitsverify/fitsverify-4.17.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="FITS file format checker"
+HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/"
+SRC_URI="${HOMEPAGE}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="sci-libs/cfitsio:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ $(tc-getCC) ${CPPFLAGS} -DSTANDALONE ${CFLAGS} ${LDFLAGS} \
+ $($(tc-getPKG_CONFIG) --cflags cfitsio) \
+ ftverify.c fvrf*.c \
+ $($(tc-getPKG_CONFIG) --libs cfitsio) -o ${PN} \
+ || die "compiled failed"
+}
+
+src_install() {
+ dobin fitsverify
+ dodoc README
+}
diff --git a/sci-misc/fitsverify/fitsverify-4.18.ebuild b/sci-misc/fitsverify/fitsverify-4.18.ebuild
new file mode 100644
index 000000000000..b7daee4cc8e1
--- /dev/null
+++ b/sci-misc/fitsverify/fitsverify-4.18.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="FITS file format checker"
+HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/"
+SRC_URI="${HOMEPAGE}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="sci-libs/cfitsio:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ $(tc-getCC) ${CPPFLAGS} -DSTANDALONE ${CFLAGS} ${LDFLAGS} \
+ $($(tc-getPKG_CONFIG) --cflags cfitsio) \
+ ftverify.c fvrf*.c \
+ $($(tc-getPKG_CONFIG) --libs cfitsio) -o ${PN} \
+ || die "compiled failed"
+}
+
+src_install() {
+ dobin fitsverify
+ dodoc README
+}
diff --git a/sci-misc/fitsverify/metadata.xml b/sci-misc/fitsverify/metadata.xml
new file mode 100644
index 000000000000..07765a333191
--- /dev/null
+++ b/sci-misc/fitsverify/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-astronomy@gentoo.org</email>
+ <name>Gentoo Astronomy Project</name>
+</maintainer>
+<longdescription lang="en">
+ fitsverify is a computer program that rigorously checks whether a
+ FITS format data file conforms to all the requirements defined in
+ the FITS (Flexible Image Transport System) standard document.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/flashdot/Manifest b/sci-misc/flashdot/Manifest
new file mode 100644
index 000000000000..4a894d98127c
--- /dev/null
+++ b/sci-misc/flashdot/Manifest
@@ -0,0 +1,6 @@
+AUX flashdot-1.1.4-gsl-ocaml.patch 1045 SHA256 8d7d986b5759712f86f5b31ea90bec6b97667ae2707515a1c438bb104bed6d7b SHA512 010edd228c29189bb07eec81ec3b0ceb968ccfa99f6cf85d1d1b2b1b8b2af040b674e75fdf57662cdbb6ca076b9ea02d5164530ef91012bb3e9ea89de9457f0b WHIRLPOOL 6bf344ad289cad23e5bc0ced8ce0b37b61d29b88c8e9fa81df8ec5bf85446594a23713fb1ae499ce068b13a7db7f0f9dcbbeefe2639d12ae9f726acf0fbcf1eb
+DIST flashdot-1.1.4.tar.bz2 464763 SHA256 b43c05d2933c1381cfd5a0761250ce68ad0a138a150679df0bf7b80564c93439 SHA512 2c7f803ca002f8a2d9205a6148c3bf602aa79c04fb67444cdfb23626706777d8463739f119ff124b58f7dc30c75750f95045fab4059540936082cfda7deea8c0 WHIRLPOOL 7a0fcc64c5129fd8f85859068291401a19f16b80bbb11557186fe31ffb0a82efa7284a06b1da22f9e8fb77328f3bb64deb653f4ebe9fafbd1eb904ed7a10505b
+EBUILD flashdot-1.1.4-r1.ebuild 754 SHA256 6da6db3415d2e052afd8408dd84836d0a27c058abe10cb05d43d32e40f497824 SHA512 b27605e2c5a6e87d3dc1c63e96c10c73f32c5c1caf980def8fbe3759e7e75989dfc4c606c9f2c1ed1c81790fc89f707162aa0dbf0fe39e49dd17a354fee8a1cb WHIRLPOOL 08d59d095340f2863dd0267097f2d8954610c72b64796fcc4533cdc011eb6d7630a4020d0cc65582b9790d73e54008f2131c67fd0587a484f3aa892f5fb83202
+MISC ChangeLog 2973 SHA256 c64f5fda0bd7c5b85ed105c0410245787128fd797a38466438b9c21ad90b1c70 SHA512 8969277cbdb514a98605450a55266b6d6ecea56bbfb902faa52315fa1f0f86bf2e28b206445f9dc61b3ed8c2ab850cf6fae02ef779085638e34ac476cdde1c5c WHIRLPOOL 7b3e2ad552957eddb7b616e0cc7d16bc91df3ef4d5bf13f6b46f7fb297a9d578340ed4fe4504318c7de6618d28987ae04b69e66f2f270199f01269c63acdec10
+MISC ChangeLog-2015 562 SHA256 336891e9a37e90ccbf1b08ca2da0265cab072f5dc3ae10aa90296b7cd3f4ab60 SHA512 4c51cacdc677584f81799d5de53951907d7483b26456899711c50caeca6def9670705fba10464a148c67f552e956e0c176079caa40e02c440b14d01c15680114 WHIRLPOOL 38fc5cfd669714d9deff182d5050d4ee17dfcc5a2ccbbe54c18c7b26fc46ce9390909ec705bf64e73136b6bd64de9edf202dfcffe5c4f4744cc42ef3c6da035f
+MISC metadata.xml 423 SHA256 705d8d1d1fcd7368b90c4f386374c2d1c44853036564040a5112b253b1d3d28f SHA512 b0e5a076e61cb0563cf6a5d9dd5254d96c7c1a00cf1a9a92404757073faae35e902b8c18a311f4aabe6ff1c22eee9cdeace76037b1de5c75000c28e6bfa33ae4 WHIRLPOOL 3cdb26bd3c6882d030b571a28d1842514933c95ef555aafa843b5200ca9701ce85705e105890c27d77d1003e2e0f7ed5e2201e87d14f82d16ac6f2e4b9d29661
diff --git a/sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch b/sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch
new file mode 100644
index 000000000000..4e94e5b84eb1
--- /dev/null
+++ b/sci-misc/flashdot/files/flashdot-1.1.4-gsl-ocaml.patch
@@ -0,0 +1,23 @@
+Fix errors caused by wrong parameter type:
+* File "mathexpr.ml", line 423, characters 55-56:
+* Error: This expression has type int but an expression was expected of type
+* float
+
+--- flashdot-1.1.4/mathexpr/mathexpr.ml
++++ flashdot-1.1.4/mathexpr/mathexpr.ml
+@@ -419,7 +419,6 @@
+ | "NegativeBinomial" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
+ let n = float'_of_string (aod cont_type "N" "1.0") in
+- (*uncomment this for ocamlgsl > 0.5 ::::let n = int_of_float n in::::*)
+ fun () -> foi (Gsl_randist.negative_binomial rng p n)
+ | "Pascal" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
+@@ -4094,7 +4093,6 @@
+ | "NegativeBinomialPDF" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
+ let n = float'_of_string (aod cont_type "N" "1.0") in
+- (*uncomment this for ocamlgsl > 0.5 ::::let n = int_of_float n in::::*)
+ fun x -> Gsl_randist.negative_binomial_pdf (int_of_float x) p n
+ | "PascalPDF" ->
+ let p = float'_of_string (aod cont_type "P" "1.0") in
diff --git a/sci-misc/flashdot/flashdot-1.1.4-r1.ebuild b/sci-misc/flashdot/flashdot-1.1.4-r1.ebuild
new file mode 100644
index 000000000000..97b4fd7fac5b
--- /dev/null
+++ b/sci-misc/flashdot/flashdot-1.1.4-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Generator for psychophysical experiments"
+HOMEPAGE="http://www.flashdot.info/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~tomka/files/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ocamlopt"
+
+DEPEND="
+ >=dev-lang/ocaml-3.10[ocamlopt?]
+ dev-ml/gsl-ocaml
+ dev-ml/lablgl[glut]
+ dev-ml/ocamlsdl
+ x11-apps/xdpyinfo"
+RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}/${P}-gsl-ocaml.patch"
+)
+
+src_prepare() {
+ default
+ MAKEOPTS+=" -j1 VERSION=${PV}"
+ use ocamlopt || MAKEOPTS+=" TARGETS=flashdot_bytecode BYTECODENAME=flashdot"
+}
+
+src_install() {
+ emake DESTDIR="${D}" CALLMODE=script install
+}
diff --git a/sci-misc/flashdot/metadata.xml b/sci-misc/flashdot/metadata.xml
new file mode 100644
index 000000000000..391f2ee2700c
--- /dev/null
+++ b/sci-misc/flashdot/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+FlashDot is a program for generating and presenting visual perceptual experiments that require a high temporal
+precision.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/gato/Manifest b/sci-misc/gato/Manifest
new file mode 100644
index 000000000000..82cd63f13c9b
--- /dev/null
+++ b/sci-misc/gato/Manifest
@@ -0,0 +1,5 @@
+DIST Gato-1.2.2.tar.gz 274369 SHA256 d353b8af72ad780f0301912f101ea528822d616bea717c7ca84eaeb0609fa42f SHA512 a628827b989f28817bcd427903d09f6571b3c2e571b57242d7c41562e558a00b278e87699565d16bf2584a0c8d33c07bf0a3c5113c9feeff417546a0a712c0c9 WHIRLPOOL 5eb369c6195ecff405e851a8e777a2b9469333031bc849ea03ad957d1370a99940e1887a6b4940a3fbf07968f8c4bed07e93e3c4ac835d72bb33000e9631b76a
+EBUILD gato-1.2.2.ebuild 807 SHA256 c74029e7b5aa6fc626efa8a416b1ac3f4ffb72afb7902b71de551f2f7b7405bc SHA512 a1335b105404cb9730470b9429dfa7ebc8a3aab4dce1d48422e74b2c2621ee5f010cda485688a06b1958b1b342802f421df55f6cb0396e49199ea10c6e7ac125 WHIRLPOOL 600b0ae9f344a629523b3dddda8cd69ccdaab21dd1bb72a81d1bf062a7c3e2472b8b351199f0b0258a20bd0516c2d06ec73be561e61b4f51206f0d6d5cc5841b
+MISC ChangeLog 2819 SHA256 fba43fabc1d3137d0c7bfe7b148ce7d436a3d10e4663adb919fae228190674f6 SHA512 94ed35659ada2a9287ba5ccfe88c95a39b65cb563ac9c78b45e7e1d5966c5d8df267555da7878d692061d8e4d737bc0743a0a4d57aa9c5e013274395b4735d73 WHIRLPOOL 54bc4ce42fb8d80f27466b47ec3d902c5092f44b009534be1d0dcced0d93ecc3262681abb880c256adf95f4f010e28e6d8f1d3d8d0d84d839b7b5b32f24cdbef
+MISC ChangeLog-2015 2619 SHA256 dc08c16228f25ec8b258c407a53af08d1306afdf41105e38436579d329e0e805 SHA512 4eb1ec75a81e8b651ff28bd71d77c61e353cd27c5c91dc765f4bc5052f42566b2eacc5d17ec25c57b51b64fd781067260dc2b1c52809b4e5dfdcbd025370516e WHIRLPOOL 586aa7fcf7a05c7376eb3d5312d44897d786df3e8995b5fb35c996eb6543723a736b0849b6048617c95b07360df4be5ca93d6630d228010b31c73f3a9b4453d6
+MISC metadata.xml 498 SHA256 3f386e72a67648889e0616af36c798261ae879533f3747c5799a14c43147ca1c SHA512 49f44f43996e2c7187ed56a032a9f8dd7c36714181ba9b30fda6cb10aec97b1aee5f8a1bcfbe9d150f4864fb09d07a3130746bd938a75006624acba42ac16e51 WHIRLPOOL a6b62d12281092546140800d5b47eb7178189ccd7a6ca5b0114837698c640a415f1c8522487ac2b656258bb7ce9c2f44064f6e025e3fdf4f7c32b4773bb1267a
diff --git a/sci-misc/gato/gato-1.2.2.ebuild b/sci-misc/gato/gato-1.2.2.ebuild
new file mode 100644
index 000000000000..e78b0e32d1d0
--- /dev/null
+++ b/sci-misc/gato/gato-1.2.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="tk(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Graph Animation Toolbox"
+HOMEPAGE="http://gato.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P^}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+S="${WORKDIR}/${P^}"
+
+python_prepare_all() {
+ # change TKinter call to avoid crashing of X
+ sed -i \
+ -e 's:self.overrideredirect(1):self.overrideredirect(0):' \
+ "${S}"/GatoDialogs.py || die "failed to patch GatoDialogs.py"
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ # install data files
+ insinto /usr/share/${PN}
+ doins BFS.* DFS.* sample.cat
+}
diff --git a/sci-misc/gato/metadata.xml b/sci-misc/gato/metadata.xml
new file mode 100644
index 000000000000..fecf4f0d6626
--- /dev/null
+++ b/sci-misc/gato/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Gato - the Graph Animation Toolbox - is a software which visualizes
+ algorithms on mathematical graphs.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gato</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/gt-itm/Manifest b/sci-misc/gt-itm/Manifest
new file mode 100644
index 000000000000..ab7ce4bc8028
--- /dev/null
+++ b/sci-misc/gt-itm/Manifest
@@ -0,0 +1,7 @@
+AUX gt-itm-implicits.patch 2731 SHA256 1f09e133a702f57081e5f3e0f58fc108f1a33abac398305e9cca960f33cff985 SHA512 64dc41be9d914e1df68780576300c54aa8091862b37ae44b5530312b8eaafbda76d97021f62544bce7c57e447959eea5a83c72074a714b4894bf4fddc79b5fe7 WHIRLPOOL d9252b0a26c1f603df92edeb623e35fadee058d73b5dacb76353b998a4513cc3b89616f4af9110f0bdc9b40ed5588b89cb3c12bdf59436b1f9e4a7c2edb9527c
+DIST gt-itm.tar.gz 623345 SHA256 0719947bb6e3a82d0054b6d4c74f5b3615c5583d326c32e11a848dcfed861538 SHA512 e775ac475d40fc753a27fb619f262d701818190fa3be90d587f95e215610918b56b9d67783d4e7e2f55d0064e5b2d2ce911042353b29bce1e4dbcf407ff9fabc WHIRLPOOL c447323fe98b7bef85d5fda86cfa3b559208694519be17ead0d5792dc8b27349a1c2b0bbde4d8a571f609c1c1a66b33b30888165215d332e64ee28b748328bab
+DIST sgb2ns.tar.gz 50635 SHA256 902f1a3d1a57e87387dd3bd22b8fda7c1ee2830f87fa468ab775aa8feb2a22cb SHA512 77ec6fdad61f43bf078851852aa03dfea02df235a78853e477dacc8e2b94c0d8bda9772fc00d18fdaeabc419b2780c016b7a64a1a06ac0be2c8c2aa6608c06cf WHIRLPOOL ae6a0d2701c0a98eb7b059acc8760acc444ca086b4eb60e46cce4df1491012c9b1853cb1acc35c709938103a94f005c379c5bad9630b4a464af7460a3b9e3bfb
+EBUILD gt-itm-19961004-r2.ebuild 2077 SHA256 fa24025910530e93dcf99f7142dbd0380b877df15de48eb5c99c6f2a958b1835 SHA512 eb9a4a175782790a4d473ed74721b3aa13df0fba4fca34831cdca7474059e596e8081fc92ff16024f49d05d8ef40ebad4f88b836145999bf2c9d79b4f6c54e02 WHIRLPOOL 285d46457038dbc321a5928d3618ff03576dfd5eacdb2a4cb920320dae3eb1d3fc68b13e4baf54afffd3f9d9dcf90525ff6ebce005ed1253bbcdd05a5fc4f295
+MISC ChangeLog 2868 SHA256 60cfa52eb37b3b1bd9ec0020dd9cc04fa6a52557756f3c04154657df74d53073 SHA512 2e22dee65e78131ad9ebce4f884ba96cb47d38e471ff0926a975900d9647c4d2238ab39e2ab42ebe800110071a3f57ccaefd892602eac4d635a0ab2d3f478dd2 WHIRLPOOL d46644bac71041a5ab8b26e313c51a85cb80dd2d195fce2798f89da31746b5112f36dc7b67fb5f5751f79ba71b4c65d8cfa365c25c725b4fe29fa9da7a46f04e
+MISC ChangeLog-2015 1526 SHA256 01486300ddfad6e88ecfd28ecaf615406c6205f72b0061b8798404c21080d90a SHA512 ff4df2c61a9568417f6b6ff452a078909588319cd84b9a2e8afdad16145665bba581dc74bb356de14b8ef9f235b92c6539b419f63e5174eb197a50e455b6a485 WHIRLPOOL 3f2f28497a4ab8ca1f39cd0bfedc8469ce9a832356b621649cbc93a68a51935f0c3ca489ab86fdb01d1b1e4c9d90dc7e394fd28341d48109350adcd46d1a2390
+MISC metadata.xml 249 SHA256 d92f4663e317d15aa310d71020356d744cc23e6d8bc8a52ef44a2331a3c37adb SHA512 29a9c1817fd4299246d5fa995b73b9f1996b112b70f468139cf9cd8f07077d831e0788d3b93aaba67bb38dce5850830c27543fccbddbac02b0da4ff899def519 WHIRLPOOL b995ffbeda7d1119f53cf016f0ed502521258c348735fe3b362dc082e0f76cf1a09c0848bcfd8b8bc97d6afc6104628f9c3d116a1a8f4c393b1fcc2471f6ddfe
diff --git a/sci-misc/gt-itm/files/gt-itm-implicits.patch b/sci-misc/gt-itm/files/gt-itm-implicits.patch
new file mode 100644
index 000000000000..7618354469ff
--- /dev/null
+++ b/sci-misc/gt-itm/files/gt-itm-implicits.patch
@@ -0,0 +1,111 @@
+--- gt-itm/src/geog.c
++++ gt-itm/src/geog.c
+@@ -6,6 +6,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/param.h> /* for NBBY */
+ #include <alloca.h>
+ #include <assert.h>
+@@ -31,6 +32,9 @@
+
+ static char geogId[]="$Id$";
+
++long fdiam(Graph *g);
++void die(s);
++
+ double
+ distance(Vertex *u, Vertex *v)
+ {
+--- gt-itm/src/ts.c
++++ gt-itm/src/ts.c
+@@ -8,6 +8,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/types.h> /* for NBBY */
+ #include <alloca.h>
+ #include "gb_graph.h"
+@@ -64,6 +65,10 @@
+ return (x); }
+ */
+
++int td_OK(Vertex *snp,Vertex *dnp);
++long random(void);
++int stubs_OK(Vertex *snp0,Vertex *snp1);
++
+ /* fast diameter computation using Floyd-Warshall
+ * Returns the HOP diameter of the graph, i.e. each edge given UNIT wt.
+ * Leaves the LENGTH diameter of the graph in g->Gldiam.
+--- gt-itm/include/geog.h
++++ gt-itm/include/geog.h
+@@ -74,3 +74,8 @@
+ geo_parms* toppp, /* params for transit connectivity */
+ geo_parms* transpp, /* " " transit domains */
+ geo_parms* stubpp); /* " " stub domains */
++
++void randomize(long* a, long size, long mean, int iters);
++long idist(Vertex *u, Vertex *v);
++int printparms(char *buf,geo_parms *pp);
++int isconnected(Graph *G);
+--- gt-itm/src/edriver.c
++++ gt-itm/src/edriver.c
+@@ -35,6 +35,8 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "gb_graph.h"
+ #include "gb_save.h"
+ #include "gb_dijk.h"
+--- gt-itm/include/eval.h
++++ gt-itm/include/eval.h
+@@ -8,4 +8,7 @@
+ enum Field {Len, A, B, Hops};
+
+ void twofield_sptree(Graph*, Vertex*, enum Field, enum Field);
+-
++int finddegdist(Graph *g, int** degdist);
++void dopaths(Graph *g, enum Field f0, enum Field f1, int *rmin, int *rmax, float *ravg);
++void dodepthdist(Graph *g, int** ddist);
++int bicomp(Graph *g,int verbose);
+--- gt-itm/src/dfs.c
++++ gt-itm/src/dfs.c
+@@ -6,6 +6,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <alloca.h>
+ #include <sys/types.h>
+ #include "gb_graph.h"
+@@ -18,6 +19,8 @@
+
+ #define NBBY 8
+
++int dfs(Graph *G,int n,u_char *vis);
++
+ /* check connectivity of graph g */
+ /* uses depth-first search. */
+ isconnected(Graph *G)
+--- gt-itm/src/itm.c.orig 2010-10-12 17:11:25.748461793 +0200
++++ gt-itm/src/itm.c 2010-10-12 17:13:09.237165705 +0200
+@@ -42,6 +42,7 @@
+ #include <stdlib.h> /* for calloc(),atoi(),etc. */
+ #include <string.h> /* for strtok() */
+ #include "gb_graph.h"
++#include "gb_save.h"
+ #include "geog.h"
+
+ #define LINE 512
+@@ -55,6 +56,7 @@
+ char *delim = " \t\n", *nonestr = "<none>";
+ static char errstr[256];
+
++void die(s);
+
+ char *
+ get_geoparms(FILE * f, geo_parms * pp)
diff --git a/sci-misc/gt-itm/gt-itm-19961004-r2.ebuild b/sci-misc/gt-itm/gt-itm-19961004-r2.ebuild
new file mode 100644
index 000000000000..36c7552cf47e
--- /dev/null
+++ b/sci-misc/gt-itm/gt-itm-19961004-r2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Routines to generate / analyze graphs using models for internetwork topology"
+HOMEPAGE="http://www.cc.gatech.edu/fac/Ellen.Zegura/graphs.html
+ http://www.isi.edu/nsnam/ns/ns-topogen.html#gt-itm"
+SRC_URI="http://www.cc.gatech.edu/fac/Ellen.Zegura/gt-itm/gt-itm.tar.gz
+ http://www.isi.edu/nsnam/dist/sgb2ns.tar.gz"
+
+LICENSE="all-rights-reserved sgb2ns"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror bindist"
+IUSE="doc"
+
+DEPEND="dev-util/sgb"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+S2="${WORKDIR}/sgb2ns"
+
+PATCHES=( "${FILESDIR}"/${PN}-implicits.patch )
+DOCS=( README docs/. )
+
+src_unpack() {
+ unpack sgb2ns.tar.gz
+
+ mkdir "$S" || die
+ cd "$S" || die
+ unpack gt-itm.tar.gz
+}
+src_prepare() {
+ sed -ri -e '/^[[:alnum:]]+\.o:/d' \
+ -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' \
+ -e 's/\$\(CC\)/& \$\(LDFLAGS\)/g' \
+ src/Makefile || die
+ sed -ri -e '/^SYS = -DSYSV/d' \
+ -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' \
+ -e 's/\$\(CC\)/& \$\(LDFLAGS\)/g' \
+ "${S2}"/Makefile || die
+
+ rm -f lib/* || die
+
+ while IFS="" read -d $'\0' -r file; do
+ sed -i -re 's|(\.\./)+bin/||g' "$file" || die
+ done < <(find sample-graphs/ -perm /a+x -type f -name 'Run*' -print0)
+
+ sed -i -e 's|sys/types.h|sys/param.h|' src/geog.c || die
+ sed -i -e '162 s/connected $/connected \\/' src/eval.c || die
+
+ # fix implicit function declarations
+ sed -i -e '/stdio.h/ a\#include <stdlib.h>' \
+ "${S2}/sgb2comns.c" "${S2}/sgb2hierns.c" || die
+ sed -i -e "s/<strings.h>/<string.h>/g" "${S2}/sgb2hierns.c" || die
+ default
+}
+
+src_compile() {
+ emake -C src CFLAGS="${CFLAGS} -I../include" LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)"
+
+ emake -C "${S2}" CFLAGS="${CFLAGS} -I\$(IDIR) -L\$(LDIR)" LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin bin/*
+ einstalldocs
+ newdoc "${S2}"/README README.sgb2ns
+ if use doc; then
+ dodoc -r sample-graphs
+ dodoc "${S2}"/*.{tcl,gb}
+ docompress -x "/usr/share/doc/${PF}/sample-graphs"
+ fi
+}
diff --git a/sci-misc/gt-itm/metadata.xml b/sci-misc/gt-itm/metadata.xml
new file mode 100644
index 000000000000..0c6991d7902b
--- /dev/null
+++ b/sci-misc/gt-itm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-misc/h5utils/Manifest b/sci-misc/h5utils/Manifest
new file mode 100644
index 000000000000..9804b1bedd56
--- /dev/null
+++ b/sci-misc/h5utils/Manifest
@@ -0,0 +1,7 @@
+AUX h5utils-1.12.1-automagic.patch 2226 SHA256 e69b005a086749e530a037f37ca5069473947bfb21b2f9dc98e470c26cc0c69c SHA512 ae8513c6c214fdd17886b65e77c707c08c97b7c72943ea0608cd8f4d269a4f2ef7df579b5746b76b307a77d68b9993860b6cce8cb6793da21123ad9892769999 WHIRLPOOL 2ee48d8bd4847570fcaa9e13daec52689458ccce9db0809933b80e4f9bffec4d7c1be426bd8a12930c835204f6934867341aa65e9b3f3f9ae930579b5b6cf679
+AUX h5utils-1.12.1-png15.patch 1420 SHA256 45e326080589e9e05da81d5a4ce15e0df5991e13f2ded1d3d34e30fa94593c7a SHA512 babc34ab9d585468dabae50d16b7cb59a9326f541c69be5f347189bc6386273a61b9ec3a8a09e00fb2da386ee1fd592f0c85d2c3290134c74d8aa5d1057bd563 WHIRLPOOL d7fd4a9f96d26a34a7e2c312a59ade3bde50ef47712c2bb1c46b4a359534101009c6f22539b4861ec8cfeca8ffc56466fef7c55532bc917c8b8bd1cf7a38d2e7
+DIST h5utils-1.12.1.tar.gz 156785 SHA256 7290290ca5d5d4451d757a70c86baaa70d23a28edb09c951b6b77c22b924a38d SHA512 b4295ac52ddfe922ed9f0a9079c69d6fdba5a261558d8c820a8feae592db3bd57a3394ab1fc9ceead00038a80bc70f32e0a8aa437cb33182899553bfdbf1f547 WHIRLPOOL c717c41545533eb0ba9f7d4813c42e3fbbec3ef292f8461ead0f0dcbe4e7530d64740dffb94cf25e839420ac4633082c06833ea5013a1a9eb276ef516d632f14
+EBUILD h5utils-1.12.1-r2.ebuild 782 SHA256 216d3227a0718003b7c39a8fef8c87595f577a07c043baca69c54ebfc994b6f3 SHA512 45c664a647f17326dc16cf28cfbfe75ad4685122ad9ccfd1ed952d6e4ed2fefd6a234875ebeccea5d063e1210eeaae5f4e3ddbe5430437ec59dff9f3c72ad29c WHIRLPOOL 0627e4bfebf9f83c2f345bf8cd957dc0687ac5dbe6c9b47567bdfc9ee1658df81939c9790f5b1e588928ac64a4e7fa077a3d922bf2a75a45551c7e9fefecc0f9
+MISC ChangeLog 2644 SHA256 1967dabd83740b5b67126ada96e75f5d50c34e3f5a8465177a5005074e57161f SHA512 fd856cf8f8a8e7f42c38a1541de4c2b94449ac6669bd29026bb6fc36ad9346df488c8b91ef86a7e057aadfce3ab97a4be25497e2f0d115d020a0c15951491f9d WHIRLPOOL 9973a8f26de96f4bc177760444bc5a64a209e621648c2b8a8b25857500c52ccc0e5f331813d9bdabee05d8420082eac4a534abb81b25c288795c69eec22fc157
+MISC ChangeLog-2015 3596 SHA256 f1f72b55ff17aa4d651d72f3f63cb5fe00f5285bc507098c2a6954663bb3a37c SHA512 b582a8c5dce6ee42b4024a29f86a9e5a40a729cbe662d71ddfd4f5c7508356a08b3e6c2151d22d59510684bcf050aa75f321892693711863d07054b43e86625a WHIRLPOOL e244545dc2583a7da0eff329a69489c2a57f6ec5ffc804e3d2556539f056f0803ccb5d94dac91ea59bb986b9dd05b610def0aeed2b329c815a8ab9828e5a063e
+MISC metadata.xml 776 SHA256 5b09721d6677567cc38fe570312ecff24448c85233e24bb4a9ec22886ab119a6 SHA512 12bda28a2fd9022d8472f81afc827b1329ab84598e8a91a7170bfeffb4b55953b37a9504bffc58933c352ebbdd25beb781e570d5f8de9759a290c4476a40afd1 WHIRLPOOL f128335014d993436afc73bedda18101743f943bf271528a399e550fb107b0c5d9f71b57cf2d424e0edd25ab32950bd6668675c108a1ace5be6d065f31b8ebfa
diff --git a/sci-misc/h5utils/files/h5utils-1.12.1-automagic.patch b/sci-misc/h5utils/files/h5utils-1.12.1-automagic.patch
new file mode 100644
index 000000000000..8de8580cfe38
--- /dev/null
+++ b/sci-misc/h5utils/files/h5utils-1.12.1-automagic.patch
@@ -0,0 +1,63 @@
+--- configure.ac
++++ configure.ac
+@@ -74,44 +74,23 @@
+
+ ###########################################################################
+
+-# Only build h5fromh4 if we are using a version of HDF5 prior to 1.4, and
+-# thus don't have the superior h4toh5 utility. Similarly for h5toh4.
+-AC_CHECK_PROG(H4TOH5, h4toh5, h4toh5)
+-AC_CHECK_PROG(H5TOH4, h5toh4, h5toh4)
+-
+-AC_ARG_WITH(hdf4,
+- [AC_HELP_STRING([--with-hdf4], [build hdf4 utils even if h4toh5 and h5toh4 are present])],
+- ok=$withval, ok=maybe)
+-if test "x$ok" = xyes; then
+- H4TOH5=""
+- H5TOH4=""
+-elif test "x$ok" = xno; then
+- H4TOH5="h4toh5"
+- H5TOH4="h5toh4"
+-fi
+-
+-HDF4=no
+-if test "x$H4TOH5" != xh4toh5 -o "x$H5TOH4" != xh5toh4; then
+- AC_CHECK_LIB(jpeg, jpeg_start_compress,
+- [AC_CHECK_LIB(df, DFSDgetdata,
+- [H4_LIBS="-ldf -ljpeg"; HDF4=yes],
+- [AC_MSG_WARN([can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5])], -ljpeg)],
+- [AC_MSG_WARN([can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5])])
+-
+- if test $HDF4 = yes; then
+- if test "x$H4TOH5" != xh4toh5; then
+- MORE_H5UTILS="h5fromh4\$(EXEEXT) $MORE_H5UTILS"
+- MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
+- fi
+- if test "x$H5TOH4" != xh5toh4; then
+- MORE_H5UTILS="h4fromh5\$(EXEEXT) $MORE_H5UTILS"
+- # MORE_H5UTILS_MANS="h4fromh5.1 $MORE_H5UTILS_MANS"
+- fi
+- fi
+-fi
+-AC_CHECK_HEADERS(hdf.h hdf/hdf.h)
++AC_ARG_WITH([hdf], AS_HELP_STRING([--with-hdf], [build hdf4 utils even if h4toh5 and h5toh4 are present]))
+
+-AC_SUBST(H4_LIBS)
++AS_IF([test "x$with_hdf" = "xyes"], [
++ AC_CHECK_HEADERS(hdf.h hdf/hdf.h)
++ AC_CHECK_LIB(jpeg, jpeg_start_compress,
++ [AC_CHECK_LIB(df, DFSDgetdata,
++ [H4_LIBS="-ldf -ljpeg"; HDF4=yes],
++ [AC_MSG_WARN([can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5])], -ljpeg)],
++ [AC_MSG_WARN([can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5])])
++ if test $HDF4 = yes; then
++ MORE_H5UTILS="h5fromh4\$(EXEEXT) $MORE_H5UTILS"
++ MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
++ MORE_H5UTILS="h4fromh5\$(EXEEXT) $MORE_H5UTILS"
++ fi
++
++ AC_SUBST(H4_LIBS)
++])
+
+ ###########################################################################
+
diff --git a/sci-misc/h5utils/files/h5utils-1.12.1-png15.patch b/sci-misc/h5utils/files/h5utils-1.12.1-png15.patch
new file mode 100644
index 000000000000..e611310145eb
--- /dev/null
+++ b/sci-misc/h5utils/files/h5utils-1.12.1-png15.patch
@@ -0,0 +1,43 @@
+Fix build with png-1.5.
+
+https://bugs.gentoo.org/show_bug.cgi?id=378919
+
+Patch stolen from NetBSD
+--- writepng.c
++++ writepng.c
+@@ -240,6 +240,8 @@ void writepng(char *filename,
+ double skewsin = sin(skew), skewcos = cos(skew);
+ REAL minoverlay = 0, maxoverlay = 0;
+ png_byte mask_byte;
++ png_colorp palette = NULL;
++
+
+ /* we must use direct color for translucent overlays */
+ if (overlay)
+@@ -309,7 +311,7 @@ void writepng(char *filename,
+ }
+ /* Set error handling. REQUIRED if you aren't supplying your own *
+ * error hadnling functions in the png_create_write_struct() call. */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* If we get here, we had a problem reading the file */
+ fclose(fp);
+ png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
+@@ -334,8 +336,6 @@ void writepng(char *filename,
+ PNG_INTERLACE_NONE,
+ PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
+ else {
+- png_colorp palette;
+-
+ png_set_IHDR(png_ptr, info_ptr, width, height, 8 /* bit_depth */ ,
+ PNG_COLOR_TYPE_PALETTE,
+ PNG_INTERLACE_NONE,
+@@ -434,7 +434,7 @@ void writepng(char *filename,
+ png_write_end(png_ptr, info_ptr);
+
+ /* if you malloced the palette, free it here */
+- free(info_ptr->palette);
++ free(palette);
+
+ /* if you allocated any text comments, free them here */
+
diff --git a/sci-misc/h5utils/h5utils-1.12.1-r2.ebuild b/sci-misc/h5utils/h5utils-1.12.1-r2.ebuild
new file mode 100644
index 000000000000..21e5cd401489
--- /dev/null
+++ b/sci-misc/h5utils/h5utils-1.12.1-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Utilities for visualization and conversion of HDF5 files"
+HOMEPAGE="http://ab-initio.mit.edu/h5utils/"
+SRC_URI="http://ab-initio.mit.edu/h5utils/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux"
+IUSE="hdf octave"
+
+DEPEND="
+ media-libs/libpng:0=
+ sci-libs/hdf5:0=
+ sys-libs/zlib:0=
+ hdf? (
+ sci-libs/hdf:0=
+ virtual/jpeg:0
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-automagic.patch
+ "${FILESDIR}"/${P}-png15.patch
+)
+
+src_configure() {
+ local myeconfargs=(
+ --without-v5d
+ $(use_with octave)
+ $(use_with hdf)
+ )
+ autotools-utils_src_configure
+}
diff --git a/sci-misc/h5utils/metadata.xml b/sci-misc/h5utils/metadata.xml
new file mode 100644
index 000000000000..8e79e03dfc80
--- /dev/null
+++ b/sci-misc/h5utils/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+<longdescription>
+ h5utils is a set of utilities for visualization and conversion of
+ scientific data in the free, portable HDF5 format.
+ Besides providing a simple tool for batch visualization as PNG images,
+ h5utils also includes programs to convert HDF5 datasets into the
+ formats required by other free visualization software (e.g. plain
+ text, Vis5d, and VTK).
+</longdescription>
+<use>
+ <flag name="octave">Build Octave plugins</flag>
+ <flag name="hdf">Build hdf to hdf5 (and vice-versa) converter</flag>
+</use>
+</pkgmetadata>
diff --git a/sci-misc/lttoolbox/Manifest b/sci-misc/lttoolbox/Manifest
new file mode 100644
index 000000000000..9803f19779c3
--- /dev/null
+++ b/sci-misc/lttoolbox/Manifest
@@ -0,0 +1,5 @@
+DIST lttoolbox-3.3.3.tar.gz 454916 SHA256 5ccfc98bd71e1c9cbb952f3b01a6f615cf580f39ce74cdcb7221fc9b48f40617 SHA512 2e6338d39d2f16641c408076bd1d3b29fcd11e2d83e622b93fb7b91bae8eb92f58eacf978c72647d2872119be28b76093fc4afbfe22d7e9a62e1a87d818f9a3c WHIRLPOOL 164b8cc010692bbb5ecfdee80c25204f73bfef9aae7945987267ac230b9f3b070ba900ea8bb04c6347428611a3f48ee47cf4ba126e1b7735c7b9d45e5fe69880
+EBUILD lttoolbox-3.3.3.ebuild 554 SHA256 f1038b1136825ef4b23825011dd886bad3876cf34161b59c7b041aca16cb5756 SHA512 b336fe08dae2e2e0fe3dcfec190a17c88853394ce88d5950af61ed2fb3c96b500cc145bec95623ac508ef0267bf1b8bcdf09e4c54573f40d910db56ead31f763 WHIRLPOOL c3ecdb1322109e4e60eec0b90dc729aed903067d6368543a1ce6d5caf0a70054136d1c930540f280d93105243d07f30b52daa02d0688429d01098c5a585e4aae
+MISC ChangeLog 3091 SHA256 89fcfb3d79b051e9e7eb700e5af22abf5a95aad014246233b461d6e8f84fb994 SHA512 42456927d9c134398b97acfd656d05a4bba4a1e40a8a811555593f54395f85ee3c3c588c9e6c72752b07fc5c1abd9e540b774ac20ba95ca5146e299037a5022d WHIRLPOOL a31d1c13347d48c70577d2b6dd29339d3c3f37c816b8ff6e8172406492c411cd8f6c71caec72acb9c4957c943cad6cd65f1389f9fa3637609799aa6d7a445f54
+MISC ChangeLog-2015 1040 SHA256 3ce8554b23e698f07c8804a673125ab17eefdf6d64a7d2a533ecbb1857241c98 SHA512 eb621e861350c27e5a1779ac729a983c96e8763a4f247511b4b2c6693c49edaf1c84520a2ddbe3eb5f81ee8803b2b406fbd320b4301840f33be385f3b5ad045d WHIRLPOOL 71fee3790786a43bd4897155d60e0c096727ce5ff1a8a4a6bde301db4a6b8719cdf1795bcb8ff72ac2b712818e368897ac6666295ff3577087f5dc864dde8a58
+MISC metadata.xml 488 SHA256 3b93757864bdafb843ee000b8f452074ce9a4840b207ce23e22d0152f3757e18 SHA512 5abaa0614a2dfd2ddc315783288bf268288a2ab0c8f1780a7f17275e33e1c79c378a58b817a5c78e03250b6660ca45d1a6a9123c6b245d5d52fd4ad574d6d796 WHIRLPOOL 8b838ac83157c30d2699a72bbe02b7937f1998803b5f525bc2a8c3b078788e73dd843944445c8a383d59c191f1364d36cf4fd3a319511b3433574d2826bba4f1
diff --git a/sci-misc/lttoolbox/lttoolbox-3.3.3.ebuild b/sci-misc/lttoolbox/lttoolbox-3.3.3.ebuild
new file mode 100644
index 000000000000..ad7dca2d16a2
--- /dev/null
+++ b/sci-misc/lttoolbox/lttoolbox-3.3.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Toolbox for lexical processing, morphological analysis and generation of words"
+HOMEPAGE="https://www.apertium.org"
+SRC_URI="mirror://sourceforge/apertium/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/libxml2:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
diff --git a/sci-misc/lttoolbox/metadata.xml b/sci-misc/lttoolbox/metadata.xml
new file mode 100644
index 000000000000..245527681fb4
--- /dev/null
+++ b/sci-misc/lttoolbox/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ lttoolbox is a toolbox for lexical processing, morphological analysis and
+ generation of words
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">apertium</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest
new file mode 100644
index 000000000000..ed0761d7204f
--- /dev/null
+++ b/sci-misc/mendeleydesktop/Manifest
@@ -0,0 +1,9 @@
+AUX mendeleydesktop-1.17.8-libdir.patch 578 SHA256 2e82326600f7f1aefb89b8e345dc008ac76425dbae9677a7b78214c4a2f90f90 SHA512 80aa6539af89efacc382929331ebe0c3a682329cb167d45baa8f6eb85391d6112218fc468cd4525d76afbea568599860aa53d1296e6733d266a30522fde1fa16 WHIRLPOOL 0ff7efff0a34d97a338743a9497f7da4d26f6bd6ee08649b49d35fd63f2dd6a0e9574538b762db28750e4df1df2e6bf899e254574fd408b15d3563e2755ba3a8
+AUX mendeleydesktop-1.17.8-qt5plugins.patch 604 SHA256 111fef074556e2dcd8d9c46866aa960e18c57fac2c47f866283e309527b28542 SHA512 c2f95d8a5cca3b2cc57ded01e9bda21bd4eed990035bff1864a2b751b5cc57821b1ab5fec9b1be52a17be34e4d15a487b19133afc08a05fac50b13975e002daa WHIRLPOOL 6410d0bb54ccec554890b1d0f38c79bd7bffb8d25be989d7b1a397bee272c966aae72c8f7b3b6f097b22384213a53fb890a3056514db95c4d634da06f1ffd0ea
+AUX mendeleydesktop-1.17.8-unix-distro-build.patch 599 SHA256 34b683e5dda34a861cdc5e8886a0a014dddb592d31cb5fedffa77bad6d629653 SHA512 2de6e5ff400871cfbfda3572566ec83db81fcc12aed9f8dc63c5f8a9b32cc4cf985dcfe02d56548351999c94b2d575585ee779547714aae932cf9fb042ace644 WHIRLPOOL e17b9722bcb7fde09acf132bfd637f6c50a00f0e6ffa817900c6b7083d99e6ac3311f87cb87f3c729c2c5413d27d714fc6505cda63020aacc72b0e8d74c4d458
+DIST mendeleydesktop-1.17.9-linux-i486.tar.bz2 130729175 SHA256 f904bbd00b346bb7541563205453cdf74e61dd709b667e808785ccd44f67b37e SHA512 e7d307eb96b8d59d5cd16d12ff1b58082dcd67c76863d6c672f2e7340107d943e46f39fa91b1f2d1485eb6d2cadca96b01d6ecbedf5d9bb448593abcb88bbaca WHIRLPOOL 23b7b9d2c68994431f749aab813831fe2420db50e2a032885bda37549d82c23fe19ad53e8fec9bbb29a76c0923969debe7d345f2803ab8d92bb4ce2eb08e87e2
+DIST mendeleydesktop-1.17.9-linux-x86_64.tar.bz2 125308028 SHA256 af062ef5c2129d718a1a612c15acfbc9891e747243c4ebc00f21cc3177a446f5 SHA512 a244716d0620a3553411eb7b1fdb2502cc32837a77db95e2bcae6a12016606abf53410a9e3119a858e188d0ad663f5191b06de22fb6915424c9495851ed6a36f WHIRLPOOL d398cf6ce34ca875de1791fcd29589db432d34ff98e100ed5815664073e7bc1740c5ac7e85f996d872c37b80027c8972bbbf6a3df2a270bce8f7afb579476cc2
+EBUILD mendeleydesktop-1.17.9.ebuild 2885 SHA256 c53c722049c41d05632afcd2d47649a12c2940ac0d68c46974a2885b6f73a1c8 SHA512 0c526daee21a9ba738edb3f7834e44f30a1022e53afa820e5f24af3ca208f96859190330d9bf68dea9efb2189659529268a5c667b854e10f9dce28a0aa559e28 WHIRLPOOL 4041cdd09bfbf675a7df0590c478cf48663beb25c96b4c05ee8ebc4aaef95611a57a358f52169da7a7332c437bd93e3cd4f3cd04d1324511ba86491554596ee1
+MISC ChangeLog 4092 SHA256 efdb5b93467977884b0374465c5d36dceb5dce9be44eae462fb44b84e4c2afeb SHA512 8ea4a11c9def7883462d859fb11e39660fe65187e2968fcd95b4c8e514f3c5be233b8944a1131e21c07d3e06e93c7a667a8a3d6b902473cacd5cf6f65fb2ddd9 WHIRLPOOL 84b3c94e3f95765a15d85031d46478a26ba327c090a9c2676398549bcccd5ee008d8481dbdc6272672b51da7345c78457a2e5944a7f8c9cfec2aea8fc425b920
+MISC ChangeLog-2015 5636 SHA256 d6df81df58fce809faf5329e1a5c6a7ebf5ef16af52bb364865136252b630490 SHA512 e08180bbc351390727642451661f58490f73057cfbb6dddf0b232e428183e943b59bc5cbc7daf4b68eef510445d2abdf1a06d874ac1993220b5cf479174da941 WHIRLPOOL 58afce3c306181987feec8108917e0a7127162d124f992540fb2c524a55663c50f383e729382c5a3c9970d626bd284ac09850af806105ea72164c3fbe3b68f7b
+MISC metadata.xml 588 SHA256 84f7d764ffa988c1c34ffde69ad5efd97e63e329b62969123f605480050f9ea2 SHA512 d92c21ff3c738f7c5a8a3d7db178ceedbbd15fbf613c4b68d94cc0f0a814311d1c15511bae96d88317f365249dbafd55550289ae178361e214f099f59a27629c WHIRLPOOL bbfc6bc35d7162558938a436332c2e14730fa8fc05c8ab38d1675c081078c854dcb5b750a73ced485bcbc89e05ee6afdd6a2123eb28651ce26551ded79c26089
diff --git a/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-libdir.patch b/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-libdir.patch
new file mode 100644
index 000000000000..67ba57fca05f
--- /dev/null
+++ b/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-libdir.patch
@@ -0,0 +1,19 @@
+Patch to find libstdc++.
+
+https://bugs.funtoo.org/browse/FL-3519
+--- a/bin/mendeleydesktop
++++ b/bin/mendeleydesktop
+@@ -29,6 +29,13 @@ def library_paths():
+ paths.append("/usr/lib/x86_64-linux-gnu")
+ paths.append("/usr/lib/i386-linux-gnu")
+
++ gcc_libpath = subprocess.Popen(
++ '/usr/bin/gcc-config -L', shell=True, stdout=subprocess.PIPE,
++ ).stdout.read().decode('utf-8').replace('\n', '').split(':')
++ for path in gcc_libpath:
++ if len(path) > 0:
++ paths.append(path)
++
+ return paths
+
+ def library_version_from_path(lib_path):
diff --git a/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-qt5plugins.patch b/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-qt5plugins.patch
new file mode 100644
index 000000000000..49395a46a0f7
--- /dev/null
+++ b/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-qt5plugins.patch
@@ -0,0 +1,15 @@
+Patch to find qt5 plugins.
+
+Patch by Marius Brehler <marbre@linux.sungazer.de>
+--- a/bin/mendeleydesktop
++++ b/bin/mendeleydesktop
+@@ -75,7 +83,7 @@ def get_paths():
+ else:
+ results['MENDELEY_BIN'] = results['MENDELEY_BASE'] + "/lib/mendeleydesktop/libexec/mendeleydesktop.i486"
+
+- results['MENDELEY_BUNDLED_QT_PLUGIN'] = results['MENDELEY_BASE'] + "/lib/mendeleydesktop/plugins/"
++ results['MENDELEY_BUNDLED_QT_PLUGIN'] = "/usr/lib/qt5/plugins"
+
+ # Path to Mendeley Desktop and PDFNet libraries
+ results['MENDELEY_LIB'] = results['MENDELEY_BASE'] + "/lib/"
+
diff --git a/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-unix-distro-build.patch b/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-unix-distro-build.patch
new file mode 100644
index 000000000000..dffd69df6b56
--- /dev/null
+++ b/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-unix-distro-build.patch
@@ -0,0 +1,16 @@
+Patch to force --unix-distro-build.
+
+Patch by Marius Brehler <marbre@linux.sungazer.de>
+--- a/bin/mendeleydesktop
++++ b/bin/mendeleydesktop
+@@ -159,10 +167,7 @@ def mendeley_desktop_arguments():
+ """ Returns a list with the argumetns to be appended to Mendeley Desktop. """
+ extra_args = sys.argv[1:]
+
+- if is_linux_distro_build():
+- # Enable Linux distro specific changes (eg. in auto-update
+- # handling)
+- extra_args = extra_args + ["--unix-distro-build"]
++ extra_args = extra_args + ["--unix-distro-build"]
+
+ use_debugger = sys.argv.count("--debug") > 0
diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild
new file mode 100644
index 000000000000..bbe2006a449c
--- /dev/null
+++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit eutils fdo-mime multilib python-single-r1
+
+MY_P_AMD64="${P}-linux-x86_64"
+MY_P_X86="${P}-linux-i486"
+
+DESCRIPTION="Research management tool for desktop and web"
+HOMEPAGE="http://www.mendeley.com/"
+SRC_URI="
+ amd64? ( ${MY_P_AMD64}.tar.bz2 )
+ x86? ( ${MY_P_X86}.tar.bz2 )
+ amd64-linux? ( ${MY_P_AMD64}.tar.bz2 )
+ x86-linux? ( ${MY_P_X86}.tar.bz2 )"
+
+LICENSE="Mendeley-terms"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RESTRICT="fetch"
+
+DEPEND=""
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtpositioning:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwebengine:5[widgets]
+ dev-qt/qtwebkit:5
+ dev-qt/qtxml:5
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/libX11
+ ${PYTHON_DEPS}"
+
+QA_PREBUILT="/opt/mendeleydesktop/.*"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.17.8-libdir.patch
+ "${FILESDIR}"/${PN}-1.17.8-qt5plugins.patch
+ "${FILESDIR}"/${PN}-1.17.8-unix-distro-build.patch )
+
+pkg_nofetch() {
+ elog "Please download ${A} from:"
+ elog "http://www.mendeley.com/download-mendeley-desktop/"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${WORKDIR}" || die
+
+ if use amd64 || use amd64-linux ; then
+ mv -f "${MY_P_AMD64}" "${P}" || die
+ else
+ mv -f "${MY_P_X86}" "${P}" || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ # remove bundled Qt libraries
+ rm -r lib/mendeleydesktop/plugins \
+ || die "failed to remove plugin directory"
+ rm -r lib/qt || die
+
+ # fix qt library path
+ sed -e "s:/usr/lib/qt5/plugins:${EROOT}usr/$(get_libdir)/qt5/plugins:g" \
+ -i bin/mendeleydesktop || die
+
+ # fix library paths
+ sed -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \
+ -e "s:MENDELEY_BASE'] + \"/lib/\":MENDELEY_BASE'] + \"/$(get_libdir)/\":g" \
+ -i bin/mendeleydesktop || die
+}
+
+src_install() {
+ # install menu
+ domenu share/applications/${PN}.desktop
+
+ # install application icons
+ insinto /usr/share/icons
+ doins -r share/icons/hicolor
+
+ # install default icon
+ insinto /usr/share/pixmaps
+ doins share/icons/hicolor/48x48/apps/${PN}.png
+
+ # install documentation, but no license file
+ dodoc share/doc/${PN}/Readme.txt
+
+ # install binary
+ python_fix_shebang bin/${PN}
+ into /opt/${PN}
+ dobin bin/*
+
+ # install libraries
+ dolib.so lib/lib*.so*
+
+ # install programs
+ exeinto /opt/mendeleydesktop/$(get_libdir)/mendeleydesktop/libexec
+ doexe lib/mendeleydesktop/libexec/*
+
+ # install shared files
+ insinto /opt/${PN}/share
+ doins -r share/mendeleydesktop
+
+ # symlink launch script
+ dosym /opt/mendeleydesktop/bin/mendeleydesktop /opt/bin/mendeleydesktop
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/sci-misc/mendeleydesktop/metadata.xml b/sci-misc/mendeleydesktop/metadata.xml
new file mode 100644
index 000000000000..3f93cc78c978
--- /dev/null
+++ b/sci-misc/mendeleydesktop/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>marbre@linux.sungazer.de</email>
+ <name>Marius Brehler</name>
+ </maintainer>
+ <longdescription>
+Mendeley(TM) is a free reference manager and academic social network that can
+help you organize your research, collaborate with others online, and discover
+the latest research.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/metadata.xml b/sci-misc/metadata.xml
new file mode 100644
index 000000000000..79b7decbf496
--- /dev/null
+++ b/sci-misc/metadata.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The sci-misc category contains various miscellaneous science
+ applications which do not fit any other sci-* category.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie sci-misc enthält verschiedene wissenschaftliche
+ Anwendungen, welche in keine der anderen sci-* Kategorien
+ hineinpassen.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría sci-misc contiene varias aplicaciones relacionadas con la
+ ciencia que no encajan en las otras categorías sci-*.
+ </longdescription>
+ <longdescription lang="ja">
+ sci-miscカテゴリーには他のsci-カテゴリーに分類されない
+ 多種多様なサイエンス・アプリケーションが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De sci-misc categorie bevat pakketten die niet in een andere
+ sci-* categorie passen.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm sci-misc chứa các phần mềm khoa học không thích hợp
+ trong các nhóm sci- khác.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria sci-misc contiene varie applicazioni scientifiche
+ che non sono classificabili nelle altre categorie sci-.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria sci-misc contém várias aplicações científicas mistas
+ que não se encaixam nas outras categorias sci-*.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria sci-misc zawiera różne dodatkowe pakiety, które nie pasowały
+ do innych kategorii sci-*.
+ </longdescription>
+</catmetadata>
+
diff --git a/sci-misc/nco/Manifest b/sci-misc/nco/Manifest
new file mode 100644
index 000000000000..293c82112357
--- /dev/null
+++ b/sci-misc/nco/Manifest
@@ -0,0 +1,7 @@
+DIST nco-3.9.9.tar.gz 4109201 SHA256 cdfd7cf47aef49b32e4e581bc7d2d6cdd05312ed88a2a0cfaf83c520e665b142 SHA512 883d77413aed29982df3be531c458bbbc8c46201783593a71745b993287356aec4c664a080f05da1f2d550d32d2553d55eff7372807d20b4e6dba7bdff282400 WHIRLPOOL 7bf120f96522808dcb3e9a08d6da419a82519f8d4cefcefc98752c6368eaddb832cd21e84e67a6e0caf98adfb5d652bf2b8566cb54d5f403da294550da459200
+DIST nco-4.5.1.tar.gz 4406757 SHA256 c9a34b1f649635093e219604479b0aa4fd2d400aaee4328577443642ed2920ae SHA512 69c19cc9502272adada329dae669fc1c263a360789963253315e81ce1534647b9172b39a0fd3c0f0f453bf903c8a8a4b0e3f0eb778390e43b64eede3a0478485 WHIRLPOOL 868fc67f0bb5c43f8b00a1479de428d0b2e9bdfed75ed4983baf05dee266d6750e43ead70a1bef16d693f2f47bc343c16a1fdd0cf77cabb36595fd8043a7844d
+EBUILD nco-3.9.9.ebuild 1599 SHA256 105b6e2bcde3ba70255f675dbfe10fb3a9216da3a4e19e7c56ccfcb454a13cdc SHA512 9601e68f6432ab1f8e1df0aaf4718213acdf7c14455be67588fe451fde7c8d7fd9ca8a770e12704e4bcdeaa7a3f1a4460e2173b7a2cd126b589a801e4e471a52 WHIRLPOOL 949ef9b9e87ff4478d09fce559e107daddc5ff63f1f1612a7b7b792b20667e8e6ab15e57da828ed3ca02a09cbe4b330ac4aa623194955d3fa43ee9b998b850ab
+EBUILD nco-4.5.1-r2.ebuild 1196 SHA256 8e3edc4dd40e0ff6d233dd05e8a8c9c9c71e2ed938d3c61e6dcb63b1399522e3 SHA512 1bed70fbed0f83edb7e54ac3bfaa8a670b3cf8cc3bc8060335b775b9b8db90fe6b91ffb40a758367c8a238a6b2d48ea684bfd6e11c26d459ee453782fe8fd623 WHIRLPOOL 85879f50e45e81f37507d6f1a2b2b01f889d1773ec337db0416868e7b5475466a028bd2e0895c58c18bb12f8ffeb6362ac8e55c95ebd5b2934778ad17525aa3c
+MISC ChangeLog 3798 SHA256 0fad3abb0b6b11654ae3cd577d125bc44c842c287a3d15e871aa3dce8151a713 SHA512 d212c181938b122d8adef03980521c2412355e2097b09c3e6d13a7b0bdb4278e7a4365fc7dc0db2c1824fc2c064ea21a30a6e9dd17ad5eec57107fafe36dbab7 WHIRLPOOL 444934c63df47368344d28d8127df3cb511fb80f73fcec7f8b25ac91f606d2aca7685b36f2a3cf06502d4418d14745b2978fe3844a594ee52346ca4ed50e7b63
+MISC ChangeLog-2015 4463 SHA256 cb5ea467ea518066b77af83fbc9fae702c9369a03030595703c7ac465edea1cb SHA512 cceb1e039e2a88069667cff2006e769f94e353aad7ad95a350855421b3c90e5f1a4c1b655956ae516a8ead257c21d0dacce8ee89c146e5a713ac5504f29f6c6c WHIRLPOOL f016b01fe9f95d02c5a005221e27799c6bb4fa633185b500b3005b78af62a98ced67462a191ef8a8c8c7fa2cd7d80a2999e13df2420e98d93b7195a2392ac495
+MISC metadata.xml 1144 SHA256 468135cf85c5e032d2614a0fabfd4fefe76dd2ffa3b11027f164c7963d2ff966 SHA512 8fe5125db677eb40be700176d5aba6f7f59f345a79c2b07aad5892ec18abe43c176be8bc2b2a02c4daa9b10c4ba908c6028d33faae521653c32a71964daaa880 WHIRLPOOL 155bb319490fca3a5ec0acb1ca1786808e40e894b35384ace7cd16a5e983d9d3581f09abc15f6c1612730be022632bfcf8e2fba7a8e8519e9c42aad611c73547
diff --git a/sci-misc/nco/metadata.xml b/sci-misc/nco/metadata.xml
new file mode 100644
index 000000000000..343898276450
--- /dev/null
+++ b/sci-misc/nco/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Command-line operators to analyze netCDF files
+ NetCDF Operator is a suite of programs known as operators. The
+ operators are stand-alone, command-line programs executable in a POSIX
+ shell. Operators take one or more netCDF files as input, perform an
+ operation (e.g., averaging or hyperslabbing), and produce a netCDF
+ output file. NCO was originally designed to manipulate and analyze
+ climate data, though it works on any netCDF format datasets.
+ </longdescription>
+ <use>
+ <flag name="dap">Support for remote data access with the NETCDF DAP client</flag>
+ <flag name="ncap2">Build next generation netcdf arithmetic processor
+ (needs <pkg>dev-java/antlr</pkg>)</flag>
+ <flag name="udunits">Add <pkg>sci-libs/udunits</pkg> files support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">nco</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/nco/nco-3.9.9.ebuild b/sci-misc/nco/nco-3.9.9.ebuild
new file mode 100644
index 000000000000..17372725724e
--- /dev/null
+++ b/sci-misc/nco/nco-3.9.9.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils flag-o-matic
+
+DESCRIPTION="Command line utilities for operating on netCDF files"
+SRC_URI="http://dust.ess.uci.edu/nco/src/${P}.tar.gz"
+HOMEPAGE="http://nco.sourceforge.net/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE="doc mpi ncap2 udunits"
+
+RDEPEND="sci-libs/netcdf
+ mpi? ( virtual/mpi )
+ udunits? ( >=sci-libs/udunits-2 )"
+
+DEPEND="${RDEPEND}
+ ncap2? ( !mpi? ( dev-java/antlr:0 ) )
+ doc? ( virtual/latex-base )"
+
+pkg_setup() {
+ if use mpi && use ncap2; then
+ elog
+ elog "mpi and ncap2 are still incompatible flags"
+ elog "nco configure will automatically disables ncap2"
+ elog
+ fi
+}
+
+src_configure() {
+ local myconf
+ if has_version ">=sci-libs/netcdf-4" && built_with_use sci-libs/netcdf hdf5; then
+ append-cppflags -DHAVE_NETCDF4_H
+ myconf="--enable-netcdf4"
+ else
+ myconf="--disable-netcdf4"
+ fi
+ econf \
+ ${myconf} \
+ --disable-udunits \
+ $(use_enable ncap2) \
+ $(use_enable udunits udunits2) \
+ $(use_enable mpi)
+}
+
+src_compile() {
+ emake || die "emake failed"
+ cd doc
+ emake clean info
+ if use doc; then
+ VARTEXFONTS="${T}/fonts" emake html pdf || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ cd doc
+ dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \
+ || die "dodoc failed"
+ doinfo *.info* || die "doinfo failed"
+ if use doc; then
+ dohtml nco.html/* || die "dohtml failed"
+ insinto /usr/share/doc/${PF}
+ doins nco.pdf || die "pdf install failed"
+ fi
+}
diff --git a/sci-misc/nco/nco-4.5.1-r2.ebuild b/sci-misc/nco/nco-4.5.1-r2.ebuild
new file mode 100644
index 000000000000..850672c5b053
--- /dev/null
+++ b/sci-misc/nco/nco-4.5.1-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+inherit autotools-utils eutils flag-o-matic
+
+DESCRIPTION="Command line utilities for operating on netCDF files"
+HOMEPAGE="http://nco.sourceforge.net/"
+SRC_URI="http://nco.sf.net/src/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="dap doc gsl ncap2 openmp static-libs test udunits"
+
+RDEPEND="
+ >=sci-libs/netcdf-4:=[dap=,tools]
+ gsl? ( sci-libs/gsl:= )
+ ncap2? ( dev-cpp/antlr-cpp:2= )
+ udunits? ( >=sci-libs/udunits-2 )"
+
+DEPEND="${RDEPEND}
+ test? ( >=sci-libs/netcdf-4[tools] )"
+
+src_configure() {
+ local myeconfargs=(
+ --disable-udunits
+ $(use_enable dap dap-netcdf)
+ $(use_enable gsl)
+ $(use_enable ncap2)
+ $(use_enable openmp)
+ $(use_enable udunits udunits2)
+ )
+ if has_version '>=sci-libs/netcdf-4[hdf5]'; then
+ myeconfargs+=( --enable-netcdf4 )
+ append-cppflags -DHAVE_NETCDF4_H
+ else
+ myeconfargs+=( --disable-netcdf4 )
+ fi
+ autotools-utils_src_configure
+}
+
+src_install() {
+ use doc && DOCS=( doc/nco.pdf ) && HTML_DOCS=( doc/nco.html )
+ autotools-utils_src_install
+ doinfo doc/*.info*
+}
diff --git a/sci-misc/ncview/Manifest b/sci-misc/ncview/Manifest
new file mode 100644
index 000000000000..67142ad2c567
--- /dev/null
+++ b/sci-misc/ncview/Manifest
@@ -0,0 +1,5 @@
+DIST ncview-2.1.7.tar.gz 1280624 SHA256 a14c2dddac0fc78dad9e4e7e35e2119562589738f4ded55ff6e0eca04d682c82 SHA512 c39b26e8453f91865e8483abc6ee25d804150dd03ad21469c0e22a60b41f182c108678e22eb86652b66e8ca0997b5f533b2542593f793d673eeeab73b81eaef7 WHIRLPOOL d8b2a4f1a41b84eabc363cee753b27ab78e78ce35af14428e5b97ee5f4e71c116c3ba7762c796f2d5daa8bd11b313d996e4294d85da15fcb5a34f9c39acff7cd
+EBUILD ncview-2.1.7.ebuild 690 SHA256 72f83420b2773bee8abbe2a30756a2078065764a63d2ca77bdf8880ee0b78bd7 SHA512 ecd0ac72d3ad748d0004cdf75d7f33a695829898e43bf4725e7b3894af2e0cc3a2369c362d9f6b31b9131b418f305fa8c9738b35fca781fb8970e213aad96895 WHIRLPOOL a414923428a969f0ce655418ee680f444a210d10ab5ab54a2515d19f8bae48c12f3a11d244ac6fac6a572a88549aff8a5a2f2e69ae70af7b8dba27b40fcc6b38
+MISC ChangeLog 2910 SHA256 12a38652aa1107f754bbd0a80851c4df3a742ccdf27896b87d6ca061864e3d0d SHA512 baee581cab0019857b8ead1a27c89a1bf9f91d83e7f53d3b69c4529c5315a03ddcff5fb9335d924ea52dc88225498222e51cd94fc633e614f0ab98a365309930 WHIRLPOOL b81e6b2220c62af6cb06ae312d4922358d4e89af4ab5613657ad82c937c5d60da9bcce9a18ac4a4bd39cb1d73de68a8489b3608647e776599342f647f68c85d3
+MISC ChangeLog-2015 3688 SHA256 289c3f930d532dff817630175c25fd2e557ce59f99f66e6634cb0a0d26902945 SHA512 7e1fd54205c1fd64aaa0969139965ee98c64da8d73eb684f795004e69d93dda1022496852623ae0b8959d35e5d60d1c1b92e1abe398f3d29a875dc5bc34c6362 WHIRLPOOL 31e16dc5c146f6a1e5c6cdb132c384dbee6ef6eab4d207dc4df13289e00c1826e3854d92134affddc5c9e4d651f2e534d3512125f7e526ced1fa6cb2d78f9512
+MISC metadata.xml 589 SHA256 b0a6fd9041fb10c6b104e550880835a7a8355ef95c3ff6bb8cce1bf9797fa1d3 SHA512 f25b1c705b1b4426c0bebc66c94c418828ca54a4e14d75464fa4284809fdcae934970b2eb160bf6940a89cb11439267e2831adccbf5674f1c1e9a6c9c6d6ed95 WHIRLPOOL b2d56b38587b77417b43205742be0f8e05564d0fd29e37495949afbbc912a46653d29b58e59b7fcdd830354472db98db696e647f21e74d98330ff6c2d6132843
diff --git a/sci-misc/ncview/metadata.xml b/sci-misc/ncview/metadata.xml
new file mode 100644
index 000000000000..0683902f48ea
--- /dev/null
+++ b/sci-misc/ncview/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+<longdescription lang="en">
+ Ncview is a visual browser for netCDF format files. Typically you
+ would use ncview to get a quick push-button look at your netCDF
+ files. You can view movies of the data, view along various
+ dimensions, take a look at the actual data values, change color
+ maps, invert the data, etc.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/ncview/ncview-2.1.7.ebuild b/sci-misc/ncview/ncview-2.1.7.ebuild
new file mode 100644
index 000000000000..9a3bb737c9b5
--- /dev/null
+++ b/sci-misc/ncview/ncview-2.1.7.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="X-based viewer for netCDF files"
+HOMEPAGE="http://meteora.ucsd.edu/~pierce/ncview_home_page.html"
+SRC_URI="ftp://cirrus.ucsd.edu/pub/ncview/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="media-libs/libpng:0=
+ >=sci-libs/netcdf-4.1[hdf5]
+ x11-libs/libXaw
+ sci-libs/udunits"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ default
+
+ doman data/${PN}.1
+
+ insinto /usr/share/X11/app-defaults
+ newins Ncview-appdefaults Ncview
+
+ insinto /usr/share/${PN}
+ doins *.ncmap
+
+ make_desktop_entry ${PN}
+}
diff --git a/sci-misc/netlogo-bin/Manifest b/sci-misc/netlogo-bin/Manifest
new file mode 100644
index 000000000000..8318c670b156
--- /dev/null
+++ b/sci-misc/netlogo-bin/Manifest
@@ -0,0 +1,10 @@
+AUX hubnet.sh 159 SHA256 2cf83835cbcf57a48355bedeb02ce7a4011c829200b4d70f49a96533dd9aa49b SHA512 dd9587ceca13079ca7a10e632e885af1ea0b5b0e15c56c989c59a0eda786982aca6465c356daebcd034ea466a956ddcd2fe923d8e749b7c94da28a9c462f6757 WHIRLPOOL 93a4f785b6696998fc712c592ba6bf5b5aa16b061a43e9055b58bebd0017798de00423e42a3b1aa76e34bdbc812b6915eb088b5608e96ba282e695a9a9a97080
+AUX netlogo-3d.sh 170 SHA256 db5695706a4bd625821872f057f563f71f26b749334d2a15418d837cd2bbafbd SHA512 f962a3bc75a5bccbb0230bb8058da95b570139adb39fd75641f2c01e6e93e66bbe96b532294fc9bd2ac983c4c67e940638951f358e703b031b33f2f91b370860 WHIRLPOOL 190960eb5f4033961558b27b0bf0bcc79d488559ae664654fdd3c6134e3a92a16f8ac783173ef17c795d4b8df2026f737bb81dfd84e57e08bee9911d0399bf39
+AUX netlogo-5.0.3.sh 148 SHA256 c89354a7d4df70b73df089c9c913fd8c32fa75cd2db54ec148be0da36ea50196 SHA512 a0470a9725536a0d73b6ff66067545f38320898dd7c8539459857af780d12125169460ba15a87d96b0909aebbbeeb1a37d6df15f905e8585a0eab041eec78844 WHIRLPOOL fd814551d5c991ba19202dab5ea1830025c143d156013ace7aaae4b4122305bf0b5b6536ff098d6028bc892d99b56d65141dc490b6ea366889918a88d1a9b2f4
+AUX netlogo.sh 149 SHA256 958f0dff96893c225f26985a13d491cf7ba2827a5aecebf8ae250e441ad100eb SHA512 701f7de7851a6ecfdc2261ff2302ddedd5a815bc59bd8031c8205494c5f08ae7dbc0c8ad74504153caddfd1e4cd7e02fac55ab792ef1ced6ae124393d08d2b4e WHIRLPOOL fc321f2f5c09745e320b3b0c74531e09e4af545527745c202fd3b70cbaf9f2089bca7982345f0c7cb904eb4ca4679fbfd231dfa3ef33ab147ab72c08d6b66725
+DIST netlogo-5.0.3.tar.gz 66725456 SHA256 cfc39c81c5bce4d2713338886484787ec3d9e417971d29dd21e115c74a5ecdac SHA512 39d660d5dbd7e74f072621a74bfc18648ed208b833b3d442f2a9dbefc673065c4a7bf0e4a8ebb670b4d4220ee7bec452cc97f32731a28ca2eb56656bea795b81 WHIRLPOOL 54fb9d78b8d4ed60295dec58fb39db4a89fb4ee9b8c428c268aae13b4cdbbaca19094f875b7d6450ffb2da3c2c193e9ed16d827d1c7dc872eba7d2bda1269e0f
+DIST netlogo.gif.tar 10240 SHA256 4c5412875d0b24a9b62e723ff0ae02f82211f7ce9827c47eb1dc75055217d726 SHA512 9a9bc81660599d2b35875f301d5b9824bfa2dafa21dc96b1e6e281d4682ab7b4052844a961b46f5300131c91a4562c58e4b1a4d753cb2b24a18e64b42d333e32 WHIRLPOOL 73bccd302fc18161cd1b9fecff3c60937904148948ba31705b06f60321a261f0ae44cc38c3d56a94669a0bd10ab7c71584345e4f6898b83f73f077be37fd4e63
+EBUILD netlogo-bin-5.0.3-r1.ebuild 1681 SHA256 acfdd0e50c3c49d03d8706e53ec74c8c25cd1ea6ed8b13bac851ca7d5fa80e34 SHA512 e3c0bf2c4b81a69fb7f9155f744a20ca34fbd8099a7a8aafad8f9b64ed6a7adab1475dbda74724fa8eadcf6eaa393ca6ed6cdae30ef53df04f738e3578e7ec3d WHIRLPOOL 1eef1af743618380a5564695f946dad920dc596fb395bf30e65be8e3fc42980639e1393c54a2d91809b45c7185e10adb29a7d0a0c847a48840e9a77fcdeb4556
+MISC ChangeLog 2487 SHA256 fa65e01a3291e139b2e7a97f991a9d6aea27cf6213d6bc051587f12614a79fc9 SHA512 fe7b41c22bc96e033a5b3a59712daccecddc6efaf6af6b4ad87f4cfe37cd13f2c97b07c96c2dc3ae08434690b616cfd2445f8d66a4f37fdbf0933e0f7053ad9d WHIRLPOOL 88e243efa2d2f28a3a42a6ad1e1321a17be3bf7625f9741227b886d06fb5cdd193efb6343058e62a3726c5926b93ed9efb7c9ca23c47dbf322ba7d1ef06a00bc
+MISC ChangeLog-2015 3599 SHA256 d54a7589f371da510f7d3e50251ae06f0dd55c75166781b8d6d7e8a9fcccf599 SHA512 231854e753162aea8fd6b126ab97b911e56e9117a0093845eade1586e022d838064d8d400144309566387dc28ef4d1cac4a2134a2074b7f828e8dd6d1e577eb2 WHIRLPOOL a0a0f2da40e01071ebda4b4eb960d63ae2c08afd399eaabccff01634d5f338309a025b5961968fd7212797440c6b6347b873fcfd2ac871ee94b6b76e1d79c36d
+MISC metadata.xml 725 SHA256 77ebec5d4ec63127444aaae39bc562b3e41d2ae0f6bc1f465594483ad630573c SHA512 7bd804bf2c348af64992139edfa0d6b66a69c8f451ec92be6d1d909dd49833c216b444fce22c7c7d86354a32cc73be4334ccd6a60de1a9f6d5da9053f802dc08 WHIRLPOOL ae8da24b7a899aa0851ca1a036b66925860889596cc8f380bd38957c84230ed5ba9b3980fbbfaa5955bb9551efb6ec762d40d209bc3b81abd318bc2e327eef40
diff --git a/sci-misc/netlogo-bin/files/hubnet.sh b/sci-misc/netlogo-bin/files/hubnet.sh
new file mode 100644
index 000000000000..65b833e50aa9
--- /dev/null
+++ b/sci-misc/netlogo-bin/files/hubnet.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+NETLOGO_INSTALL_PATH="/usr/share/netlogo-bin"
+cd ${NETLOGO_INSTALL_PATH}
+java -classpath $(java-config -p netlogo-bin) org.nlogo.hubnet.client.App
diff --git a/sci-misc/netlogo-bin/files/netlogo-3d.sh b/sci-misc/netlogo-bin/files/netlogo-3d.sh
new file mode 100644
index 000000000000..cdf52a61e25a
--- /dev/null
+++ b/sci-misc/netlogo-bin/files/netlogo-3d.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+NETLOGO_INSTALL_PATH="/usr/share/netlogo-bin"
+cd ${NETLOGO_INSTALL_PATH}
+java -classpath $(java-config -p netlogo-bin) -Dorg.nlogo.is3d=true -jar NetLogo.jar
diff --git a/sci-misc/netlogo-bin/files/netlogo-5.0.3.sh b/sci-misc/netlogo-bin/files/netlogo-5.0.3.sh
new file mode 100644
index 000000000000..8bc82fa8d8a1
--- /dev/null
+++ b/sci-misc/netlogo-bin/files/netlogo-5.0.3.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+NETLOGO_INSTALL_PATH="/usr/share/netlogo-bin"
+cd ${NETLOGO_INSTALL_PATH}
+java -classpath $(java-config -p netlogo-bin) -jar NetLogo.jar
diff --git a/sci-misc/netlogo-bin/files/netlogo.sh b/sci-misc/netlogo-bin/files/netlogo.sh
new file mode 100644
index 000000000000..edc0f0af5ea1
--- /dev/null
+++ b/sci-misc/netlogo-bin/files/netlogo.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+NETLOGO_INSTALL_PATH="/usr/share/netlogo-bin"
+cd ${NETLOGO_INSTALL_PATH}
+java -classpath $(java-config -p netlogo-bin) org.nlogo.app.App
diff --git a/sci-misc/netlogo-bin/metadata.xml b/sci-misc/netlogo-bin/metadata.xml
new file mode 100644
index 000000000000..f48318813018
--- /dev/null
+++ b/sci-misc/netlogo-bin/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>creffett@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+NetLogo is a programmable modeling environment for simulating natural and
+social phenomena. It is particularly well suited for modeling complex
+systems developing over time. Modelers can give instructions to hundreds
+or thousands of independent "agents" all operating concurrently. This makes
+it possible to explore the connection between the micro-level behavior of
+individuals and the macro-level patterns that emerge from the interaction
+of many individuals.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/netlogo-bin/netlogo-bin-5.0.3-r1.ebuild b/sci-misc/netlogo-bin/netlogo-bin-5.0.3-r1.ebuild
new file mode 100644
index 000000000000..074522a10cac
--- /dev/null
+++ b/sci-misc/netlogo-bin/netlogo-bin-5.0.3-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils java-pkg-2
+
+MY_PN="netlogo"
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Cross-platform multi-agent programmable modeling environment"
+HOMEPAGE="http://ccl.northwestern.edu/netlogo/"
+SRC_URI="
+ https://dev.gentoo.org/~jlec/distfiles/${PN/-bin}.gif.tar
+ http://ccl.northwestern.edu/netlogo/${PV}/${MY_P}.tar.gz"
+LICENSE="netlogo GPL-2 LGPL-2.1 LGPL-3 BSD Apache-2.0"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.5"
+
+S="${WORKDIR}"/${MY_P}
+
+QA_PREBUILT="/usr/share/"${PN}"/lib/Linux-*/*.so"
+
+src_install() {
+ insinto /usr/share/"${PN}"/
+ doins *.jar
+ rm lib/quaqua-7.3.4.jar
+ java-pkg_dojar extensions/sound/*.jar
+ java-pkg_dojar extensions/profiler/*.jar
+ java-pkg_dojar extensions/array/*.jar
+ java-pkg_dojar extensions/gogo/*.jar
+ java-pkg_dojar extensions/bitmap/*.jar
+ java-pkg_dojar extensions/table/*.jar
+ java-pkg_dojar extensions/gis/*.jar
+ java-pkg_dojar lib/*.jar
+
+ dohtml -r docs/*
+ dodoc "docs/NetLogo User Manual.pdf" docs/shapes.nlogo
+ insinto /usr/share/"${PN}"/models
+ doins -r models/*
+
+ insinto /usr/share/pixmaps
+ newins "${S}"/icon.ico netlogo.ico
+
+ exeinto /opt/bin
+ newexe "${FILESDIR}"/netlogo-5.0.3.sh netlogo
+ newexe "${FILESDIR}"/netlogo-3d.sh netlogo-3d
+ newexe "${FILESDIR}"/hubnet.sh hubnet
+ make_desktop_entry netlogo "NetLogo" /usr/share/pixmaps/netlogo.ico
+ make_desktop_entry netlogo-3d "NetLogo 2D" /usr/share/pixmaps/netlogo.ico
+ make_desktop_entry hubnet "NetLogo Hubnet" /usr/share/pixmaps/netlogo.ico
+
+ #3D Libs right now only for x86
+ insinto /usr/share/"${PN}"/lib
+ doins -r lib/Linux-*
+}
diff --git a/sci-misc/oww/Manifest b/sci-misc/oww/Manifest
new file mode 100644
index 000000000000..7a16721850db
--- /dev/null
+++ b/sci-misc/oww/Manifest
@@ -0,0 +1,9 @@
+AUX oww-0.86.4-build.patch 1953 SHA256 b1e72f5738a11bf96c6b3a41565b893177d50231ca37e5ba7b705f2ab8d57bf2 SHA512 596ae53c671f8cd94a20c1867fbf03ba06955d660d3c642b9ef6a8c825422e29c0162e4280925135c172b56329934caabd6ff4f4dcf0f8f0238ab0eae0a4f8e9 WHIRLPOOL 1025e998c549c80f11923ae31ff51a85cd95c7629054f68fffdd758a8d48b39aa5c14eda34f6a3821ec0352838ab20095d07ec801451806405846eb10ab3b17a
+AUX oww-0.86.5-format-security.patch 869 SHA256 875d7c8c1fccd1e82d2754ddce8c4e5a6e06443cb30796b376df1c0dd6caa5e8 SHA512 fadfa26d67320519df3288d85ee335b0080760204735aa0a7c493bcbeebd1bfe676f211e9edb64173a1fc96df308caafed82bd3e8652ab35f2637a8edd489e6b WHIRLPOOL e0c344382b8305e12877b23d1fc1c6addeae78e3cd7b55a36eacbec99add25726ad59f117127fcdb55f409b65bcbfd9646c22f5bf94cd2e0eb431cf1675fe723
+DIST oww-0.86.4.tar.gz 927032 SHA256 ad8347590d29d58dfa693ee1be0bf49a08bb8d1e065dc119e7f6624303262ae0 SHA512 b97ddd164fe81848e87466992414c8382a0f681bd8f1e16fc51a43facb73f073eb6b0c1da858f4d2d1ffc09273b05b6c3b526a1ccf1d572dbbfd3bfcd0742e05 WHIRLPOOL 82f3a61f25fcfe2e30fed4550b8d647010ab2a5c7ba8083341f3fee8157968a647df0361b08bfc55c76d7c150a249b53aba4dc886621eda0c7a64b3b24516968
+DIST oww-0.86.5.tar.gz 926962 SHA256 d374cfb421b8a421acd3d049b3ec6113e25ebfdf31a973143ee05ac69a8a30d6 SHA512 cc787379790367eea02423f5213a8947de906d6ccdebb1b76e97196e0be9d9f86e77fbc402693588ae4d7db69968caa7bc9e97e8dfc9395bf420d9df51b28ba9 WHIRLPOOL 2a777fe31116a16526851e8d8e7d60d8549c2db752d771b278cd1036e50c45e2508717fbd1541ff0bcc70302d98289a956c676d7ed3faa214ed29dd6b8c7c229
+EBUILD oww-0.86.4.ebuild 692 SHA256 f362a0997eb4039da2b730cb500722f0e8f8a77d18370601daa9287a459d02a2 SHA512 68d181a634fcfe09cda4cf3a636914ffb5fd0165543ec279dfc153fa9a82ea1eb35ea268aadd107760a2973b8cdd5474fac4cae055eb7d2b0a6514508dad6900 WHIRLPOOL f0dab81b2406284b536c579f66841a05d88b0ad7efa5906628786f1632cce8c5e2e35d7cc222b97cf627db3cbf19f1ed3fbaad4f535baa3d46f0d2b8ac54aa87
+EBUILD oww-0.86.5.ebuild 742 SHA256 b938376977cb8ce6926fdc2f47c1c4d38cfc5124e1af80e5a4ce862d577a7674 SHA512 d96f9c7fea0ce26885e1920d439cabfa07d6550751038933cd152c66c14fd7c31fee5096d47ae3cf5e9f3e348765611e76d37dcdfc99671cbdf6a85ff8e29a24 WHIRLPOOL ff4a595d931a01fdd30619cb6ee8535672eb7298448b60c808a4e732607f7c0c8d280077d6da76316b027fb5ec21b2698371f7cf7545a673d97c48832affa2fe
+MISC ChangeLog 2537 SHA256 3d50e841fbfc680393a7706e1a09769bf80ec9b4fd1a03af833ba6fccb95a11a SHA512 df4a25bd2e3431a079122189e53673689c05e4a2f147c1e2dc1c80b03ef09235900d83cd8e2d4609460f78bf7704b13a59e91aaf7137d764139a74059e8dc306 WHIRLPOOL b8a4753ea17f46411aa44710be27aa0082f91ab801e665b5fa289fcac5cdd9a9fe9d9bc32599b12831d5388831059d9b7873ab466e3d85815e5667d53306266e
+MISC ChangeLog-2015 1969 SHA256 39ab55a45bc9e711c4e780aa02449fd103016c34957fb57b194122c0acbfaaa2 SHA512 969574c2057dd2f44f561c15ea0ca3d4fea93eb8a73236940272859d2523194b0e1901cf81014e9b369b0249737a8913171edb319090857d1efb6946709f27d9 WHIRLPOOL f6f3833b3556f5d03a03695ff3bf3740b5789e8e1651d78f2eeb7bc715cc91f4e39c209c821e1dbace607f6aaf69738b4007aba0c3f00323fa698c9e0c80a082
+MISC metadata.xml 336 SHA256 db3e3a338e9493f1206ca43e91f58a8bd43097e3a30d5ef094bcb0b7bbddcde1 SHA512 f65457a50fabeaf211324929431dac282d836873b8d918abe567d6a6d657555dbb89bb34d595569f6897d5ec8d5084d5689cc359c8aef9b6564f113f69194c5a WHIRLPOOL 0876be890ad23ce73f67d2cb58ff885b3151884ab913e2083209255601eef2117a6a1ca02352b0518a3590214835319653492eb448e621f0b96ece6eac18886c
diff --git a/sci-misc/oww/files/oww-0.86.4-build.patch b/sci-misc/oww/files/oww-0.86.4-build.patch
new file mode 100644
index 000000000000..19f96a0c8551
--- /dev/null
+++ b/sci-misc/oww/files/oww-0.86.4-build.patch
@@ -0,0 +1,79 @@
+ Makefile.am | 3 +--
+ configure.in | 15 ++++++++-------
+ src/Makefile.am | 2 +-
+ 3 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index f90cc9d..36495a7 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -5,10 +5,9 @@
+
+ SUBDIRS = src pixmaps po
+
+-owwdocdir = ${prefix}/doc/oww
++owwdocdir = ${docdir}
+ owwdoc_DATA = \
+ README\
+- COPYING\
+ AUTHORS\
+ ChangeLog\
+ INSTALL\
+diff --git a/configure.in b/configure.in
+index dbc694e..a9c779f 100644
+--- a/configure.in
++++ b/configure.in
+@@ -6,6 +6,8 @@ AM_INIT_AUTOMAKE
+
+ AM_CONFIG_HEADER(config.h)
+
++AC_CONFIG_MACRO_DIR([.])
++
+ AC_ISC_POSIX
+ dnl CFLAGS=""
+ AC_SUBST(CFLAGS)
+@@ -134,17 +136,16 @@ else
+ AC_MSG_WARN(interactive CLI will not be build)
+ fi
+
+-AC_ARG_ENABLE(gui, , build_gui=no, build_gui=yes)
+-AM_CONDITIONAL(DISABLEGUI, test "x$build_gui" = "xno")
++AC_ARG_ENABLE([gui],AS_HELP_STRING([--disable-gui], [Do not build gtk gui]))
+
+-if test "$build_gui" = yes ; then
++AM_CONDITIONAL([DISABLEGUI], [test "x$enable_gui" != "xyes"])
++
++AS_IF([test "x$enable_gui" != "xno"], [
+ AC_MSG_WARN(building gui)
+ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4.0 gdk-2.0 gdk-pixbuf-2.0 gmodule-export-2.0,,exit)
+ AC_SUBST(GTK_LIBS)
+ AC_SUBST(GTK_CFLAGS)
+-else
+- AC_MSG_WARN(skipping GTK gui)
+-fi
++])
+
+ dnl How many times do we retry T on failure?
+ AC_ARG_ENABLE(temptries,
+@@ -319,7 +320,7 @@ cat<<EOF
+ ------------------------------
+ Oww version $VERSION by Simon Melhuish (simon@melhuish.info)
+
+- build_gui = $build_gui
++ build_gui = $xgui
+ interactive = $interactive
+ seriallock = $seriallock
+ USB support = $usb_msg
+diff --git a/src/Makefile.am b/src/Makefile.am
+index e0f6746..c02aab5 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -2,7 +2,7 @@
+
+ # Needs USB_CFLAGS here else things like musbllnk compile will fail if usb.h
+ # isn't in the compilers standard include path.
+-INCLUDES = \
++AM_CPPFLAGS = \
+ $(USB_CFLAGS)\
+ $(GTK_CFLAGS)
+
diff --git a/sci-misc/oww/files/oww-0.86.5-format-security.patch b/sci-misc/oww/files/oww-0.86.5-format-security.patch
new file mode 100644
index 000000000000..190c637e1983
--- /dev/null
+++ b/sci-misc/oww/files/oww-0.86.5-format-security.patch
@@ -0,0 +1,30 @@
+ src/file.c | 2 +-
+ src/werr_linux.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/file.c b/src/file.c
+index 9726564..af2f672 100644
+--- a/src/file.c
++++ b/src/file.c
+@@ -152,7 +152,7 @@ int file_check_file(char *file_name, int create)
+
+ fp = fopen(file_name, "w") ;
+ if (!fp) return 0 ;
+- fprintf(fp, setup_format_loghead) ;
++ fprintf(fp, "%s", setup_format_loghead) ;
+ fprintf(fp, "\n") ;
+ fclose(fp) ;
+ return 1 ;
+diff --git a/src/werr_linux.c b/src/werr_linux.c
+index 50d3993..0f8834e 100644
+--- a/src/werr_linux.c
++++ b/src/werr_linux.c
+@@ -331,7 +331,7 @@ void werr(int flags, char* format, ...)
+ else
+ syslog_level = LOG_DEBUG ;
+
+- syslog(syslog_level, message) ;
++ syslog(syslog_level, "%s", message) ;
+ }
+ # endif
+ # else // i.e. ifndef NOGUI
diff --git a/sci-misc/oww/metadata.xml b/sci-misc/oww/metadata.xml
new file mode 100644
index 000000000000..6ab95b5edb74
--- /dev/null
+++ b/sci-misc/oww/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">oww</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/oww/oww-0.86.4.ebuild b/sci-misc/oww/oww-0.86.4.ebuild
new file mode 100644
index 000000000000..37fca19f1314
--- /dev/null
+++ b/sci-misc/oww/oww-0.86.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="A one-wire weather station for Dallas Semiconductor"
+HOMEPAGE="http://oww.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls usb"
+
+RDEPEND="
+ net-misc/curl
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ )
+
+src_configure() {
+ local myeconfargs=(
+ --enable-interactive
+ $(use_enable nls)
+ $(use_enable gtk gui)
+ $(use_with usb)
+ )
+ autotools-utils_src_configure
+}
diff --git a/sci-misc/oww/oww-0.86.5.ebuild b/sci-misc/oww/oww-0.86.5.ebuild
new file mode 100644
index 000000000000..83eafaaa6ac2
--- /dev/null
+++ b/sci-misc/oww/oww-0.86.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="A one-wire weather station for Dallas Semiconductor"
+HOMEPAGE="http://oww.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls usb"
+
+RDEPEND="
+ net-misc/curl
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.86.4-build.patch
+ "${FILESDIR}"/${P}-format-security.patch
+ )
+
+src_configure() {
+ local myeconfargs=(
+ --enable-interactive
+ $(use_enable nls)
+ $(use_enable gtk gui)
+ $(use_with usb)
+ )
+ autotools-utils_src_configure
+}
diff --git a/sci-misc/pythoncad/Manifest b/sci-misc/pythoncad/Manifest
new file mode 100644
index 000000000000..bc0c062b6a82
--- /dev/null
+++ b/sci-misc/pythoncad/Manifest
@@ -0,0 +1,6 @@
+AUX pythoncad-1.37-png.patch 1535 SHA256 772c85464da9abe54ddaac426ce5dad8b9af8134701e755f9d280997a2f05315 SHA512 642932e86ea12454c6e1d00820d21200cbde5653ebb6145c73790c7685bb8885022067bc3c9e12f3dc3b2f036c80896775acf8ba3e490b1df35b666e2ec1959e WHIRLPOOL 658731bead42fbe1d74944c358cf6057f115bb73bdcdbe4a51146ea16c9a5a3448874eb86e380436000d019c968dcd4ef9f3eb7bd49bb3e31cec989e99bf3c80
+DIST PythonCAD-DS1-R37.tar.gz 504053 SHA256 74222bd43af1e66ab31a45782ed7bd94d54ccbbdb7a58046ec2775f27f806031 SHA512 dfc0dd3272f447202c0cf12e60c39d877390ccf6696529f6bcce9a4442db4f09b735d718bc5611d6c33fbedf2190c496fb7a737001eb73a38fbce1ae80eadc81 WHIRLPOOL bab1dc5162bbd4596ed6729a016fc4b642277293a423860ac22aa2439f5e18629dc376455ef82186b1f11780871d5f7b7ac6191d108a62e18dc54ff077bef2d9
+EBUILD pythoncad-1.37-r1.ebuild 1029 SHA256 66ddf8956d5f90a0e39d0fa2fd49beecb3839f7d4ff13492e3433a244f890bdf SHA512 d93b193239c09bdb05982df873fabc0d0a657be5f3d477e716cd5ecfc5e427a71e1481fc129c128690e787dfe7ec371bf7e8cfa806f99aacb94bfcfdd8070e23 WHIRLPOOL 3c82000eee492ac1844ce79b8871876358311300a225951b16c2e513a68726e4ea63d2f5e592c5318567a8765de5ea06d36450f1212957df7c47b6276484144c
+MISC ChangeLog 2681 SHA256 cf7836a9315ad758c2f3fe72e8c9ad7fe02440204941d042b36998099d556c6e SHA512 06bdf9d780f9fd1e14989d94b2872dc723f55b2efee01da47da8257829a5a15bc421a1ec92db44e7d228ff050097f87aadcff7e7b13764aca77d3b3e9e7f747c WHIRLPOOL 4c5cfbc45f03ee8102d8da23afcbb68907426c76a0021bfe05d095093b587251d3092808a89df846b7d37f05b2675fc66aa6c8eab74952ef6a76e70bf653d193
+MISC ChangeLog-2015 1637 SHA256 9f4fa5cff8167b36637304b95b59d9a3398bd75341899b316d2ba93214b6d745 SHA512 c06e8f1f6c03f825e522538a0559d71ea4c754cefc14b571bf94891d6418e27ef7e6f3f942fbef7bd05ef91aeaaa2c049a6a63117ec0b97856b7dd38e010b000 WHIRLPOOL cecca885a2fe958aa6a8924e5018414a7d62a58e2dbd721db498ba481fd3b7ce0ed470c80232dfac2fac8c2e5121b180f628a1af333609b0b9c404333c5233b8
+MISC metadata.xml 331 SHA256 f39152ae13ac724d24b91b926bfc559130ac3a8ac177b49ad5ea6aaf38c334cc SHA512 31803480a3e8c99757e97e9b55885edbe54f1a2f448529d852f0e432b8cc264b62bd615a725ca48fa013513030b0d72c5a0ba9628f67537b5f1c9d17db7e9df6 WHIRLPOOL a85c52eb93a4adff7a3f110d82936588e6ad0c6531d1d10ff606dd8b6e189f9530596a63ae7c12d7d314ac94ca4ebbee8f5c50966aa557d41feea5399376f5d2
diff --git a/sci-misc/pythoncad/files/pythoncad-1.37-png.patch b/sci-misc/pythoncad/files/pythoncad-1.37-png.patch
new file mode 100644
index 000000000000..7d36625e21a8
--- /dev/null
+++ b/sci-misc/pythoncad/files/pythoncad-1.37-png.patch
@@ -0,0 +1,24 @@
+diff -ru PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkDialog.py PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkDialog.py
+--- PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkDialog.py 2010-03-11 00:01:58.000000000 +0100
++++ PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkDialog.py 2010-03-11 00:03:48.000000000 +0100
+@@ -107,7 +107,7 @@
+ _abautDialog.set_program_name("PythonCad")
+ _abautDialog.set_version("DS1-R37")
+ _abautDialog.set_comments("CAD built from Python")
+- _iconPath=os.path.join(os.getcwd(),"gtkpycad.png")
++ _iconPath=os.path.join("/usr/share/pixmaps/pythoncad.png")
+ _pixBuf=gtk.gdk.pixbuf_new_from_file(_iconPath)
+ _abautDialog.set_logo(_pixBuf)
+ _abautDialog.set_website("http://sourceforge.net/projects/pythoncad")
+diff -ru PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkimage.py PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkimage.py
+--- PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkimage.py 2010-03-11 00:01:58.000000000 +0100
++++ PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkimage.py 2010-03-11 00:02:59.000000000 +0100
+@@ -154,7 +154,7 @@
+ self.__image = image
+ self.__window = gtk.Window()
+ self.__window.set_title(image.filename)
+- self.__window.set_icon_from_file("gtkpycad.png")
++ self.__window.set_icon_from_file("/usr/share/pixmaps/pythoncad.png")
+ self.__window.connect("destroy", self.__destroyEvent)
+ self.__window.connect("event", self.__windowEvent)
+ self.__window.connect("key_press_event", self.__keyPressEvent)
diff --git a/sci-misc/pythoncad/metadata.xml b/sci-misc/pythoncad/metadata.xml
new file mode 100644
index 000000000000..ab9c765c0261
--- /dev/null
+++ b/sci-misc/pythoncad/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>a scriptable, open-source, easy to use CAD</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">pythoncad</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild
new file mode 100644
index 000000000000..d7d06a472e13
--- /dev/null
+++ b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils distutils-r1 versionator
+
+MY_PN="PythonCAD"
+MY_PV="DS$(get_major_version)-R$(get_after_major_version)"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="CAD program written in PyGTK"
+HOMEPAGE="https://sourceforge.net/projects/pythoncad"
+SRC_URI="mirror://sourceforge/pythoncad/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/pygtk:2[${PYTHON_USEDEP}]"
+DEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${P}-png.patch" )
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ sed -i \
+ -e "s/gtkpycad.png/pythoncad.png/" \
+ -e "s/gtkpycad.py/pythoncad/" \
+ "${PN}.desktop" || die "sed failed"
+}
+
+python_install() {
+ distutils-r1_python_install
+ python_newscript gtkpycad.py pythoncad
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ insinto /etc/"${PN}"
+ doins prefs.py
+ domenu "${PN}".desktop
+ newicon gtkpycad.png "${PN}".png
+}
diff --git a/sci-misc/repsnapper/Manifest b/sci-misc/repsnapper/Manifest
new file mode 100644
index 000000000000..2b30a85bd159
--- /dev/null
+++ b/sci-misc/repsnapper/Manifest
@@ -0,0 +1,12 @@
+AUX repsnapper-2.4a_p0-gcc6.patch 2557 SHA256 0c9f7ac74d720d1c83e32839e385b89f44198cb4e6b1e39bb0c360b3f68d1e11 SHA512 21e4d62f7fc11989c27ed8909ad64ee19e51724deba18ca6d4fc6762bdbe774493857538468629c962fe12a6d667274258e905967b636222a0b18b0c37bb866d WHIRLPOOL d242a89b02680e5b90c709b5fa2a550048924d216b52acb12ed5565585ebd461776a95e85c9fea57184295f138a544b840c41f135ec2a44a48ecf18ed5d590d1
+AUX std-c11.patch 1153 SHA256 5f6ac2a52dbd04829b4416a81f9e0a9bd9d6742c4edd02d0e5b1128368fbb7ea SHA512 348850d7f1d7c1f183fd041e5411cb94c0b495e0dd0478945015d72b059bfc3c56087332ca0e86d4779558ca430f6d645053e2aba23fc92ad6b6825bf14552cd WHIRLPOOL 7b848b6427f14aa9dce8f2907076fbe5d3e583994d10fc7050641f7074011940f43d84521cb83157172a9ad6a6197ac68ca55c08a9f2f7b80e9fdb65fe2bdb3b
+DIST repsnapper-2.3.2a3.tar.gz 1344447 SHA256 7c4bc3603401847ce1f15298435c511f76fd74c5d5ae4fc1561c7f378c182fe5 SHA512 f68510baefb898954f58aa5e35909b8215edcd8ee74028e717ad97293091f4b323628ca0ba80ff685d1aef0db4785a2887986b89a95769a70f8f23ab031dafa4 WHIRLPOOL 0693876194c5837091b9f9df7d359833b86222345239f3cf946a0e6efd2f87efc35380745cb2a4dd5587a5193c9a3e54d36454fabb0d38722a02ac70d510645d
+DIST repsnapper-2.4a0.tar.gz 888457 SHA256 06d993b6eafc31b246181f64ef404de6948362d7096407ff06576e2ed416f7da SHA512 b79c51f53ae29d09f5a328366c10b9e775d396f6da0ef24aa71b522fbd718af2f658700838f64ba01ce9c5cab90e39960b0ca5ed2554f802ff37ef258ae89031 WHIRLPOOL 303b34674b4d761069ad4ab935462ef0b7c16e886a8b97039ebd2a3b532664feea00192b23b79bd39cce75b042fed971626e52695c147d088aa3bbe11d69e0e1
+DIST repsnapper-2.4a3.tar.gz 888546 SHA256 f9fd847e28ae481df26d49e9017ebbadbf6395c8d20b846577a5284d1c4d4ff0 SHA512 ebe586a9212edbf699444a9c89b25702facd1018751658b831e9e662cd1bc2c54e6827802c0d89055c2882cef7db343bf036c08a9a1fc28bc66acee895bca6aa WHIRLPOOL 3095265bcebf3c76b1bce8d2faf09402a2d1fa9dde758662a648ccf2867c5aede36a4c457add747923d58cec2368962c0380f263482e50548e3b15b1e270bb9f
+EBUILD repsnapper-2.3.2a_p3.ebuild 712 SHA256 30b489ee327ce96b18c317ed978865b342cf9ec3d26aa98d7998b987d2a8d573 SHA512 ccc46b6e36674fef31cc3b41e5eaa7468df551771aec8e8271aa7ce651027af945931366e7da9748b771e51e7c51a5c3cf181afd26bd5de857f1ac602aa9bac8 WHIRLPOOL f9ba5d1550bc2760c5e988dfe3cc7e4517d992c343044f218ce2e918c33b455af39380178a2201d8bb6d289a55fd6f4fb711d308be8f3b856f11be688744b389
+EBUILD repsnapper-2.4a_p0.ebuild 831 SHA256 32415735ae8afc1769fea684d41c7ab57b4272790909a34e9b1d68b410b30401 SHA512 52016084f21c27d7429e3e27c33b6105920e2f4c0a95849795749ec9a03a536ad4b38e884196878af7204a8a59758a191db0ab28b89c9067ec8caaa71d2da105 WHIRLPOOL b3420e540c3e1329b3f4d846ef9aef42000560a609f0c66fbe849f5307380baf4d26f6f341160a50d5ddc9924b43a4518f99c2ede79ca6ddbb2beb43ae137586
+EBUILD repsnapper-2.4a_p3.ebuild 759 SHA256 aa04c7a24bd558dac4a7392017e5313a676529907a4830f3c6df4f8fbbb7a3f1 SHA512 857bcd737eaebcd6a8669095b01b5e187721fc970ef8842563bc26a2e41cf40902c038853f39865f19adadb69ea762ac73249196c098dd8130fa69c534dba2d1 WHIRLPOOL 09390ebfc1da85cb991c37d341a91ddaa516486fb7215f8993ebe0fa7f839fa28f0b0b1b165054b783d86f04cb7505b65adf79bcc980c57e54b42976b5ac499b
+EBUILD repsnapper-9999.ebuild 563 SHA256 dae98c524e610fdb3d37b254f019c4a01f1f1aaf7d0fc2e93f8871eaded72810 SHA512 8825c4dd593cba85aefa11f60faeac6a5654a98d312d76527b57f928d45d88e34b6a45523bb5d081418b6baf7f281f17e9b7952a66c7bb4c3d2565d195dc127b WHIRLPOOL c444bd047181aeb5ab75371e3382d574d00d165d8899db4052d5e7727523a608cf86cad1d084e26121bd93ed14bc64944e648713d1294a0d25e19ede3435742d
+MISC ChangeLog 3700 SHA256 31fc6a42f702245e1d2702c487616c6ebc97a89e44f17f3a521bcab712bba691 SHA512 52f59c61d773d0c884f1a882e832bb7e8d80caff07c5339a447dc5dfba0045c8b6c5d3a10a09ee743e95a36f1542724c1064a948e953b2ab4fb51bb7c7d8ebe9 WHIRLPOOL b5811b4c41aa5f955bd1db13cdb791d0ce4ffcb3e6865e3fc61df1c99dd58af1a3b900128d36d2abf7a5c954bf5feca60a643791cc077b4ff49c06df22d48e08
+MISC ChangeLog-2015 1647 SHA256 9a7f54309370751155d0a619e23727717ee90560bcc6776b73e8de93fb06f515 SHA512 6ca0385db6b8d267367fff0457b19fe7dc4d0d96fbd456378d3798d89b85eb0f3c2981d2851a5cac0400616370f3cd1b440b8b176a51958fcd0147a1ac299ef2 WHIRLPOOL 5b2f62162ce5f9dd2d17424dc34dff1fd1ca758c4955b4c38b374e9c490c25c1a2fbf72208afd63a517caec9e9b6fdf02202a79c0f35bfbb4614e43ca5c3c018
+MISC metadata.xml 301 SHA256 9ab1758413e5e9cc594a7612b8611a8c61863cc629363237c11b4e4b50756119 SHA512 51167da8839099636779df896adb9386221d5af9da3c8b32b6f1b7236e34cf21cb5a3db7388f218284ec28a0b4dd66da927a860396afa9cd3087e3fe4cd91f9d WHIRLPOOL b431731fdf4d4f12aae4fb8f53009f5ab9162204f693ec3e0fb15665fb15f758bffeac202bf25d13c5f2024e1b92adddfa20c6861b3e54916f06af1abf32c385
diff --git a/sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch b/sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch
new file mode 100644
index 000000000000..80a3c56eb86b
--- /dev/null
+++ b/sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch
@@ -0,0 +1,54 @@
+From f6a411fa829f144800d123c1256d7d7648736437 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tiago=20St=C3=BCrmer=20Daitx?= <tdaitx@gmail.com>
+Date: Thu, 1 Sep 2016 00:02:48 -0300
+Subject: [PATCH 1/2] replace abs() with std::abs() for gcc6 compatibility
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Building with GCC 6 fails with "call of overloaded ‘abs(double)’ is
+ambiguous" - for some reason only on PowerPC and PPC64.
+---
+ libraries/amf/amftools-code/include/STL_File.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libraries/amf/amftools-code/include/STL_File.h b/libraries/amf/amftools-code/include/STL_File.h
+index 0bc01bed..2d9d656f 100644
+--- a/libraries/amf/amftools-code/include/STL_File.h
++++ b/libraries/amf/amftools-code/include/STL_File.h
+@@ -89,7 +89,7 @@ class aWeldVertex {
+ Vec3D v;
+ int OrigIndex;
+
+- static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(abs(v1.v.z - v2.v.z) <= WeldThresh){ if(abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set
++ static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(std::abs(v1.v.z - v2.v.z) <= WeldThresh){ if(std::abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set
+ static double WeldThresh; //weld threshold for importing from STL
+ };
+
+
+From 93c81e3794a3eb7c2b7c7611803a3107fb25027b Mon Sep 17 00:00:00 2001
+From: "Ying-Chun Liu (PaulLiu)" <paulliu@debian.org>
+Date: Wed, 4 Jan 2017 13:50:56 +0800
+Subject: [PATCH 2/2] Fix FTBFS for glibmm Glib::RefPtr
+
+Now we can use operator RefPtr::operator bool() to test if it is NULL.
+RefPtr::operator== can not work on int.
+
+Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
+---
+ src/model.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/model.cpp b/src/model.cpp
+index ee559c47..22f0bb39 100644
+--- a/src/model.cpp
++++ b/src/model.cpp
+@@ -181,7 +181,7 @@ vector<Shape*> Model::ReadShapes(Glib::RefPtr<Gio::File> file,
+ uint max_triangles)
+ {
+ vector<Shape*> shapes;
+- if (file==0) return shapes;
++ if (!file) return shapes;
+ File sfile(file);
+ vector< vector<Triangle> > triangles;
+ vector<ustring> shapenames;
diff --git a/sci-misc/repsnapper/files/std-c11.patch b/sci-misc/repsnapper/files/std-c11.patch
new file mode 100644
index 000000000000..a8ff67ae3878
--- /dev/null
+++ b/sci-misc/repsnapper/files/std-c11.patch
@@ -0,0 +1,31 @@
+--- src/slicer/poly.cpp.orig 2015-12-28 07:54:32.774722105 +0100
++++ src/slicer/poly.cpp 2015-12-28 07:54:41.188055896 +0100
+@@ -225,7 +225,7 @@
+ // Start with first vertex as closest
+ uint nindex = 0;
+ mindist = (vertices[0]-p).squared_length();
+- if (isnan(mindist)) { // for infinity point p return point 0 and distance 0
++ if (std::isnan(mindist)) { // for infinity point p return point 0 and distance 0
+ mindist = 0.;
+ return 0;
+ }
+--- src/slicer/printlines.cpp.orig 2015-12-28 07:54:05.814720635 +0100
++++ src/slicer/printlines.cpp 2015-12-28 07:54:19.821388065 +0100
+@@ -240,7 +240,7 @@
+ if (abs(absolute_extrusion) < 0.00001)
+ travel_speed = max(minspeed, speed); // in case speed is too low
+
+- if (!isnan(absolute_extrusion))
++ if (!std::isnan(absolute_extrusion))
+ // allowed to push/pull at arbitrary speed
+ extrudedMaterial += absolute_extrusion;
+ else
+@@ -335,7 +335,7 @@
+ else
+ factor = 1./newlines.size();
+ newlines[i].absolute_extrusion *= factor;
+- assert(!isnan(newlines[i].absolute_extrusion));
++ assert(!std::isnan(newlines[i].absolute_extrusion));
+
+ }
+ return newlines;
diff --git a/sci-misc/repsnapper/metadata.xml b/sci-misc/repsnapper/metadata.xml
new file mode 100644
index 000000000000..7c089992c088
--- /dev/null
+++ b/sci-misc/repsnapper/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slis@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">timschmidt/repsnapper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild b/sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild
new file mode 100644
index 000000000000..4f043bd5b3b7
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools versionator
+
+MY_PV="$(get_version_component_range 1-4)$(get_version_component_range 5)"
+MY_PV=${MY_PV/p/}
+
+DESCRIPTION="Host software for controlling the RepRap open source 3D printer"
+HOMEPAGE="https://github.com/timschmidt/repsnapper"
+SRC_URI="https://github.com/timschmidt/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-cpp/gtkglextmm-1.2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libxmlpp
+ dev-libs/libzip
+ virtual/opengl
+"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ eautoreconf
+}
diff --git a/sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild b/sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild
new file mode 100644
index 000000000000..26bbc8eb54b9
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools flag-o-matic versionator
+
+MY_PV="$(get_version_component_range 1-3)$(get_version_component_range 4)"
+MY_PV=${MY_PV/p/}
+
+DESCRIPTION="Host software for controlling the RepRap open source 3D printer"
+HOMEPAGE="https://github.com/timschmidt/repsnapper"
+SRC_URI="https://github.com/timschmidt/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-cpp/gtkglextmm-1.2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libxmlpp:2.6
+ dev-libs/libzip
+ virtual/opengl
+"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}/std-c11.patch"
+ epatch "${FILESDIR}/${P}-gcc6.patch"
+ eautoreconf
+ append-cxxflags -std=c++11
+}
diff --git a/sci-misc/repsnapper/repsnapper-2.4a_p3.ebuild b/sci-misc/repsnapper/repsnapper-2.4a_p3.ebuild
new file mode 100644
index 000000000000..860571030c58
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-2.4a_p3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools flag-o-matic versionator
+
+MY_PV="$(get_version_component_range 1-3)$(get_version_component_range 4)"
+MY_PV=${MY_PV/p/}
+
+DESCRIPTION="Host software for controlling the RepRap open source 3D printer"
+HOMEPAGE="https://github.com/timschmidt/repsnapper"
+SRC_URI="https://github.com/timschmidt/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-cpp/gtkglextmm-1.2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libxmlpp:2.6
+ dev-libs/libzip
+ virtual/opengl
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eautoreconf
+ append-cxxflags -std=c++11
+}
diff --git a/sci-misc/repsnapper/repsnapper-9999.ebuild b/sci-misc/repsnapper/repsnapper-9999.ebuild
new file mode 100644
index 000000000000..94bff9cff952
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools git-2
+
+DESCRIPTION="Host software for controlling the RepRap open source 3D printer"
+HOMEPAGE="https://github.com/timschmidt/repsnapper"
+EGIT_REPO_URI="https://github.com/timschmidt/${PN}.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="
+ >=dev-cpp/gtkglextmm-1.2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libxmlpp:2.6
+ dev-libs/libzip
+ virtual/opengl
+"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ eautoreconf
+ append-cxxflags -std=c++11
+}
diff --git a/sci-misc/vitables/Manifest b/sci-misc/vitables/Manifest
new file mode 100644
index 000000000000..faad848e41f1
--- /dev/null
+++ b/sci-misc/vitables/Manifest
@@ -0,0 +1,8 @@
+AUX vitables-2.1-no-docs.patch 298 SHA256 f41572d51a5bf78093af68aedfcc9aa1eff15f5372c0adfcb55af36eef5d690a SHA512 cedcaced3111bb249df7440c7b156329969ff8413faa047407d06790012578a82a8292ca1cf09aca61d75d968e3976ff62e521f3383c15d2776b118b2d76aa61 WHIRLPOOL d738e0e106019f75e47982d942b0f9f1c29946099f9dcf8ce294b65954a48dcc0129b0b9dc35dcfdb75c2c477277e6df81dbe8ae4807b9bba8cbe4a1e3327dd9
+DIST ViTables-2.1.tar.gz 3111661 SHA256 f0413fa725617fbb3f0be03cb1f41b5b841c6946098a629f3fcb8a99fb9be14a SHA512 9ca48fbc8aa33dd3e1e02e2cf2055082831a95f5c24a2ab3bb294d7b09a3f09e62e500b0d69f8843a93af0db6dfc25873a57604f3fd433c0168eb335a1816bc8 WHIRLPOOL d526744105cea3ef7812db52f5e1a2ef74ca43431de167355afe0c6670a2752d3f4f5613f72f1f11e043cd6de0d4007086b4d548e78f7a3cbeaf4a5c6695babc
+DIST ViTables-3.0.0.tar.gz 860411 SHA256 f391f698f3602420f922fc761b28168bbb93993d392c171d97f1d4ba37680180 SHA512 0ab0a3529f70111f6d2c1a765398d0c05607e2839a353670eebfa26bedd2092a33afe9f1cad14eec5d23f76fc5f54fa6f61e2e4089d9c2f3fd43396dbbbba7b1 WHIRLPOOL d1e11aae67a27b269940288d2e08447fec1426173fb374475a0bfeb74e73fa8e6b74de6a7aac9a15c348b9b6ca5bc14338d4183dc9d39e1c84b62fbe9a3761bf
+EBUILD vitables-2.1-r1.ebuild 1161 SHA256 2c64b26c6bbcb7b46dcb926230933a9bf96cd838e6f7b7adb4e38b32eb318f0e SHA512 3f1e6bc322a553f5069037036104fcc8d3075b7b6e83d76b6e346dce1ee599874d30eba7b866937d7fa78bc8e3f06e1ce313d4e25d32e778001dadb5fbdf6635 WHIRLPOOL dd54ea369ee878ac42ad376372e57a8d2f5cac8f9b419a7c336f10dbb8a64a0f9d52601faf3f01e8d5209674ba5a7f1778927114c6092676b61cf716d89aa0e9
+EBUILD vitables-3.0.0.ebuild 891 SHA256 cafd3bad0936a9902f98f85470caeaaed972d0145bd597181d340cc6953c1e2a SHA512 cce826288f8bd7ca2ac23f131d3fedc1f00757ec674696c9497d971f71338d0401d23dc8dc9207a6c1683ebff20bb74d4b16a2ee555f3eba9db9e69f73bbcecb WHIRLPOOL 6588dad77c7228895de118dad3a7f1aa2a61834c680a5bcb67bd308bc723aaae94327d79aefd882929857222af3c607398015fefeb3e0645984c7d7e75b2d6bf
+MISC ChangeLog 3180 SHA256 81fa7399f276fdb8ae6b9f41a7deedc911eaeb9b70a461c3116ec9e834374b7c SHA512 b0d86f706f18d2276e45ec2b034cbb777256a96acfdd8b0f7219a94b0c56232f5f81ed126e891f422edd1a6302ef737453721283d6b635dad72f0b37d7aa402e WHIRLPOOL b7f13ae80329e318c7b70388b0c3040e46d1b2ff6be1b88a446c72c6edc1b5dcd8fbca387a4068d209ebe8268851ae93fe5b429c33fdeb0ba19b9484e84be6bb
+MISC ChangeLog-2015 1496 SHA256 8a3db8ad7e0d39aed7fc046ebf82bf3c172e88a9c6a6709beb9a3627aac66484 SHA512 34a9aac7b8ee2dfbc6120af618a0295499893bbb3e15c458adfb9a48be3817fdb9a7d5943231546fbbd8625b539f9fa54ecb218c903c29dfe5bd2333a0ee5978 WHIRLPOOL 8124ebeb6781618b16a344c72b3321cf3653fa05626caf2727d16892f62556e64f51e4bdfcd926c3ff79162b0ae5b020831697035231433f11da01d1d2d5f0ad
+MISC metadata.xml 637 SHA256 f0291dcb8addd8bcffcd1518f1d2c4d8fd58b33b505db4f98832d575769f3bc2 SHA512 394cb7b8c195875bd190e2cc6e5940e9040c6a891aac246eb53d30cb0bb579317b0230ba53d040a0eb0fca3cc74e8007f75e899eacad94cb8643ad468448cf55 WHIRLPOOL 4c34067669da23333fe7b7c78de9543ba44929956e5430de23bfe17d817cdf2b6e0ecd89181f4ef316c78ea2245322afd0dc8ebef01b21b9f2864f60334861cc
diff --git a/sci-misc/vitables/files/vitables-2.1-no-docs.patch b/sci-misc/vitables/files/vitables-2.1-no-docs.patch
new file mode 100644
index 000000000000..0d76e264f79e
--- /dev/null
+++ b/sci-misc/vitables/files/vitables-2.1-no-docs.patch
@@ -0,0 +1,19 @@
+--- a/setup.py
++++ b/setup.py
+@@ -34,13 +34,14 @@
+ from distutils.dir_util import copy_tree
+ from distutils.file_util import copy_file
+
++sphinx_found = True
+ try:
+ from sphinx.setup_command import BuildDoc
+ except ImportError:
+- pass
++ sphinx_found = False
++
+
+
+-sphinx_found = True
+
+
+
diff --git a/sci-misc/vitables/metadata.xml b/sci-misc/vitables/metadata.xml
new file mode 100644
index 000000000000..0a05792d12ca
--- /dev/null
+++ b/sci-misc/vitables/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ ViTables is a component of the PyTables family. It is a GUI for
+ browsing and editing files in both PyTables and HDF5 formats. It is
+ developed using Python and PyQt (the Python bindings to the Qt), so
+ it can run on any platform that supports these components.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">vitables</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/vitables/vitables-2.1-r1.ebuild b/sci-misc/vitables/vitables-2.1-r1.ebuild
new file mode 100644
index 000000000000..28354d57da74
--- /dev/null
+++ b/sci-misc/vitables/vitables-2.1-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_P=ViTables-${PV}
+
+DESCRIPTION="A graphical tool for browsing / editing files in both PyTables and HDF5 formats"
+HOMEPAGE="http://vitables.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-python/pytables[${PYTHON_USEDEP}]
+ dev-python/PyQt4[X,${PYTHON_USEDEP}]" # FIXME: check if any other useflags are needed
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-no-docs.patch )
+
+python_compile_all() {
+ # fixme: multiple python (anyone cares?)
+ use doc && esetup.py build_sphinx
+}
+
+python_install_all() {
+ dodir /usr/share/icons/hicolor/scalable/apps
+ dodir /usr/share/applications
+
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ DOCS+=( examples )
+ fi
+ if use doc; then
+ HTML_DOCS+=( "${BUILD_DIR}"/sphinx/html/. )
+ DOCS+=( "${BUILD_DIR}"/sphinx/latex/*.pdf )
+ fi
+ distutils-r1_python_install_all
+}
diff --git a/sci-misc/vitables/vitables-3.0.0.ebuild b/sci-misc/vitables/vitables-3.0.0.ebuild
new file mode 100644
index 000000000000..b649e315da52
--- /dev/null
+++ b/sci-misc/vitables/vitables-3.0.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 python3_6 )
+
+inherit distutils-r1
+
+MY_P=ViTables-${PV}
+
+DESCRIPTION="A graphical tool for browsing / editing files in both PyTables and HDF5 formats"
+HOMEPAGE="http://vitables.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/pytables[${PYTHON_USEDEP}]
+ dev-python/QtPy[gui,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+python_prepare_all() {
+ # remove the PyQt5 dependency
+ # because PyQt5 in Gentoo does not provide egg-info
+ # see also: https://github.com/pyqt/python-qt5/issues/18
+ sed "s:'PyQt5 [^ ]*::" -i setup.py || die
+
+ distutils-r1_python_prepare_all
+}