--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+# number that might change every version
+PID=453
+
+DESCRIPTION="Adaptive Entropy Coding library"
+HOMEPAGE="https://www.dkrz.de/redmine/projects/aec"
+SRC_URI="https://www.dkrz.de/redmine/attachments/download/${PID}/${P}.tar.gz"
+
+LICENSE="LIBAEC"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs +szip"
+
+DEPEND=""
+RDEPEND="szip? ( !sci-libs/szip )"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ # avoid conflict with szip (easier than to patch autotools)
+ if ! use szip; then
+ rm "${ED}"/usr/include/szlib.h || die
+ rm "${ED}"/usr/$(get_libdir)/libsz* || die
+ rm "${ED}"/usr/share/doc/${PF}/README.SZIP || die
+ fi
+ use static-libs || prune_libtool_files --all
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+<longdescription lang="en">
+ Libaec provides fast lossless compression of 1 up to 32 bit wide
+ signed or unsigned integers (samples). The library achieves best
+ results for low entropy data as often encountered in space imaging
+ instrument data or numerical model output from weather or climate
+ simulations. While floating point representations are not directly
+ supported, they can also be efficiently coded by grouping exponents
+ and mantissa.
+</longdescription>
+</pkgmetadata>