Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libhome/files/, dev-libs/libhome/
Date: Tue, 05 Feb 2019 20:33:08
Message-Id: 1549398760.438a6f80a186fdb30eb1a844aebfe5341d4b7a82.grknight@gentoo
1 commit: 438a6f80a186fdb30eb1a844aebfe5341d4b7a82
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 5 20:02:35 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 5 20:32:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438a6f80
7
8 dev-libs/libhome: Revbump for dependency change
9
10 Closes: https://bugs.gentoo.org/665878
11 Package-Manager: Portage-2.3.59, Repoman-2.3.12
12 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
13
14 .../libhome/files/libhome-0.10.2-Makefile.patch | 4 ++--
15 ...e-0.10.2-r1.ebuild => libhome-0.10.2-r2.ebuild} | 27 +++++++++++-----------
16 2 files changed, 16 insertions(+), 15 deletions(-)
17
18 diff --git a/dev-libs/libhome/files/libhome-0.10.2-Makefile.patch b/dev-libs/libhome/files/libhome-0.10.2-Makefile.patch
19 index 54915fd4bb0..371335b0bec 100644
20 --- a/dev-libs/libhome/files/libhome-0.10.2-Makefile.patch
21 +++ b/dev-libs/libhome/files/libhome-0.10.2-Makefile.patch
22 @@ -1,5 +1,5 @@
23 ---- Makefile.in
24 -+++ Makefile.in
25 +--- a/Makefile.in
26 ++++ b/Makefile.in
27 @@ -61,7 +61,7 @@
28 LIBTOOL=./libtool
29
30
31 diff --git a/dev-libs/libhome/libhome-0.10.2-r1.ebuild b/dev-libs/libhome/libhome-0.10.2-r2.ebuild
32 similarity index 68%
33 rename from dev-libs/libhome/libhome-0.10.2-r1.ebuild
34 rename to dev-libs/libhome/libhome-0.10.2-r2.ebuild
35 index ef3cfe46b6c..b94cfd3c837 100644
36 --- a/dev-libs/libhome/libhome-0.10.2-r1.ebuild
37 +++ b/dev-libs/libhome/libhome-0.10.2-r2.ebuild
38 @@ -1,9 +1,9 @@
39 -# Copyright 1999-2014 Gentoo Foundation
40 +# Copyright 1999-2019 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 -EAPI=5
44 +EAPI=6
45
46 -inherit autotools db-use eutils
47 +inherit autotools db-use
48
49 DESCRIPTION="libhome is a library providing a getpwnam() emulation"
50 HOMEPAGE="http://pll.sourceforge.net"
51 @@ -12,20 +12,24 @@ SRC_URI="mirror://sourceforge/pll/${P}.tar.gz"
52 LICENSE="LGPL-2"
53 SLOT="0"
54 KEYWORDS="~amd64 ~x86"
55 -IUSE="berkdb ldap mysql pam postgres"
56 +IUSE="berkdb ldap mysql pam postgres static-libs"
57
58 DEPEND="berkdb? ( >=sys-libs/db-4 )
59 ldap? ( net-nds/openldap )
60 - mysql? ( virtual/mysql )
61 + mysql? ( dev-db/mysql-connector-c:= )
62 pam? ( virtual/pam )
63 postgres? ( dev-db/postgresql[server] )"
64 RDEPEND="${DEPEND}"
65
66 +PATCHES=(
67 + "${FILESDIR}"/${PN}-0.10.2-Makefile.patch
68 + "${FILESDIR}"/${PN}-0.10.2-ldap_deprecated.patch
69 +)
70 +
71 src_prepare() {
72 rm -f aclocal.m4
73
74 - epatch "${FILESDIR}"/${PN}-0.10.2-Makefile.patch
75 - epatch "${FILESDIR}"/${PN}-0.10.2-ldap_deprecated.patch
76 + default
77
78 # bug 225579
79 sed -i -e 's:\<VERSION\>:__PKG_VERSION:' configure.in
80 @@ -43,13 +47,10 @@ src_configure() {
81 $(use_with mysql) \
82 $(use_with pam) \
83 $(use_with postgres pgsql) \
84 - || die "econf failed"
85 -}
86 -
87 -src_compile() {
88 - emake || die "emake failed"
89 + $(use_enable static-libs static)
90 }
91
92 src_install() {
93 - emake DESTDIR="${D}" install || die "make install failed"
94 + default
95 + use static-libs || find "${D}" -name '*.la' -delete
96 }