summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2024-01-18 15:07:17 -0500
committerMichael Orlitzky <mjo@gentoo.org>2024-01-19 04:29:37 -0500
commit97f12f78572d7e9dc55d202a3e9b2d878bb06059 (patch)
treea26457900fc44a20eb31308c0a81165238418013 /media-libs/libnsgif
parentdev-build/netsurf-buildsystem: add 1.10 (diff)
downloadgentoo-97f12f78572d7e9dc55d202a3e9b2d878bb06059.tar.gz
gentoo-97f12f78572d7e9dc55d202a3e9b2d878bb06059.tar.bz2
gentoo-97f12f78572d7e9dc55d202a3e9b2d878bb06059.zip
media-libs/libnsgif: add 1.0.0
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'media-libs/libnsgif')
-rw-r--r--media-libs/libnsgif/Manifest1
-rw-r--r--media-libs/libnsgif/libnsgif-1.0.0.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/media-libs/libnsgif/Manifest b/media-libs/libnsgif/Manifest
index bcde15a097c5..8892066d55d4 100644
--- a/media-libs/libnsgif/Manifest
+++ b/media-libs/libnsgif/Manifest
@@ -1 +1,2 @@
DIST libnsgif-0.2.1-src.tar.gz 268328 BLAKE2B ccebd1830db1caa016ebc0c1f2c421523963df16e38cdf85c5300d2a9a325dc9c52c89c79ccbddbc315535a20607458bbfedcde8df02b5e2977d383cd6603220 SHA512 29affce6de38574103a9777e741a44b448145d96ef63e4b86056f268c5d1389f6c5f25240a9f3ef2208fab229eabef2542f3d7ce7b37a0137071f204fbd736af
+DIST libnsgif-1.0.0-src.tar.gz 282568 BLAKE2B bc104972b94b6b7b62fa9740f8d742fc5124d4cc55240b3483cbe72ce0ac3972fc0917397f0cfade6abdb579084f454bd8919c5391281b738dfb3dcb0d9d28e9 SHA512 e87d5faaa4f586a098357a23bed58a8a7a79c94549b21c3338dd04bd5e074e93a7719d93d79515287b15514a2cf39aaa2abd88fd9aec8785a27594ee5cc2ddc0
diff --git a/media-libs/libnsgif/libnsgif-1.0.0.ebuild b/media-libs/libnsgif/libnsgif-1.0.0.ebuild
new file mode 100644
index 000000000000..05d10ea5b1bc
--- /dev/null
+++ b/media-libs/libnsgif/libnsgif-1.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit netsurf
+
+DESCRIPTION="Decoding library for the GIF image file format, written in C"
+HOMEPAGE="https://www.netsurf-browser.org/projects/libnsgif/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE=""
+
+BDEPEND="
+ dev-build/netsurf-buildsystem
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i src/lzw.c || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}