public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/meanwhile/, net-libs/meanwhile/files/
Date: Sun,  9 Feb 2020 18:50:18 +0000 (UTC)	[thread overview]
Message-ID: <1581274176.f01c3a1606d40331738dde1fa5ca75d17b09cfb6.soap@gentoo> (raw)

commit:     f01c3a1606d40331738dde1fa5ca75d17b09cfb6
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 18:49:36 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 18:49:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f01c3a16

net-libs/meanwhile: Port to EAPI 7

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/meanwhile-1.0.2-gentoo-fhs-samples.patch | 26 +++++++++++
 net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild       | 50 +++++++++++++---------
 2 files changed, 55 insertions(+), 21 deletions(-)

diff --git a/net-libs/meanwhile/files/meanwhile-1.0.2-gentoo-fhs-samples.patch b/net-libs/meanwhile/files/meanwhile-1.0.2-gentoo-fhs-samples.patch
new file mode 100644
index 00000000000..d0bfc20fa76
--- /dev/null
+++ b/net-libs/meanwhile/files/meanwhile-1.0.2-gentoo-fhs-samples.patch
@@ -0,0 +1,26 @@
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -5,10 +5,10 @@
+ if ENABLE_DOXYGEN
+ 
+ htmldoc_DATA = html/*
+-htmldocdir = $(datadir)/doc/@PACKAGE@-doc-@VERSION@/html
++htmldocdir = $(htmldir)
+ 
+ latexdoc_DATA = latex/*
+-latexdocdir = $(datadir)/doc/@PACKAGE@-doc-@VERSION@/latex
++latexdocdir = $(docdir)/latex
+ 
+ docdata = $(htmldoc_DATA) $(latexdoc_DATA)
+ 
+--- a/samples/Makefile.am
++++ b/samples/Makefile.am
+@@ -19,7 +19,7 @@
+ 	$(SAMPLES_SRC)
+ 
+ 
+-sampledir = $(datadir)/doc/@PACKAGE@-doc-@VERSION@/samples
++sampledir = $(docdir)/samples
+ 
+ 
+ EXTRA_DIST = $(sample_DATA) $(sample_SCRIPTS)

diff --git a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild
index 7a2a8a62459..7d3f3864519 100644
--- a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild
+++ b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild
@@ -1,45 +1,53 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit eutils flag-o-matic
+EAPI=7
+
+inherit autotools flag-o-matic
 
 DESCRIPTION="Meanwhile (Sametime protocol) library"
 HOMEPAGE="http://meanwhile.sourceforge.net/"
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="LGPL-2"
-IUSE="doc debug"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="doc debug"
 
-RDEPEND=">=dev-libs/glib-2:2"
-
-DEPEND="${RDEPEND}
-	dev-libs/gmp
+RDEPEND="dev-libs/glib:2"
+DEPEND="
+	${RDEPEND}
+	dev-libs/gmp"
+BDEPEND="
 	virtual/pkgconfig
 	doc? ( app-doc/doxygen )"
 
-src_prepare(){
-	epatch "${FILESDIR}/${P}-presence.patch" #239144
-	epatch "${FILESDIR}/${P}-glib2.31.patch" #409081
-
-	#241298
-	sed -i -e "/sampledir/ s:-doc::" samples/Makefile.in || die
+PATCHES=(
+	# bug 239144
+	"${FILESDIR}"/${P}-presence.patch
+	# bug 409081
+	"${FILESDIR}"/${P}-glib2.31.patch
+	# bug 241298
+	"${FILESDIR}"/${P}-gentoo-fhs-samples.patch
+)
+
+src_prepare() {
+	default
+	eautoreconf
 }
 
 src_configure() {
-	append-flags "-fno-tree-vrp"
-	local myconf
-	use doc || myconf="${myconf} --enable-doxygen=no"
+	append-cflags -fno-tree-vrp
 
-	econf ${myconf} \
+	econf \
 		--disable-static \
+		--enable-doxygen=$(usex doc) \
 		$(use_enable debug)
 }
 
 src_install() {
-	emake DESTDIR="${D}" install
-	find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
-	dodoc AUTHORS ChangeLog NEWS README TODO
+	default
+
+	# no static archives
+	find "${D}" -name '*.la' -delete || die
 }


             reply	other threads:[~2020-02-09 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-09 18:50 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-26  8:04 [gentoo-commits] repo/gentoo:master commit in: net-libs/meanwhile/, net-libs/meanwhile/files/ Petr Vaněk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1581274176.f01c3a1606d40331738dde1fa5ca75d17b09cfb6.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox