summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <vdupras@gentoo.org>2018-11-13 11:40:16 -0500
committerVirgil Dupras <vdupras@gentoo.org>2018-11-13 13:04:24 -0500
commit3cdb163c9c578dd707f8208ed66f7c621f108d3a (patch)
tree6685a1473cd849fe107762a8ed2897779f60ab70 /media-libs/libnsgif
parentmedia-libs/libnsbmp: drop netsurf eclass (diff)
downloadgentoo-3cdb163c9c578dd707f8208ed66f7c621f108d3a.tar.gz
gentoo-3cdb163c9c578dd707f8208ed66f7c621f108d3a.tar.bz2
gentoo-3cdb163c9c578dd707f8208ed66f7c621f108d3a.zip
media-libs/libnsgif: drop netsurf eclass
Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'media-libs/libnsgif')
-rw-r--r--media-libs/libnsgif/Manifest1
-rw-r--r--media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild (renamed from media-libs/libnsgif/libnsgif-0.2.1.ebuild)26
2 files changed, 19 insertions, 8 deletions
diff --git a/media-libs/libnsgif/Manifest b/media-libs/libnsgif/Manifest
index 70ccd2845f65..bcde15a097c5 100644
--- a/media-libs/libnsgif/Manifest
+++ b/media-libs/libnsgif/Manifest
@@ -1,2 +1 @@
DIST libnsgif-0.2.1-src.tar.gz 268328 BLAKE2B ccebd1830db1caa016ebc0c1f2c421523963df16e38cdf85c5300d2a9a325dc9c52c89c79ccbddbc315535a20607458bbfedcde8df02b5e2977d383cd6603220 SHA512 29affce6de38574103a9777e741a44b448145d96ef63e4b86056f268c5d1389f6c5f25240a9f3ef2208fab229eabef2542f3d7ce7b37a0137071f204fbd736af
-DIST netsurf-buildsystem-1.7.tar.gz 38597 BLAKE2B d0981ef282ac0d93d81a1a6a6bee1fc2a0151c962be6ce2900a67843ba8ebc67e00508cded2a7375f6bbe0d45572690f127872936a282de80eb08655ac571603 SHA512 f6a46ac25f41e695ec13d7b2b564250c4cc44a40a688904eb17aa4b547c2df0102cc0effb7a23a2ffa6b9178ae5cf452b63980caf26e06e479168c85803f1e58
diff --git a/media-libs/libnsgif/libnsgif-0.2.1.ebuild b/media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild
index 55c0a619874a..c7b9095ea837 100644
--- a/media-libs/libnsgif/libnsgif-0.2.1.ebuild
+++ b/media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild
@@ -1,27 +1,39 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-NETSURF_BUILDSYSTEM=buildsystem-1.7
-inherit netsurf
+inherit toolchain-funcs
DESCRIPTION="decoding library for the GIF image file format, written in C"
HOMEPAGE="http://www.netsurf-browser.org/projects/libnsgif/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~m68k-mint"
IUSE=""
-RDEPEND=""
-DEPEND="virtual/pkgconfig"
+DEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
src_prepare() {
- # working around broken netsurf eclass
default
sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
-i src/lzw.c || die
+}
+
+_emake() {
+ source /usr/share/netsurf-buildsystem/gentoo-helpers.sh
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
- multilib_copy_sources
+src_install() {
+ _emake DESTDIR="${ED}" install
}