Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/mamory/
Date: Sun, 29 Apr 2018 11:26:59
Message-Id: 1525001176.065b5fad6b7a57c8dafaa7a9f3f7f5b83214f157.pacho@gentoo
1 commit: 065b5fad6b7a57c8dafaa7a9f3f7f5b83214f157
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 11:07:15 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 11:26:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=065b5fad
7
8 games-emulation/mamory: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-emulation/mamory/mamory-0.2.25-r1.ebuild | 52 ++++++++++++++++++++++++++
13 1 file changed, 52 insertions(+)
14
15 diff --git a/games-emulation/mamory/mamory-0.2.25-r1.ebuild b/games-emulation/mamory/mamory-0.2.25-r1.ebuild
16 new file mode 100644
17 index 00000000000..3f2f840637e
18 --- /dev/null
19 +++ b/games-emulation/mamory/mamory-0.2.25-r1.ebuild
20 @@ -0,0 +1,52 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +inherit autotools flag-o-matic
26 +
27 +DESCRIPTION="ROM management tools and library"
28 +HOMEPAGE="http://mamory.sourceforge.net/"
29 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
30 +
31 +LICENSE="GPL-2"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~x86"
34 +IUSE=""
35 +
36 +DEPEND="dev-libs/expat"
37 +RDEPEND="${DEPEND}"
38 +
39 +src_prepare() {
40 + default
41 +
42 + # Make sure the system expat is used
43 + sed -i \
44 + -e 's/#ifdef.*SYSEXPAT/#if 1/' \
45 + mamory/amlxml.c mamory/amlxml.h || die
46 +
47 + # Remove hardcoded CFLAGS options
48 + sed -i \
49 + -e '/AC_ARG_ENABLE(debug,/ {N;N;N;d}' \
50 + configure.ac || die
51 +
52 + # Make it possible for eautoreconf to fix fPIC etc.
53 + sed -i \
54 + -e '/libcommon_la_LDFLAGS= -static/d' \
55 + common/Makefile.am || die
56 +
57 + AT_M4DIR="config" eautoreconf
58 + append-cflags -std=gnu89 # build with gcc5 (bug #570500)
59 +
60 +
61 +}
62 +
63 +src_configure() {
64 + econf \
65 + --includedir=/usr/include \
66 + --disable-static
67 +}
68 +
69 +src_install() {
70 + HTML_DOCS="DOCS/mamory.html" default
71 + find "${D}" -name '*.la' -delete || die
72 +}