summaryrefslogtreecommitdiff
blob: 4e013690de886e2f66485a17c87fb56dca5792eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

MY_P=${P/pp/++}

DESCRIPTION="A simple but powerful C++ interface to libpng"
HOMEPAGE="http://www.nongnu.org/pngpp/"
SRC_URI="mirror://nongnu/${PN}/${MY_P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND="media-libs/libpng:0"
DEPEND=""

S=${WORKDIR}/${MY_P}

PATCHES=( "${FILESDIR}"/${PN}-0.2.9-DESTDIR.patch )

src_compile() { :; }
src_test() { :; }

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install-headers
	einstalldocs

	docinto examples
	dodoc example/*.cpp
	docompress -x /usr/share/doc/${PF}/examples
}