Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: media-libs/libgfx/
Date: Sat, 31 Jul 2021 11:11:58
Message-Id: 1627729913.1a90a9bd6a062ab4f93fb3cc6a9c5b37445b4bd3.andrewammerlaan@gentoo
1 commit: 1a90a9bd6a062ab4f93fb3cc6a9c5b37445b4bd3
2 Author: Lucas Mitrak <lucas <AT> lucasmitrak <DOT> com>
3 AuthorDate: Mon Jul 26 17:48:33 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 31 11:11:53 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1a90a9bd
7
8 media-libs/libgfx: version bump to 1.1.1 which is hosted on github
9
10 * Version bump to 1.1.1 which is hosted on github on its own branch
11
12 Currently, the science repo only has media-libs/libgfx-1.1.0. Upstream
13 has made available version 1.1.1; however, it is not located in 1.1.0's
14 SRC_URI [1]. Instead, he made version 1.1.1 available on github in its
15 own branch [2]. This new version implements both patches stored in
16 the ebuild's files directory[3]. These patches were made available
17 upstream by me, Lucas Mitrak, via email.
18 This commit was tested in a docker image with dev-util/ebuildtester.
19 This commit was written, tested, and submitted by Lucas Mitrak.
20
21 [1] http://mgarland.org/files/dist/
22 [2] https://github.com/mjgarland/libgfx/tree/branch-1.1.1
23 [3] https://github.com/gentoo/sci/tree/master/media-libs/libgfx/files
24 Closes: https://github.com/gentoo/sci/pull/1100
25 Package-Manager: Portage-3.0.20, Repoman-3.0.2
26 Signed-off-by: Lucas Mitrak <lucas <AT> lucasmitrak.com>
27 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
28
29 media-libs/libgfx/libgfx-1.1.1.ebuild | 41 +++++++++++++++++++++++++++++++++++
30 1 file changed, 41 insertions(+)
31
32 diff --git a/media-libs/libgfx/libgfx-1.1.1.ebuild b/media-libs/libgfx/libgfx-1.1.1.ebuild
33 new file mode 100644
34 index 000000000..6cbedc968
35 --- /dev/null
36 +++ b/media-libs/libgfx/libgfx-1.1.1.ebuild
37 @@ -0,0 +1,41 @@
38 +# Copyright 1999-2021 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +DESCRIPTION="Simplify the creation of computer graphics software"
44 +HOMEPAGE="http://mgarland.org/software/libgfx.html"
45 +
46 +COMMIT="f28ca5f0df3044f6399d6214faf66daa36712b91"
47 +SRC_URI="https://github.com/mjgarland/libgfx/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
48 +S="${WORKDIR}/${PN}-${COMMIT}"
49 +
50 +LICENSE="LGPL-2.1"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="static-libs"
54 +
55 +DEPEND="
56 + virtual/opengl
57 + x11-libs/fltk
58 +"
59 +
60 +RDEPEND="${DEPEND}"
61 +
62 +src_compile() {
63 + cd src || die
64 + default
65 +}
66 +
67 +src_install() {
68 + use static-libs && dolib.a src/*.a
69 + doheader include/gfx/gfx.h
70 +
71 + dodoc doc/*
72 +}
73 +
74 +src_test() {
75 + cd tests || die
76 + sed -i -e 's/t-vec.cxx t-img.cxx t-gui.cxx t-glimg.cxx t-script.cxx t-glext.cxx/t-vec.cxx t-img.cxx t-script.cxx/' Makefile
77 + emake
78 +}