1 |
commit: d0d628e61e0e1999cfc9354695bb1d526161836d |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 21 09:34:24 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 21 15:01:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0d628e6 |
7 |
|
8 |
dev-ruby/ruby-sdl: fix libsdl dependency |
9 |
|
10 |
Joystick support is required. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/737714 |
13 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
14 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
15 |
|
16 |
dev-ruby/ruby-sdl/ruby-sdl-2.1.2-r3.ebuild | 65 ++++++++++++++++++++++++++++++ |
17 |
1 file changed, 65 insertions(+) |
18 |
|
19 |
diff --git a/dev-ruby/ruby-sdl/ruby-sdl-2.1.2-r3.ebuild b/dev-ruby/ruby-sdl/ruby-sdl-2.1.2-r3.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..db796f0a03d |
22 |
--- /dev/null |
23 |
+++ b/dev-ruby/ruby-sdl/ruby-sdl-2.1.2-r3.ebuild |
24 |
@@ -0,0 +1,65 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+USE_RUBY="ruby25 ruby26 ruby27" |
30 |
+ |
31 |
+inherit ruby-ng |
32 |
+ |
33 |
+RELEASE="rel-${PV//./-}" |
34 |
+RUBY_S="rubysdl-${RELEASE}" |
35 |
+ |
36 |
+DESCRIPTION="Ruby/SDL: Ruby bindings for SDL" |
37 |
+HOMEPAGE="https://www.kmc.gr.jp/~ohai/rubysdl.en.html" |
38 |
+SRC_URI="https://github.com/ohai/rubysdl/archive/${RELEASE}.tar.gz -> ${P}.tar.gz" |
39 |
+LICENSE="LGPL-2.1" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~ppc ~x86" |
42 |
+ |
43 |
+IUSE="image mixer truetype mpeg sge" |
44 |
+ |
45 |
+CDEPEND=" |
46 |
+ >=media-libs/libsdl-1.2.5[joystick] |
47 |
+ truetype? ( >=media-libs/sdl-ttf-2.0.6 ) |
48 |
+ image? ( >=media-libs/sdl-image-1.2.2 ) |
49 |
+ mixer? ( >=media-libs/sdl-mixer-1.2.4 ) |
50 |
+ mpeg? ( >=media-libs/smpeg-0.4.4-r1 ) |
51 |
+ sge? ( media-libs/sge )" |
52 |
+DEPEND="${DEPEND} ${CDEPEND}" |
53 |
+RDEPEND="${RDEPEND} ${CDEPEND}" |
54 |
+ |
55 |
+each_ruby_configure() { |
56 |
+ ${RUBY} extconf.rb || die "extconf.rb failed" |
57 |
+} |
58 |
+ |
59 |
+each_ruby_compile() { |
60 |
+ emake V=1 |
61 |
+} |
62 |
+ |
63 |
+each_ruby_install() { |
64 |
+ emake V=1 DESTDIR="${D}" install |
65 |
+} |
66 |
+ |
67 |
+all_ruby_install() { |
68 |
+ dodoc README.en README.ja NEWS.en NEWS.ja |
69 |
+ dodoc -r doc-en sample |
70 |
+} |
71 |
+ |
72 |
+pkg_postinst() { |
73 |
+ if ! use image || ! use mixer || ! use truetype || ! use mpeg || ! use sge; then |
74 |
+ echo "" |
75 |
+ ewarn "If any of the following packages are not installed, Ruby/SDL" |
76 |
+ ewarn "will be missing some functionality. This is ok, but may" |
77 |
+ ewarn "cause errors in Ruby/SDL programs that need these libraries:" |
78 |
+ ewarn "" |
79 |
+ ewarn "\tmedia-libs/sdl-image\tImage loading (PNG, JPEG, etc.)" |
80 |
+ ewarn "\tmedia-libs/sdl-mixer\tSound mixing" |
81 |
+ ewarn "\tmedia-libs/sdl-ttf\tTrueType Fonts" |
82 |
+ ewarn "\tmedia-libs/sge\t\tVarious cool graphics extensions" |
83 |
+ ewarn "\tmedia-libs/smpeg\tMPEG playback (including mp3)" |
84 |
+ ewarn "" |
85 |
+ ewarn "If you need the functionality offered by these libraries," |
86 |
+ ewarn "emerge the desired libraries, then re-emerge dev-ruby/rubysdl" |
87 |
+ echo "" |
88 |
+ fi |
89 |
+} |