diff options
author | Martin Väth <martin@mvath.de> | 2012-05-28 15:37:04 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2015-10-11 10:48:07 +0200 |
commit | 48b56b0fe3af8bef8c2aae9d002e9543fdcd2cbd (patch) | |
tree | 2f36d99351c8c4dcf55be3391054e8f1fae75066 /games-rpg/magus | |
parent | Bump logclean (add --shorten). Update checksums (diff) | |
download | mv-48b56b0fe3af8bef8c2aae9d002e9543fdcd2cbd.tar.gz mv-48b56b0fe3af8bef8c2aae9d002e9543fdcd2cbd.tar.bz2 mv-48b56b0fe3af8bef8c2aae9d002e9543fdcd2cbd.zip |
Bump noscript. Improve magus ebuild (colliding USE-Flags, imagemagick, cleanup)
Diffstat (limited to 'games-rpg/magus')
-rw-r--r-- | games-rpg/magus/ChangeLog | 4 | ||||
-rw-r--r-- | games-rpg/magus/magus-99999999.ebuild | 46 | ||||
-rw-r--r-- | games-rpg/magus/metadata.xml | 1 |
3 files changed, 33 insertions, 18 deletions
diff --git a/games-rpg/magus/ChangeLog b/games-rpg/magus/ChangeLog index f96cc6d8..57506e59 100644 --- a/games-rpg/magus/ChangeLog +++ b/games-rpg/magus/ChangeLog @@ -4,6 +4,10 @@ *magus-1.3.3 (28 May 2011) + 28 May 2012; Martin Väth <martin@mvath.de> + Cleaner dependencies and messages for colliding USE-flags. + Rely on automagic eautopoint. Add support for optional imagemagick. + 17 May 2012; Martin Väth <martin@mvath.de> Remove REQUIRED_USE; default to firefox diff --git a/games-rpg/magus/magus-99999999.ebuild b/games-rpg/magus/magus-99999999.ebuild index 514d1405..999246b9 100644 --- a/games-rpg/magus/magus-99999999.ebuild +++ b/games-rpg/magus/magus-99999999.ebuild @@ -27,7 +27,7 @@ then PROPERTIES="live" fi LICENSE="GPL-2" SLOT="0" -IUSE="+acroread icecat konqueror postgres pngcrush seamonkey" +IUSE="+acroread icecat imagemagick konqueror postgres pngcrush seamonkey" DEPENDCOMMON="dev-libs/libsigc++:2 dev-cpp/gtkmm:2.4 @@ -38,19 +38,20 @@ DEPENDCOMMON="dev-libs/libsigc++:2 DEPEND="${DEPENDCOMMON} sys-devel/gettext - pngcrush? ( media-gfx/pngcrush )" + pngcrush? ( media-gfx/pngcrush ) + imagemagick? ( || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick ) )" RDEPEND="${DEPENDCOMMON} + icecat? ( www-client/icecat ) !icecat? ( + seamonkey? ( www-client/seamonkey ) !seamonkey? ( + konqueror? ( kde-base/konqueror ) !konqueror? ( - || ( www-client/firefox www-client/firefox-bin ) + || ( www-client/firefox www-client/firefox-bin ) ) ) ) - icecat? ( www-client/icecat ) - seamonkey? ( www-client/seamonkey ) - konqueror? ( kde-base/konqueror ) acroread? ( app-text/acroread ) virtual/libintl" @@ -114,8 +115,26 @@ src_sed() { } set_browser() { - einfo "Using browser ${browser}" - [ "${browser}" = "mozilla" ] && return + local i browser + browser= + for i in icecat seamonkey konqueror + do use "${i}" || continue + if [ -n "${browser}" ] + then ewarn "USE=${i} is overridden by USE=${browser}" + else browser=${i} + fi + done + einfo + if [ -z "${browser}" ] + then browser="firefox" + einfo "Using default browser ${browser}:" + elif [ "${browser}" = "mozilla" ] + then einfo "Keeping upstream's default browser (mozilla)" + einfo + return + else einfo "USE=${browser} overrides default browser firefox:" + fi + einfo src_sed midgard/docs/BMod_Op.html -e "s#mozilla#${browser}#" src_sed midgard/libmagus/Magus_Optionen.cc -e "s#mozilla#${browser}#" src_sed midgard/midgard.glade -e "s#mozilla#${browser}#" @@ -123,7 +142,6 @@ set_browser() { } src_patch() { - local i einfo einfo "Various patches:" einfo @@ -138,14 +156,6 @@ src_patch() { # src_cp ManuProC_Base/macros/petig.m4 ManuProC_Widgets/macros/petig.m4 src_sed midgard/src/table_lernschema.cc \ '/case .*:$/{n;s/^[ ]*\}/break;}/}' - - for i in icecat seamonkey konqueror - do if use "${i}" - then set_browser "${i}" - return - fi - done - set_browser "firefox" } my_cd() { @@ -159,7 +169,6 @@ my_autoreconf() { my_cd "${1}" export AT_M4DIR test -d macros && AT_M4DIR="macros" || AT_M4DIR="" - grep -q 'AM_GNU_GETTEXT' configure.in && eautopoint eautoreconf } @@ -167,6 +176,7 @@ src_prepare() { local i src_patch epatch_user + set_browser for i in "${S}"/* do my_autoreconf "${i##*/}" done diff --git a/games-rpg/magus/metadata.xml b/games-rpg/magus/metadata.xml index 25035951..90c050ea 100644 --- a/games-rpg/magus/metadata.xml +++ b/games-rpg/magus/metadata.xml @@ -25,5 +25,6 @@ <flag name="postgres">Use postgresql instead of sqlite</flag> <flag name="seamonkey">Depend on seamonkey browser instead of firefox</flag> <flag name="pngcrush">Use pngcrush for opimizing png before installation</flag> + <flag name="imagemagick">Use convert from graphicsmagick/imagemagick to scale pictures before installation</flag> </use> </pkgmetadata> |