From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-cpp/pngpp/Manifest | 1 + dev-cpp/pngpp/files/pngpp-0.2.9-DESTDIR.patch | 15 ++++++++++++ dev-cpp/pngpp/metadata.xml | 6 +++++ dev-cpp/pngpp/pngpp-0.2.9.ebuild | 34 +++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 dev-cpp/pngpp/Manifest create mode 100644 dev-cpp/pngpp/files/pngpp-0.2.9-DESTDIR.patch create mode 100644 dev-cpp/pngpp/metadata.xml create mode 100644 dev-cpp/pngpp/pngpp-0.2.9.ebuild (limited to 'dev-cpp/pngpp') diff --git a/dev-cpp/pngpp/Manifest b/dev-cpp/pngpp/Manifest new file mode 100644 index 000000000000..eee6115c39f4 --- /dev/null +++ b/dev-cpp/pngpp/Manifest @@ -0,0 +1 @@ +DIST png++-0.2.9.tar.gz 592770 BLAKE2B 12419e3c964f92022f992e25d2efcfb01c7f6275aba1db159372f84cbf0e0bf0e92e95dac419ff0f6248dd1ecf63918b11096e7e6baa8da5704909e69cb7aeca SHA512 905e037faf26eef9ca1d9508471dde9f480f41a87d72133057865078b2fd040b1cf84727ece48d79117d615fdfbc0a749fec7dbe362366763e2017865a7fe132 diff --git a/dev-cpp/pngpp/files/pngpp-0.2.9-DESTDIR.patch b/dev-cpp/pngpp/files/pngpp-0.2.9-DESTDIR.patch new file mode 100644 index 000000000000..ee9b29ef7558 --- /dev/null +++ b/dev-cpp/pngpp/files/pngpp-0.2.9-DESTDIR.patch @@ -0,0 +1,15 @@ +Build system does not honour $(DESTDIR) + +--- a/Makefile ++++ b/Makefile +@@ -54,8 +54,8 @@ + uninstall: uninstall-headers uninstall-docs + + install-headers: +- mkdir -p $(PREFIX)/include/png++ +- cp $(headers) $(PREFIX)/include/png++ ++ mkdir -p $(DESTDIR)$(PREFIX)/include/png++ ++ cp $(headers) $(DESTDIR)$(PREFIX)/include/png++ + + uninstall-headers: + rm -rf $(PREFIX)/include/png++ diff --git a/dev-cpp/pngpp/metadata.xml b/dev-cpp/pngpp/metadata.xml new file mode 100644 index 000000000000..d85b4252fc33 --- /dev/null +++ b/dev-cpp/pngpp/metadata.xml @@ -0,0 +1,6 @@ + + + + + gentoo-staging + diff --git a/dev-cpp/pngpp/pngpp-0.2.9.ebuild b/dev-cpp/pngpp/pngpp-0.2.9.ebuild new file mode 100644 index 000000000000..4e013690de88 --- /dev/null +++ b/dev-cpp/pngpp/pngpp-0.2.9.ebuild @@ -0,0 +1,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 +} -- cgit v1.3