Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 22:16:49 -0500
From:      Wesley Shields <wxs@FreeBSD.org>
To:        Michael Scheidell <scheidell@FreeBSD.org>, gabor@FreeBSD.org
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/astro/merkaartor Makefile
Message-ID:  <20120121031649.GA89853@atarininja.org>
In-Reply-To: <201201210047.q0L0lGNH027714@repoman.freebsd.org>
References:  <201201210047.q0L0lGNH027714@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 21, 2012 at 12:47:16AM +0000, Michael Scheidell wrote:
> scheidell    2012-01-21 00:47:16 UTC
> 
>   FreeBSD ports repository
> 
>   Modified files:
>     astro/merkaartor     Makefile 
>   Log:
>   - Don't use INSTALL_ICONS when Gnome not installed
>   
>   PR:             ports/164344
>   Approved by:    gabor(mentor, implicit)
>   
>   Revision  Changes    Path
>   1.20      +5 -2      ports/astro/merkaartor/Makefile
> http://cvsweb.FreeBSD.org/ports/astro/merkaartor/Makefile.diff?r1=1.19&r2=1.20
> | --- ports/astro/merkaartor/Makefile	2011/07/03 15:49:55	1.19
> | +++ ports/astro/merkaartor/Makefile	2012/01/21 00:47:16	1.20
> | @@ -2,7 +2,7 @@
> |  # Date created:        9 January 2009
> |  # Whom:                slaven@rezic.de
> |  #
> | -# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/ports/astro/merkaartor/Makefile,v 1.19 2011/07/03 15:49:55 jlaffaye Exp $
> | +# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/ports/astro/merkaartor/Makefile,v 1.20 2012/01/21 00:47:16 scheidell Exp $
> |  #
> |  
> |  PORTNAME=	merkaartor
> | @@ -14,10 +14,10 @@ MASTER_SITES=	http://www.merkaartor.be/a
> |  MAINTAINER=	dev2@heesakkers.info
> |  COMMENT=	An openstreetmap mapping program
> |  
> | -BUILD_DEPENDS=	${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs
> | -
> |  LICENSE=	GPLv2
> |  
> | +BUILD_DEPENDS=	${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs
> | +
> |  USE_BZIP2=	yes
> |  USE_LDCONFIG=	yes
> |  
> | @@ -25,7 +25,10 @@ USE_QT_VER=	4
> |  QT_COMPONENTS=	qmake_build uic_build moc_build rcc_build \
> |  		gui network svg webkit xml imageformats script scripttools
> |  MAKE_JOBS_SAFE=	yes
> | +
> | +.if exists(${LOCALBASE}/bin/gnome-session)
> |  INSTALLS_ICONS=	yes
> | +.endif

Isn't there a better way to do this?

As it stands now, if I don't have gnome-session then this port will not
bring in the gnome stuff for me.  What if I want it to bring in gnome?
There is no way for this port to conditionally bring in gnome for me. If
it sees I already have gnome it will honor that but there is no way for
me to say "I don't have gnome, but please bring in the necessary parts
and register dependencies for me".

Shouldn't we make gnome support an option? Default it to off for the
sake of not bloating the dependencies just to get some icons
registered. You could even do something like:

.if !defined(WITH_GNOME_ICONS)
.if exists(${LOCALBASE}/bin/gnome-session)
# Gnome is installed, but the user does not have GNOME_ICONS options
# turned on, forcibly set this so icons will work.
INSTALLS_ICONS=	yes
.fi
.else
# User specifically wants gnome icon support.
INSTALLS_ICONS=yes
.fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120121031649.GA89853>