Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sdl-gfx/
Date: Sat, 10 Oct 2020 08:20:18
Message-Id: 1602318011.6b551be1601146999eb18950affd9651e14abe88.slyfox@gentoo
1 commit: 6b551be1601146999eb18950affd9651e14abe88
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 08:19:48 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 08:20:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b551be1
7
8 media-libs/sdl-gfx: bind subslot to SONAME
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 media-libs/sdl-gfx/sdl-gfx-2.0.26-r1.ebuild | 48 +++++++++++++++++++++++++++++
14 1 file changed, 48 insertions(+)
15
16 diff --git a/media-libs/sdl-gfx/sdl-gfx-2.0.26-r1.ebuild b/media-libs/sdl-gfx/sdl-gfx-2.0.26-r1.ebuild
17 new file mode 100644
18 index 00000000000..87355eea972
19 --- /dev/null
20 +++ b/media-libs/sdl-gfx/sdl-gfx-2.0.26-r1.ebuild
21 @@ -0,0 +1,48 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit autotools multilib-minimal
27 +
28 +MY_P="${P/sdl-/SDL_}"
29 +DESCRIPTION="Graphics drawing primitives library for SDL"
30 +HOMEPAGE="http://www.ferzkopp.net/joomla/content/view/19/14/"
31 +SRC_URI="http://www.ferzkopp.net/Software/SDL_gfx-2.0/${MY_P}.tar.gz"
32 +
33 +LICENSE="ZLIB"
34 +SLOT="0/16" # libSDL_gfx.so.16
35 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
36 +IUSE="doc cpu_flags_x86_mmx static-libs"
37 +
38 +RDEPEND=">=media-libs/libsdl-1.2.15-r4[video,${MULTILIB_USEDEP}]"
39 +DEPEND="${RDEPEND}"
40 +
41 +DOCS=( AUTHORS ChangeLog README )
42 +
43 +S="${WORKDIR}/${MY_P}"
44 +
45 +src_prepare() {
46 + default
47 + sed -i -e 's/-O //' configure.in || die
48 + mv configure.in configure.ac || die
49 + eautoreconf
50 +}
51 +
52 +multilib_src_configure() {
53 + ECONF_SOURCE="${S}" econf \
54 + $(use_enable cpu_flags_x86_mmx mmx) \
55 + $(use_enable static-libs static)
56 +}
57 +
58 +#multilib_src_install() {
59 +# emake DESTDIR="${D}" install
60 +#}
61 +
62 +multilib_src_install_all() {
63 + einstalldocs
64 + if use doc ; then
65 + docinto html
66 + dodoc -r Docs/*
67 + fi
68 + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
69 +}