summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/pnglite
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/pnglite')
-rw-r--r--media-libs/pnglite/Manifest1
-rw-r--r--media-libs/pnglite/files/pnglite-0.1.17-include-stdio.patch16
-rw-r--r--media-libs/pnglite/metadata.xml8
-rw-r--r--media-libs/pnglite/pnglite-0.1.17.ebuild52
4 files changed, 77 insertions, 0 deletions
diff --git a/media-libs/pnglite/Manifest b/media-libs/pnglite/Manifest
new file mode 100644
index 000000000000..0141e58a04a7
--- /dev/null
+++ b/media-libs/pnglite/Manifest
@@ -0,0 +1 @@
+DIST pnglite-0.1.17.zip 6516 SHA256 6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962 SHA512 f728273a702287d1c299e2939a2e2da5a6c1fbc55372fe1869d7f93cfe59c016c9dcf02be0242c5fa77cda66b0016bbafe1b78f7a876ba2866c37f504d262ce8 WHIRLPOOL db9070068ba1cf89f3b397d3f721055dceeb545d37e712e22f6fa6bf8eb30d50f9eafe57a9bc81b3c61dadae660bbe862ed62e193b6cd7ccd467b204bc966126
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 <stdio.h>
+ #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..7f56be77e1aa
--- /dev/null
+++ b/media-libs/pnglite/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>graphics</herd>
+ <upstream>
+ <remote-id type="sourceforge">pnglite</remote-id>
+ </upstream>
+</pkgmetadata>
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..bc6f682b188d
--- /dev/null
+++ b/media-libs/pnglite/pnglite-0.1.17.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="Small and simple library for loading and writing PNG images"
+HOMEPAGE="http://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\":<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
+}