summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <vdupras@gentoo.org>2018-11-13 11:39:17 -0500
committerVirgil Dupras <vdupras@gentoo.org>2018-11-13 13:04:23 -0500
commita214f3ec342c42ee0280c9a1dcde8b490d44688f (patch)
treec5f16d552ff0656a7edcd566b69aaf56414ba0bc /media-libs
parentnet-libs/libhubbub: drop netsurf eclass (diff)
downloadgentoo-a214f3ec342c42ee0280c9a1dcde8b490d44688f.tar.gz
gentoo-a214f3ec342c42ee0280c9a1dcde8b490d44688f.tar.bz2
gentoo-a214f3ec342c42ee0280c9a1dcde8b490d44688f.zip
media-libs/libnsbmp: 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')
-rw-r--r--media-libs/libnsbmp/Manifest1
-rw-r--r--media-libs/libnsbmp/libnsbmp-0.1.5-r1.ebuild33
-rw-r--r--media-libs/libnsbmp/libnsbmp-0.1.5.ebuild24
3 files changed, 33 insertions, 25 deletions
diff --git a/media-libs/libnsbmp/Manifest b/media-libs/libnsbmp/Manifest
index 88c8e2ef229d..b885fc599fd4 100644
--- a/media-libs/libnsbmp/Manifest
+++ b/media-libs/libnsbmp/Manifest
@@ -1,2 +1 @@
DIST libnsbmp-0.1.5-src.tar.gz 463299 BLAKE2B a9aa4f682262c4bfb5007c623e3da324f9ce2ddb732737b8217def899e8507ae41589607a1e0b71b34190542981ad4286f64f87795f0043049626c101001fd85 SHA512 2998de98db05a04fb860fdea258961d66aebc78d58614054311ed4cafa2f265472ad19789ab1e343d39ca293e0a304baee4941bd04948d9cc7c39bdadb0756e6
-DIST netsurf-buildsystem-1.7.tar.gz 38597 BLAKE2B d0981ef282ac0d93d81a1a6a6bee1fc2a0151c962be6ce2900a67843ba8ebc67e00508cded2a7375f6bbe0d45572690f127872936a282de80eb08655ac571603 SHA512 f6a46ac25f41e695ec13d7b2b564250c4cc44a40a688904eb17aa4b547c2df0102cc0effb7a23a2ffa6b9178ae5cf452b63980caf26e06e479168c85803f1e58
diff --git a/media-libs/libnsbmp/libnsbmp-0.1.5-r1.ebuild b/media-libs/libnsbmp/libnsbmp-0.1.5-r1.ebuild
new file mode 100644
index 000000000000..55b1adcdc1ef
--- /dev/null
+++ b/media-libs/libnsbmp/libnsbmp-0.1.5-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="decoding library for BMP and ICO image file formats, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libnsbmp/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~m68k-mint"
+IUSE=""
+
+DEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
+
+_emake() {
+ source /usr/share/netsurf-buildsystem/gentoo-helpers.sh
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" install
+}
diff --git a/media-libs/libnsbmp/libnsbmp-0.1.5.ebuild b/media-libs/libnsbmp/libnsbmp-0.1.5.ebuild
deleted file mode 100644
index aef68809045d..000000000000
--- a/media-libs/libnsbmp/libnsbmp-0.1.5.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-NETSURF_BUILDSYSTEM=buildsystem-1.7
-inherit netsurf
-
-DESCRIPTION="decoding library for BMP and ICO image file formats, written in C"
-HOMEPAGE="http://www.netsurf-browser.org/projects/libnsbmp/"
-
-LICENSE="MIT"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~arm ~ppc ~m68k-mint"
-IUSE=""
-
-RDEPEND=""
-DEPEND="virtual/pkgconfig"
-
-src_prepare() {
- # working around broken netsurf eclass
- default
- multilib_copy_sources
-}