summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-misc
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/ViSP-images/Manifest1
-rw-r--r--sci-misc/ViSP-images/ViSP-images-2.10.0.ebuild25
-rw-r--r--sci-misc/ViSP-images/metadata.xml8
-rw-r--r--sci-misc/apertium/Manifest1
-rw-r--r--sci-misc/apertium/apertium-3.2.0.ebuild35
-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.xml12
-rw-r--r--sci-misc/boinc/Manifest2
-rw-r--r--sci-misc/boinc/boinc-7.2.0-r1.ebuild147
-rw-r--r--sci-misc/boinc/boinc-7.2.0.ebuild146
-rw-r--r--sci-misc/boinc/boinc-7.4.42.ebuild141
-rw-r--r--sci-misc/boinc/files/boinc-7.2.0-fix_subdirs.patch69
-rw-r--r--sci-misc/boinc/files/boinc.conf17
-rw-r--r--sci-misc/boinc/files/boinc.init103
-rw-r--r--sci-misc/boinc/files/boinc.service11
-rw-r--r--sci-misc/boinc/files/generate_tarball.sh103
-rw-r--r--sci-misc/boinc/metadata.xml19
-rw-r--r--sci-misc/fitsverify/Manifest1
-rw-r--r--sci-misc/fitsverify/fitsverify-4.17.ebuild34
-rw-r--r--sci-misc/fitsverify/metadata.xml10
-rw-r--r--sci-misc/flashdot/Manifest1
-rw-r--r--sci-misc/flashdot/flashdot-1.1.4.ebuild34
-rw-r--r--sci-misc/flashdot/metadata.xml13
-rw-r--r--sci-misc/gato/Manifest1
-rw-r--r--sci-misc/gato/gato-1.1.2.ebuild52
-rw-r--r--sci-misc/gato/metadata.xml12
-rw-r--r--sci-misc/gt-itm/Manifest2
-rw-r--r--sci-misc/gt-itm/files/gt-itm-implicits.patch111
-rw-r--r--sci-misc/gt-itm/gt-itm-19961004-r1.ebuild75
-rw-r--r--sci-misc/gt-itm/metadata.xml5
-rw-r--r--sci-misc/h5utils/Manifest1
-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.ebuild42
-rw-r--r--sci-misc/h5utils/metadata.xml17
-rw-r--r--sci-misc/lttoolbox/Manifest2
-rw-r--r--sci-misc/lttoolbox/files/3.2.0-flags.patch43
-rw-r--r--sci-misc/lttoolbox/lttoolbox-3.1.0.ebuild20
-rw-r--r--sci-misc/lttoolbox/lttoolbox-3.2.0.ebuild28
-rw-r--r--sci-misc/lttoolbox/metadata.xml12
-rw-r--r--sci-misc/mendeleydesktop/Manifest2
-rw-r--r--sci-misc/mendeleydesktop/mendeleydesktop-1.14.ebuild122
-rw-r--r--sci-misc/mendeleydesktop/metadata.xml26
-rw-r--r--sci-misc/metadata.xml42
-rw-r--r--sci-misc/nco/Manifest3
-rw-r--r--sci-misc/nco/metadata.xml20
-rw-r--r--sci-misc/nco/nco-3.9.9.ebuild71
-rw-r--r--sci-misc/nco/nco-4.4.2.ebuild51
-rw-r--r--sci-misc/nco/nco-4.5.1.ebuild50
-rw-r--r--sci-misc/ncview/Manifest2
-rw-r--r--sci-misc/ncview/metadata.xml12
-rw-r--r--sci-misc/ncview/ncview-2.1.1.ebuild32
-rw-r--r--sci-misc/ncview/ncview-2.1.2.ebuild33
-rw-r--r--sci-misc/netlogo-bin/Manifest4
-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-3.0.2.ebuild44
-rw-r--r--sci-misc/netlogo-bin/netlogo-bin-4.0.4.ebuild55
-rw-r--r--sci-misc/netlogo-bin/netlogo-bin-5.0.3-r1.ebuild61
-rw-r--r--sci-misc/oww/Manifest2
-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.xml8
-rw-r--r--sci-misc/oww/oww-0.86.4.ebuild38
-rw-r--r--sci-misc/oww/oww-0.86.5.ebuild39
-rw-r--r--sci-misc/pythoncad/Manifest1
-rw-r--r--sci-misc/pythoncad/files/pythoncad-1.37-png.patch24
-rw-r--r--sci-misc/pythoncad/metadata.xml11
-rw-r--r--sci-misc/pythoncad/pythoncad-1.37-r1.ebuild49
-rw-r--r--sci-misc/repsnapper/Manifest2
-rw-r--r--sci-misc/repsnapper/metadata.xml10
-rw-r--r--sci-misc/repsnapper/repsnapper-2.2.0b_p3.ebuild34
-rw-r--r--sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild34
-rw-r--r--sci-misc/repsnapper/repsnapper-9999.ebuild29
-rw-r--r--sci-misc/vitables/Manifest1
-rw-r--r--sci-misc/vitables/files/vitables-2.1-no-docs.patch19
-rw-r--r--sci-misc/vitables/metadata.xml11
-rw-r--r--sci-misc/vitables/vitables-2.1.ebuild56
83 files changed, 2751 insertions, 0 deletions
diff --git a/sci-misc/ViSP-images/Manifest b/sci-misc/ViSP-images/Manifest
new file mode 100644
index 000000000000..7f3fb8d07a4a
--- /dev/null
+++ b/sci-misc/ViSP-images/Manifest
@@ -0,0 +1 @@
+DIST ViSP-images-2.10.0.zip 70776344 SHA256 9e4638f583aa12de03e6bdd7d35378ee62df6a5511bf3adf4da6f194cc45d7c1 SHA512 8e44216d3dd54e775544cbd8db156e846d5d7600d205fdfe16100313237b8b9bb7989b8e4272ff9d6e7ec593f121764e1acda93420f1175448e57b5baf2bbcfb WHIRLPOOL b2c8be0812322ab778025d6c6a69f14bccb16c44ea25cbb9828f2d3588cf5e1068ed4b29fbc3977abd3736faa44a4c5032f0397f8db8557e42b2ad06e0a245be
diff --git a/sci-misc/ViSP-images/ViSP-images-2.10.0.ebuild b/sci-misc/ViSP-images/ViSP-images-2.10.0.ebuild
new file mode 100644
index 000000000000..ab62d45bb383
--- /dev/null
+++ b/sci-misc/ViSP-images/ViSP-images-2.10.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="ViSP images data set"
+HOMEPAGE="http://www.irisa.fr/lagadic/visp/"
+SRC_URI="http://www.irisa.fr/lagadic/visp/download/sequence/ViSP-images-${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ dodoc README ChangeLog
+ rm -f README LICENSE.txt ChangeLog
+ dodir /usr/share/visp-images-data/
+ mv "${S}" "${ED}/usr/share/visp-images-data/"
+}
diff --git a/sci-misc/ViSP-images/metadata.xml b/sci-misc/ViSP-images/metadata.xml
new file mode 100644
index 000000000000..e7dd05f66879
--- /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>
+<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..676f259b7e51
--- /dev/null
+++ b/sci-misc/apertium/Manifest
@@ -0,0 +1 @@
+DIST apertium-3.2.0.tar.gz 767311 SHA256 6ce2fdc85da5d1e50d69da2e50cc97a87b689476f2c83417765636d9a4b7e9ac SHA512 ec80d72480e414eb9a169241d0921b21009dde7c1da9a773f500f16ac785741be1f4a221c25b3b32e7847405f76e93b5feadb6f541170c0742718e27dfa1fb25 WHIRLPOOL 44b8c6fcda7abe363540d1b3ce344322bec60ff1b822ffb5f228a50b156f9660798a9aafa3c9ccf25652cf858be32efb41b06d5d05e7d8fd3284db7d81aac4a4
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..1cce57a6fe7e
--- /dev/null
+++ b/sci-misc/apertium/apertium-3.2.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..4b8ef8827ae3
--- /dev/null
+++ b/sci-misc/apertium/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <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..a064a6ba6649
--- /dev/null
+++ b/sci-misc/boinc/Manifest
@@ -0,0 +1,2 @@
+DIST boinc-7.2.0.tar.xz 25138432 SHA256 714ac3a10bec41afc224e8343f5bc221a488eefca4592dbc9ce4eea2c10cad5e SHA512 4ee360c14117cf4bbc26dfb48682462cdd15ca04b16f40b76562c0f5fa1a4531775762a1ce1f59960b4d0166a5d429af1279199f5140d3e112c72361ad01c46e WHIRLPOOL 3d41bf1f80d04aa9ec576da18bbb6a8078c98060bd6167dcf6a75fa34619fb95831695fb145a8f4400ec0d99a743f42539751667fcbc505fba7c747c0e0bedfd
+DIST boinc-7.4.42.tar.gz 44075908 SHA256 2656727628cae8b15c39e48e08e0521aae345dd1cf4674c6730150500b30145f SHA512 6eabb130d38c55b551ce216afcb8b4a27d9755c4a20dfc30e7ab0c7e8ba5ab5af6995348ec5fee6b9711aa85f7fdbcef78b05894873d8780f20c9e29e17c8ad1 WHIRLPOOL 3b61de0a5a443d457ceda3c01bf824fa5d9a72c7e5d8e8da1bf35f1510a7d3fb72dbbf8ce329b2f8ca18c82afc16852df0cd047d4870b06537ddff473277d655
diff --git a/sci-misc/boinc/boinc-7.2.0-r1.ebuild b/sci-misc/boinc/boinc-7.2.0-r1.ebuild
new file mode 100644
index 000000000000..8330ab3336d6
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.2.0-r1.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+#WANT_AUTOMAKE="1.11"
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils flag-o-matic eutils wxwidgets user systemd
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda static-libs"
+
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ dev-libs/openssl:0=
+ net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)]
+ 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:2.8[X,opengl]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_subdirs.patch
+)
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local wxconf=""
+
+ # add gtk includes
+ append-flags "$(pkg-config --cflags gtk+-2.0)"
+
+ # look for wxGTK
+ if use X; then
+ WX_GTK_VER="2.8"
+ need-wxwidgets unicode
+ wxconf+=" --with-wx-config=${WX_CONFIG}"
+ else
+ wxconf+=" --without-wxdir"
+ fi
+
+ local myeconfargs=(
+ --disable-server
+ --enable-client
+ --enable-dynamic-client-linkage
+ --disable-static
+ --enable-unicode
+ --with-ssl
+ $(use_with X x)
+ $(use_enable X manager)
+ ${wxconf}
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ dodir /var/lib/${PN}/
+ keepdir /var/lib/${PN}/
+
+ if use X; then
+ newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED}"/etc/
+
+ newinitd "${FILESDIR}"/${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
+ if use cuda; then
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
+ else
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "You are using the source compiled version of ${PN}."
+ use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
+ elog
+ elog "You need to attach to a project to do anything useful with ${PN}."
+ elog "You can do this by running /etc/init.d/${PN} 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/${PN}/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/${PN}"
+ 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
+}
diff --git a/sci-misc/boinc/boinc-7.2.0.ebuild b/sci-misc/boinc/boinc-7.2.0.ebuild
new file mode 100644
index 000000000000..c162cf1d311c
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.2.0.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+#WANT_AUTOMAKE="1.11"
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils flag-o-matic eutils wxwidgets user
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda static-libs"
+
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ dev-libs/openssl:0=
+ net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)]
+ 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:2.8[X,opengl]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_subdirs.patch
+)
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local wxconf=""
+
+ # add gtk includes
+ append-flags "$(pkg-config --cflags gtk+-2.0)"
+
+ # look for wxGTK
+ if use X; then
+ WX_GTK_VER="2.8"
+ need-wxwidgets unicode
+ wxconf+=" --with-wx-config=${WX_CONFIG}"
+ else
+ wxconf+=" --without-wxdir"
+ fi
+
+ local myeconfargs=(
+ --disable-server
+ --enable-client
+ --enable-dynamic-client-linkage
+ --disable-static
+ --enable-unicode
+ --with-ssl
+ $(use_with X x)
+ $(use_enable X manager)
+ ${wxconf}
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ dodir /var/lib/${PN}/
+ keepdir /var/lib/${PN}/
+
+ if use X; then
+ newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED}"/etc/
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+}
+
+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
+ if use cuda; then
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
+ else
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "You are using the source compiled version of ${PN}."
+ use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
+ elog
+ elog "You need to attach to a project to do anything useful with ${PN}."
+ elog "You can do this by running /etc/init.d/${PN} 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/${PN}/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/${PN}"
+ 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
+}
diff --git a/sci-misc/boinc/boinc-7.4.42.ebuild b/sci-misc/boinc/boinc-7.4.42.ebuild
new file mode 100644
index 000000000000..2cfff07888ef
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.4.42.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+#WANT_AUTOMAKE="1.11"
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils eutils flag-o-matic 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"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda static-libs"
+
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ dev-libs/openssl:0=
+ net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)]
+ 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:2.8[X,opengl]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+"
+
+S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-server
+ --enable-client
+ --enable-dynamic-client-linkage
+ --disable-static
+ --enable-unicode
+ --with-ssl
+ $(use_with X x)
+ $(use_enable X manager)
+ )
+
+ # look for wxGTK
+ if use X; then
+ WX_GTK_VER="2.8"
+ need-wxwidgets unicode
+ myeconfargs+=(--with-wx-config="${WX_CONFIG}")
+ else
+ myeconfargs+=(--without-wxdir)
+ fi
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ keepdir /var/lib/${PN}
+
+ if use X; then
+ newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED}"/etc
+
+ newinitd "${FILESDIR}"/${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
+ group+=",video"
+ fi
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
+}
+
+pkg_postinst() {
+ echo
+ 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
+}
diff --git a/sci-misc/boinc/files/boinc-7.2.0-fix_subdirs.patch b/sci-misc/boinc/files/boinc-7.2.0-fix_subdirs.patch
new file mode 100644
index 000000000000..be0a02c30cfd
--- /dev/null
+++ b/sci-misc/boinc/files/boinc-7.2.0-fix_subdirs.patch
@@ -0,0 +1,69 @@
+ Makefile.am | 14 +++++++-------
+ configure.ac | 5 -----
+ 2 files changed, 7 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 6322db1..45d8b67 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -10,13 +10,13 @@ ACLOCAL_AMFLAGS = -I m4
+
+ if ENABLE_LIBRARIES
+ API_SUBDIRS = api lib
+-if ENABLE_SERVER
+- API_SUBDIRS += zip
+-endif
++#if ENABLE_SERVER
++# API_SUBDIRS += zip
++#endif
+ endif
+
+ if ENABLE_SERVER
+- SERVER_SUBDIRS = db test py sched apps tools vda html
++ SERVER_SUBDIRS = db test py sched apps tools vda
+ ## once contained samples/example_app which breaks out-of-source-tree builds
+ endif
+
+@@ -26,9 +26,9 @@ endif
+
+ if ENABLE_MANAGER
+ CLIENTGUI_SUBDIRS = clientgui locale
+-if BUILD_X11_SCREENSAVER
+- CLIENTGUI_SUBDIRS += clientscr
+-endif
++#if BUILD_X11_SCREENSAVER
++# CLIENTGUI_SUBDIRS += clientscr
++#endif
+ endif
+
+ # ORDER MATTERS below. One must build dependencies FIRST, then things
+diff --git a/configure.ac b/configure.ac
+index 2bef437..5a9e104 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -955,7 +955,6 @@ AC_CONFIG_FILES([
+ apps/Makefile
+ clientgui/Makefile
+ clientgui/res/Makefile
+- clientscr/Makefile
+ client/Makefile
+ client/win/boinc_path_config.py:py/boinc_path_config.py.in
+ client/scripts/Makefile
+@@ -963,7 +962,6 @@ AC_CONFIG_FILES([
+ db/Makefile
+ doc/Makefile
+ doc/manpages/Makefile
+- html/Makefile
+ lib/Makefile
+ locale/Makefile
+ Makefile
+@@ -993,9 +991,6 @@ AC_CONFIG_FILES([
+ tools/boinc_path_config.py:py/boinc_path_config.py.in
+ tools/Makefile
+ vda/Makefile
+- zip/Makefile
+- zip/zip/Makefile
+- zip/unzip/Makefile
+ m4/Makefile
+ ])
+
diff --git a/sci-misc/boinc/files/boinc.conf b/sci-misc/boinc/files/boinc.conf
new file mode 100644
index 000000000000..0fef6ae58e37
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.conf
@@ -0,0 +1,17 @@
+# 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"
+
+# Allow remote gui RPC yes or no
+ALLOW_REMOTE_RPC="no"
+
+# nice level
+NICELEVEL="19"
diff --git a/sci-misc/boinc/files/boinc.init b/sci-misc/boinc/files/boinc.init
new file mode 100644
index 000000000000..a350e3efd7c4
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.init
@@ -0,0 +1,103 @@
+#!/sbin/runscript
+
+extra_started_commands="attach"
+
+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() {
+ if [ ! -d "${RUNTIMEDIR}" ]; then
+ einfo "Directory ${RUNTIMEDIR} not existing, creating now."
+ mkdir "${RUNTIMEDIR}"
+ if [ ! -d "${RUNTIMEDIR}" ]; then
+ eeror "Directory ${RUNTIMEDIR} could not be created!"
+ return 1
+ fi
+ fi
+ if [ ! -e "${RUNTIMEDIR}"/ca-bundle.crt ] ; then
+ ln -s /etc/ssl/certs/ca-certificates.crt "${RUNTIMEDIR}"/ca-bundle.crt
+ fi
+}
+
+cuda_check() {
+ if [ -f /opt/cuda/lib/libcudart.so ]; then
+ # symlink wont harm :]
+ ln -snf /opt/cuda/lib/libcudart.so "${RUNTIMEDIR}"/libcudart.so
+ fi
+}
+
+check_baselayout() {
+ if [ "${RC_VERSION:-0}" = "0" ]; then
+ eerror "This script cannot be used for baselayout-1."
+ return 1
+ fi
+}
+
+start() {
+ check_baselayout || return 1
+ create_work_directory || return 1
+ cuda_check
+
+ # always ensure proper ownership
+ chown -R "${USER}:${GROUP}" "${RUNTIMEDIR}"
+
+ 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 /etc/init.d/boinc attach or connect with a gui client"
+ einfo "and attach to a project with that."
+ echo
+ 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
+
+ if [ "${ALLOW_REMOTE_RPC}" = "yes" ]; then
+ ARGS="${ARGS} --allow_remote_gui_rpc"
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+ su -m ${USER} -c "nice -n ${NICELEVEL} \"${BOINCBIN}\" ${ARGS} --daemon --dir \"${RUNTIMEDIR}\" --redirectio"
+ eend $?
+}
+
+attach() {
+ local password url key
+
+ einfo "If you cant 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
+
+ password=$(cat "${RUNTIMEDIR}/gui_rpc_auth.cfg")
+
+ ebegin "${SVCNAME}: Attaching to project"
+ su -m ${USER} -c "boinccmd --passwd \"${password}\" --project_attach ${url} ${key}"
+ eend $?
+
+ unset password url key
+
+ sleep 10
+ tail "${RUNTIMEDIR}/stdoutdae.txt"
+}
+
+stop() {
+ local password
+
+ password=$(cat "${RUNTIMEDIR}/gui_rpc_auth.cfg")
+
+ ebegin "Stopping ${SVCNAME}"
+ su -m ${USER} -c "boinccmd --passwd \"${password}\" --quit"
+ eend $?
+
+ unset password
+}
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/generate_tarball.sh b/sci-misc/boinc/files/generate_tarball.sh
new file mode 100644
index 000000000000..eb98b46c39ff
--- /dev/null
+++ b/sci-misc/boinc/files/generate_tarball.sh
@@ -0,0 +1,103 @@
+#!/usr/bin/env bash
+## $Id$
+## Modified by scarabeus 2008-10-23
+###############################################################################
+# functions
+###############################################################################
+# print out help function
+help() {
+ echo "Welcome to Boinc tarball generator"
+ echo
+ echo "For correct usage set VERSION argument"
+ echo "Example:"
+ echo "$0 -v 6.1.1"
+ exit 0
+}
+###############################################################################
+# argument passing
+###############################################################################
+if [[ $1 == "--help" ]]; then
+ help
+fi
+while getopts v: arg ; do
+ case $arg in
+ v) VERSION=${OPTARG};;
+ *) help;;
+ esac
+done
+if [ -z "${VERSION}" ]; then
+ help
+fi
+###############################################################################
+# variable definition
+###############################################################################
+GIT_URI="git://boinc.berkeley.edu/boinc-v2.git"
+PACKAGE="boinc-${VERSION}"
+BUNDLE_PREFIX="boinc-dist"
+LOG=linux.log
+###############################################################################
+# prepare enviroment
+###############################################################################
+mkdir ${BUNDLE_PREFIX} -p
+rm -rf "${BUNDLE_PREFIX}"/* # CLEANUP
+cd "${BUNDLE_PREFIX}"
+touch "${LOG}"
+echo "" > "${LOG}" # LOG CLEANUP
+###############################################################################
+# get data from GIT
+###############################################################################
+echo "<Downloading files from GIT repository>"
+echo "<******************************>"
+# No direct archive possible
+git clone ${GIT_URI} ${PACKAGE} >> "${LOG}"
+pushd "${PACKAGE}" > /dev/null
+git checkout -b gentoo client_release/${VERSION%.*}/${VERSION} || exit 0
+popd > /dev/null
+###############################################################################
+# cleanup files we fetched
+###############################################################################
+echo "<Cleaning up data we fetched>"
+echo "<******************************>"
+pushd "${PACKAGE}" > /dev/null
+
+# First remove NON Linux stuff we will not use
+rm -rf mac_installer/ # mac installer scripts
+rm -rf clientgui/mac/ # mac windows
+rm -rf clientscr/ # windows screensaver
+rm -rf clienttray/ # windows systray
+rm -rf win_build/ # windows build stuff
+rm -rf clientlib/ # only windows stuff
+rm -rf client/os2/ # OS2 stuff
+rm -rf client/win/ # windows stuff
+rm -rf mac_build/ # mac build scripts
+rm -rf RSAEuro/ # empty folder
+rm -rf html/ # webpages WTF?
+
+
+# BUNDLED STUFF NEEDED REMOVAL
+rm -rf coprocs/ # CUDA
+rm -rf curl/
+#rm -rf locale/*/*.mo # translations should be generated on user machines
+# Actualy they dont generate them
+rm -rf zlib/
+rm -rf zip/
+rm -rf openssl/
+
+git commit -a -m "Cleaned"
+
+popd > /dev/null
+
+###############################################################################
+# create tbz
+###############################################################################
+git archive --prefix=${PACKAGE}/ --remote=${PACKAGE} gentoo -o ${PACKAGE}.tar
+xz -ve9 "${PACKAGE}".tar | tee -a "${LOG}"
+find ./ -maxdepth 1 -type f -name \*.tar.xz -print | while read FILE ; do
+ echo "FILE: ${FILE}"
+ echo " SIZE: $(`which du` -h ${FILE} |`which awk` -F' ' '{print $1}')"
+ echo " MD5SUM: $(`which md5sum` ${FILE} |`which awk` -F' ' '{print $1}')"
+ echo " SHA1SUM: $(`which sha1sum` ${FILE} |`which awk` -F' ' '{print $1}')"
+ echo
+done
+echo "<<<All done>>>"
+###############################################################################
diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml
new file mode 100644
index 000000000000..587dfa1190b9
--- /dev/null
+++ b/sci-misc/boinc/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <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 bug about it.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="github">BOINC/boinc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/fitsverify/Manifest b/sci-misc/fitsverify/Manifest
new file mode 100644
index 000000000000..7d301ae7dc6a
--- /dev/null
+++ b/sci-misc/fitsverify/Manifest
@@ -0,0 +1 @@
+DIST fitsverify-4.17.tar.gz 42634 SHA256 1ffb76e285715477ac3d7de3cc5ce96e74c3cd81f9b3d840327dda39d0598c3b SHA512 0d15b8e4ae5098126bed2bb2dfaa47ac20d977ed707352dc7930ebaf23a7a20cc69458fd77f9e76888e2ec4ef8a2a2f180c2fe03b9b7a4c9299aeea6df831879 WHIRLPOOL f666800c32603027ea07dff975d104b525643e13bc7920bf6056d8ff2f5c0dc1701a4a7d870e5c0a64ca1399f199b3d542ffcbed6a6a280202d193c615305b0f
diff --git a/sci-misc/fitsverify/fitsverify-4.17.ebuild b/sci-misc/fitsverify/fitsverify-4.17.ebuild
new file mode 100644
index 000000000000..5b82bfe0c38e
--- /dev/null
+++ b/sci-misc/fitsverify/fitsverify-4.17.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+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="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND=">=sci-libs/cfitsio-3:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ $(tc-getCC) -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..0398d6d922a2
--- /dev/null
+++ b/sci-misc/fitsverify/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<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..d43318fdf446
--- /dev/null
+++ b/sci-misc/flashdot/Manifest
@@ -0,0 +1 @@
+DIST flashdot-1.1.4.tar.bz2 464763 RMD160 16f0118a964d553c26bb04d1f5ce6c61f0712b3b SHA1 76d0a83c4dfd3d7410a27b0f673319e82e0af6ae SHA256 b43c05d2933c1381cfd5a0761250ce68ad0a138a150679df0bf7b80564c93439
diff --git a/sci-misc/flashdot/flashdot-1.1.4.ebuild b/sci-misc/flashdot/flashdot-1.1.4.ebuild
new file mode 100644
index 000000000000..2711ac0dc461
--- /dev/null
+++ b/sci-misc/flashdot/flashdot-1.1.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="Generator for psychophysical experiments"
+HOMEPAGE="http://www.flashdot.info/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ http://dev.gentoo.org/~tomka/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+IUSE="+ocamlopt"
+
+DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]
+ dev-ml/ocamlsdl
+ dev-ml/ocamlgsl
+ dev-ml/lablgl[glut]
+ x11-apps/xdpyinfo"
+RDEPEND="${DEPEND}"
+
+MAKEOPTS="-j1 VERSION=${PV}"
+use ocamlopt || MAKEOPTS="${MAKEOPTS} TARGETS=flashdot_bytecode BYTECODENAME=flashdot"
+
+src_compile() {
+ emake ${MAKEOPTS} || die "emake failed"
+}
+
+src_install() {
+ emake ${MAKEOPTS} DESTDIR="${D}" CALLMODE=script install || die "install failed"
+}
diff --git a/sci-misc/flashdot/metadata.xml b/sci-misc/flashdot/metadata.xml
new file mode 100644
index 000000000000..8f23be731dae
--- /dev/null
+++ b/sci-misc/flashdot/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>
+<email>tomka@gentoo.org</email>
+<name>Thomas Kahle</name>
+</maintainer>
+<herd>sci</herd>
+<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..430af62adae2
--- /dev/null
+++ b/sci-misc/gato/Manifest
@@ -0,0 +1 @@
+DIST Gato-1.1.2.tar.gz 272060 SHA256 eb700c73cc411be70713d34a936da62fca9c0173f875dba636e726e47dbfcadd SHA512 a0567bc3ddb6060b713f3453f6a89d978da580c97ab28f094b90e82cfc584ba1cd459add0c5f2d32e746fc074ac78b2f3394d752a7bbdf14c8ccdd90b25e5008 WHIRLPOOL 024df3365c169a93cf2850ed571ad04a5e732f0bd3e535bd401881236acf8538aa673ba5dbc6bfa8b40dddab5737de1b863ea2d2029807631114be59c526c550
diff --git a/sci-misc/gato/gato-1.1.2.ebuild b/sci-misc/gato/gato-1.1.2.ebuild
new file mode 100644
index 000000000000..89d4077712ef
--- /dev/null
+++ b/sci-misc/gato/gato-1.1.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="tk"
+
+inherit eutils python
+
+MYP="Gato-${PV}"
+
+DESCRIPTION="Graph Animation Toolbox"
+HOMEPAGE="http://gato.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+S="${WORKDIR}/${MYP}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ # 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"
+}
+
+src_install() {
+ # install python code
+ local instdir=$(python_get_sitedir)/${PN}
+ insinto ${instdir}
+ doins *.py
+ fperms 755 ${instdir}/{Gato,Gred}.py
+ python_convert_shebangs -r 2 "${ED}"
+
+ # create symlinks
+ dosym ${instdir}/Gato.py /usr/bin/gato
+ dosym ${instdir}/Gred.py /usr/bin/gred
+
+ # 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..bc70ae41110c
--- /dev/null
+++ b/sci-misc/gato/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-mathematics</herd>
+ <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..daf4db55dd8b
--- /dev/null
+++ b/sci-misc/gt-itm/Manifest
@@ -0,0 +1,2 @@
+DIST gt-itm.tar.gz 623345 SHA256 0719947bb6e3a82d0054b6d4c74f5b3615c5583d326c32e11a848dcfed861538 SHA512 e775ac475d40fc753a27fb619f262d701818190fa3be90d587f95e215610918b56b9d67783d4e7e2f55d0064e5b2d2ce911042353b29bce1e4dbcf407ff9fabc WHIRLPOOL c447323fe98b7bef85d5fda86cfa3b559208694519be17ead0d5792dc8b27349a1c2b0bbde4d8a571f609c1c1a66b33b30888165215d332e64ee28b748328bab
+DIST sgb2ns.tar.gz 50635 SHA256 902f1a3d1a57e87387dd3bd22b8fda7c1ee2830f87fa468ab775aa8feb2a22cb SHA512 77ec6fdad61f43bf078851852aa03dfea02df235a78853e477dacc8e2b94c0d8bda9772fc00d18fdaeabc419b2780c016b7a64a1a06ac0be2c8c2aa6608c06cf WHIRLPOOL ae6a0d2701c0a98eb7b059acc8760acc444ca086b4eb60e46cce4df1491012c9b1853cb1acc35c709938103a94f005c379c5bad9630b4a464af7460a3b9e3bfb
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-r1.ebuild b/sci-misc/gt-itm/gt-itm-19961004-r1.ebuild
new file mode 100644
index 000000000000..56b2fb092197
--- /dev/null
+++ b/sci-misc/gt-itm/gt-itm-19961004-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Routines to generate and analyze graphs using different 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="~x86 ~amd64"
+RESTRICT="mirror bindist"
+
+DEPEND="dev-util/sgb"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+S2="${WORKDIR}/sgb2ns"
+
+src_unpack() {
+ unpack sgb2ns.tar.gz
+
+ mkdir "${S}"
+ cd "${S}"
+ unpack gt-itm.tar.gz
+
+ sed -r -e '/^[[:alnum:]]+\.o:/d' \
+ -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' \
+ -e 's/\$\(CC\)/& \$\(LDFLAGS\)/g' \
+ -i "${S}"/src/Makefile || die
+ sed -r -e '/^SYS = -DSYSV/d' \
+ -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' \
+ -e 's/\$\(CC\)/& \$\(LDFLAGS\)/g' \
+ -i ${S2}/Makefile || die
+
+ rm -f "${S}"/lib/*
+
+ find "${S}"/sample-graphs/ -perm +111 -type f -name 'Run*' \
+ | xargs -r -n1 sed -re 's|(\.\./)+bin/||g' -i || die
+
+ sed -e 's|sys/types.h|sys/param.h|' -i "${S}"/src/geog.c || die
+ sed -e '162 s/connected $/connected \\/' -i "${S}"/src/eval.c || die
+
+ # fix implicit function declarations
+ sed -e '/stdio.h/ a\#include <stdlib.h>' \
+ -i "${S2}/sgb2comns.c" "${S2}/sgb2hierns.c" || die
+ sed -e "s/<strings.h>/<string.h>/g" \
+ -i "${S2}/sgb2hierns.c" || die
+ epatch "${FILESDIR}"/${PN}-implicits.patch
+}
+
+src_compile() {
+ cd "${S}"/src
+ emake CFLAGS="${CFLAGS} -I../include" LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" || die
+
+ cd "${S2}"
+ emake CFLAGS="${CFLAGS} -I\$(IDIR) -L\$(LDIR)" LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ dobin "${S}"/bin/* || die
+ dodoc "${S}"/README "${S}"/docs/* || die
+ cp -pPR "${S}"/sample-graphs "${D}"/usr/share/doc/${PF} || die
+
+ cd "${S2}"
+ dodoc *.tcl *.gb || die
+ newdoc README README.sgb2ns || die
+
+}
diff --git a/sci-misc/gt-itm/metadata.xml b/sci-misc/gt-itm/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/sci-misc/gt-itm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-misc/h5utils/Manifest b/sci-misc/h5utils/Manifest
new file mode 100644
index 000000000000..e19bb57225ab
--- /dev/null
+++ b/sci-misc/h5utils/Manifest
@@ -0,0 +1 @@
+DIST h5utils-1.12.1.tar.gz 156785 SHA256 7290290ca5d5d4451d757a70c86baaa70d23a28edb09c951b6b77c22b924a38d SHA512 b4295ac52ddfe922ed9f0a9079c69d6fdba5a261558d8c820a8feae592db3bd57a3394ab1fc9ceead00038a80bc70f32e0a8aa437cb33182899553bfdbf1f547 WHIRLPOOL c717c41545533eb0ba9f7d4813c42e3fbbec3ef292f8461ead0f0dcbe4e7530d64740dffb94cf25e839420ac4633082c06833ea5013a1a9eb276ef516d632f14
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..80ddd86d1730
--- /dev/null
+++ b/sci-misc/h5utils/h5utils-1.12.1-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+ )"
+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..3b1e1069c1a3
--- /dev/null
+++ b/sci-misc/h5utils/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<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..202ceded63de
--- /dev/null
+++ b/sci-misc/lttoolbox/Manifest
@@ -0,0 +1,2 @@
+DIST lttoolbox-3.1.0.tar.gz 375031 SHA256 17ceeac6a2a2c0afdeded8f79594145b9964e78bc2ab8eb49bf2a35f63c80fb4
+DIST lttoolbox-3.2.0.tar.gz 372484 SHA256 1359291173ae4af6cbaa625f5ab63ad288b91f72ed0555b2a676e3dfe9b4c1fc
diff --git a/sci-misc/lttoolbox/files/3.2.0-flags.patch b/sci-misc/lttoolbox/files/3.2.0-flags.patch
new file mode 100644
index 000000000000..a6a56bf42c0d
--- /dev/null
+++ b/sci-misc/lttoolbox/files/3.2.0-flags.patch
@@ -0,0 +1,43 @@
+diff -Nur lttoolbox-3.2.0.orig/configure.ac lttoolbox-3.2.0/configure.ac
+--- lttoolbox-3.2.0.orig/configure.ac 2011-07-29 06:36:44.000000000 +0100
++++ lttoolbox-3.2.0/configure.ac 2011-07-29 06:38:04.000000000 +0100
+@@ -51,39 +51,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
+-
+-if test x$ARCH = xppc
+-then
+- AC_MSG_RESULT([PowerPC])
+- CFLAGS="-Wall -fomit-frame-pointer $CFLAGS"
+- CXXFLAGS="-Wall -fomit-frame-pointer $CXXFLAGS"
+-else
+- if test x$ARCH = xi686
+- then
+- AC_MSG_RESULT([i686])
+- CFLAGS="-Wall -march=i686 -O3 -fomit-frame-pointer -funroll-loops $CFLAGS"
+- CXXFLAGS="-Wall -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+-
+- else
+- if test x$ARCH = xx86_64
+- then
+- AC_MSG_RESULT([x86_64])
+- CFLAGS="-Wall -O3 -mtune=nocona -fomit-frame-pointer -funroll-loops $CFLAGS"
+- CXXFLAGS="-Wall -O3 -mtune=nocona \
+- -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+- else
+- AC_MSG_RESULT([Other])
+- CFLAGS="-Wall -O3 $CFLAGS"
+- CXXFLAGS="-Wall -O3 $CXXFLAGS"
+- fi
+- fi
+-fi
+
+ AC_CANONICAL_HOST
+
diff --git a/sci-misc/lttoolbox/lttoolbox-3.1.0.ebuild b/sci-misc/lttoolbox/lttoolbox-3.1.0.ebuild
new file mode 100644
index 000000000000..70b1cccd0b1e
--- /dev/null
+++ b/sci-misc/lttoolbox/lttoolbox-3.1.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Toolbox for lexical processing, morphological analysis and generation of words"
+HOMEPAGE="http://apertium.sourceforge.net"
+SRC_URI="mirror://sourceforge/apertium/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/libxml2:2
+ dev-libs/libxslt
+ dev-libs/libpcre
+ sys-libs/libunwind"
+RDEPEND="${DEPEND}"
diff --git a/sci-misc/lttoolbox/lttoolbox-3.2.0.ebuild b/sci-misc/lttoolbox/lttoolbox-3.2.0.ebuild
new file mode 100644
index 000000000000..23dc5750b317
--- /dev/null
+++ b/sci-misc/lttoolbox/lttoolbox-3.2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils autotools
+
+DESCRIPTION="Toolbox for lexical processing, morphological analysis and generation of words"
+HOMEPAGE="http://apertium.sourceforge.net"
+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() {
+ epatch "${FILESDIR}"/${PV}-flags.patch
+ 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..052d44463a30
--- /dev/null
+++ b/sci-misc/lttoolbox/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <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..7c21798ffafb
--- /dev/null
+++ b/sci-misc/mendeleydesktop/Manifest
@@ -0,0 +1,2 @@
+DIST mendeleydesktop-1.14-linux-i486.tar.bz2 33111869 SHA256 42c789b265545ccd8056668111cc6e7a09850491f2719e30170936f4e0940d6c SHA512 57e4f2e2af9644e6170755c008dea715cc206880425dd5fd9bb18052cdec769b1cab5e2226725e7614f29cce8e42039f2e394db81495de371a4ffa11ea967d0f WHIRLPOOL 5e0772618348715a48ab43563c55f96d8bba5a99db07d29b4dca86e711e4ce2a0dcabd90270f9384879a70c78a55f58b70c18c77658919e292f77d107f2050be
+DIST mendeleydesktop-1.14-linux-x86_64.tar.bz2 32843455 SHA256 bfab457fe2a896539059bc301fc1daf15b0b03180b21ea083a0929ffbc699d70 SHA512 690477edd15d9f48d7bb5b87fe42b07cc187b9ab9c307836980af00a0e409bbbf5ce5980b9bdc039a466c4389ef17ed37c9fd3e8fb5deb535bf9e5d2f4c8ac85 WHIRLPOOL defb4e19889c17074447d11a2e75b6a96ead68140bea290629ed095ebcc5e966bf5c5dd1204908c731f3532ea6ba97794cc435a75365493e014aa36d0cc6e4ff
diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.14.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.14.ebuild
new file mode 100644
index 000000000000..34b00514635e
--- /dev/null
+++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.14.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+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="${PYTHON_DEPS}
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ dev-qt/qtxmlpatterns:4
+ x11-libs/libX11
+ "
+
+QA_PREBUILT="/opt/mendeleydesktop/.*"
+
+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() {
+ # remove bundled Qt libraries
+ rm -r lib/mendeleydesktop/plugins \
+ || die "failed to remove plugin directory"
+ rm -r lib/qt || die "failed to remove qt libraries"
+
+ # force use of system Qt libraries
+ sed -i "s:sys\.argv\.count(\"--force-system-qt\") > 0:True:" \
+ bin/mendeleydesktop || die "failed to patch startup script"
+
+ # fix library paths
+ sed -i \
+ -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \
+ -e "s:MENDELEY_BASE_PATH + \"/lib/\":MENDELEY_BASE_PATH + \"/$(get_libdir)/\":g" \
+ bin/mendeleydesktop || die "failed to patch library path"
+}
+
+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
+
+ # install launch script
+ into /opt
+ make_wrapper ${PN} "/opt/${PN}/bin/${PN} --unix-distro-build"
+}
+
+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..b896b3ebe0a0
--- /dev/null
+++ b/sci-misc/mendeleydesktop/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>
+ <email>miknix@gentoo.org</email>
+ <name>Angelo Arrifano</name>
+ </maintainer>
+ <maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <maintainer>
+ <email>marbre@linux.sungazer.de</email>
+ <name>Marius Brehler</name>
+ </maintainer>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ <name>Justin Lecher</name>
+ <description>proxy for Marius</description>
+ </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..bba7070e57d9
--- /dev/null
+++ b/sci-misc/nco/Manifest
@@ -0,0 +1,3 @@
+DIST nco-3.9.9.tar.gz 4109201 SHA256 cdfd7cf47aef49b32e4e581bc7d2d6cdd05312ed88a2a0cfaf83c520e665b142
+DIST nco-4.4.2.tar.gz 7801937 SHA256 6b2f48ac4618ba50306885a6358925956c2b178dee6348ada3195a3fc2a425d8 SHA512 b624174bdb4d10b6f4e05024c0e4f06f642ebeb9bdb291e7dbf07b858522cdb7f2385d63ba70cab36aef40fc42d6d229a1c3bfacd85747f516cbbd45748ae185 WHIRLPOOL ca5d974ac10a0211d5cb4d0daab1501d7e13429530ef480c070af2f70e46630a3b49213b1370b17be0f829b9d73a437a3d44d4bc750b0c54f55a56402b3e7ec7
+DIST nco-4.5.1.tar.gz 4406757 SHA256 c9a34b1f649635093e219604479b0aa4fd2d400aaee4328577443642ed2920ae SHA512 69c19cc9502272adada329dae669fc1c263a360789963253315e81ce1534647b9172b39a0fd3c0f0f453bf903c8a8a4b0e3f0eb778390e43b64eede3a0478485 WHIRLPOOL 868fc67f0bb5c43f8b00a1479de428d0b2e9bdfed75ed4983baf05dee266d6750e43ead70a1bef16d693f2f47bc343c16a1fdd0cf77cabb36595fd8043a7844d
diff --git a/sci-misc/nco/metadata.xml b/sci-misc/nco/metadata.xml
new file mode 100644
index 000000000000..4f8a54def83b
--- /dev/null
+++ b/sci-misc/nco/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <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>
+</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..2daf4381746b
--- /dev/null
+++ b/sci-misc/nco/nco-3.9.9.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ppc 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.4.2.ebuild b/sci-misc/nco/nco-4.4.2.ebuild
new file mode 100644
index 000000000000..9fcd4d695cae
--- /dev/null
+++ b/sci-misc/nco/nco-4.4.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="dap doc gsl ncap2 static-libs test udunits"
+
+RDEPEND="
+ >=sci-libs/netcdf-4:=[dap=,tools]
+ gsl? ( sci-libs/gsl:= )
+ udunits? ( >=sci-libs/udunits-2 )"
+
+DEPEND="${RDEPEND}
+ ncap2? ( dev-java/antlr:0 )
+ 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 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() {
+ autotools-utils_src_install
+ cd doc
+ doinfo *.info*
+ use doc && dohtml nco.html && dodoc nco.pdf
+}
diff --git a/sci-misc/nco/nco-4.5.1.ebuild b/sci-misc/nco/nco-4.5.1.ebuild
new file mode 100644
index 000000000000..599f5f550754
--- /dev/null
+++ b/sci-misc/nco/nco-4.5.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~ppc ~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:= )
+ udunits? ( >=sci-libs/udunits-2 )"
+
+DEPEND="${RDEPEND}
+ ncap2? ( dev-java/antlr:0 )
+ 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..1452600da0e2
--- /dev/null
+++ b/sci-misc/ncview/Manifest
@@ -0,0 +1,2 @@
+DIST ncview-2.1.1.tar.gz 1232134 SHA256 8aaf98fad15790313739520b88e17748617be504f0a2b0322a62144e390db1dd SHA512 3cb8156670b2f6e6028df028641b3d6f0909fe0a9fd255f3189c5937c9fd2bd7fb2ac0c2be17aa74c6a8e7b7a67e6e1ac6e5691fe2e01091ce9b0b221890e992 WHIRLPOOL 84fdcd04fce130b4bff216d750b3d369bbdec55300402361c4a6041ebe223382a9633a288ae81400a39be3dd5451e56cddc5640e4f78e3ef928959bb9824a9e0
+DIST ncview-2.1.2.tar.gz 1269929 SHA256 099165e85d5aa15c3091e856b1003de768db75f5824a364cbe6bab6698244f4e SHA512 8146be3b20870a3dbbf44e8e1c51a18f36bcc60827a969f15606ba7ae068f1e4598fc2004612f84e17cffec1960f6683ee56f15b91e46eb82db173f7b7baa1dc WHIRLPOOL cd75101e5bcb2d15ddd0088cc726bc0efcf2182b1deb58f894cc98aad2ed2b05c105fa683cb2b552da124f9089c2b8bbfc179a75916959fc0a05b9977e7464ca
diff --git a/sci-misc/ncview/metadata.xml b/sci-misc/ncview/metadata.xml
new file mode 100644
index 000000000000..a4c406ecfd48
--- /dev/null
+++ b/sci-misc/ncview/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<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.1.ebuild b/sci-misc/ncview/ncview-2.1.1.ebuild
new file mode 100644
index 000000000000..56deb16554ad
--- /dev/null
+++ b/sci-misc/ncview/ncview-2.1.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+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"
+
+DEPEND="media-libs/libpng
+ >=sci-libs/netcdf-4.1[hdf5]
+ x11-libs/libXaw
+ sci-libs/udunits"
+RDEPEND="${DEPEND}"
+
+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/ncview/ncview-2.1.2.ebuild b/sci-misc/ncview/ncview-2.1.2.ebuild
new file mode 100644
index 000000000000..be78dfe0e9af
--- /dev/null
+++ b/sci-misc/ncview/ncview-2.1.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+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"
+
+DEPEND="
+ media-libs/libpng
+ >=sci-libs/netcdf-4.1[hdf5]
+ x11-libs/libXaw
+ sci-libs/udunits"
+RDEPEND="${DEPEND}"
+
+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..d066112fd39e
--- /dev/null
+++ b/sci-misc/netlogo-bin/Manifest
@@ -0,0 +1,4 @@
+DIST netlogo-3.0.2.tar.gz 21541643 SHA256 4644a232da98f7784e0bc78a6d0c7c5f9f614f11902926786c98de76ac1c7958
+DIST netlogo-4.0.4.tar.gz 36488145 SHA256 678b66951cdd1b4768c464d9a37278251708da8d4c0049bacdc573df4d7dd537 SHA512 9f6e8d1a9abd61f6e2d60b78a8bf9c5cf02646ae437078c5332f538137f61ad94ba6d6490f0ea4b35f66de71e4e5fceb8bef7cee2578dd334f5efec9d9b6f64a WHIRLPOOL 6ad98f980b2341213b99e77452a10da8c06ff598fab6dce5e28dfefa321d7ceca05869a81d729487fd3e4fbe5703965546321ee6a8b95b0955f988e9b58f9345
+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
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..ce9bb4b678b3
--- /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>
+ <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-3.0.2.ebuild b/sci-misc/netlogo-bin/netlogo-bin-3.0.2.ebuild
new file mode 100644
index 000000000000..fb59be9e4a95
--- /dev/null
+++ b/sci-misc/netlogo-bin/netlogo-bin-3.0.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="
+ http://dev.gentoo.org/~jlec/distfiles/${PN/-bin}.gif.tar
+ http://ccl.northwestern.edu/netlogo/${PV}/${MY_P}.tar.gz"
+
+LICENSE="netlogo"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ app-arch/unzip
+ >=virtual/jdk-1.4"
+RDEPEND=">=virtual/jre-1.4"
+
+S="${WORKDIR}"/${MY_P}
+
+src_install() {
+ java-pkg_dojar *.jar
+ java-pkg_dojar extensions/*.jar
+ java-pkg_dojar lib/*.jar
+
+ dohtml -r docs/*
+ insinto /usr/share/${PN}/models
+ doins -r models/*
+
+ insinto /usr/share/pixmaps
+ doins "${WORKDIR}"/netlogo.gif
+
+ exeinto /opt/bin
+ newexe "${FILESDIR}"/netlogo.sh netlogo
+
+ make_desktop_entry netlogo "NetLogo" /usr/share/pixmaps/netlogo.gif
+}
diff --git a/sci-misc/netlogo-bin/netlogo-bin-4.0.4.ebuild b/sci-misc/netlogo-bin/netlogo-bin-4.0.4.ebuild
new file mode 100644
index 000000000000..8cc322297728
--- /dev/null
+++ b/sci-misc/netlogo-bin/netlogo-bin-4.0.4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+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="
+ http://dev.gentoo.org/~jlec/distfiles/${PN/-bin}.gif.tar
+ http://ccl.northwestern.edu/netlogo/${PV}/${MY_P}.tar.gz"
+LICENSE="netlogo"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.5"
+
+S="${WORKDIR}"/${MY_P}
+
+QA_PREBUILT="/usr/share/"${PN}"/lib/*.so"
+
+src_install() {
+ java-pkg_dojar *.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/sample/*.jar
+ java-pkg_dojar extensions/table/*.jar
+ java-pkg_dojar extensions/gis/*.jar
+ java-pkg_dojar lib/*.jar
+
+ dohtml -r docs/*
+ insinto /usr/share/"${PN}"/models
+ doins -r models/*
+
+ insinto /usr/share/pixmaps
+ doins "${WORKDIR}"/netlogo.gif
+
+ exeinto /opt/bin
+ newexe "${FILESDIR}"/netlogo.sh netlogo
+
+ make_desktop_entry netlogo "NetLogo" /usr/share/pixmaps/netlogo.gif
+
+ #3D Libs right now only for x86
+ insinto /usr/share/"${PN}"/lib
+ doins lib/*.so
+}
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..47333a85b35c
--- /dev/null
+++ b/sci-misc/netlogo-bin/netlogo-bin-5.0.3-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="
+ http://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..64848c90d30c
--- /dev/null
+++ b/sci-misc/oww/Manifest
@@ -0,0 +1,2 @@
+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
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..40818b6aa6b4
--- /dev/null
+++ b/sci-misc/oww/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <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..1f8ed82ebf0e
--- /dev/null
+++ b/sci-misc/oww/oww-0.86.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..d94afc32cfd6
--- /dev/null
+++ b/sci-misc/oww/oww-0.86.5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..a4edc43fddaf
--- /dev/null
+++ b/sci-misc/pythoncad/Manifest
@@ -0,0 +1 @@
+DIST PythonCAD-DS1-R37.tar.gz 504053 SHA256 74222bd43af1e66ab31a45782ed7bd94d54ccbbdb7a58046ec2775f27f806031 SHA512 dfc0dd3272f447202c0cf12e60c39d877390ccf6696529f6bcce9a4442db4f09b735d718bc5611d6c33fbedf2190c496fb7a737001eb73a38fbce1ae80eadc81 WHIRLPOOL bab1dc5162bbd4596ed6729a016fc4b642277293a423860ac22aa2439f5e18629dc376455ef82186b1f11780871d5f7b7ac6191d108a62e18dc54ff077bef2d9
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..45e643c9b43c
--- /dev/null
+++ b/sci-misc/pythoncad/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <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..d7b21f494ea8
--- /dev/null
+++ b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="http://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..1c51da697a9f
--- /dev/null
+++ b/sci-misc/repsnapper/Manifest
@@ -0,0 +1,2 @@
+DIST repsnapper-2.2.0b3.tar.gz 1314244 SHA256 2f55ce6bc19bba84bb6dbcda12f6546fa306fa163527d009ea8d730b85d80513 SHA512 52828b06734976369347cd1daa87cf027eea88bbf53e9a8501511f9dbdacf0388a64ec9e87b2cf3a546d332f80a069ee7934d4ac33d6b2d6e831ef326ae69b98 WHIRLPOOL c7b072ab9f465969e9b3f35c7c2fc8d9c4864e2b59aa9a983f6f8c9f8e7b21d6f29627fd0e6098035911b451790b54a72554e2737ab7da92938cb3bd89e8c242
+DIST repsnapper-2.3.2a3.tar.gz 1344447 SHA256 7c4bc3603401847ce1f15298435c511f76fd74c5d5ae4fc1561c7f378c182fe5 SHA512 f68510baefb898954f58aa5e35909b8215edcd8ee74028e717ad97293091f4b323628ca0ba80ff685d1aef0db4785a2887986b89a95769a70f8f23ab031dafa4 WHIRLPOOL 0693876194c5837091b9f9df7d359833b86222345239f3cf946a0e6efd2f87efc35380745cb2a4dd5587a5193c9a3e54d36454fabb0d38722a02ac70d510645d
diff --git a/sci-misc/repsnapper/metadata.xml b/sci-misc/repsnapper/metadata.xml
new file mode 100644
index 000000000000..072d3e24dc46
--- /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>
+ <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.2.0b_p3.ebuild b/sci-misc/repsnapper/repsnapper-2.2.0b_p3.ebuild
new file mode 100644
index 000000000000..559738303653
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-2.2.0b_p3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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.3.2a_p3.ebuild b/sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild
new file mode 100644
index 000000000000..559738303653
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-2.3.2a_p3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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-9999.ebuild b/sci-misc/repsnapper/repsnapper-9999.ebuild
new file mode 100644
index 000000000000..3d04fe6ee6c5
--- /dev/null
+++ b/sci-misc/repsnapper/repsnapper-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="git://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
+ dev-libs/libzip
+ virtual/opengl
+"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ eautoreconf
+}
diff --git a/sci-misc/vitables/Manifest b/sci-misc/vitables/Manifest
new file mode 100644
index 000000000000..ef109face042
--- /dev/null
+++ b/sci-misc/vitables/Manifest
@@ -0,0 +1 @@
+DIST ViTables-2.1.tar.gz 3111661 SHA256 f0413fa725617fbb3f0be03cb1f41b5b841c6946098a629f3fcb8a99fb9be14a SHA512 9ca48fbc8aa33dd3e1e02e2cf2055082831a95f5c24a2ab3bb294d7b09a3f09e62e500b0d69f8843a93af0db6dfc25873a57604f3fd433c0168eb335a1816bc8 WHIRLPOOL d526744105cea3ef7812db52f5e1a2ef74ca43431de167355afe0c6670a2752d3f4f5613f72f1f11e043cd6de0d4007086b4d548e78f7a3cbeaf4a5c6695babc
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..307fb65b043c
--- /dev/null
+++ b/sci-misc/vitables/files/vitables-2.1-no-docs.patch
@@ -0,0 +1,19 @@
+--- setup.py.orig 2011-02-15 11:05:17.000000000 -0800
++++ setup.py 2012-08-04 12:00:40.704723726 -0700
+@@ -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..12cad61721d7
--- /dev/null
+++ b/sci-misc/vitables/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<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>
+</pkgmetadata>
diff --git a/sci-misc/vitables/vitables-2.1.ebuild b/sci-misc/vitables/vitables-2.1.ebuild
new file mode 100644
index 000000000000..244125536a6e
--- /dev/null
+++ b/sci-misc/vitables/vitables-2.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+MY_PN=ViTables
+MY_P=${MY_PN}-${PV}
+
+inherit distutils eutils
+
+DESCRIPTION="A graphical tool for browsing and editing files in both PyTables and HDF5 formats"
+HOMEPAGE="http://vitables.org/"
+SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-python/pytables
+ dev-python/PyQt4[X]" # FIXME: check if any other useflags are needed
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-docs.patch
+}
+
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ # fixme: multiple python (anyone cares?)
+ python setup.py build_sphinx || die
+ fi
+}
+
+src_install() {
+ dodir /usr/share/icons/hicolor/scalable/apps
+ dodir /usr/share/applications
+ XDG_DATA_DIRS="${ED}/usr/share" distutils_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r examples/*
+ fi
+ use doc && dohtml -r build/sphinx/html/* && \
+ dodoc build/sphinx/latex/*.pdf
+}