From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-libs/pnglite/Manifest | 6 +++ .../files/pnglite-0.1.17-include-stdio.patch | 16 +++++++ media-libs/pnglite/metadata.xml | 11 +++++ media-libs/pnglite/pnglite-0.1.17.ebuild | 51 ++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 media-libs/pnglite/Manifest create mode 100644 media-libs/pnglite/files/pnglite-0.1.17-include-stdio.patch create mode 100644 media-libs/pnglite/metadata.xml create mode 100644 media-libs/pnglite/pnglite-0.1.17.ebuild (limited to 'media-libs/pnglite') diff --git a/media-libs/pnglite/Manifest b/media-libs/pnglite/Manifest new file mode 100644 index 000000000000..2febdf935114 --- /dev/null +++ b/media-libs/pnglite/Manifest @@ -0,0 +1,6 @@ +AUX pnglite-0.1.17-include-stdio.patch 406 SHA256 c65432385ebdeb7750325d54e7fd79a1fc90734bddc54cdd43cab8b5a694d368 SHA512 96482d08c90ab90985c8694a99bf9ab1967a872fe32b441b3ac930a6af346f173859988132a339ed3e9b4935fbaaabc910276425955d8db20fa4f39b726a345a WHIRLPOOL 9699012688cb9f2827ed83e3bb48d54a30d5d00a8f6fcae123d4bc3ff23efa6c8a84df8094a4c52d333ac22307472d18619ce16a6dac7930e88e5a7d02a193aa +DIST pnglite-0.1.17.zip 6516 SHA256 6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962 SHA512 f728273a702287d1c299e2939a2e2da5a6c1fbc55372fe1869d7f93cfe59c016c9dcf02be0242c5fa77cda66b0016bbafe1b78f7a876ba2866c37f504d262ce8 WHIRLPOOL db9070068ba1cf89f3b397d3f721055dceeb545d37e712e22f6fa6bf8eb30d50f9eafe57a9bc81b3c61dadae660bbe862ed62e193b6cd7ccd467b204bc966126 +EBUILD pnglite-0.1.17.ebuild 1070 SHA256 b72b06a9b21ba60ebbacd812a6e5ebca9be5b12e1fdc9940074023c1e7b909c6 SHA512 65639bff8b3e231424483d90ea7516bf4ff82e56757b615b03640a55876ee87875467dbfa9092aed8bf812c4b73a563f3e6aaf91541d64028fd58830f7a227c6 WHIRLPOOL 478bbeed52e88b4ed6ec2236ad128dd7179eab82e9685c8f8de905f5243c55f4d5ed9937c2ee6481411580930d1a35d4dbafabba7db22e70a16089020357f747 +MISC ChangeLog 2589 SHA256 80f877be32c69198312a2a60f0f86d9350bbed57e6248b3a3452ab1814e56a88 SHA512 77ad97aad45ddfcb8636bd9d675df1c7d3d69e198f6b4c1f5d5a2d5b724f97b0421722a0d56562d18b93f6a082b8636ccc4055d95dd0cecc12d737c51cfb4aaa WHIRLPOOL af1b80fae94c3b1f0fa101e0bec5ce18d1440475784f19c21f6be8372c5c877749d187ed60041e2601181fdbcfb676ee44587b480b2b4fe6efef05777f300d10 +MISC ChangeLog-2015 1337 SHA256 c5e9e7c98110a9f132fe1cd5579d2fab511d70fc43db0155ead48c6c11f47c57 SHA512 ff27c38c1947cb620931e535ee7aee8cb3d70442728a8fa99b0aac539cb472b4f607fadb094f0a0094be31071a4c590b30873232f670a7f847d1922f17d7d980 WHIRLPOOL 2911ab1522b258b7c8963993384737ef414346677e74660f7a8cc71627e94d6d07a388abd841063359d0826ded9de1f452da7af49f160976396f933c6feeee57 +MISC metadata.xml 336 SHA256 b792393a98f1fe85955d5e8a5e4640f7712417888b389761919c578ce20d5a2a SHA512 858f257d97b86743cc7c30ab6c47eda5f00b0db780bbdf42bbbd635cada95b9582ff1b61512958c4c18b0a0e39cafc6347c8bca5fbcaf901088c315c24382040 WHIRLPOOL 76ad7aecdd93d6c136b0f73b4001db79f6bcecda30998f0c3289b8bb883c061b6b0e8c665239b09fafaf4c4ec1410e60f0d80caedcbb646f4a721b133849f4c8 diff --git a/media-libs/pnglite/files/pnglite-0.1.17-include-stdio.patch b/media-libs/pnglite/files/pnglite-0.1.17-include-stdio.patch new file mode 100644 index 000000000000..a29df412dd98 --- /dev/null +++ b/media-libs/pnglite/files/pnglite-0.1.17-include-stdio.patch @@ -0,0 +1,16 @@ +This patch comes from the Debian package. + +Index: pnglite-0.1.17/pnglite.h +=================================================================== +--- pnglite-0.1.17.orig/pnglite.h 2008-04-18 17:15:07.000000000 +1000 ++++ pnglite-0.1.17/pnglite.h 2008-04-18 17:15:18.000000000 +1000 +@@ -24,7 +24,8 @@ + daniel.karling@gmail.com + */ + +- ++ ++#include + #ifndef _PNGLITE_H_ + #define _PNGLITE_H_ + diff --git a/media-libs/pnglite/metadata.xml b/media-libs/pnglite/metadata.xml new file mode 100644 index 000000000000..5edc7ee42a34 --- /dev/null +++ b/media-libs/pnglite/metadata.xml @@ -0,0 +1,11 @@ + + + + + graphics@gentoo.org + Gentoo Graphics Project + + + pnglite + + diff --git a/media-libs/pnglite/pnglite-0.1.17.ebuild b/media-libs/pnglite/pnglite-0.1.17.ebuild new file mode 100644 index 000000000000..070934b43a6f --- /dev/null +++ b/media-libs/pnglite/pnglite-0.1.17.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic multilib toolchain-funcs + +DESCRIPTION="Small and simple library for loading and writing PNG images" +HOMEPAGE="https://sourceforge.net/projects/pnglite/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-include-stdio.patch + sed -ie "s:\"../zlib/zlib.h\"::" pnglite.c || die +} + +src_compile() { + tc-export CC + if use static-libs; then + emake ${PN}.o + $(tc-getAR) -cvq lib${PN}.a ${PN}.o || die + rm ${PN}.o || die + fi + + append-flags -fPIC + emake ${PN}.o + $(tc-getCC) ${LDFLAGS} -shared -Wl,-soname,lib${PN}.so.0 \ + -o lib${PN}.so.0 ${PN}.o -lz || die +} + +src_install() { + insinto /usr/include + doins ${PN}.h + + dolib.so lib${PN}.so.0 + if use static-libs; then + dolib.a lib${PN}.a + fi + + dosym lib${PN}.so.0 /usr/$(get_libdir)/lib${PN}.so +} -- cgit v1.2.3