From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/angband/
Date: Sat, 9 Mar 2019 22:35:12 +0000 (UTC) [thread overview]
Message-ID: <1552169772.a075426e95a45f7cb03888bc57f26c2228115479.chewi@gentoo> (raw)
commit: a075426e95a45f7cb03888bc57f26c2228115479
Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
AuthorDate: Mon Mar 4 18:32:49 2019 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 9 22:16:12 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a075426e
games-roguelike/angband: rework USE flag logic
Add REQUIRED_USE "at least one of" X or ncurses, thanks to it we can
drop some tricky conditions in src_configure and RDEPEND.
Besides that angband simply cannot build with USE="-X -ncurses".
Add sound? ( sdl ) to REQUIRED_USE as SDL is needed for sound.
Add media-fonts/font-misc-misc to RDEPEND with USE=X.
Default USE flags in accordance with the upstream configure options:
set +X, +ncurses; disable sound.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
games-roguelike/angband/angband-4.1.3.ebuild | 38 +++++++++++++---------------
1 file changed, 18 insertions(+), 20 deletions(-)
diff --git a/games-roguelike/angband/angband-4.1.3.ebuild b/games-roguelike/angband/angband-4.1.3.ebuild
index 34d75a13d94..830cddc683f 100644
--- a/games-roguelike/angband/angband-4.1.3.ebuild
+++ b/games-roguelike/angband/angband-4.1.3.ebuild
@@ -14,9 +14,15 @@ SRC_URI="https://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="ncurses sdl +sound X"
+IUSE="+ncurses sdl sound +X"
-RDEPEND="!ncurses? ( !X? ( !sdl? ( sys-libs/ncurses:0=[unicode] ) ) )
+REQUIRED_USE="sound? ( sdl )
+ || ( X ncurses )"
+
+RDEPEND="X? (
+ media-fonts/font-misc-misc
+ x11-libs/libX11
+ )
ncurses? ( sys-libs/ncurses:0=[unicode] )
sdl? (
media-libs/libsdl[video,X]
@@ -26,8 +32,7 @@ RDEPEND="!ncurses? ( !X? ( !sdl? ( sys-libs/ncurses:0=[unicode] ) ) )
media-libs/libsdl[sound]
media-libs/sdl-mixer[mp3]
)
- )
- X? ( x11-libs/libX11 )"
+ )"
DEPEND="${RDEPEND}
dev-python/docutils
virtual/pkgconfig"
@@ -54,23 +59,16 @@ src_prepare() {
}
src_configure() {
- local myconf
-
- if use sdl; then
- myconf="$(use_enable sound sdl-mixer)"
- else
- myconf="--disable-sdl-mixer"
- fi
+ local myconf=(
+ --bindir="${EPREFIX}"/usr/bin
+ --with-private-dirs
+ $(use_enable X x11)
+ $(use_enable sdl)
+ $(use_enable sound sdl-mixer)
+ $(use_enable ncurses curses)
+ )
- econf \
- --bindir="${EPREFIX}"/usr/bin \
- --with-private-dirs \
- $(use_enable X x11) \
- $(use_enable sdl) \
- $(use_enable ncurses curses) \
- $(use !sdl && use !ncurses && use !X && \
- echo --enable-curses) \
- ${myconf}
+ econf "${myconf[@]}"
}
src_install() {
next reply other threads:[~2019-03-09 22:35 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-09 22:35 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-08 19:36 [gentoo-commits] repo/gentoo:master commit in: games-roguelike/angband/ James Le Cuirot
2024-08-08 19:36 James Le Cuirot
2024-08-08 19:36 James Le Cuirot
2024-08-08 19:36 James Le Cuirot
2022-07-28 20:20 Stefan Strogin
2021-12-28 17:10 Ionen Wolkens
2021-11-02 2:44 Stefan Strogin
2021-11-01 22:07 James Le Cuirot
2021-10-27 23:00 James Le Cuirot
2021-10-27 22:48 James Le Cuirot
2021-06-23 2:24 Ionen Wolkens
2020-06-12 1:40 Stefan Strogin
2019-08-20 6:36 Stefan Strogin
2019-05-06 23:42 Stefan Strogin
2019-04-05 5:13 Michał Górny
2019-03-09 22:35 James Le Cuirot
2019-03-09 22:35 James Le Cuirot
2019-03-09 22:35 James Le Cuirot
2019-03-09 22:35 James Le Cuirot
2019-03-09 22:35 James Le Cuirot
2017-09-30 4:03 Sergei Trofimovich
2016-08-05 21:31 Austin English
2016-05-08 20:27 Michael Sterrett
2016-03-20 20:51 Michael Sterrett
2016-03-16 11:51 Agostino Sarubbo
2016-03-15 15:27 Agostino Sarubbo
2016-03-14 22:13 Agostino Sarubbo
2016-02-09 22:12 Michael Sterrett
2015-12-29 7:41 Michael Sterrett
2015-12-07 11:40 Agostino Sarubbo
2015-12-07 10:02 Agostino Sarubbo
2015-11-06 5:33 Michael Sterrett
2015-11-06 5:33 Michael Sterrett
2015-08-26 16:43 Michael Sterrett
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=1552169772.a075426e95a45f7cb03888bc57f26c2228115479.chewi@gentoo \
--to=chewi@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