dev-libs/chmlib: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Wed, 27 Dec 2017 21:29:56 +0000 (22:29 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 27 Dec 2017 21:29:56 +0000 (22:29 +0100)
Closes: https://bugs.gentoo.org/642272
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-libs/chmlib/chmlib-0.40-r1.ebuild
dev-libs/chmlib/files/chmlib-0.39-stdtypes.patch
dev-libs/chmlib/files/chmlib-0.40-headers.patch

index 88496bdb5c54a64f2b0b272d4b3012d5d5b434f4..f1e56dc528632da50e90f437a703bb6e06eed447 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="3"
+EAPI=6
 
-inherit autotools-utils
+inherit out-of-source
 
 DESCRIPTION="Library for MS CHM (compressed html) file format"
 HOMEPAGE="http://www.jedrea.com/chmlib/"
@@ -14,13 +14,18 @@ SLOT="0"
 KEYWORDS="alpha amd64 ~arm hppa ~ia64 ppc ppc64 x86"
 IUSE="+examples static-libs"
 
-DOCS=(AUTHORS NEWS README)
 PATCHES=(
        "${FILESDIR}"/${PN}-0.39-stdtypes.patch
        "${FILESDIR}"/${P}-headers.patch
 )
 
-src_configure() {
-       myeconfargs=($(use_enable examples))
-       autotools-utils_src_configure
+my_src_configure() {
+       econf \
+               $(use_enable examples) \
+               $(use_enable static-libs static)
+}
+
+my_src_install_all() {
+       einstalldocs
+       find "${D}" -name '*.la' -delete || die
 }
index 0f9232017689f10cc5de1210e90539a3c1df9532..c0b809b2d9dba89603652647d15f58e5cf183f39 100644 (file)
@@ -1,5 +1,5 @@
---- src/chm_lib.c
-+++ src/chm_lib.c
+--- a/src/chm_lib.c
++++ b/src/chm_lib.c
 @@ -149,6 +149,17 @@ typedef unsigned __int32        UInt32;
  typedef __int64                 Int64;
  typedef unsigned __int64        UInt64;
index d60af28639fd6219cdcd3c6880eefd98439f45b3..5daa458be8a525502f12341338e7a0e2c74e4a26 100644 (file)
@@ -1,5 +1,5 @@
---- src/chm_http.c
-+++ src/chm_http.c
+--- a/src/chm_http.c
++++ b/src/chm_http.c
 @@ -34,6 +34,7 @@
  #include <stdio.h>
  #include <stdlib.h>