From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/pnglite/
Date: Thu, 25 Nov 2021 13:19:25 +0000 (UTC) [thread overview]
Message-ID: <1637846326.aed948e2740943d4bdcfcdb63467e6690885fb62.marecki@gentoo> (raw)
commit: aed948e2740943d4bdcfcdb63467e6690885fb62
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 25 13:18:00 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Nov 25 13:18:46 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed948e2
media-libs/pnglite: update EAPI 5 -> 8
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
media-libs/pnglite/pnglite-0.1.17-r1.ebuild | 45 +++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/media-libs/pnglite/pnglite-0.1.17-r1.ebuild b/media-libs/pnglite/pnglite-0.1.17-r1.ebuild
new file mode 100644
index 000000000000..4b5669ea7d37
--- /dev/null
+++ b/media-libs/pnglite/pnglite-0.1.17-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Small and simple library for loading and writing PNG images"
+HOMEPAGE="https://sourceforge.net/projects/pnglite/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/unzip"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-include-stdio.patch
+)
+
+S=${WORKDIR}
+
+src_prepare() {
+ default
+ sed -ie "s:\"../zlib/zlib.h\":<zlib.h>:" pnglite.c || die
+}
+
+src_compile() {
+ tc-export CC
+ 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
+ dosym lib${PN}.so.0 /usr/$(get_libdir)/lib${PN}.so
+}
next reply other threads:[~2021-11-25 13:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 13:19 Marek Szuba [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-12-16 18:15 [gentoo-commits] repo/gentoo:master commit in: media-libs/pnglite/ Jakov Smolić
2021-12-16 18:06 Jakov Smolić
2021-12-15 16:42 Jakov Smolić
2021-11-25 14:45 Marek Szuba
2021-11-17 2:19 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1637846326.aed948e2740943d4bdcfcdb63467e6690885fb62.marecki@gentoo \
--to=marecki@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox