--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="FITS to PNG converter"
+HOMEPAGE="http://integral.physics.muni.cz/fitspng/"
+SRC_URI="ftp://integral.physics.muni.cz/pub/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="
+ sci-libs/cfitsio:0=
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}"
+
+src_install() {
+ default
+ use doc || rm -rf "${ED}"usr/share/doc/${PF}/html
+}
--- /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-astronomy@gentoo.org</email>
+ <name>Gentoo Astronomy Project</name>
+</maintainer>
+<longdescription lang="en">
+ Fitspng is an utility intended to convert of the natural high
+ dynamic range of FITS images, directly representing measured data,
+ to the limited numerical range of PNG format widely used
+ in computer graphics. Fitspng implements a global tone mapping
+ technique by a set of tone functions using parameters provided
+ by user or by machine estimate on base of a robust count statistics.
+ Moreover, the conversion keeps an important FITS meta-information
+ as a text part of PNG header.
+</longdescription>
+</pkgmetadata>